|
@@ -572,31 +572,31 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
|
|
|
imageList.add(image);
|
|
|
});
|
|
|
Long mtCompanyId = request.getMtCompanyId();
|
|
|
- //苏州帝威电梯工程技术有限公司 - 发送维保记录数据
|
|
|
- if (Objects.equals(1001102109977L, mtCompanyId)) {
|
|
|
- String registrationCode = StrUtil.EMPTY;
|
|
|
- Long liftId = oldRecord.getLiftId();
|
|
|
- Optional<Lift> optional = liftService.getOne(null, liftId);
|
|
|
- if (optional.isPresent()) {
|
|
|
- Lift lift = optional.get();
|
|
|
- registrationCode = lift.getRegistrationCode();
|
|
|
- }
|
|
|
- Long recordId = record.getId();
|
|
|
- //获取维保人员ID
|
|
|
- Long workerId1 = oldRecord.getWorkerId1();
|
|
|
- //查询维保人员操作证
|
|
|
- String cardId = baseMapper.getCardId(workerId1);
|
|
|
- MissionContent content = new MissionContent();
|
|
|
- content.setDevCode(registrationCode);
|
|
|
- content.setCardNoList(cardId);
|
|
|
-
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("token", env.getProperty("token"));
|
|
|
- params.put("account", env.getProperty("account"));
|
|
|
- params.put("Content", content);
|
|
|
- //提交维保记录
|
|
|
- commitMaintenanceRecord(params, mtCompanyId, recordId, liftId);
|
|
|
- }
|
|
|
+ // todo 苏州帝威电梯工程技术有限公司 - 发送维保记录数据 连接被拒绝
|
|
|
+// if (Objects.equals(1001102109977L, mtCompanyId)) {
|
|
|
+// String registrationCode = StrUtil.EMPTY;
|
|
|
+// Long liftId = oldRecord.getLiftId();
|
|
|
+// Optional<Lift> optional = liftService.getOne(null, liftId);
|
|
|
+// if (optional.isPresent()) {
|
|
|
+// Lift lift = optional.get();
|
|
|
+// registrationCode = lift.getRegistrationCode();
|
|
|
+// }
|
|
|
+// Long recordId = record.getId();
|
|
|
+// //获取维保人员ID
|
|
|
+// Long workerId1 = oldRecord.getWorkerId1();
|
|
|
+// //查询维保人员操作证
|
|
|
+// String cardId = baseMapper.getCardId(workerId1);
|
|
|
+// MissionContent content = new MissionContent();
|
|
|
+// content.setDevCode(registrationCode);
|
|
|
+// content.setCardNoList(cardId);
|
|
|
+//
|
|
|
+// Map<String, Object> params = new HashMap<>();
|
|
|
+// params.put("token", env.getProperty("token"));
|
|
|
+// params.put("account", env.getProperty("account"));
|
|
|
+// params.put("Content", content);
|
|
|
+// //提交维保记录
|
|
|
+// commitMaintenanceRecord(params, mtCompanyId, recordId, liftId);
|
|
|
+// }
|
|
|
boolean ret = mtRecordImgService.saveBatch(imageList, imageList.size());
|
|
|
if (!ret) {
|
|
|
rollback();
|