瀏覽代碼

update->更新

wang-hai-cheng 4 年之前
父節點
當前提交
96d71842f3

+ 9 - 9
lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/service/MaintenanceRecordService.java

@@ -302,15 +302,15 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
         } else {
             return RestResponse.fail(MessageUtils.get("msg.add.fail"));
         }
-        log.debug("根据公司和电梯id设置电梯状态为维保中");
-        boolean update = platformCompanyLiftRelevanceService.update(Wrappers.<PlatformCompanyLiftRelevance>update().
-                eq("mt_company_id", request.getMtCompanyId()).
-                eq("lift_id", request.getRecord().getLiftId()).
-                set("lift_company_status", CommonEnum.LiftStatus.MAINTENANCE.getCode()));
-        if (!update) {
-            rollback();
-            return RestResponse.fail("无法转换电梯状态到维保中");
-        }
+//        log.debug("根据公司和电梯id设置电梯状态为维保中");
+//        boolean update = platformCompanyLiftRelevanceService.update(Wrappers.<PlatformCompanyLiftRelevance>update().
+//                eq("mt_company_id", request.getMtCompanyId()).
+//                eq("lift_id", request.getRecord().getLiftId()).
+//                set("lift_company_status", CommonEnum.LiftStatus.MAINTENANCE.getCode()));
+//        if (!update) {
+//            rollback();
+//            return RestResponse.fail("无法转换电梯状态到维保中");
+//        }
         return RestResponse.success(record.getId(), MessageUtils.get("msg.add.success"));
     }