动火作业新增接口所有节点打回时添加保存签字图片和打回意见逻辑
parent
e1033f8a41
commit
62ece3f434
|
@ -741,13 +741,12 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
pd2.put("OTHER_PROTECTIVE_MEASURES", "");
|
pd2.put("OTHER_PROTECTIVE_MEASURES", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (status) {
|
|
||||||
|
|
||||||
case "8"://验收人
|
|
||||||
List<MultipartFile> fileList = new ArrayList<MultipartFile>();
|
List<MultipartFile> fileList = new ArrayList<MultipartFile>();
|
||||||
String signertime = "";
|
String signertime = "";
|
||||||
String SIGNTIME[] = pd.getString("SIGNTIME").split(",");
|
String[] SIGNTIME = pd.getString("SIGNTIME").split(",");
|
||||||
|
|
||||||
|
switch (status) {
|
||||||
|
case "8": // 验收人
|
||||||
for (int i = 0; i < SIGNTIME.length; i++) {
|
for (int i = 0; i < SIGNTIME.length; i++) {
|
||||||
signertime = SIGNTIME[i];
|
signertime = SIGNTIME[i];
|
||||||
fileList.add(request.getFile("file" + i));
|
fileList.add(request.getFile("file" + i));
|
||||||
|
@ -785,10 +784,17 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "-8": // 审批打回
|
case "-8": // 审批打回
|
||||||
log.put("ACTION", "验收人打回");
|
for (int i = 0; i < SIGNTIME.length; i++) {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
signertime = SIGNTIME[i];
|
||||||
|
fileList.add(request.getFile("file" + i));
|
||||||
|
MultipartFile[] fileArr = new MultipartFile[fileList.size()];
|
||||||
|
saveAcceptImg(fileList.toArray(fileArr), signertime, pd.getString("HOTWORK_ID"), pd.getString("CORPINFO_ID"), pd.getString("ACCEPT_USER_ID"), pd.getString("ACCEPT_DEPARTMENT_ID"));
|
||||||
|
fileList.clear();
|
||||||
|
}
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "验收人打回");
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes6 = new PageData();
|
PageData mes6 = new PageData();
|
||||||
|
@ -1216,17 +1222,50 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "-1.5": {//确认
|
case "-1.5": {//确认
|
||||||
log.put("ACTION", "作业负责人打回");
|
// log.put("ACTION", "作业负责人打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
|
// break;
|
||||||
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("CONFIRM_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("CONFIRM_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
||||||
|
pd2.put("CONFIRM_OTHER_CONTENT", pd.get("APPROVAL_CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "作业负责人打回");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "-2": {//确认打回
|
case "-2": {//确认打回
|
||||||
log.put("ACTION", "作业单位打回");
|
// log.put("ACTION", "作业单位打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
// 保存审批信息
|
||||||
|
PageData condition = new PageData();
|
||||||
|
condition.put("HOTWORK_ID", pd2.get("HOTWORK_ID"));
|
||||||
|
condition.put("TYPE", "1");
|
||||||
|
condition.put("APPROVAL_OPINIONS", pd.get("CONTENT"));
|
||||||
|
condition.put("APPROVAL_SIGNATURE", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
condition.put("APPROVAL_SIGNATURE_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
condition.put("APPROVAL_STATUS", pd.getString("APPROVAL_STATUS"));
|
||||||
|
condition.put("APPROVAL_CONTENT", pd.getString("APPROVAL_CONTENT"));
|
||||||
|
hotworkCfdService.approval(condition);
|
||||||
|
}
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes = new PageData();
|
PageData mes = new PageData();
|
||||||
|
@ -1256,9 +1295,24 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
}
|
}
|
||||||
case "-4"://单位负责人打回
|
case "-4"://单位负责人打回
|
||||||
log.put("ACTION", "单位负责人打回");
|
log.put("ACTION", "单位负责人打回");
|
||||||
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("LEADER_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("LEADER_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
pd2.put("LEADER_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "单位负责人打回");
|
||||||
|
}
|
||||||
|
// log.put("ACTION", "单位负责人打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes2 = new PageData();
|
PageData mes2 = new PageData();
|
||||||
|
@ -1286,10 +1340,24 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
//sendMessageUtil.sendMessages(mes2, paramsList2);
|
//sendMessageUtil.sendMessages(mes2, paramsList2);
|
||||||
break;
|
break;
|
||||||
case "-5"://审批部门打回
|
case "-5"://审批部门打回
|
||||||
log.put("ACTION", "安全部门打回");
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("AUDIT_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("AUDIT_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "安全部门打回");
|
||||||
|
|
||||||
|
// log.put("ACTION", "安全部门打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes3 = new PageData();
|
PageData mes3 = new PageData();
|
||||||
|
@ -1316,11 +1384,25 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
paramsList3.add(params12);
|
paramsList3.add(params12);
|
||||||
//sendMessageUtil.sendMessages(mes3, paramsList3);
|
//sendMessageUtil.sendMessages(mes3, paramsList3);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case "-6"://审批打回
|
case "-6"://审批打回
|
||||||
log.put("ACTION", "审批部门打回");
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("APPROVE_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("APPROVE_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "审批部门打回");
|
||||||
|
// log.put("ACTION", "审批部门打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes4 = new PageData();
|
PageData mes4 = new PageData();
|
||||||
mes4.put("RECEIVER_ID", pd2.get("APPLY_USER_ID"));// 收信人userid
|
mes4.put("RECEIVER_ID", pd2.get("APPLY_USER_ID"));// 收信人userid
|
||||||
|
@ -1346,11 +1428,26 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
paramsList4.add(params15);
|
paramsList4.add(params15);
|
||||||
//sendMessageUtil.sendMessages(mes4, paramsList4);
|
//sendMessageUtil.sendMessages(mes4, paramsList4);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case "-7"://审批打回
|
case "-7"://审批打回
|
||||||
log.put("ACTION", "动火前验票打回");
|
if (files != null && files.length > 0) {
|
||||||
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("MONITOR_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("MONITOR_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
|
pd2.put("MONITOR_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("WORK_START_DATE", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")));
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "动火前验票打回");
|
||||||
|
// log.put("ACTION", "动火前验票打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes5 = new PageData();
|
PageData mes5 = new PageData();
|
||||||
mes5.put("RECEIVER_ID", pd2.get("APPLY_USER_ID"));// 收信人userid
|
mes5.put("RECEIVER_ID", pd2.get("APPLY_USER_ID"));// 收信人userid
|
||||||
|
@ -1376,11 +1473,25 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
paramsList5.add(params18);
|
paramsList5.add(params18);
|
||||||
//sendMessageUtil.sendMessages(mes5, paramsList5);
|
//sendMessageUtil.sendMessages(mes5, paramsList5);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case "-8"://审批打回
|
case "-8"://审批打回
|
||||||
log.put("ACTION", "验收人打回");
|
if (files != null && files.length > 0) {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
Smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
|
||||||
|
pd2.put("ACCEPT_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
pd2.put("ACCEPT_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
|
log.put("ACTION", "验收人打回");
|
||||||
|
// log.put("ACTION", "验收人打回");
|
||||||
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
// pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
|
// hotworkCfdService.edit(pd2);
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes6 = new PageData();
|
PageData mes6 = new PageData();
|
||||||
|
@ -1406,6 +1517,7 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
params21.put("value", "验收归档");// 存入上面参数名称所传递的值
|
params21.put("value", "验收归档");// 存入上面参数名称所传递的值
|
||||||
paramsList6.add(params21);
|
paramsList6.add(params21);
|
||||||
//sendMessageUtil.sendMessages(mes6, paramsList6);
|
//sendMessageUtil.sendMessages(mes6, paramsList6);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue