oracle 索引9超出范围,SQLException:参数索引超出范围(10个参数的数量,也就是9)。...

同学好,请检查你的mapper写得是否和我的一致,应该说mapper写得不对<?xml  version="1.0" encoding="UTF-8"?>

mapper

PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"

"http://mybatis.org/dtd/mybatis-3-mapper.dtd">

javaType="com.imooc.o2o.entity.Area">

javaType="com.imooc.o2o.entity.ShopCategory">

javaType="com.imooc.o2o.entity.PersonInfo">

SELECT

s.shop_id,

s.shop_name,

s.shop_desc,

s.shop_addr,

s.phone,

s.shop_img,

s.priority,

s.create_time,

s.last_edit_time,

s.enable_status,

s.advice,

a.area_id,

a.area_name,

sc.shop_category_id,

sc.shop_category_name

FROM

tb_shop s,

tb_area a,

tb_shop_category sc

test="shopCondition.shopCategory != null and

shopCondition.shopCategory.shopCategoryId != null">

and s.shop_category_id =

#{shopCondition.shopCategory.shopCategoryId}

test="shopCondition.shopCategory != null

and shopCondition.shopCategory.parent!=null

and shopCondition.shopCategory.parent.shopCategoryId !=null">

and s.shop_category_id in (select shop_category_id from

tb_shop_category

WHERE parent_id =

#{shopCondition.shopCategory.parent.shopCategoryId})

test="shopCondition.area != null and

sho...

2018-06-25 01:01:36

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值