|
@@ -466,8 +466,6 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
|
|
|
// 1. 将维修单的状态修改已完成
|
|
|
RepairApplicationForm applicationForm = mapper.selectById(dto.getId());
|
|
|
- RepairForm repairForm = new RepairForm();
|
|
|
- repairForm.setId(dto.getId());
|
|
|
applicationForm.setStatus(RepairApplicationFormStatusEnum.WAIT_SUBMIT.getValue());
|
|
|
|
|
|
// 驳回重新完成的,不用更新这个时间,驳回应该状态是完成待审核,不需要重新维修
|
|
@@ -566,7 +564,7 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
domain = domain + "/";
|
|
|
}
|
|
|
String repairUrl = domain + "repair/application/form/check?no=" + applicationForm.getNo();
|
|
|
- SpringContextHolder.publishEvent(new WorkplaceBacklogEvent(WorkplaceBacklogTypeEnum.RECEIVE.getValue(), WorkplaceBacklogDetailTypeEnum.REPAIR_EXAMINE.getValue(),
|
|
|
+ SpringContextHolder.publishEvent(new WorkplaceBacklogEvent(WorkplaceBacklogTypeEnum.REPAIR.getValue(), WorkplaceBacklogDetailTypeEnum.REPAIR_EXAMINE.getValue(),
|
|
|
applicationForm.getId(), MessageTemplateUtil.getFreemarkerHtmlContentCheck(repairUrl,BeanConverterUtil.copyObjectProperties(applicationForm, RepairApplicationFormDTO.class), sbInfoVO),
|
|
|
applicationForm.getId(), ListUtils.newArrayList(userVO.getUserId()), ListUtils.newArrayList(userVO.getEmail())));
|
|
|
}
|
|
@@ -609,7 +607,7 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
domain = domain + "/";
|
|
|
}
|
|
|
String repairUrl = domain + "repair/application/form/check?no=" + applicationForm.getNo();
|
|
|
- SpringContextHolder.publishEvent(new WorkplaceBacklogEvent(WorkplaceBacklogTypeEnum.RECEIVE.getValue(), WorkplaceBacklogDetailTypeEnum.REPAIR_EXAMINE.getValue(),
|
|
|
+ SpringContextHolder.publishEvent(new WorkplaceBacklogEvent(WorkplaceBacklogTypeEnum.REPAIR.getValue(), WorkplaceBacklogDetailTypeEnum.REPAIR_EXAMINE.getValue(),
|
|
|
applicationForm.getId(), MessageTemplateUtil.getFreemarkerHtmlContentCheck(repairUrl,BeanConverterUtil.copyObjectProperties(applicationForm, RepairApplicationFormDTO.class), BeanConverterUtil.copyObjectProperties(info, SbInfoVO.class)),
|
|
|
applicationForm.getId(), ListUtils.newArrayList(userVO.getUserId()), ListUtils.newArrayList(userVO.getEmail())));
|
|
|
}else{
|
|
@@ -640,10 +638,31 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
applicationForm.getId(), ListUtils.newArrayList(applicationForm.getRepairUserId()), ListUtils.newArrayList(noticeUser.getEmail())));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 维修任务:未完成的
|
|
|
+ *
|
|
|
+ * @param userId :
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Override
|
|
|
public int countUserTask(String userId) {
|
|
|
Weekend<RepairApplicationForm> weekend = new Weekend<>(RepairApplicationForm.class);
|
|
|
weekend.weekendCriteria().andEqualTo(RepairApplicationForm::getRepairUserId, userId);
|
|
|
+ List<Integer> repairStatusList = new ArrayList<Integer>();
|
|
|
+ repairStatusList.add(RepairApplicationFormStatusEnum.NOT_ALLOCATED.getValue());
|
|
|
+ repairStatusList.add(RepairApplicationFormStatusEnum.ALLOCATED.getValue());
|
|
|
+ repairStatusList.add(RepairApplicationFormStatusEnum.PROCESSING.getValue());
|
|
|
+ weekend.weekendCriteria().andIn(RepairApplicationForm::getStatus, repairStatusList);
|
|
|
+ return mapper.selectCountByExample(weekend);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int countUserCheckTask(String userId) {
|
|
|
+ Weekend<RepairApplicationForm> weekend = new Weekend<>(RepairApplicationForm.class);
|
|
|
+ weekend.weekendCriteria().andEqualTo(RepairApplicationForm::getCheckUserId, userId);
|
|
|
+ List<Integer> repairStatusList = new ArrayList<Integer>();
|
|
|
+ repairStatusList.add(RepairApplicationFormStatusEnum.NOT_ACCEPTANCE.getValue());
|
|
|
+ weekend.weekendCriteria().andIn(RepairApplicationForm::getStatus, repairStatusList);
|
|
|
return mapper.selectCountByExample(weekend);
|
|
|
}
|
|
|
|