|
@@ -1117,10 +1117,10 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public int updateDetailsStatus(List<Integer> mapList) {
|
|
|
+ public int updateDetailsStatus(List<Integer> detailsOrderList) {
|
|
|
int i = 0;
|
|
|
- for(Integer orderId :mapList) {
|
|
|
- if(orderId == null) {
|
|
|
+ for(Integer detailsId :detailsOrderList) {
|
|
|
+ if(detailsId == null) {
|
|
|
continue;
|
|
|
}
|
|
|
//BigDecimal detailId = DataChange.dataToBigDecimal(map.get("detailId"));
|
|
@@ -1128,7 +1128,11 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
|
//bmstruckDetailsOrder.setDetailsId(detailId);
|
|
|
//bmstruckDetailsOrder.setWetherToStatement(new BigDecimal(1));
|
|
|
//i += bmstruckDetailsOrderMapper.updateByPrimaryKeySelective(bmstruckDetailsOrder);
|
|
|
- i += bmstruckDetailsOrderMapper.updateDetailsStatus(orderId);
|
|
|
+ try {
|
|
|
+ i += bmstruckDetailsOrderMapper.updateDetailsStatus(detailsId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
/*BigDecimal priceId = omstruckOrderMapper.getPriceId(orderId);
|
|
|
omstruckOrderMapper.modifyOldTime(priceId,new Date());*/
|
|
|
}
|
|
@@ -1170,15 +1174,18 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- public int cancelMakeSure(List<Integer> mapList) {
|
|
|
+ public int cancelMakeSure(List<Integer> detailsOrderList) {
|
|
|
int i = 0;
|
|
|
- for(Integer orderId :mapList) {
|
|
|
+ for(Integer detailsId :detailsOrderList) {
|
|
|
+ if(detailsId == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
//BigDecimal detailId = DataChange.dataToBigDecimal(map.get("detailId"));
|
|
|
//BmstruckDetailsOrder bmstruckDetailsOrder = new BmstruckDetailsOrder();
|
|
|
//bmstruckDetailsOrder.setDetailsId(detailId);
|
|
|
//bmstruckDetailsOrder.setWetherToStatement(new BigDecimal(1));
|
|
|
//i += bmstruckDetailsOrderMapper.updateByPrimaryKeySelective(bmstruckDetailsOrder);
|
|
|
- i += bmstruckDetailsOrderMapper.cancelMakeSure(orderId);
|
|
|
+ i += bmstruckDetailsOrderMapper.cancelMakeSure(detailsId);
|
|
|
/*BigDecimal priceId = omstruckOrderMapper.getPriceId(orderId);
|
|
|
omstruckOrderMapper.modifyOldTime(priceId,new Date());*/
|
|
|
}
|