代码:
if(type==1){
String sql1 = "SELECT sum(c.couponfee/100) as'已省' FROM couponpublish c,couponpool e WHERE c.pubid=e.pubid AND e.status = 4 ";
List
先通过sql1查到sum(c.couponfee/100),放到s里,然后作为sql的查询条件查询e.min<'"+s.get(q).get("sum(c.couponfee/100)")报java.lang.IndexOutOfBoundsException: Index: 1, Size: 1数组越界吧。。应该怎么写呀
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
s.get(q-1)
s=[0,1]
s.szie 是2
s[2] 肯定越界了,只有 s[0] s[1]