|
@@ -242,48 +242,48 @@ public class UniversalServiceImpl implements UniversalService {
|
|
|
*/
|
|
|
|
|
|
public void closePassedOrder() {
|
|
|
- List<Map<String,Object>> passedOrderList = universalMapper.findPassedOrder();
|
|
|
- System.out.println("关闭的未出厂过期订单如下:<" + passedOrderList + ">");
|
|
|
- int result=0;
|
|
|
-
|
|
|
- try {
|
|
|
- if (passedOrderList.isEmpty()){
|
|
|
-
|
|
|
- }else {
|
|
|
- for (Map<String, Object> map : passedOrderList) {
|
|
|
- BigDecimal orderId = (BigDecimal) map.get("orderId");
|
|
|
-
|
|
|
-
|
|
|
- BigDecimal bigDecimal = universalMapper.sumNetWeight(orderId);
|
|
|
- if (bigDecimal.compareTo(BigDecimal.ZERO)!=0){
|
|
|
- result+=universalMapper.updateStatusTwo(orderId);
|
|
|
- }else {
|
|
|
- result+=universalMapper.updateStatusSeven(orderId);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- universalMapper.delectQueueS(capacityIdS);
|
|
|
- }*/
|
|
|
-
|
|
|
- BigDecimal capacityIdM =universalMapper.queueMore(orderId);
|
|
|
- if (capacityIdM !=null){
|
|
|
-
|
|
|
- universalMapper.delectQueueM(capacityIdM);
|
|
|
- }
|
|
|
-
|
|
|
- BigDecimal capacityIdS=universalMapper.queueSingle(orderId);
|
|
|
- if (capacityIdS !=null){
|
|
|
-
|
|
|
- universalMapper.delectQueueS(capacityIdS);
|
|
|
- }*/
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }catch (Exception e){
|
|
|
-
|
|
|
- }
|
|
|
- System.out.println("订单关闭数为:" + result);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|