Sfoglia il codice sorgente

评分后也能作废

HD_wangm 3 settimane fa
parent
commit
7144a514d0

+ 6 - 6
ygtx-gxt/src/main/java/com/ygtx/gxt/service/impl/GxtRepairOrderServiceImpl.java

@@ -446,12 +446,12 @@ public class GxtRepairOrderServiceImpl implements IGxtRepairOrderService
         repairOrderPerson.setOrderId(gxtRepairOrder.getId());
         List<GxtRepairOrderPerson> repairOrderPersonList = gxtRepairOrderPersonMapper.selectGxtRepairOrderPersonList(repairOrderPerson);
 
-        // 检查列表中是否有任何GxtRepairOrderPerson的selfScore或者score有数据
-        for (GxtRepairOrderPerson person : repairOrderPersonList) {
-            if (person.getSelfScore() != null || person.getScore() != null) {
-                throw new ServiceException("工单中存在工分数据,无法进行作废操作");
-            }
-        }
+//        // 检查列表中是否有任何GxtRepairOrderPerson的selfScore或者score有数据
+//        for (GxtRepairOrderPerson person : repairOrderPersonList) {
+//            if (person.getSelfScore() != null || person.getScore() != null) {
+//                throw new ServiceException("工单中存在工分数据,无法进行作废操作");
+//            }
+//        }
 
         String nickName = SecurityUtils.getLoginUser().getUser().getNickName();
         GxtRepairOrder oldOrder = gxtRepairOrderMapper.selectGxtRepairOrderById(gxtRepairOrder.getId());

+ 6 - 6
ygtx-gxt/src/main/java/com/ygtx/gxt/service/impl/GxtWorkOrderServiceImpl.java

@@ -2195,12 +2195,12 @@ public class GxtWorkOrderServiceImpl implements IGxtWorkOrderService
         workOrderPerson.setOrderId(id);
         List<GxtWorkOrderPerson> orderPersonList = gxtWorkOrderPersonMapper.selectGxtWorkOrderPersonList(workOrderPerson);
 
-        // 检查列表中是否有任何GxtWorkOrderPerson的selfScore或者score有数据
-        for (GxtWorkOrderPerson person : orderPersonList) {
-            if (person.getSelfScore() != null || person.getScore() != null) {
-                throw new ServiceException("工单中存在工分数据,无法进行作废操作");
-            }
-        }
+//        // 检查列表中是否有任何GxtWorkOrderPerson的selfScore或者score有数据
+//        for (GxtWorkOrderPerson person : orderPersonList) {
+//            if (person.getSelfScore() != null || person.getScore() != null) {
+//                throw new ServiceException("工单中存在工分数据,无法进行作废操作");
+//            }
+//        }
 
         String oldStatus = order.getWorkOrderStatus();