|
|
@@ -382,8 +382,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
ps.setObject(10, product.getMinPack());
|
|
|
ps.setObject(11, product.getLeadTime());
|
|
|
ps.setObject(12, product.getLtinstock());
|
|
|
- ps.setShort(13, product.getIsSale());
|
|
|
- ps.setShort(14, product.getIsPurchase());
|
|
|
+ ps.setObject(13, product.getIsSale());
|
|
|
+ ps.setObject(14, product.getIsPurchase());
|
|
|
ps.setString(15, product.getSourceApp());
|
|
|
ps.setLong(16, product.getUserUU());
|
|
|
ps.setString(17, product.getTitle());
|
|
|
@@ -465,7 +465,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
int sum = 0;
|
|
|
for (int[] aResult : result) {
|
|
|
for (int anAResult : aResult) {
|
|
|
- sum += anAResult;
|
|
|
+ sum += 1;
|
|
|
}
|
|
|
}
|
|
|
return sum;
|