|
|
@ -6,6 +6,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
import com.zcloud.aspect.DockAnnotation;
|
|
|
|
import com.zcloud.controller.app.highriskwork.Model;
|
|
|
|
import com.zcloud.controller.app.highriskwork.Model;
|
|
|
|
import com.zcloud.entity.hotWorkApplication.Color;
|
|
|
|
import com.zcloud.entity.hotWorkApplication.Color;
|
|
|
|
import com.zcloud.entity.hotWorkApplication.Node;
|
|
|
|
import com.zcloud.entity.hotWorkApplication.Node;
|
|
|
@ -728,12 +729,19 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
@RequestMapping(value="/editSuperOpinion")
|
|
|
|
@RequestMapping(value="/editSuperOpinion")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
@DockAnnotation(hasAnnex = true)
|
|
|
|
public Object editSuperOpinion(@RequestParam(value="FFILE203",required=false) MultipartFile[] files203,
|
|
|
|
public Object editSuperOpinion(@RequestParam(value="FFILE203",required=false) MultipartFile[] files203,
|
|
|
|
@RequestParam(value="FFILE204",required=false) MultipartFile[] files204) throws Exception{
|
|
|
|
@RequestParam(value="FFILE204",required=false) MultipartFile[] files204) throws Exception{
|
|
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
|
|
String errInfo = "success";
|
|
|
|
String errInfo = "success";
|
|
|
|
PageData pd = new PageData();
|
|
|
|
PageData pd = new PageData();
|
|
|
|
pd = this.getPageData();
|
|
|
|
pd = this.getPageData();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData dockData = new PageData(); // 主要对接数据
|
|
|
|
|
|
|
|
PageData confinedPageData = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedPageData.putAll(pd);
|
|
|
|
|
|
|
|
dockData.put("dockData", JSON.toJSONString(confinedPageData));
|
|
|
|
|
|
|
|
|
|
|
|
pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID());
|
|
|
|
pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID());
|
|
|
|
String type = pd.getString("TYPE"); //1 通过 2.未通过
|
|
|
|
String type = pd.getString("TYPE"); //1 通过 2.未通过
|
|
|
|
PageData hotUserPd = new PageData();
|
|
|
|
PageData hotUserPd = new PageData();
|
|
|
@ -769,6 +777,11 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
stateData.put("HOTWORKAPPLICATION_ID", hot.getString("HOTWORKAPPLICATION_ID"));
|
|
|
|
stateData.put("HOTWORKAPPLICATION_ID", hot.getString("HOTWORKAPPLICATION_ID"));
|
|
|
|
stateData.put("loginUserId", Jurisdiction.getUSER_ID());
|
|
|
|
stateData.put("loginUserId", Jurisdiction.getUSER_ID());
|
|
|
|
stateData.put("STATE", state);
|
|
|
|
stateData.put("STATE", state);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedstateData = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedstateData.putAll(stateData);
|
|
|
|
|
|
|
|
dockData.put("dockDatastateData", JSON.toJSONString(confinedstateData));
|
|
|
|
|
|
|
|
|
|
|
|
hotworkapplicationService.editByState(stateData);// 把动火状态修改成未通过
|
|
|
|
hotworkapplicationService.editByState(stateData);// 把动火状态修改成未通过
|
|
|
|
messageService.sendMessageByParameter("HOT_MAIL_001", "特级动火作业审批【编号:" + hot.getString("JOB_NUMBER") + "】",
|
|
|
|
messageService.sendMessageByParameter("HOT_MAIL_001", "特级动火作业审批【编号:" + hot.getString("JOB_NUMBER") + "】",
|
|
|
|
Jurisdiction.getCORPINFO_ID(),pd.getString("APPLY_USER_ID"),hot.getString("HOTWORKAPPLICATION_ID"),
|
|
|
|
Jurisdiction.getCORPINFO_ID(),pd.getString("APPLY_USER_ID"),hot.getString("HOTWORKAPPLICATION_ID"),
|
|
|
@ -789,6 +802,7 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
// hotUser.put("AUTOGRAPH",Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName);
|
|
|
|
// hotUser.put("AUTOGRAPH",Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if(StringUtils.isNotBlank(pd.getString("SIGNER_PATH"))){
|
|
|
|
if(StringUtils.isNotBlank(pd.getString("SIGNER_PATH"))){
|
|
|
|
|
|
|
|
ArrayList<String> pictureList = new ArrayList<>();
|
|
|
|
MultipartFile img = BASE64DecodedMultipartFile.base64ToMultipart(pd.getString("SIGNER_PATH"));
|
|
|
|
MultipartFile img = BASE64DecodedMultipartFile.base64ToMultipart(pd.getString("SIGNER_PATH"));
|
|
|
|
String suffixName = img.getOriginalFilename().substring(img.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
|
String suffixName = img.getOriginalFilename().substring(img.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
|
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName) && !"mp4".equals(suffixName)) {
|
|
|
|
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName) && !"mp4".equals(suffixName)) {
|
|
|
@ -800,6 +814,9 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
String ffile = DateUtil.getDays();
|
|
|
|
String ffile = DateUtil.getDays();
|
|
|
|
String fileName = this.get32UUID()+img.getOriginalFilename().substring(img.getOriginalFilename().lastIndexOf("."));
|
|
|
|
String fileName = this.get32UUID()+img.getOriginalFilename().substring(img.getOriginalFilename().lastIndexOf("."));
|
|
|
|
Smb.sshSftp(img, fileName, Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile);
|
|
|
|
Smb.sshSftp(img, fileName, Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pictureList.add(Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName + "@@" + fileName);
|
|
|
|
|
|
|
|
map.put("sendPicturesList", JSON.toJSONString(pictureList));
|
|
|
|
hotUser.put("AUTOGRAPH",Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName);
|
|
|
|
hotUser.put("AUTOGRAPH",Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName);
|
|
|
|
// String path = Model.saveFile(img, Jurisdiction.getCORPINFO_ID());
|
|
|
|
// String path = Model.saveFile(img, Jurisdiction.getCORPINFO_ID());
|
|
|
|
// pd.put("CONFIRM_SIGNER_PATH", path);
|
|
|
|
// pd.put("CONFIRM_SIGNER_PATH", path);
|
|
|
@ -817,11 +834,18 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
stateData.put("HOTWORKAPPLICATION_ID", hot.getString("HOTWORKAPPLICATION_ID"));
|
|
|
|
stateData.put("HOTWORKAPPLICATION_ID", hot.getString("HOTWORKAPPLICATION_ID"));
|
|
|
|
stateData.put("loginUserId", Jurisdiction.getUSER_ID());
|
|
|
|
stateData.put("loginUserId", Jurisdiction.getUSER_ID());
|
|
|
|
stateData.put("STATE", hot.get("STATE").toString());
|
|
|
|
stateData.put("STATE", hot.get("STATE").toString());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedstateData = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedstateData.putAll(stateData);
|
|
|
|
|
|
|
|
dockData.put("dockDatastateData", JSON.toJSONString(confinedstateData));
|
|
|
|
|
|
|
|
|
|
|
|
hotworkapplicationService.editByState(stateData);
|
|
|
|
hotworkapplicationService.editByState(stateData);
|
|
|
|
// hotworkapplicationService.editByState(hot.getString("HOTWORKAPPLICATION_ID"),hot.get("STATE").toString());
|
|
|
|
// hotworkapplicationService.editByState(hot.getString("HOTWORKAPPLICATION_ID"),hot.get("STATE").toString());
|
|
|
|
// 单位负责人确认时。保存主要安全措施
|
|
|
|
// 单位负责人确认时。保存主要安全措施
|
|
|
|
if("1".equals(pd.get("STATE").toString()) && pd.get("measureList") != null && Tools.notEmpty(pd.get("measureList").toString())){
|
|
|
|
if("1".equals(pd.get("STATE").toString()) && pd.get("measureList") != null && Tools.notEmpty(pd.get("measureList").toString())){
|
|
|
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measureList").toString());
|
|
|
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measureList").toString());
|
|
|
|
|
|
|
|
Map<String, String> measuresMap = new HashMap<>();
|
|
|
|
|
|
|
|
int measuresCount = 1;
|
|
|
|
for (JSONObject json : list) {
|
|
|
|
for (JSONObject json : list) {
|
|
|
|
// 因必须选择符合,所以只存需要填的项
|
|
|
|
// 因必须选择符合,所以只存需要填的项
|
|
|
|
if(json.get("ANSWER1") != null || json.get("ANSWER2") != null || json.get("ANSWER3") != null || json.get("ANSWER4") != null){
|
|
|
|
if(json.get("ANSWER1") != null || json.get("ANSWER2") != null || json.get("ANSWER3") != null || json.get("ANSWER4") != null){
|
|
|
@ -834,9 +858,11 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
measures.put("ANSWER3", json.get("ANSWER3"));
|
|
|
|
measures.put("ANSWER3", json.get("ANSWER3"));
|
|
|
|
measures.put("ANSWER4", json.get("ANSWER4"));
|
|
|
|
measures.put("ANSWER4", json.get("ANSWER4"));
|
|
|
|
measures.put("STATUS", json.get("radio"));
|
|
|
|
measures.put("STATUS", json.get("radio"));
|
|
|
|
|
|
|
|
measuresMap.put("other" + measuresCount, JSON.toJSONString(measures));
|
|
|
|
|
|
|
|
measuresCount++;
|
|
|
|
hotworkToMeasuresService.save(measures);
|
|
|
|
hotworkToMeasuresService.save(measures);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dockData.put("dockDatameasuresMap", JSON.toJSONString(measuresMap));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(Tools.notEmpty(pd.getString("projectSupervisor_USER_ID"))){ //特级动火初审站内信
|
|
|
|
if(Tools.notEmpty(pd.getString("projectSupervisor_USER_ID"))){ //特级动火初审站内信
|
|
|
@ -876,6 +902,10 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); //
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); //
|
|
|
|
}else if("8".equals(pd.getString("STATE"))){ // 添加动火后现场负责人
|
|
|
|
}else if("8".equals(pd.getString("STATE"))){ // 添加动火后现场负责人
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -889,6 +919,10 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
}else if("9".equals(pd.getString("STATE"))){ // 添加 临时监火
|
|
|
|
}else if("9".equals(pd.getString("STATE"))){ // 添加 临时监火
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -902,6 +936,10 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
} else if("10".equals(pd.getString("STATE"))){ // 延时监火完成后,进行归档
|
|
|
|
} else if("10".equals(pd.getString("STATE"))){ // 延时监火完成后,进行归档
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -915,6 +953,10 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
hotWorkApplicationUserService.save(leaderUser); // 添加 动火后负责人
|
|
|
|
} else if("30".equals(pd.getString("STATE"))){ // 特级动火 -- 选择项目主管人员
|
|
|
|
} else if("30".equals(pd.getString("STATE"))){ // 特级动火 -- 选择项目主管人员
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -928,6 +970,10 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}else if("31".equals(pd.getString("STATE"))){ // 特级动火 -- 项目主管部门负责人
|
|
|
|
}else if("31".equals(pd.getString("STATE"))){ // 特级动火 -- 项目主管部门负责人
|
|
|
|
//防止打回后有多个意见
|
|
|
|
//防止打回后有多个意见
|
|
|
@ -942,11 +988,20 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}else if("32".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
}else if("32".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
PageData back = new PageData();
|
|
|
|
PageData back = new PageData();
|
|
|
|
back.put("STATE","33");
|
|
|
|
back.put("STATE","33");
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedback = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedback.putAll(back);
|
|
|
|
|
|
|
|
dockData.put("dockDataback", JSON.toJSONString(confinedback));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
back.put("TYPES",new String [] {"203","204"});
|
|
|
|
back.put("TYPES",new String [] {"203","204"});
|
|
|
|
imgfilesService.hideImg(back);
|
|
|
|
imgfilesService.hideImg(back);
|
|
|
@ -961,8 +1016,14 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
if (files203 != null && files203.length > 0) {
|
|
|
|
if (files203 != null && files203.length > 0) {
|
|
|
|
|
|
|
|
ArrayList<String> pictureList = new ArrayList<>();
|
|
|
|
for (int i = 0; i < files203.length; i++) {
|
|
|
|
for (int i = 0; i < files203.length; i++) {
|
|
|
|
MultipartFile file203 = files203[i];
|
|
|
|
MultipartFile file203 = files203[i];
|
|
|
|
String suffixName = file203.getOriginalFilename().substring(file203.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
|
String suffixName = file203.getOriginalFilename().substring(file203.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
@ -977,15 +1038,21 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
// String fileName = FileUpload.fileUp(file, filePath, this.get32UUID()); //执行上传
|
|
|
|
// String fileName = FileUpload.fileUp(file, filePath, this.get32UUID()); //执行上传
|
|
|
|
String fileName = this.get32UUID()+file203.getOriginalFilename().substring(file203.getOriginalFilename().lastIndexOf("."));
|
|
|
|
String fileName = this.get32UUID()+file203.getOriginalFilename().substring(file203.getOriginalFilename().lastIndexOf("."));
|
|
|
|
Smb.sshSftp(file203, fileName,Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
|
|
|
Smb.sshSftp(file203, fileName,Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
|
|
|
|
|
|
|
pictureList.add(Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName + "@@" + fileName);
|
|
|
|
|
|
|
|
map.put("sendPicturesList", JSON.toJSONString(pictureList));
|
|
|
|
PageData img = new PageData();
|
|
|
|
PageData img = new PageData();
|
|
|
|
pd.put("IMGFILES_ID", this.get32UUID());
|
|
|
|
pd.put("IMGFILES_ID", this.get32UUID());
|
|
|
|
pd.put("FILEPATH", Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
|
|
|
pd.put("FILEPATH", Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
|
|
|
pd.put("TYPE", "203");
|
|
|
|
pd.put("TYPE", "203");
|
|
|
|
pd.put("FOREIGN_KEY", pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
pd.put("FOREIGN_KEY", pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
|
|
|
|
PageData imgFilesData = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
imgFilesData.putAll(pd);
|
|
|
|
|
|
|
|
dockData.put("dockImgFilesData", JSON.toJSONString(imgFilesData));
|
|
|
|
imgfilesService.save(pd);
|
|
|
|
imgfilesService.save(pd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (files204 != null && files204.length > 0) {
|
|
|
|
if (files204 != null && files204.length > 0) {
|
|
|
|
|
|
|
|
ArrayList<String> pictureList = new ArrayList<>();
|
|
|
|
for (int i = 0; i < files204.length; i++) {
|
|
|
|
for (int i = 0; i < files204.length; i++) {
|
|
|
|
MultipartFile file204 = files204[i];
|
|
|
|
MultipartFile file204 = files204[i];
|
|
|
|
String suffixName = file204.getOriginalFilename().substring(file204.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
|
String suffixName = file204.getOriginalFilename().substring(file204.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
|
|
@ -1000,11 +1067,15 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
// String fileName = FileUpload.fileUp(file, filePath, this.get32UUID()); //执行上传
|
|
|
|
// String fileName = FileUpload.fileUp(file, filePath, this.get32UUID()); //执行上传
|
|
|
|
String fileName = this.get32UUID()+file204.getOriginalFilename().substring(file204.getOriginalFilename().lastIndexOf("."));
|
|
|
|
String fileName = this.get32UUID()+file204.getOriginalFilename().substring(file204.getOriginalFilename().lastIndexOf("."));
|
|
|
|
Smb.sshSftp(file204, fileName,Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
|
|
|
Smb.sshSftp(file204, fileName,Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
|
|
|
|
|
|
|
pictureList.add(Const.FILEPATHYHTP + pd.get("CORPINFO_ID").toString() + "/" + ffile + "/" + fileName + "@@" + fileName);
|
|
|
|
|
|
|
|
map.put("sendPicturesList", JSON.toJSONString(pictureList));
|
|
|
|
|
|
|
|
|
|
|
|
PageData img = new PageData();
|
|
|
|
PageData img = new PageData();
|
|
|
|
pd.put("IMGFILES_ID", this.get32UUID());
|
|
|
|
pd.put("IMGFILES_ID", this.get32UUID());
|
|
|
|
pd.put("FILEPATH", Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
|
|
|
pd.put("FILEPATH", Const.FILEPATHYHTP + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
|
|
|
pd.put("TYPE", "204");
|
|
|
|
pd.put("TYPE", "204");
|
|
|
|
pd.put("FOREIGN_KEY", pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
pd.put("FOREIGN_KEY", pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
|
|
|
|
|
|
|
|
imgfilesService.save(pd);
|
|
|
|
imgfilesService.save(pd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1012,6 +1083,11 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
PageData back = new PageData();
|
|
|
|
PageData back = new PageData();
|
|
|
|
back.put("STATE","34");
|
|
|
|
back.put("STATE","34");
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedback = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedback.putAll(back);
|
|
|
|
|
|
|
|
dockData.put("dockDataback", JSON.toJSONString(confinedback));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
leaderUser.put("HOTWORKAPPLICATIONUSER_ID", UuidUtil.get32UUID());
|
|
|
|
leaderUser.put("HOTWORKAPPLICATIONUSER_ID", UuidUtil.get32UUID());
|
|
|
@ -1024,11 +1100,21 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}else if("34".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
}else if("34".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
PageData back = new PageData();
|
|
|
|
PageData back = new PageData();
|
|
|
|
back.put("STATE","35");
|
|
|
|
back.put("STATE","35");
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
back.put("FOREIGN_KEY",pd.get("HOTWORKAPPLICATION_ID"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedback = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedback.putAll(back);
|
|
|
|
|
|
|
|
dockData.put("dockDataback", JSON.toJSONString(confinedback));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
hotWorkApplicationUserService.deleteForBack(back);
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
leaderUser.put("HOTWORKAPPLICATIONUSER_ID", UuidUtil.get32UUID());
|
|
|
|
leaderUser.put("HOTWORKAPPLICATIONUSER_ID", UuidUtil.get32UUID());
|
|
|
@ -1041,6 +1127,11 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}else if("35".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
}else if("35".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -1054,6 +1145,11 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}else if("36".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
}else if("36".equals(pd.getString("STATE"))){ // 特级动火
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
|
PageData leaderUser = new PageData();
|
|
|
@ -1067,11 +1163,22 @@ public class HotWorkApplicationController extends BaseController {
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("CREATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
leaderUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedleaderUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedleaderUser.putAll(leaderUser);
|
|
|
|
|
|
|
|
dockData.put("dockDataleaderUser", JSON.toJSONString(confinedleaderUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
hotWorkApplicationUserService.save(leaderUser);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hotUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
hotUser.put("OPERATOR",pd.getString("loginUserId"));
|
|
|
|
hotUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
hotUser.put("OPERATTIME",DateUtil.date2Str(new Date()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageData confinedhotUser = new PageData(); // pd对接数据
|
|
|
|
|
|
|
|
confinedhotUser.putAll(hotUser);
|
|
|
|
|
|
|
|
dockData.put("dockDatahotUser", JSON.toJSONString(confinedhotUser));
|
|
|
|
|
|
|
|
|
|
|
|
hotWorkApplicationUserService.edit(hotUser);
|
|
|
|
hotWorkApplicationUserService.edit(hotUser);
|
|
|
|
|
|
|
|
map.put("dockData", JSON.toJSONString(dockData));
|
|
|
|
map.put("result", errInfo);
|
|
|
|
map.put("result", errInfo);
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|