|
|
@@ -754,10 +754,16 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
|
|
|
IndustrialLandSupplyDetail entity = industrialLandSupplyDetailDao.selectById(id);
|
|
|
//文件
|
|
|
- List<Attachment> attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.INDUSTRIAL_LAND_SUPPLY, entity.getId(), null);
|
|
|
+ List<Attachment> attachments = null;
|
|
|
+ //基本信息附件
|
|
|
+ attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.INDUSTRIAL_LAND_SUPPLY, entity.getId(), null);
|
|
|
if (null != attachments && attachments.size() > 0) {
|
|
|
- FileDown fileDown = new FileDown(attachments.get(0).getId(), attachments.get(0).getFile_name(), attachments.get(0).getFile_url(), attachments.get(0).getDownload_uri());
|
|
|
- entity.setFileDown(fileDown);
|
|
|
+ List<FileDown> fileList = new ArrayList<>();
|
|
|
+ for (Attachment attachment : attachments) {
|
|
|
+ FileDown fileDown = new FileDown(attachment.getId(), attachment.getFile_name(), attachment.getFile_url(), attachment.getDownload_uri());
|
|
|
+ fileList.add(fileDown);
|
|
|
+ }
|
|
|
+ entity.setFileList(fileList);
|
|
|
}
|
|
|
//补充附件
|
|
|
attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.INDUSTRIAL_LAND_SUPPLY_COMMERCE_SUPPLEMENT, entity.getId(), null);
|
|
|
@@ -2101,7 +2107,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
approvalService.insertAndGetId(newApproval);
|
|
|
return true;
|
|
|
} else if (Objects.equals(Constant.LandSupplyApproveStatus.COMMERCE_RETURN, approval.getAfter_approvalstatus())) {
|
|
|
- //商务局受理员退回--》待商务局受理员审核
|
|
|
+ //商务局受理员退回 --》待商务局受理员审核
|
|
|
Group group = null;
|
|
|
newApproval.setOper_type(Constant.OperType.SUBMIT);
|
|
|
newApproval.setBefore_approvalstatus(Constant.LandSupplyApproveStatus.COMMERCE_RETURN);
|
|
|
@@ -2139,6 +2145,10 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
entity.setProcess_stage(Constant.LandSupplyApproveStage.PRE_AUDIT);
|
|
|
industrialLandSupplyDetailDao.updateByPrimaryKeySelective(entity);
|
|
|
approvalService.insertAndGetId(newApproval);
|
|
|
+
|
|
|
+ IndustrialLandSupplyConsultation query = new IndustrialLandSupplyConsultation();
|
|
|
+ query.setIndustrial_land_supply_id(applyId+"");
|
|
|
+ industrialLandSupplyConsultationService.deleteByWhere(query);
|
|
|
return true;
|
|
|
} else if (Objects.equals(Constant.LandSupplyApproveStatus.COMMERCE_LEADER_RETURN, approval.getAfter_approvalstatus())) {
|
|
|
//商务局分管领导退回 --》待商务局商务局分管领导审核
|
|
|
@@ -2674,6 +2684,34 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
// messageService.saveMessageAndPush(messages, streetArrInt, Constant.UserType.COMPANY);
|
|
|
// waitToDoService.completeAllTODO(projectApplication.getId(), Constant.DictionaryType.PROJECT_INTELLIGENT);
|
|
|
// waitToDoService.newTODO("智能制造编辑", "/projectIntelligent/edit/" + projectApplication.getId(), Constant.WaitToDo_OperType.EDIT, projectApplication.getId(),
|
|
|
+// Constant.DictionaryType.PROJECT_INTELLIGENT, projectApplication.getApply_no(), companyAdmin.getId().toString(), Constant.WaitToDo_IsSerial.IS_SERIAL, false);
|
|
|
+
|
|
|
+ //发送短信
|
|
|
+ templateCode = Constant.SMS_TemplateCode.INDUSTRIAL_LAND_SUPPLY_UNTREAD;
|
|
|
+ try {
|
|
|
+ AlibabaSMSUtil.sendSMS(
|
|
|
+ userService.getUser(entity.getCreate_by()).getPhone(), templateCode, Constant.SINGNAMW, JSONObject.toJSONString(params)
|
|
|
+ );
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (Objects.equals(Constant.LandSupplyApproveStatus.MANAGEMENT_COMMITTEE_LEADER_RETURN, approval.getAfter_approvalstatus())) {
|
|
|
+ //预审退回 --》 街道板块
|
|
|
+ newApproval.setOper_type(Constant.OperType.REJECT);
|
|
|
+ newApproval.setBefore_approvalstatus(Constant.LandSupplyApproveStatus.MANAGEMENT_COMMITTEE_LEADER_RETURN);
|
|
|
+ newApproval.setAfter_approvalstatus(Constant.LandSupplyApproveStatus.COMMERCE_RETURN);
|
|
|
+ newApproval.setNextchecker(entity.getCreate_by().toString());
|
|
|
+ IndustrialLandSupplyDetail p = new IndustrialLandSupplyDetail();
|
|
|
+ p.setId(applyId);
|
|
|
+ p.setApprove_status(Constant.LandSupplyApproveStatus.COMMERCE_RETURN);
|
|
|
+ p.setProcess_stage(null);
|
|
|
+ industrialLandSupplyDetailDao.updateByPrimaryKeySelective(p);
|
|
|
+ approvalService.insertAndGetId(newApproval);
|
|
|
+// messageService.saveMessageAndPush(messages, streetArrInt, Constant.UserType.COMPANY);
|
|
|
+// waitToDoService.completeAllTODO(projectApplication.getId(), Constant.DictionaryType.PROJECT_INTELLIGENT);
|
|
|
+// waitToDoService.newTODO("智能制造编辑", "/projectIntelligent/edit/" + projectApplication.getId(), Constant.WaitToDo_OperType.EDIT, projectApplication.getId(),
|
|
|
// Constant.DictionaryType.PROJECT_INTELLIGENT, projectApplication.getApply_no(), companyAdmin.getId().toString(), Constant.WaitToDo_IsSerial.IS_SERIAL, false);
|
|
|
|
|
|
//发送短信
|