判空
This commit is contained in:
+5
-1
@@ -141,7 +141,11 @@ public class PrehomoJob implements Job {
|
|||||||
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
LAW_EN = LAW_CN;
|
LAW_EN = LAW_CN;
|
||||||
} else {
|
} else {
|
||||||
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> twoWeeksLaterUserIdList = new ArrayList<>();
|
List<String> twoWeeksLaterUserIdList = new ArrayList<>();
|
||||||
|
|||||||
+33
-4
@@ -173,6 +173,16 @@ public class TaskAffirmJob implements Job {
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
feishuMsgVo.setTitle(MessageType2Enum.REGULATION_TASK_CONFIRMATION.getCn() + "/" + MessageType2Enum.REGULATION_TASK_CONFIRMATION.getEn());
|
feishuMsgVo.setTitle(MessageType2Enum.REGULATION_TASK_CONFIRMATION.getCn() + "/" + MessageType2Enum.REGULATION_TASK_CONFIRMATION.getEn());
|
||||||
@@ -182,7 +192,7 @@ public class TaskAffirmJob implements Job {
|
|||||||
"\n发起人: 系统通知");
|
"\n发起人: 系统通知");
|
||||||
feishuMsgVo.setEnContentUpper("Hello! This task will expire in 3 days. Please check and address it in a timely manner. Thank you!");
|
feishuMsgVo.setEnContentUpper("Hello! This task will expire in 3 days. Please check and address it in a timely manner. Thank you!");
|
||||||
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
@@ -205,6 +215,16 @@ public class TaskAffirmJob implements Job {
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
feishuMsgVo.setTitle(MessageType2Enum.REGULATION_TASK_CONFIRMATION.getCn() + "/" + MessageType2Enum.REGULATION_TASK_CONFIRMATION.getEn());
|
feishuMsgVo.setTitle(MessageType2Enum.REGULATION_TASK_CONFIRMATION.getCn() + "/" + MessageType2Enum.REGULATION_TASK_CONFIRMATION.getEn());
|
||||||
@@ -214,7 +234,7 @@ public class TaskAffirmJob implements Job {
|
|||||||
"\n发起人: 系统通知");
|
"\n发起人: 系统通知");
|
||||||
feishuMsgVo.setEnContentUpper("Hello! This task will expire today. Please check and address the task ASAP. Thank you!");
|
feishuMsgVo.setEnContentUpper("Hello! This task will expire today. Please check and address the task ASAP. Thank you!");
|
||||||
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
feishuMsgVo.setColor(MsgColorEnum.GREEN.getValue()); // 颜色
|
||||||
@@ -236,7 +256,16 @@ public class TaskAffirmJob implements Job {
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectById(key);
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
String dueDate = sdf.format(projectLawsInventoryEO.getInventoryAffirmDueDate());
|
String dueDate = sdf.format(projectLawsInventoryEO.getInventoryAffirmDueDate());
|
||||||
try {
|
try {
|
||||||
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
FeishuMsg2Vo feishuMsgVo = new FeishuMsg2Vo();
|
||||||
@@ -248,7 +277,7 @@ public class TaskAffirmJob implements Job {
|
|||||||
"\n截止时间: " + dueDate);
|
"\n截止时间: " + dueDate);
|
||||||
feishuMsgVo.setEnContentUpper("Hello! This task is overdue. Please address it ASAP. Thank you!");
|
feishuMsgVo.setEnContentUpper("Hello! This task is overdue. Please address it ASAP. Thank you!");
|
||||||
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
feishuMsgVo.setEnContentLower("Project:" + PRN +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName() +
|
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName() +
|
||||||
"\nDue Date: " + dueDate);
|
"\nDue Date: " + dueDate);
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
|||||||
+5
-1
@@ -140,7 +140,11 @@ public class VerifyComplianceJob implements Job {
|
|||||||
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
LAW_EN = LAW_CN;
|
LAW_EN = LAW_CN;
|
||||||
} else {
|
} else {
|
||||||
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> twoWeeksLaterUserIdList = new ArrayList<>();
|
List<String> twoWeeksLaterUserIdList = new ArrayList<>();
|
||||||
|
|||||||
+5
-1
@@ -140,7 +140,11 @@ public class designComplianceJob implements Job {
|
|||||||
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
LAW_EN = LAW_CN;
|
LAW_EN = LAW_CN;
|
||||||
} else {
|
} else {
|
||||||
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+33
-5
@@ -1638,6 +1638,16 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
|
|
||||||
//法规中英文
|
//法规中英文
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isNotEmpty(bussDocumentLibraryEO)) {
|
||||||
|
if (ObjectUtils.isNotEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
if(isProjectRole == Integer.parseInt(ProjectRoleEnum.REGULATI_AND_HOMOLOGATION_ENGINEER.getValue())){
|
if(isProjectRole == Integer.parseInt(ProjectRoleEnum.REGULATI_AND_HOMOLOGATION_ENGINEER.getValue())){
|
||||||
projectLawsInventoryEO.setRegulationOwnerSubmitStatus(operatorResult);
|
projectLawsInventoryEO.setRegulationOwnerSubmitStatus(operatorResult);
|
||||||
@@ -1730,7 +1740,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
"\n截止时间: " + dueDate);
|
"\n截止时间: " + dueDate);
|
||||||
feishuMsgVo.setEnContentUpper("Hello! This task is rejected by "+ currentUser.getUsername() +". Please check and address it in a timely manner");
|
feishuMsgVo.setEnContentUpper("Hello! This task is rejected by "+ currentUser.getUsername() +". Please check and address it in a timely manner");
|
||||||
feishuMsgVo.setEnContentLower("Project: " + projectName +
|
feishuMsgVo.setEnContentLower("Project: " + projectName +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + currentUser.getUsername() +
|
"\nInitiator: " + currentUser.getUsername() +
|
||||||
"\nDue Date: "+ dueDate);
|
"\nDue Date: "+ dueDate);
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
@@ -1795,7 +1805,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
"\n截止时间: " + dueDate);
|
"\n截止时间: " + dueDate);
|
||||||
feishuMsgVo.setEnContentUpper("Hello! This task is rejected by "+ currentUser.getUsername() +". Please check and address it in a timely manner");
|
feishuMsgVo.setEnContentUpper("Hello! This task is rejected by "+ currentUser.getUsername() +". Please check and address it in a timely manner");
|
||||||
feishuMsgVo.setEnContentLower("Project: " + projectName +
|
feishuMsgVo.setEnContentLower("Project: " + projectName +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + currentUser.getUsername() +
|
"\nInitiator: " + currentUser.getUsername() +
|
||||||
"\nDue Date: " + dueDate);
|
"\nDue Date: " + dueDate);
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
@@ -2479,8 +2489,16 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
String PRN = LibraryBase.getProjectName();//项目名称
|
String PRN = LibraryBase.getProjectName();//项目名称
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
if (StringUtils.equals(msgType, MsgTypeEnum.TASK_AFFIRM_START_MSG.getValue())) {
|
if (StringUtils.equals(msgType, MsgTypeEnum.TASK_AFFIRM_START_MSG.getValue())) {
|
||||||
@@ -8829,6 +8847,16 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
String dueDate = new SimpleDateFormat("yyyy-MM-dd").format(projectLawsInventoryEO.getTaskAffirmDueDate());
|
String dueDate = new SimpleDateFormat("yyyy-MM-dd").format(projectLawsInventoryEO.getTaskAffirmDueDate());
|
||||||
//法规中英文
|
//法规中英文
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List<String> thirdIdList = new ArrayList<>();
|
List<String> thirdIdList = new ArrayList<>();
|
||||||
List<SysUser> sysUsers = sysUserService.listByIds(taskAffirmUserIdList);
|
List<SysUser> sysUsers = sysUserService.listByIds(taskAffirmUserIdList);
|
||||||
@@ -8845,7 +8873,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
"\n截止时间: " + dueDate);
|
"\n截止时间: " + dueDate);
|
||||||
feishuMsgVo.setEnContentUpper("Hello! Please check and address the task ASAP. Thank you!");
|
feishuMsgVo.setEnContentUpper("Hello! Please check and address the task ASAP. Thank you!");
|
||||||
feishuMsgVo.setEnContentLower("Project: " + PRN +
|
feishuMsgVo.setEnContentLower("Project: " + PRN +
|
||||||
"\nRegulation No: " + projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn() +
|
"\nRegulation No: " + LAW_EN +
|
||||||
"\nInitiator: " + currentUser.getUsername() +
|
"\nInitiator: " + currentUser.getUsername() +
|
||||||
"\nDue Date: "+ dueDate);
|
"\nDue Date: "+ dueDate);
|
||||||
feishuMsgVo.setUrl(hrefFeishu);
|
feishuMsgVo.setUrl(hrefFeishu);
|
||||||
|
|||||||
+10
-6
@@ -33,6 +33,7 @@ import com.jero.modules.todoCenter.entity.ProcessInfoDetailEO;
|
|||||||
import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
@@ -371,13 +372,16 @@ public class ProjectTaskInventoryDetailEOServiceImpl extends ServiceImpl<Project
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String titleEn = "";
|
String LAW_EN = "";
|
||||||
try {
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
titleEn = bussDocumentLibraryEO.getTitleEn();
|
LAW_EN = LAW_CN;
|
||||||
}catch (Exception ex){
|
} else {
|
||||||
ex.printStackTrace();
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + titleEn;//法规
|
|
||||||
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
//FeishuMsgVo feishuMsgVo = new FeishuMsgVo();
|
//FeishuMsgVo feishuMsgVo = new FeishuMsgVo();
|
||||||
|
|||||||
+21
-4
@@ -35,6 +35,7 @@ import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
|||||||
import com.jero.modules.wkflow.enums.DesignComplianceNodeEnum;
|
import com.jero.modules.wkflow.enums.DesignComplianceNodeEnum;
|
||||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
@@ -413,8 +414,16 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
|||||||
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectOne(projectLawsInventoryEOQueryWrapper);
|
ProjectLawsInventoryEO projectLawsInventoryEO = projectLawsInventoryEOMapper.selectOne(projectLawsInventoryEOQueryWrapper);
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
@@ -1029,8 +1038,16 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
|||||||
|
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
if (StringUtils.equals(msgType, MsgTypeEnum.DESIGN_ISSUE_DRE_MSG.getValue())) {
|
if (StringUtils.equals(msgType, MsgTypeEnum.DESIGN_ISSUE_DRE_MSG.getValue())) {
|
||||||
//taskKey = DesignComplianceNodeEnum.DRE_DISPOSE.getKey();
|
//taskKey = DesignComplianceNodeEnum.DRE_DISPOSE.getKey();
|
||||||
|
|
||||||
|
|||||||
+21
-3
@@ -24,6 +24,7 @@ import com.jero.modules.wkflow.enums.DesignComplianceNodeEnum;
|
|||||||
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -187,7 +188,16 @@ public class ProjectTaskInventoryFeedbackEOServiceImpl extends ServiceImpl<Proje
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String flowType = projectTaskInventoryFeedbackEO.getFlowType();
|
String flowType = projectTaskInventoryFeedbackEO.getFlowType();
|
||||||
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||||
@@ -502,8 +512,16 @@ public class ProjectTaskInventoryFeedbackEOServiceImpl extends ServiceImpl<Proje
|
|||||||
//法规中英文
|
//法规中英文
|
||||||
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
String LAW_CN = projectLawsInventoryEO.getSerialNumber() + " " + projectLawsInventoryEO.getTitle();//法规
|
||||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(projectLawsInventoryEO.getStandId());
|
||||||
String LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
String LAW_EN = "";
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO)) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
if (ObjectUtils.isEmpty(bussDocumentLibraryEO.getTitleEn())) {
|
||||||
|
LAW_EN = LAW_CN;
|
||||||
|
} else {
|
||||||
|
LAW_EN = projectLawsInventoryEO.getSerialNumber() + " " + bussDocumentLibraryEO.getTitleEn();//法规
|
||||||
|
}
|
||||||
|
}
|
||||||
String flowType = projectTaskInventoryFeedbackEO.getFlowType();
|
String flowType = projectTaskInventoryFeedbackEO.getFlowType();
|
||||||
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
if(StringUtils.equals(flowType,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||||
//msgContentEN = currentUser.getUsername() + " has submitted the engineering deliverable information of "
|
//msgContentEN = currentUser.getUsername() + " has submitted the engineering deliverable information of "
|
||||||
|
|||||||
Reference in New Issue
Block a user