Commit 7b5ac07c authored by Quxl's avatar Quxl

x

parent 3c8965d8
......@@ -111,7 +111,7 @@ public class CartController {
@ApiOperation("修改数量(JSON格式)")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "orgNo", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name = "data", dataType = "String", required = false, value = "JSON格式", defaultValue = "{\"shopNO\": \"00029975\", \"idx\": 2,\"saleQty\": \"23\", \"setPrice\": \"10.5\"}"),
@ApiImplicitParam(paramType = "query", name = "data", dataType = "String", required = false, value = "JSON格式", defaultValue = "{\"shopNO\": \"00029975\", \"idx\": 2,\"saleQty\": \"23\"}"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
......
......@@ -147,7 +147,6 @@ public class CartServiceImpl implements CartService {
String shopNO = obj.getString("shopNO");
Integer idx = obj.getInteger("idx");
BigDecimal saleQty = obj.getBigDecimal("saleQty");
BigDecimal setPrice = obj.getBigDecimal("setPrice");
String langID = obj.getString("langID");
if(saleQty.compareTo(BigDecimal.ZERO) == 0) {
JSONObject removeObj = new JSONObject();
......@@ -160,8 +159,8 @@ public class CartServiceImpl implements CartService {
System.out.println(removeObj);
this.remove(removeObj,terminal);
} else {
String sql = "update tCart set nSaleQty = ?, nSetPrice = ? where sOrgNO = ? and sShopNO = ? and nIdx = ?";
jdbcTemplate.executeUpdate(sql, saleQty, setPrice, orgNo, shopNO, idx);
String sql = "update tCart set nSaleQty = ? where sOrgNO = ? and sShopNO = ? and nIdx = ?";
jdbcTemplate.executeUpdate(sql, saleQty, orgNo, shopNO, idx);
}
return Rjx.jsonOk().set("count", count(orgNo, shopNO)).toJson();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment