diff --git a/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql b/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql index 7ced5c156..47d3c62c6 100644 --- a/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql +++ b/jero-boot/db/蔚来标准sql/first_bug_fix_record.sql @@ -17,4 +17,22 @@ MODIFY COLUMN `description` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4 UPDATE `laws_weilai`.`onl_cgform_field` SET `id`='e4fe526794af4477321227f69b764b0d', `cgform_head_id`='48308196e7b04761b533dc31bc899707', `db_field_name`='description', `db_field_en_name`='Description', `db_field_txt`='描述', `order_num`='9', `db_field_name_old`=NULL, `db_is_key`='0', `db_is_null`='1', `db_type`='string', `db_length`='1000', `db_point_length`='0', `db_default_val`='', `dict_field`='', `dict_table`='', `dict_text`='', `field_show_type`='8', `field_href`='', `field_length`='120', `field_valid_type`=NULL, `field_must_input`='0', `field_extend_json`='', `field_default_value`='', `is_query`='0', `is_show_form`='1', `is_show_list`='0', `is_read_only`='0', `query_mode`='single', `main_table`='', `main_field`='', `update_by`='admin', `update_time`='2022-06-06 16:05:28', `create_time`='2022-01-21 14:41:40', `create_by`='admin', `converter`='', `query_def_val`='', `query_dict_text`='', `query_dict_field`='', `query_dict_table`='', `query_show_type`='text', `query_config_flag`='0', `query_valid_type`=NULL, `query_must_input`=NULL, `sort_flag`='0', `show_area`='1499657602378825729', `is_show_laws_list`='0', `is_show_search`='0', `is_delete`='0', `is_model`='1', `dict_id`=NULL WHERE (`id`='e4fe526794af4477321227f69b764b0d'); --- 2022年7月4日部署到正式环境 \ No newline at end of file +-- 2022年7月4日部署到正式环境 + + + +-- 2022年7月8日增加字段 未同步正式环境 +ALTER TABLE `project_laws_inventory` + ADD COLUMN `stand_id` varchar(100) NULL COMMENT '文档库id/标准id' AFTER `file_id`; +ALTER TABLE `project_task_inventory` + ADD COLUMN `stand_id` varchar(100) NULL COMMENT '文档库id/标准id' AFTER `process_end_time`; + +-- 2022年7月8日增加字段 +ALTER TABLE `dummy_inventory_info` +ADD COLUMN `buss_document_library_id` varchar(32) NULL COMMENT '文档库id' AFTER `design_remark`; + +-- 2022年7月8日法规清单交付物类型字段长度 +ALTER TABLE `project_laws_inventory` +MODIFY COLUMN `design_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-交付物类型' AFTER `remark`, +MODIFY COLUMN `prehomo_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-交付物类型' AFTER `design_due_date`, +MODIFY COLUMN `verify_deliverable_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-交付物类型' AFTER `prehomo_due_date`; diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java index 4f5a85094..dd1eb2bc7 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java @@ -10,7 +10,18 @@ public enum MessageTypeEnum { WARN("Early Warning","2"), PUSH("Share / Forward","3"), HOMO_TASK("Homo Parameter Task","4"), - TASK("Regulation Compliance Task", "5"); + TASK("Regulation Compliance Task", "5"), + REGULATION_LIST_CONFIRMATION_TASK("Regulation List Confirmation Task", "6"), // 清单确认任务 + REGULATION_LIST_CONFIRMATION_NOTIFICATION("Regulation List Confirmation Notification", "7"), // 清单确认通知 + REGULATION_TASK_CONFIRMATION_TASK("Regulation Task Confirmation", "8"), // 任务确认任务 + REGULATION_TASK_CONFIRMATION_NOTIFICATION("Regulation Task Confirmation Notification", "15"), // 任务确认通知 + DESIGN_COMPLIANCE_TASK("Design Compliance Task", "9"), // 设计符合性任务 + PRE_HOMO_TASK("Pre-Homo Task", "10"), // Pre-Homo任务 + VALIDATION_TASK("Validation Task", "11"), // 验证符合性任务 + DESIGN_COMPLIANCE_NOTIFICATION("Design Compliance Notification", "12"), // 设计符合性通知 + PRE_HOMO_NOTIFICATION("Pre-Homo Notification", "13"), // Pre-Homo通知 + VALIDATION_COMPLIANCE_NOTIFICATION("Validation Compliance Notification", "14"), // 验证符合性通知 + ; String name; String value; diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java index 8ca4f6635..eae5a7286 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/config/init/TomcatFactoryConfig.java @@ -1,7 +1,12 @@ package com.jero.config.init; import org.apache.catalina.Context; +import org.apache.catalina.connector.Connector; +import org.apache.coyote.http11.Http11NioProtocol; +import org.apache.tomcat.util.descriptor.web.SecurityCollection; +import org.apache.tomcat.util.descriptor.web.SecurityConstraint; import org.apache.tomcat.util.scan.StandardJarScanner; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -13,6 +18,7 @@ import org.springframework.context.annotation.Configuration; */ @Configuration public class TomcatFactoryConfig { + /** * tomcat-embed-jasper引用后提示jar找不到的问题 */ @@ -30,4 +36,41 @@ public class TomcatFactoryConfig { }); return factory; } + + //TODO 配置https证书 部署服务器的时候解开。 + /* @Value("${server.port-https}") + private String serverPortHttp; + @Value("${server.port}") + private String serverPortHttps; + @Bean + public TomcatServletWebServerFactory tomcatFactory() { + TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory() { + @Override + protected void postProcessContext(Context context) { + ((StandardJarScanner) context.getJarScanner()).setScanManifest(false); + + SecurityConstraint securityConstraint = new SecurityConstraint(); + securityConstraint.setUserConstraint("CONFIDENTIAL"); + SecurityCollection securityCollection = new SecurityCollection(); + securityCollection.addPattern("/*"); + securityConstraint.addCollection(securityCollection); + context.addConstraint(securityConstraint); + } + }; + factory.addConnectorCustomizers(connector -> { + connector.setProperty("relaxedPathChars", "[]{}"); + connector.setProperty("relaxedQueryChars", "[]{}"); + }); + factory.addAdditionalTomcatConnectors(redirectConnector()); + return factory; + } + + private Connector redirectConnector() { + Connector connector = new Connector(Http11NioProtocol.class.getName()); + connector.setScheme("http"); + connector.setPort(Integer.parseInt(serverPortHttp)); + connector.setSecure(false); + connector.setRedirectPort(Integer.parseInt(serverPortHttps)); + return connector; + }*/ } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 13cfba0fb..2ee5ccc30 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -67,6 +67,7 @@ import com.jero.modules.system.service.ISysDepartService; import com.jero.modules.system.service.ISysUserService; import com.jero.modules.system.service.impl.SysCategoryServiceImpl; import com.jero.modules.system.service.impl.SysDictItemServiceImpl; +import com.jero.modules.system.util.PDFUtils; import com.jero.modules.system.util.StringUtils; import com.jero.modules.tag.entity.OnlCgformArea; import com.jero.modules.tag.service.impl.OnlCgformAreaServiceImpl; @@ -3882,6 +3883,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl map, HttpServletResponse response, HttpServletRequest request) { + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); String cut = (String) map.get("cut"); //String flag = "file"为带文件导出标识 String flag = (String) map.get("flag"); @@ -3997,6 +3999,12 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java index 0b3940a8d..0fb3ca0d2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java @@ -156,6 +156,7 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl projectLawsInventoryIdList; + + + //设计符合性确认-发起人id + @TableField(exist = false) + private String designInitiatorId; + //验证符合性确认-发起人id + @TableField(exist = false) + private String verifyInitiatorId; + //prehomo确认-发起人id + @TableField(exist = false) + private String prehomoInitiatorId; + + //设计符合性 - 责任人id + @TableField(exist = false) + private String designDutyId; + //验证符合性确认-责任人id + @TableField(exist = false) + private String verifyDutyId; + //prehomo确认-责任人id + @TableField(exist = false) + private String prehomoDutyId; + } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/InventoryAffirmJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/InventoryAffirmJob.java index df6a21678..f22cb1823 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/InventoryAffirmJob.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/InventoryAffirmJob.java @@ -161,14 +161,14 @@ public class InventoryAffirmJob implements Job { + "&projectName=" + projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + "&targetMarket=" + projectLibraryBase.getTargetMarket() - + "'>" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLibraryBase.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLibraryBase.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } if(CollectionUtils.isNotEmpty(currentDaysUserIdList)){ @@ -198,13 +198,13 @@ public class InventoryAffirmJob implements Job { + "&projectName=" + projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + "&targetMarket=" + projectLibraryBase.getTargetMarket() - + "'>" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLibraryBase.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLibraryBase.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/PrehomoJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/PrehomoJob.java index 666963c52..7e3cc4880 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/PrehomoJob.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/PrehomoJob.java @@ -161,14 +161,14 @@ public class PrehomoJob implements Job { String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.PRE_HOMO_TASK); } if(CollectionUtils.isNotEmpty(currentDaysUserIdList)){ @@ -196,14 +196,14 @@ public class PrehomoJob implements Job { String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.PRE_HOMO_TASK); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/VerifyComplianceJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/VerifyComplianceJob.java index a36d52eef..121e399cb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/VerifyComplianceJob.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/VerifyComplianceJob.java @@ -158,14 +158,14 @@ public class VerifyComplianceJob implements Job { String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.VALIDATION_TASK); } if(CollectionUtils.isNotEmpty(currentDaysUserIdList)){ @@ -193,14 +193,14 @@ public class VerifyComplianceJob implements Job { String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.VALIDATION_TASK); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/designComplianceJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/designComplianceJob.java index 204c55a73..4938784ae 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/designComplianceJob.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/job/designComplianceJob.java @@ -154,14 +154,14 @@ public class designComplianceJob implements Job { //系统内部跳转链接 String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,threeDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.DESIGN_COMPLIANCE_TASK); } if(CollectionUtils.isNotEmpty(currentDaysUserIdList)){ @@ -188,14 +188,14 @@ public class designComplianceJob implements Job { String href = "" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + projectLawsInventoryEOService.sendMessage(msgContentEN,currentDaysUserIdList,projectLawsInventoryEO.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.DESIGN_COMPLIANCE_TASK); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/ProjectTaskInventoryEOMapper.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/ProjectTaskInventoryEOMapper.java index 0e252ee67..142ce1c4a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/ProjectTaskInventoryEOMapper.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/ProjectTaskInventoryEOMapper.java @@ -76,4 +76,11 @@ public interface ProjectTaskInventoryEOMapper extends BaseMapper> getCertificationProgressStatisticsGroupByTerritory(@Param("projectLawsInventoryIdList") List projectLawsInventoryIdList, @Param("certificationProgress") String certificationProgress); + + /** + * 查询任务清单列表 + * @param projectTaskInventoryEO + * @return + */ + List selectProjectTaskInventoryList(@Param("projectTaskInventoryEO") ProjectTaskInventoryEO projectTaskInventoryEO); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectTaskInventoryEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectTaskInventoryEOMapper.xml index 9a59d452b..0cb45d350 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectTaskInventoryEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectTaskInventoryEOMapper.xml @@ -19,6 +19,13 @@ + + pti.id, pti.create_by,pti.create_time,pti.update_by,pti.update_time,pti.sys_org_code,pti.project_laws_inventory_id,pti.design_status,pti.design_flow_task_status,pti.design_p_id,pti.prehomo_status, + pti.prehomo_flow_task_status,pti.prehomo_p_id,pti.verify_status,pti.verify_flow_task_status,pti.verify_p_id,pti.certification_progress,pti.certification_progress_remark,pti.project_status_assess, + pti.design_send_msg_flag,pti.design_send_msg_current_flag,pti.prehomo_send_msg_flag,pti.prehomo_send_msg_current_flag,pti.verify_send_msg_flag,pti.verify_send_msg_current_flag, + pti.design_person_charge_feedback,pti.prehomo_person_charge_feedback,pti.verify_person_charge_feedback,pti.process_end_time + + + + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IConditionAssessmentEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IConditionAssessmentEOService.java index 11647eda4..b4ed25732 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IConditionAssessmentEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IConditionAssessmentEOService.java @@ -5,6 +5,8 @@ import com.jero.common.system.vo.LoginUser; import com.jero.modules.project.entity.ConditionAssessmentEO; import com.jero.modules.project.entity. ConditionAssessmentEO; import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.modules.project.entity.ProjectTaskInventoryEO; + import java.util.List; import java.util.Map; @@ -75,7 +77,7 @@ public interface IConditionAssessmentEOService extends IService queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(ConditionAssessmentEO::getProjectLawsInventoryId,projectLawsInventoryId); + if(StringUtils.isNotEmpty(projectTaskInventory.getProjectStatusAssess())){ + queryWrapper.lambda().eq(ConditionAssessmentEO::getConditionAssessment,projectTaskInventory.getProjectStatusAssess()); + } if(StringUtils.equals(roleCode,ProjectRoleEnum.REGULATI_ENGINEER.getValue()) || StringUtils.equals(roleCode,ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue())){ queryWrapper.lambda().eq(ConditionAssessmentEO::getCreateBy,currentUser.getUsername()); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 0736144aa..42a962cfc 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -245,6 +245,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl list = new ArrayList<>(); for (BussDocumentLibraryEO bussDocumentLibraryEO : bussDocumentLibraryEOList) { + String standId = bussDocumentLibraryEO.getId(); + ProjectLawsInventoryEO projectLawsInventoryTemp = new ProjectLawsInventoryEO(); BeanUtils.copyProperties(bussDocumentLibraryEO, projectLawsInventoryTemp); String projectLawsInventoryId = UUID.randomUUID().toString().replace("-", ""); @@ -343,12 +348,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } result = "发起清单确认"; @@ -1491,7 +1498,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); @@ -1500,7 +1507,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl userIdList = new ArrayList<>(); userIdList.add(projectLibraryBase.getStudioEngineer()); - sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } if(isProjectRole == Integer.parseInt(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue()) || isProjectRole == Integer.parseInt(ProjectRoleEnum.REGULATI_AND_HOMOLOGATION_ENGINEER.getValue())){ @@ -1529,7 +1536,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); @@ -1538,7 +1545,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl userIdList = new ArrayList<>(); userIdList.add(projectLibraryBase.getStudioEngineer()); - sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } } @@ -1577,7 +1584,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); @@ -1586,7 +1593,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl userIdList = new ArrayList<>(); userIdList.add(projectLibraryBase.getStudioEngineer()); - sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_NOTIFICATION); } } } @@ -2001,6 +2008,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + String href = "" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_TASK_CONFIRMATION_TASK); } } @@ -3300,16 +3308,16 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl projectTaskInventoryEOList = new ArrayList<>(); - idList.forEach(id -> { + List projectLawsInventoryEOList = this.baseMapper.selectList(updateLawsInventoryWrapper); + projectLawsInventoryEOList.forEach(projectLawsInventory -> { + ProjectTaskInventoryEO projectTaskInventoryEO = new ProjectTaskInventoryEO(); + String projectTaskInventoryId = UUID.randomUUID().toString().replace("-", ""); + projectTaskInventoryEO.setId(projectTaskInventoryId); + projectTaskInventoryEO.setProjectLawsInventoryId(projectLawsInventory.getId()); + projectTaskInventoryEO.setStandId(projectLawsInventory.getStandId()); + projectTaskInventoryEOList.add(projectTaskInventoryEO); + }); + /*idList.forEach(id -> { ProjectTaskInventoryEO projectTaskInventoryEO = new ProjectTaskInventoryEO(); String projectTaskInventoryId = UUID.randomUUID().toString().replace("-", ""); projectTaskInventoryEO.setId(projectTaskInventoryId); projectTaskInventoryEO.setProjectLawsInventoryId(id); projectTaskInventoryEOList.add(projectTaskInventoryEO); - }); + });*/ //项目任务清单数据初始化。 this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(idList); this.projectTaskInventoryEOService.saveBatch(projectTaskInventoryEOList); @@ -4039,10 +4056,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl"; - - List listEn = Arrays.asList(infoDiffEn.get("subtitle").split(",")); - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; - } - } + if(StringUtils.isNotBlank(infoDiffEn.get("subtitle"))){ + List listEn = Arrays.asList(infoDiffEn.get("subtitle").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } + } + } //WVTA ID if (StringUtils.isNotBlank(infoDiff.get("wvtaId"))) { List list = Arrays.asList(infoDiff.get("wvtaId").split(",")); @@ -5007,13 +5026,16 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl"; - + } + if(StringUtils.isNotBlank(infoDiffEn.get("wvtaId"))){ List listEn = Arrays.asList(infoDiffEn.get("wvtaId").split(",")); - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } - } + } //实施类别 if (StringUtils.isNotBlank(infoDiff.get("implementType"))) { @@ -5022,394 +5044,473 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl"; - + } + if(StringUtils.isNotBlank(infoDiffEn.get("implementType"))){ List listEn = Arrays.asList(infoDiffEn.get("implementType").split(",")); - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } - } + } //在产车实施日期 if (StringUtils.isNotBlank(infoDiff.get("implementTimeString"))) { List list = Arrays.asList(infoDiff.get("implementTimeString").split(",")); - String infoDiffOld = list.get(0); - String infoDiffNew = list.get(1); - - List listEn = Arrays.asList(infoDiffEn.get("implementTimeString").split(",")); - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; - enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(list.size() > 1){ + String infoDiffOld = list.get(0); + String infoDiffNew = list.get(1); + contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; + } + if(StringUtils.isNotBlank(infoDiffEn.get("implementTimeString"))){ + List listEn = Arrays.asList(infoDiffEn.get("implementTimeString").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } + } } //新车型实施日期 if (StringUtils.isNotBlank(infoDiff.get("xin1Che1Xing2Shi2Shi1Ri4Qi1String"))) { List list = Arrays.asList(infoDiff.get("xin1Che1Xing2Shi2Shi1Ri4Qi1String").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("xin1Che1Xing2Shi2Shi1Ri4Qi1String").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.XIN1_CHE1_XING2_SHI2_SHI1_RI4_QI1.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.XIN1_CHE1_XING2_SHI2_SHI1_RI4_QI1.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; - + if(StringUtils.isNotBlank(infoDiffEn.get("xin1Che1Xing2Shi2Shi1Ri4Qi1String"))){ + List listEn = Arrays.asList(infoDiffEn.get("xin1Che1Xing2Shi2Shi1Ri4Qi1String").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.XIN1_CHE1_XING2_SHI2_SHI1_RI4_QI1.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //认证类型 if (StringUtils.isNotBlank(infoDiff.get("attestationType"))) { List list = Arrays.asList(infoDiff.get("attestationType").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("attestationType").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("attestationType"))){ + List listEn = Arrays.asList(infoDiffEn.get("attestationType").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //认证级别 if (StringUtils.isNotBlank(infoDiff.get("attestationRank"))) { List list = Arrays.asList(infoDiff.get("attestationRank").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("attestationRank").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_RANK.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_RANK.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("attestationRank"))){ + List listEn = Arrays.asList(infoDiffEn.get("attestationRank").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.ATTESTATION_RANK.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //责任领域 if (StringUtils.isNotBlank(infoDiff.get("dutyTerritory"))) { List list = Arrays.asList(infoDiff.get("dutyTerritory").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("dutyTerritory").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DUTY_TERRITORY.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DUTY_TERRITORY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("dutyTerritory"))){ + List listEn = Arrays.asList(infoDiffEn.get("dutyTerritory").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DUTY_TERRITORY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //regulationOwnerName;//法规工程师名称 if (StringUtils.isNotBlank(infoDiff.get("regulationOwnerName"))) { List list = Arrays.asList(infoDiff.get("regulationOwnerName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("regulationOwnerName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.REGULATION_OWNER_NAME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.REGULATION_OWNER_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("regulationOwnerName"))){ + List listEn = Arrays.asList(infoDiffEn.get("regulationOwnerName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.REGULATION_OWNER_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //homologationEngineerName;//认证工程师名称 if (StringUtils.isNotBlank(infoDiff.get("homologationEngineerName"))) { List list = Arrays.asList(infoDiff.get("homologationEngineerName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("homologationEngineerName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.HOMOLOGATION_ENGINEER_NAME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.HOMOLOGATION_ENGINEER_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("homologationEngineerName"))){ + List listEn = Arrays.asList(infoDiffEn.get("homologationEngineerName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.HOMOLOGATION_ENGINEER_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //engineeringInterfacePersonName;//工程接口人名称 if (StringUtils.isNotBlank(infoDiff.get("engineeringInterfacePersonName"))) { List list = Arrays.asList(infoDiff.get("engineeringInterfacePersonName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("engineeringInterfacePersonName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.ENGINEERING_INTERFACE_PERSON_NAME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.ENGINEERING_INTERFACE_PERSON_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("engineeringInterfacePersonName"))){ + List listEn = Arrays.asList(infoDiffEn.get("engineeringInterfacePersonName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.ENGINEERING_INTERFACE_PERSON_NAME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //适用地区region 多选 if (StringUtils.isNotBlank(infoDiff.get("region"))) { List list = Arrays.asList(infoDiff.get("region").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("region").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.REGION.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.REGION.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("region"))){ + List listEn = Arrays.asList(infoDiffEn.get("region").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.REGION.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //备注 if (StringUtils.isNotBlank(infoDiff.get("remark"))) { List list = Arrays.asList(infoDiff.get("remark").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("remark").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.REMARK.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.REMARK.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("remark"))){ + List listEn = Arrays.asList(infoDiffEn.get("remark").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.REMARK.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //设计符合性确认-交付物类型 if (StringUtils.isNotBlank(infoDiff.get("designDeliverableTypeName"))) { List list = Arrays.asList(infoDiff.get("designDeliverableTypeName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("designDeliverableTypeName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("designDeliverableTypeName"))){ + List listEn = Arrays.asList(infoDiffEn.get("designDeliverableTypeName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //设计符合性确认-交付物模板 if (StringUtils.isNotBlank(infoDiff.get("designDeliverableTemplateName"))) { List list = Arrays.asList(infoDiff.get("designDeliverableTemplateName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("designDeliverableTemplateName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TEMPLATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("designDeliverableTemplateName"))){ + List listEn = Arrays.asList(infoDiffEn.get("designDeliverableTemplateName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //设计符合性确认-发起人 if (StringUtils.isNotBlank(infoDiff.get("designInitiatorName"))) { List list = Arrays.asList(infoDiff.get("designInitiatorName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("designInitiatorName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_INITIATOR.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("designInitiatorName"))){ + List listEn = Arrays.asList(infoDiffEn.get("designInitiatorName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //设计符合性确认-责任人 if (StringUtils.isNotBlank(infoDiff.get("designDutyName"))) { List list = Arrays.asList(infoDiff.get("designDutyName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("designDutyName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUTY.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("designDutyName"))){ + List listEn = Arrays.asList(infoDiffEn.get("designDutyName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //设计符合性确认-截止时间designDueDateString; if (StringUtils.isNotBlank(infoDiff.get("designDueDateString"))) { List list = Arrays.asList(infoDiff.get("designDueDateString").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("designDueDateString").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("designDueDateString"))){ + List listEn = Arrays.asList(infoDiffEn.get("designDueDateString").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //prehomo确认-交付物类型 if (StringUtils.isNotBlank(infoDiff.get("prehomoDeliverableTypeName"))) { List list = Arrays.asList(infoDiff.get("prehomoDeliverableTypeName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("prehomoDeliverableTypeName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("prehomoDeliverableTypeName"))){ + List listEn = Arrays.asList(infoDiffEn.get("prehomoDeliverableTypeName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //prehomo确认-交付物模板 if (StringUtils.isNotBlank(infoDiff.get("prehomoDeliverableTemplateName"))) { List list = Arrays.asList(infoDiff.get("prehomoDeliverableTemplateName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("prehomoDeliverableTemplateName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TEMPLATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("prehomoDeliverableTemplateName"))){ + List listEn = Arrays.asList(infoDiffEn.get("prehomoDeliverableTemplateName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //prehomo确认-发起人 if (StringUtils.isNotBlank(infoDiff.get("prehomoInitiatorName"))) { List list = Arrays.asList(infoDiff.get("prehomoInitiatorName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("prehomoInitiatorName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_INITIATOR.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("prehomoInitiatorName"))){ + List listEn = Arrays.asList(infoDiffEn.get("prehomoInitiatorName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //prehomo确认-责任人 if (StringUtils.isNotBlank(infoDiff.get("prehomoDutyName"))) { List list = Arrays.asList(infoDiff.get("prehomoDutyName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("prehomoDutyName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DUTY.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("prehomoDutyName"))){ + List listEn = Arrays.asList(infoDiffEn.get("prehomoDutyName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.PREHOMO_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //prehomo确认-截止时间prehomoDueDateString; if (StringUtils.isNotBlank(infoDiff.get("prehomoDueDateString"))) { List list = Arrays.asList(infoDiff.get("prehomoDueDateString").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("prehomoDueDateString").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("prehomoDueDateString"))){ + List listEn = Arrays.asList(infoDiffEn.get("prehomoDueDateString").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //验证符合性确认-交付物类型 if (StringUtils.isNotBlank(infoDiff.get("verifyDeliverableTypeName"))) { List list = Arrays.asList(infoDiff.get("verifyDeliverableTypeName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("verifyDeliverableTypeName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("verifyDeliverableTypeName"))){ + List listEn = Arrays.asList(infoDiffEn.get("verifyDeliverableTypeName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //验证符合性确认-交付物模板 if (StringUtils.isNotBlank(infoDiff.get("verifyDeliverableTemplateName"))) { List list = Arrays.asList(infoDiff.get("verifyDeliverableTemplateName").split("\\|")); - List listEn = Arrays.asList(infoDiffEn.get("verifyDeliverableTemplateName").split("\\|")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TEMPLATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("verifyDeliverableTemplateName"))){ + List listEn = Arrays.asList(infoDiffEn.get("verifyDeliverableTemplateName").split("\\|")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DELIVERABLE_TEMPLATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //验证符合性确认-发起人 if (StringUtils.isNotBlank(infoDiff.get("verifyInitiatorName"))) { List list = Arrays.asList(infoDiff.get("verifyInitiatorName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("verifyInitiatorName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.VERIFY_INITIATOR.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("verifyInitiatorName"))){ + List listEn = Arrays.asList(infoDiffEn.get("verifyInitiatorName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_INITIATOR.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //验证符合性确认-责任人 if (StringUtils.isNotBlank(infoDiff.get("verifyDutyName"))) { List list = Arrays.asList(infoDiff.get("verifyDutyName").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("verifyDutyName").split(",")); + if(list.size() > 1){ String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DUTY.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("verifyDutyName"))){ + List listEn = Arrays.asList(infoDiffEn.get("verifyDutyName").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.VERIFY_DUTY.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } //验证符合性确认-截止时间verifyDueDateString if (StringUtils.isNotBlank(infoDiff.get("verifyDueDateString"))) { List list = Arrays.asList(infoDiff.get("verifyDueDateString").split(",")); - List listEn = Arrays.asList(infoDiffEn.get("verifyDueDateString").split(",")); + if (list.size() > 1) { String infoDiffOld = list.get(0); String infoDiffNew = list.get(1); contentLog += "'" + ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "
"; } - if(listEn.size() > 1){ - String infoDiffOldEn = listEn.get(0); - String infoDiffNewEn = listEn.get(1); - enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + if(StringUtils.isNotBlank(infoDiffEn.get("verifyDueDateString"))){ + List listEn = Arrays.asList(infoDiffEn.get("verifyDueDateString").split(",")); + if(listEn.size() > 1){ + String infoDiffOldEn = listEn.get(0); + String infoDiffNewEn = listEn.get(1); + enContentLog += "'"+ProjectInventoryFieldEnum.DESIGN_DUE_DATE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "
"; + } } } @@ -6384,14 +6485,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - sendMessage(msgContentEN,inventoryAffirmUserIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + sendMessage(msgContentEN,inventoryAffirmUserIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.REGULATION_LIST_CONFIRMATION_TASK); } } @@ -6437,7 +6538,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + String href = "" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); @@ -6445,7 +6546,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl data.equals(e.getId())) .map(sysUser -> sysUser.getUsername()).collect(Collectors.joining(",")); } - certificationName.append(certificationEngineerName).append(" "); + certificationName.append(certificationEngineerName).append(","); + } + if(StringUtils.isNotBlank(certificationName)){ + String substring = certificationName.substring(0, certificationName.length() - 1); + projectLibraryBase.setCertificationEngineerName(substring); } - projectLibraryBase.setCertificationEngineerName(certificationName.toString()); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryDetailEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryDetailEOServiceImpl.java index 1734c2ea5..1f55e7588 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryDetailEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryDetailEOServiceImpl.java @@ -304,6 +304,8 @@ public class ProjectTaskInventoryDetailEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - SendMessageUtils.sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + SendMessageUtils.sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, messageTypeEnum); } } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryEOServiceImpl.java index ac0ea57c2..87c747dfb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryEOServiceImpl.java @@ -181,6 +181,12 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl projectLawsInventoryIdList = projectLawsInventoryEOList.stream().distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList()); QueryWrapper taskInventoryQueryWrapper = new QueryWrapper<>(); taskInventoryQueryWrapper.lambda().in(ProjectTaskInventoryEO::getProjectLawsInventoryId,projectLawsInventoryIdList); + + if(StringUtils.isNotEmpty(projectTaskInventoryEO.getCertificationProgress())){ + taskInventoryQueryWrapper.lambda().in(ProjectTaskInventoryEO::getCertificationProgress,projectTaskInventoryEO.getCertificationProgress()); + } + /*projectTaskInventoryEO.setProjectLawsInventoryIdList(projectLawsInventoryIdList); + List projectTaskInventoryEOList = this.baseMapper.selectProjectTaskInventoryList(projectTaskInventoryEO);*/ List projectTaskInventoryEOList = this.baseMapper.selectList(taskInventoryQueryWrapper); //验证当前用户在该项目中是什么角色 @@ -203,11 +209,18 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryId,sendMessageMap, feishuMsgVo, messageTypeEnum); } return new Result<>().success("提醒办理成功!"); } @@ -422,7 +441,8 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl createTaskInventoryEOList(List projectTaskInventoryEOList, List projectTaskInventoryDetailEOList, Integer isProjectRole, - LoginUser currentUser) + LoginUser currentUser, + ProjectTaskInventoryEO projectTaskInventory) { List result = new ArrayList<>(); for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) { @@ -449,7 +469,22 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl (StringUtils.equals(e.getShowFlag(),TaskStatusEnum.SHOW_FLAG.getValue()))).collect(Collectors.toList()); + //根据当前项目状态筛选一次。 + if(StringUtils.isNotEmpty(projectTaskInventory.getProjectStatusAssess())){ + result = result.stream().filter(e -> { + boolean flag = false; + if(StringUtils.equals(e.getProjectStatusAssess(),projectTaskInventory.getProjectStatusAssess())){ + flag = true; + } + return flag; + }).collect(Collectors.toList()); + } } return result; } @@ -702,6 +769,8 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; //飞书跳转链接 拼接跳转至任务详情页参数 /*String hrefFeishu = backUrl @@ -890,14 +969,14 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl" + "Jump link" + "";*/ + + "'>" + " View details" + "";*/ String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - SendMessageUtils.sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + SendMessageUtils.sendMessage(msgContentEN,userIdList,id,sendMessageMap, feishuMsgVo, messageTypeEnum); } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryFeedbackEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryFeedbackEOServiceImpl.java index 24381ed63..656fd9e7c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryFeedbackEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectTaskInventoryFeedbackEOServiceImpl.java @@ -156,6 +156,8 @@ public class ProjectTaskInventoryFeedbackEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryBaseInfo.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryBaseInfo.getId(),sendMessageMap, feishuMsgVo, messageTypeEnum); } } @@ -341,6 +349,8 @@ public class ProjectTaskInventoryFeedbackEOServiceImpl extends ServiceImpl" + "Jump link" + ""; + + "'>" + " View details" + ""; String contentInfo = msgContentEN + " " + href; Map sendMessageMap = new HashMap<>(); sendMessageMap.put("hrefFeishu",hrefFeishu); sendMessageMap.put("contentInfo",contentInfo); //发送消息 - SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryBaseInfo.getId(),sendMessageMap, feishuMsgVo, MessageTypeEnum.TASK); + SendMessageUtils.sendMessage(msgContentEN,userIdList,projectLibraryBaseInfo.getId(),sendMessageMap, feishuMsgVo, messageTypeEnum); } } } diff --git a/jero-boot/jero-boot-single-startup/src/main/resources/application-dev.yml b/jero-boot/jero-boot-single-startup/src/main/resources/application-dev.yml index cf284ac6f..61a634c68 100644 --- a/jero-boot/jero-boot-single-startup/src/main/resources/application-dev.yml +++ b/jero-boot/jero-boot-single-startup/src/main/resources/application-dev.yml @@ -12,7 +12,12 @@ server: enabled: true min-response-size: 1024 mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/* - +##配置https证书 部署服务器的时候解开。 +# port-https: 8089 #自定义https端口 +# ssl: +# key-store: classpath:bxxt.hzwlsoft.com.jks +# key-store-password: w933m5y1kz0xj8w +# key-store-type: JKS management: endpoints: web: diff --git a/jero-boot/jero-boot-single-startup/src/main/resources/bxxt.hzwlsoft.com.jks b/jero-boot/jero-boot-single-startup/src/main/resources/bxxt.hzwlsoft.com.jks new file mode 100644 index 000000000..38bbfad14 Binary files /dev/null and b/jero-boot/jero-boot-single-startup/src/main/resources/bxxt.hzwlsoft.com.jks differ diff --git a/jero-boot/pom.xml b/jero-boot/pom.xml index c3f234115..6bee178cc 100644 --- a/jero-boot/pom.xml +++ b/jero-boot/pom.xml @@ -358,6 +358,7 @@ svg doc docx + jks diff --git a/jero-web/src/App.vue b/jero-web/src/App.vue index 862267a30..b9ecf2551 100644 --- a/jero-web/src/App.vue +++ b/jero-web/src/App.vue @@ -142,4 +142,7 @@ .itemModel-multi .ant-form-explain, .ant-form-extra { margin-top: -10px; } + .anticon-exclamation-circle{ + display: none!important; + } \ No newline at end of file diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 276fdf7a4..fee53c4dc 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1090,4 +1090,19 @@ module.exports = { newRequestCommentListTemplate:'New request for comment list template', NewReleasedStandardTemplate:'New released standard template', pleaseSelectStandard:'Please select a standard', + theResponsiblePersonEmpty:'The responsible person of cannot be empty', + theDeadlineEmpty:'The deadline of cannot be empty', + theDeliveryTypeCannotBeEmpty:'The delivery type of cannot be empty', + For:'For', + markedRejection:'Marked rejection', + RegulationListConfirmationTask:'Regulation List Confirmation Task', + RegulationListConfirmationNotification:'Regulation List Confirmation Notification', + RegulationTaskConfirmation:'Regulation Task Confirmation', + DesignComplianceTask:'Design Compliance Task', + PreHomoTask:'Pre-Homo Task', + ValidationTask:'Validation Task', + DesignComplianceNotification:'Design Compliance Notification', + PreHomoNotification:'Pre-Homo Notification', + ValidationComplianceNotification:'Validation Compliance Notification', + RegulationTaskConfirmationNotification:'Regulation Task Confirmation Notification', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 2dc448ef7..cc78f27b5 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1094,4 +1094,19 @@ module.exports = { newRequestCommentListTemplate:'新征求意见清单模板', NewReleasedStandardTemplate:'新发布标准模板', pleaseSelectStandard:'请选择标准', + theResponsiblePersonEmpty:'的责任人不能为空', + theDeadlineEmpty:'的截止时间不能为空', + theDeliveryTypeCannotBeEmpty:'的交付物类型不能为空', + For:'针对于', + markedRejection:'标注的驳回意见', + RegulationListConfirmationTask:'清单确认任务', + RegulationListConfirmationNotification:'清单确认通知', + RegulationTaskConfirmation:'任务确认任务', + DesignComplianceTask:'设计符合性任务', + PreHomoTask:'Pre-Homo任务', + ValidationTask:'验证符合性任务', + DesignComplianceNotification:'设计符合性通知', + PreHomoNotification:'Pre-Homo通知', + ValidationComplianceNotification:'验证符合性通知', + RegulationTaskConfirmationNotification:'任务确认通知', } \ No newline at end of file diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue index 58d3f16a6..59a15eb92 100644 --- a/jero-web/src/components/PersonnelSelection/index.vue +++ b/jero-web/src/components/PersonnelSelection/index.vue @@ -58,7 +58,7 @@ export default { name: 'index', - props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass','isDelete','disabled'], + props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass', 'isDelete', 'disabled'], data() { return { loading: true, @@ -74,6 +74,7 @@ searchModel: '', defaultExpandedKeys: [], defaultCheckedKeys: [], + defaultCheckedKeysName: [], content: [] } }, @@ -90,10 +91,10 @@ this.queryDepartUserTreeList() this.visible = true }, - standardDelete(){ + standardDelete() { this.$emit('input', null) this.$forceUpdate() - this.$emit('deleteData',this.query.db_field_name) + this.$emit('deleteData', this.query.db_field_name) }, // onSelect(selectedKeys, info) { // console.log(selectedKeys) @@ -101,9 +102,17 @@ // }, onCheck(checkedKeys, info) { - console.log(checkedKeys) this.userIds = checkedKeys.checked this.userName = [] + if (this.userIds.length > 0) { + for (let i = 0; i < this.userIds.length; i++) { + for (let j = 0; j < this.defaultCheckedKeysName.length; j++) { + if (this.userIds[i] == this.defaultCheckedKeysName[j].id) { + this.userName.push(this.defaultCheckedKeysName[j].name) + } + } + } + } if (info.checkedNodes && info.checkedNodes.length > 0) { info.checkedNodes.forEach(res => { if (res.data.props.dataRef.key) { @@ -136,6 +145,16 @@ }) }) } + if (this.userName.length > 0){ + for (let i = 0; i < this.userName.length; i++) { + for (let j = i + 1; j < this.userName.length; j++) { + if (this.userName[i] == this.userName[j]) { + this.userName.splice(j, 1) + j-- + } + } + } + } }, handleCancel() { this.visible = false @@ -151,8 +170,9 @@ } let userIds = JSON.parse(JSON.stringify(this.userIds)) let userName = JSON.parse(JSON.stringify(this.userName)) + console.log(userName) this.$emit('input', userName.join(',')) - this.$emit('change', this.query.db_field_name, userIds.join(','),this.query.subscript) + this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript) this.visible = false this.treeVisible = false // } else { @@ -179,8 +199,8 @@ }, getUserAndDepart() { getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => { - if (res){ - this.gData = res.filter(ele => ele.flag === 'DEPART'); + if (res) { + this.gData = res.filter(ele => ele.flag === 'DEPART') } else { this.gData = [] } @@ -234,6 +254,15 @@ } } this.defaultCheckedKeys = this.userIds + this.defaultCheckedKeysName = [] + if (this.defaultCheckedKeys.length > 0) { + for (let i = 0; i < this.defaultCheckedKeys.length; i++) { + this.defaultCheckedKeysName.push({ + id: this.defaultCheckedKeys[i], + name: this.userName[i] + }) + } + } this.treeVisible = true } else { this.gData = [] diff --git a/jero-web/src/components/globalAdvancedQuery/index.vue b/jero-web/src/components/globalAdvancedQuery/index.vue index 45dbc9e1b..90a5dda09 100644 --- a/jero-web/src/components/globalAdvancedQuery/index.vue +++ b/jero-web/src/components/globalAdvancedQuery/index.vue @@ -413,6 +413,7 @@ } } console.debug('---高级查询参数--->', { params, matchType }) + this.visible = false this.$emit(this.callback, params, matchType) }, handleCancel() { diff --git a/jero-web/src/components/uploadFile/file.vue b/jero-web/src/components/uploadFile/file.vue index 1bd779cc5..fab54f96b 100644 --- a/jero-web/src/components/uploadFile/file.vue +++ b/jero-web/src/components/uploadFile/file.vue @@ -191,17 +191,18 @@ let index1 = fileName.lastIndexOf('.') let index2 = fileName.length let fileSuffix = fileName.substring(index1, index2) - if (fileSuffix === '.pdf') { - window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) - } else if (fileSuffix === '.docx') { - let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) - window.open(url, '_blank') - } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') { - let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) - window.open(url, '_blank') - } else { - downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id }) - } + downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id }) + // if (fileSuffix === '.pdf') { + // window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) + // } else if (fileSuffix === '.docx') { + // let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) + // window.open(url, '_blank') + // } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') { + // let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) + // window.open(url, '_blank') + // } else { + // downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id }) + // } } } } diff --git a/jero-web/src/views/processCenter/components/engineeringConfirmation.vue b/jero-web/src/views/processCenter/components/engineeringConfirmation.vue index 39898a7ed..bc666817e 100644 --- a/jero-web/src/views/processCenter/components/engineeringConfirmation.vue +++ b/jero-web/src/views/processCenter/components/engineeringConfirmation.vue @@ -95,13 +95,13 @@ {{$t('engineer')}} - + + v-model="formInline.userIdName"/> @@ -385,7 +385,7 @@ trigger: 'change' } ], - userName: [ + userIdName: [ { required: true, message: this.$t('engineer') + this.$t('cannotEmpty'), @@ -623,8 +623,9 @@ }) } this.formInline.userId = userId.join(',') - this.formInline.userName = userName.join(',') + this.formInline.userIdName = userName.join(',') this.formInline = { ...this.formInline } + console.log(this.formInline) } this.loadingTable = false } else { @@ -682,7 +683,7 @@ this.formInline[value] = id this.distributionEngineerList = [] if (id) { - this.formInline.userName.split(',').forEach((res, index) => { + this.formInline.userIdName.split(',').forEach((res, index) => { this.distributionEngineerList.push({ deliveryInstructions: '', name: res, @@ -713,9 +714,9 @@ }) _this.distributionEngineerList.splice(num, 1) _this.distributionEngineerList = [..._this.distributionEngineerList] - _this.formInline.userName = _this.formInline.userName.split(',') - _this.formInline.userName.splice(num, 1) - _this.formInline.userName = _this.formInline.userName.join(',') + _this.formInline.userIdName = _this.formInline.userIdName.split(',') + _this.formInline.userIdName.splice(num, 1) + _this.formInline.userIdName = _this.formInline.userIdName.join(',') _this.formInline.userId = _this.formInline.userId.split(',') _this.formInline.userId.splice(num, 1) _this.formInline.userId = _this.formInline.userId.join(',') diff --git a/jero-web/src/views/processCenter/components/projectInformation.vue b/jero-web/src/views/processCenter/components/projectInformation.vue index 65e75b9f7..7cc17091d 100644 --- a/jero-web/src/views/processCenter/components/projectInformation.vue +++ b/jero-web/src/views/processCenter/components/projectInformation.vue @@ -13,7 +13,10 @@ @click="urlClick(queryForm[item.value])" v-if="item.type == 1" >{{queryForm[item.value]}} - + {{queryForm[item.value]}} {{queryForm[item.value]}} @@ -25,6 +28,7 @@ 1打开新页面 2显示文件 3点击事件处理\需要传点击事件 + 4标注号的跳转 --> @@ -430,14 +482,14 @@ } .title-text { - width: 32px; + width: 64px; color: #000F16; display: inline-block; font-weight: 500; font-size: 14px; margin-right: 16px; margin-top: 3px; - text-align: left; + text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -445,7 +497,7 @@ .box-input { display: inline-block; - width: 70%; + width: calc(100% - 64px); height: 38px; margin-top: 2px; } diff --git a/jero-web/src/views/projectManagement/components/commentList.vue b/jero-web/src/views/projectManagement/components/commentList.vue index f80a418f9..71c112204 100644 --- a/jero-web/src/views/projectManagement/components/commentList.vue +++ b/jero-web/src/views/projectManagement/components/commentList.vue @@ -20,7 +20,7 @@
-
{{$t('record')+(index + 1)}}
+
diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 1a0963aaa..e5ee987c5 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -26,11 +26,53 @@
-
- {{ $t('subtitle') }} +
+ {{ $t('areaOfResponsibility') }}
- + +
+ + +
+
+ {{ $t('listConfirmationStatus') }} +
+ + + + {{ item.label}} + + + +
+
+ +
+
+ {{ $t('taskAffirmStatus') }} +
+ + + + {{ item.label}} + + +
@@ -86,10 +128,6 @@ {{ $t('BatchDelete') }}
-
- - {{ $t('bringInRelevantPersonnel') }} -
{{ $t('ExportReport') }} @@ -107,6 +145,10 @@ ...{{ $t('more') }}
+
+ + {{ $t('bringInRelevantPersonnel') }} +
{{ $t('Transfer') }} @@ -184,6 +226,12 @@ {{text}} + + + + {{text}} + + {{ record.designDeliverableTypeName }}
{ dataSource[i].serialNumber + ','+this.$t('designComplianceReview')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>) - continue - } - } - if (dataSource[i].prehomoDeliverableType){ - if (!dataSource[i].prehomoInitiatorId){ - this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ','+this.$t('preHomeConfirmation')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>) + if (dataSource[i].designDeliverableType) { + if (!dataSource[i].designInitiatorId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('designComplianceReview') + this.$t('Sponsor') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].designDutyId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('designComplianceReview') + this.$t('personLiable') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].designDueDate) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('designComplianceReview') + this.$t('cutoffTime') + this.$t('cannotEmpty') } < /div>) continue } } - if (dataSource[i].verifyDeliverableType){ - if (!dataSource[i].verifyInitiatorId){ - this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ','+this.$t('verificationComplianceReview')+ this.$t('Sponsor')+this.$t('cannotEmpty') } < /div>) + if (dataSource[i].prehomoDeliverableType) { + if (!dataSource[i].prehomoInitiatorId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('preHomeConfirmation') + this.$t('Sponsor') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].prehomoDutyId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('preHomeConfirmation') + this.$t('personLiable') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].prehomoDueDate) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('preHomeConfirmation') + this.$t('cutoffTime') + this.$t('cannotEmpty') } < /div>) continue } } - this.detailedSuccessList.push(dataSource[i]) + if (dataSource[i].verifyDeliverableType) { + if (!dataSource[i].verifyInitiatorId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('verificationComplianceReview') + this.$t('Sponsor') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].verifyDutyId) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('verificationComplianceReview') + this.$t('personLiable') + this.$t('cannotEmpty') } < /div>) + continue + } + if (!dataSource[i].verifyDueDate) { + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('verificationComplianceReview') + this.$t('cutoffTime') + this.$t('cannotEmpty') } < /div>) + continue + } + } + this.detailedSuccessList.push(dataSource[i]) } else { this.detailedWarningList.push( < div > { dataSource[i].serialNumber + this.$t('TheEngineerAndCertification') } < /div>) @@ -1395,7 +1462,7 @@ // return } } else { - this.detailedWarningList.push( < div > {dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected')} < /div>) + this.detailedWarningList.push( < div > { dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected') } < /div>) // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseSelectinitiatedOrRejected')) // isTrue = false // return @@ -1615,7 +1682,7 @@ }) }, - getRowKeys(value,num, callBack) { + getRowKeys(value, num, callBack) { let isTrue = true let dataSource = [] for (let i = 0; i < this.dataSource.length; i++) { @@ -1651,31 +1718,58 @@ // this.$message.warning(dataSource[i].serialNumber + this.$t('submitted')) // return } - if(num == 1){ - if((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId + if (num == 1) { + if ((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId && dataSource[i].designInitiatorId == this.userInfo().id) || (dataSource[i].designInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].designInitiatorId == this.userInfo().id)){ - if(!dataSource[i].designDutyId || !dataSource[i].designDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + && dataSource[i].designInitiatorId == this.userInfo().id)) { + if (!dataSource[i].designDutyId && !dataSource[i].designDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } else if (!dataSource[i].designDutyId) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonEmpty') } < /div>) + continue + } else if (!dataSource[i].designDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('confirmationOfDesignConformity') + this.$t('theDeadlineEmpty') } < /div>) + continue + }else if (!dataSource[i].designDeliverableType) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('confirmationOfDesignConformity') + this.$t('theDeliveryTypeCannotBeEmpty') } < /div>) continue } } - if((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId + if ((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId && dataSource[i].prehomoInitiatorId == this.userInfo().id) || (dataSource[i].prehomoInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].prehomoInitiatorId == this.userInfo().id)){ - if(!dataSource[i].prehomoDutyId || !dataSource[i].prehomoDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + && dataSource[i].prehomoInitiatorId == this.userInfo().id)) { + if (!dataSource[i].prehomoDutyId && !dataSource[i].prehomoDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } else if (!dataSource[i].prehomoDutyId) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonEmpty') } < /div>) + continue + } else if (!dataSource[i].prehomoDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('PrehomoConfirmation') + this.$t('theDeadlineEmpty') } < /div>) + continue + }else if (!dataSource[i].prehomoDeliverableType) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('PrehomoConfirmation') + this.$t('theDeliveryTypeCannotBeEmpty') } < /div>) continue } } - if((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId + if ((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId && dataSource[i].verifyInitiatorId == this.userInfo().id) || (dataSource[i].verifyInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].verifyInitiatorId == this.userInfo().id)){ - if(!dataSource[i].verifyDutyId || !dataSource[i].verifyDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + && dataSource[i].verifyInitiatorId == this.userInfo().id)) { + if (!dataSource[i].verifyDutyId && !dataSource[i].verifyDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } else if (!dataSource[i].verifyDutyId) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonEmpty') } < /div>) + continue + } else if (!dataSource[i].verifyDueDate) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('verificationAndConformityconfirmation') + this.$t('theDeadlineEmpty') } < /div>) + continue + }else if (!dataSource[i].verifyDeliverableType) { + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('verificationAndConformityconfirmation') + this.$t('theDeliveryTypeCannotBeEmpty') } < /div>) continue } } @@ -1691,7 +1785,7 @@ if (this.rowKeysSuccessList && this.rowKeysSuccessList.length > 0) { callBack && callBack() - }else{ + } else { let that = this this.$warning({ content: ( @@ -1707,19 +1801,19 @@ let _this = this let lawsInventoryList = [] for (let i = 0; i < this.rowKeysSuccessList.length; i++) { - let roleCode - if (this.rowKeysSuccessList[i].regulationOwnerId == this.userInfo().id && - this.rowKeysSuccessList[i].homologationEngineerId == this.userInfo().id) { - roleCode = 4 - } else if (this.rowKeysSuccessList[i].regulationOwnerId == this.userInfo().id) { - roleCode = 1 - } else if (this.rowKeysSuccessList[i].homologationEngineerId == this.userInfo().id) { - roleCode = 2 - } - lawsInventoryList.push({ - id: this.rowKeysSuccessList[i].id, - roleCode: roleCode - }) + let roleCode + if (this.rowKeysSuccessList[i].regulationOwnerId == this.userInfo().id && + this.rowKeysSuccessList[i].homologationEngineerId == this.userInfo().id) { + roleCode = 4 + } else if (this.rowKeysSuccessList[i].regulationOwnerId == this.userInfo().id) { + roleCode = 1 + } else if (this.rowKeysSuccessList[i].homologationEngineerId == this.userInfo().id) { + roleCode = 2 + } + lawsInventoryList.push({ + id: this.rowKeysSuccessList[i].id, + roleCode: roleCode + }) } let query = { operatorType: 1, @@ -1738,7 +1832,7 @@ _this.$message.warning(_this.$t('operationFailed')) _this.confirmLoading = false } - if(this.rowKeysWarningList && this.rowKeysWarningList.length > 0){ + if (this.rowKeysWarningList && this.rowKeysWarningList.length > 0) { let that = this this.$warning({ content: ( @@ -1761,13 +1855,17 @@ onOk() { if (num == 0) { let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - _this.getRowKeys(selectedRowKeys, 1,function() { + _this.getRowKeys(selectedRowKeys, 1, function() { _this.updateStatusBatch(num, selectedRowKeys) }) } else { let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - _this.getRowKeys(selectedRowKeys, 2,function() { + _this.getRowKeys(selectedRowKeys, 2, function() { _this.visibleComment = true + _this.formInlineComment = {} + _this.$nextTick(()=>{ + _this.$refs.ruleFormComment.clearValidate() + }) }) } } @@ -1780,8 +1878,14 @@ this.$refs.ruleFormComment.validate(valid => { if (valid) { let url = '/project/projectCommentEO/add' + let content = [] + if (this.rowKeysSuccessList && this.rowKeysSuccessList.length > 0) { + this.rowKeysSuccessList.forEach(res => { + content.push(res.serialNumber) + }) + } let query = { - commentContent: this.formInlineComment.commentContent, + commentContent: this.$t('For')+content.join(',') + this.$t('markedRejection')+':' + this.formInlineComment.commentContent, projectLibraryId: this.$route.query.id } this.confirmLoadingComment = true @@ -1905,6 +2009,15 @@ this.$message.warning(this.$t('reportNotUploaded')) } } + }, + standardClick(row) { + let newUrl = this.$router.resolve({ + path: '/docManage/library/detail', + query: { + id: row.standId + } + }) + window.open(newUrl.href, '_blank') } } } @@ -1986,14 +2099,14 @@ } .title-text { - width: 32px; + width: 92px; color: #000F16; display: inline-block; font-weight: 500; font-size: 14px; margin-right: 16px; margin-top: 3px; - text-align: left; + text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/jero-web/src/views/system/MessageDetails.vue b/jero-web/src/views/system/MessageDetails.vue index a9b866dfe..309fe3c4a 100644 --- a/jero-web/src/views/system/MessageDetails.vue +++ b/jero-web/src/views/system/MessageDetails.vue @@ -75,11 +75,11 @@ } .box-content { - padding: 40px 120px; + padding: 40px 70px; box-sizing: border-box; color: #040B29; font-size: 16px; - text-indent: 30px; - letter-spacing: 3px + text-indent: 24px; + /*letter-spacing: 1px*/ } \ No newline at end of file diff --git a/jero-web/src/views/system/UserAnnouncementList.vue b/jero-web/src/views/system/UserAnnouncementList.vue index 1bde0bd10..c06aa9dcf 100644 --- a/jero-web/src/views/system/UserAnnouncementList.vue +++ b/jero-web/src/views/system/UserAnnouncementList.vue @@ -105,7 +105,17 @@ '2': this.$t('warningInformation'), '3': this.$t('ForwardPush'), '4': this.$t('authenticationMessage'), - '5': this.$t('taskRegulationComplianceTask') + '5': this.$t('taskRegulationComplianceTask'), + '6':this.$t('RegulationListConfirmationTask'), + '7':this.$t('RegulationListConfirmationNotification'), + '8':this.$t('RegulationTaskConfirmation'), + '9':this.$t('DesignComplianceTask'), + '10':this.$t('PreHomoTask'), + '11':this.$t('ValidationTask'), + '12':this.$t('DesignComplianceNotification'), + '13':this.$t('PreHomoNotification'), + '14':this.$t('ValidationComplianceNotification'), + '15':this.$t('RegulationTaskConfirmationNotification'), }, columns: [ {