@@ -207,6 +207,7 @@ public class CartServiceImpl implements CartService {
StringorgNo=obj.getString("orgNo");
StringshopNO=obj.getString("shopNO");
StringIsSelected=obj.getString("IsSelected");
JSONArrayidxArray=obj.getJSONArray("idxs");
System.out.println("idxArray----"+idxArray);
List<String>nIdx=newArrayList<String>();
...
...
@@ -218,8 +219,7 @@ public class CartServiceImpl implements CartService {
}
}
jdbcTemplate.executeUpdate("update tCart set nIsSelected= 0 where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"'");
jdbcTemplate.executeUpdate("update tCart set nIsSelected= 1 where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"'"+StringUtil.join(", "," and nIdx in (",")",nIdx));
jdbcTemplate.executeUpdate("update tCart set nIsSelected= "+IsSelected+",dLastUpdateTime = getdate() where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"'"+StringUtil.join(", "," and nIdx in (",")",nIdx));