diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql index 6268531d7..7b38ef329 100644 --- a/jero-boot/db/蔚来标准sql/dev_third_record.sql +++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql @@ -386,7 +386,7 @@ ALTER TABLE `laws_weilai`.`sys_user` DROP INDEX `uniq_sys_user_phone`, DROP INDEX `uniq_sys_user_email`; --- 参数项清单 修改字段长度 2022-07-17 已同步 +-- 参数项清单 修改字段长度 2022-07-17 2022-07-20 已同步生产环境 ALTER TABLE `laws_weilai`.`params_info` MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`, MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `duty_territory`; @@ -419,7 +419,7 @@ ALTER TABLE `laws_weilai`.`report_cert_category_params_info` MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `params_number`, MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `params_name`; --- 文档翻译表 +-- 文档翻译表 2022-07-20 已同步生产环境 CREATE TABLE `laws_weilai`.`doc_translation` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人', diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index 50ebb976f..78ca3a4a4 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -2157,8 +2157,17 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl> dataList = paramsCollectManifestEOMapper.listInfoForExport(queryEO); // 查询导出数据 + if (dataList == null || dataList.isEmpty()){ + // 没有查到数据,进行提示 + if (CutEnum.EN.getValue().equals(paramsCollectManifestVO.getCut())) { + throw new JeroBootException("No data, unable to export"); + } else { + throw new JeroBootException("无数据,无法导出"); + } + } List paramsConfigEOList = paramsConfigEOService.queryList(paramsManifestId); // 查询所有配置列 diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsCollectManifestVO.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsCollectManifestVO.java index 1421ccb64..cc37935f7 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsCollectManifestVO.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsCollectManifestVO.java @@ -74,4 +74,7 @@ public class ParamsCollectManifestVO { private String exportName; // 导出文件名 + @ApiModelProperty(value = "用户类型") + private String userTypes; // 用户类型 + } diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/service/impl/SysUserServiceImpl.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/service/impl/SysUserServiceImpl.java index 9ea7b911d..04d975382 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/service/impl/SysUserServiceImpl.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/service/impl/SysUserServiceImpl.java @@ -519,7 +519,7 @@ public class SysUserServiceImpl extends ServiceImpl impl sysUserDepartMapper.insert(sysUserDepart); // 添加用户角色关系 - SysUserRole userRole = new SysUserRole(sysUser.getId(), "1534020318437208065"); // 新增用户默认角色均为工程师 + SysUserRole userRole = new SysUserRole(sysUser.getId(), "1550369502225551361"); // 新增用户默认角色均为一般用户 sysUserRoleMapper.insert(userRole); // 添加用户信息 diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/enums/SearchEnum.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/enums/SearchEnum.java index 279e77bcd..3b1ea5267 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/enums/SearchEnum.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/enums/SearchEnum.java @@ -12,8 +12,6 @@ public enum SearchEnum { FULL_TEXT_SEARCH_CN("全部中文","fulltextsearchcn"), FULL_TEXT_SEARCH_EN("全部英文","fulltextsearchen"); - - String name; String value; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectRelatedPersonnelServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectRelatedPersonnelServiceImpl.java index 66e03ed80..8f2136160 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectRelatedPersonnelServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectRelatedPersonnelServiceImpl.java @@ -55,14 +55,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.File; import java.io.IOException; import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Comparator; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; +import java.util.*; import java.util.stream.Collectors; /** @@ -1047,7 +1040,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl data.equals(e.getUsername())) + lawEngineerId = lawEngineerUsers.stream().filter(e -> data.toLowerCase().equals(e.getUsername().toLowerCase())) .map(sysUser -> sysUser.getId()).collect(Collectors.joining(",")); } midId.append(lawEngineerId).append(","); @@ -1081,7 +1074,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl data.equals(e.getUsername())) + engineeringInterfacePersonId = engineeringInterfacePersonUsers.stream().filter(e -> data.toLowerCase().equals(e.getUsername().toLowerCase())) .map(sysUser -> sysUser.getId()).collect(Collectors.joining(",")); } midId.append(engineeringInterfacePersonId).append(","); @@ -1130,7 +1123,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl data.equals(e.getUsername())) + certificationEngineerId = certificationEngineerUsers.stream().filter(e -> data.toLowerCase().equals(e.getUsername().toLowerCase())) .map(sysUser -> sysUser.getId()).collect(Collectors.joining(",")); } midId.append(certificationEngineerId).append(","); diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index b1076e198..682fbe51a 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -3,7 +3,7 @@
- {{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}})——{{$t(this.paramsManifest.title)}} + {{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}}) — {{$t(this.paramsManifest.title)}}
@@ -822,11 +822,13 @@ paramsTemplateId: this.$route.query.paramsTemplateId, paramsTemplatePublishVersion:1, cut: this.cut, + userTypes: this.currentPersonRole, exportName:this.$route.query.projectName + '(' + this.$route.query.title + ')' } - console.log(query) getAction('/params/collectManifest/exportAll', query).then((res) => { - + if (res && !res.success) { + this.$message.error(res.message) + } this.textLoading = false }) }, diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index eef2f448c..38f185c66 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -985,77 +985,77 @@ }, getProject(row, res, callback) { //设计符合性确认-发起人 - if (row.designInitiator == 1) { - this.designInitiatorList = res.result.lawEngineerList || [] - } else if (row.designInitiator == 2) { - this.designInitiatorList = res.result.certificationEngineerList || [] - } else if (row.designInitiator == 3) { - this.designInitiatorList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.designInitiatorList = res.result.studioPersonList || [] - } else if (!row.designInitiator || row.designInitiator == '') { + // if (row.designInitiator == 1) { + // this.designInitiatorList = res.result.lawEngineerList || [] + // } else if (row.designInitiator == 2) { + // this.designInitiatorList = res.result.certificationEngineerList || [] + // } else if (row.designInitiator == 3) { + // this.designInitiatorList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.designInitiatorList = res.result.studioPersonList || [] + // } else if (!row.designInitiator || row.designInitiator == '') { this.designInitiatorList = res.result.allPersonList || [] - } + // } //设计符合性确认-责任人 - if (row.designDuty == 1) { - this.designDutyList = res.result.lawEngineerList || [] - } else if (row.designDuty == 2) { - this.designDutyList = res.result.certificationEngineerList || [] - } else if (row.designDuty == 3) { - this.designDutyList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.designDutyList = res.result.studioPersonList || [] - } else if (!row.designDuty || row.designDuty == '') { + // if (row.designDuty == 1) { + // this.designDutyList = res.result.lawEngineerList || [] + // } else if (row.designDuty == 2) { + // this.designDutyList = res.result.certificationEngineerList || [] + // } else if (row.designDuty == 3) { + // this.designDutyList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.designDutyList = res.result.studioPersonList || [] + // } else if (!row.designDuty || row.designDuty == '') { this.designDutyList = res.result.allPersonList || [] - } + // } //prehomo确认-发起人 - if (row.prehomoInitiator == 1) { - this.prehomoInitiatorList = res.result.lawEngineerList || [] - } else if (row.prehomoInitiator == 2) { - this.prehomoInitiatorList = res.result.certificationEngineerList || [] - } else if (row.prehomoInitiator == 3) { - this.prehomoInitiatorList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.prehomoInitiatorList = res.result.studioPersonList || [] - } else if (!row.prehomoInitiator || row.prehomoInitiator == '') { + // if (row.prehomoInitiator == 1) { + // this.prehomoInitiatorList = res.result.lawEngineerList || [] + // } else if (row.prehomoInitiator == 2) { + // this.prehomoInitiatorList = res.result.certificationEngineerList || [] + // } else if (row.prehomoInitiator == 3) { + // this.prehomoInitiatorList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.prehomoInitiatorList = res.result.studioPersonList || [] + // } else if (!row.prehomoInitiator || row.prehomoInitiator == '') { this.prehomoInitiatorList = res.result.allPersonList || [] - } + // } //prehomo确认-责任人 - if (row.prehomoDuty == 1) { - this.prehomoDutyList = res.result.lawEngineerList || [] - } else if (row.prehomoDuty == 2) { - this.prehomoDutyList = res.result.certificationEngineerList || [] - } else if (row.prehomoDuty == 3) { - this.prehomoDutyList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.prehomoDutyList = res.result.studioPersonList || [] - } else if (!row.prehomoDuty || row.prehomoDuty == '') { + // if (row.prehomoDuty == 1) { + // this.prehomoDutyList = res.result.lawEngineerList || [] + // } else if (row.prehomoDuty == 2) { + // this.prehomoDutyList = res.result.certificationEngineerList || [] + // } else if (row.prehomoDuty == 3) { + // this.prehomoDutyList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.prehomoDutyList = res.result.studioPersonList || [] + // } else if (!row.prehomoDuty || row.prehomoDuty == '') { this.prehomoDutyList = res.result.allPersonList || [] - } + // } //验证符合性确认-发起人 - if (row.verifyInitiator == 1) { - this.verifyInitiatorList = res.result.lawEngineerList || [] - } else if (row.verifyInitiator == 2) { - this.verifyInitiatorList = res.result.certificationEngineerList || [] - } else if (row.verifyInitiator == 3) { - this.verifyInitiatorList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.verifyInitiatorList = res.result.studioPersonList || [] - } else if (!row.verifyInitiator || row.verifyInitiator == '') { + // if (row.verifyInitiator == 1) { + // this.verifyInitiatorList = res.result.lawEngineerList || [] + // } else if (row.verifyInitiator == 2) { + // this.verifyInitiatorList = res.result.certificationEngineerList || [] + // } else if (row.verifyInitiator == 3) { + // this.verifyInitiatorList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.verifyInitiatorList = res.result.studioPersonList || [] + // } else if (!row.verifyInitiator || row.verifyInitiator == '') { this.verifyInitiatorList = res.result.allPersonList || [] - } + // } //验证符合性确认-责任人 - if (row.verifyDuty == 1) { - this.verifyDutyList = res.result.lawEngineerList || [] - } else if (row.verifyDuty == 2) { - this.verifyDutyList = res.result.certificationEngineerList || [] - } else if (row.verifyDuty == 3) { - this.verifyDutyList = res.result.engineeringInterfacePersonList || [] - } else if (row.designInitiator == 0) { - this.verifyDutyList = res.result.studioPersonList || [] - } else if (!row.verifyDuty || row.verifyDuty == '') { + // if (row.verifyDuty == 1) { + // this.verifyDutyList = res.result.lawEngineerList || [] + // } else if (row.verifyDuty == 2) { + // this.verifyDutyList = res.result.certificationEngineerList || [] + // } else if (row.verifyDuty == 3) { + // this.verifyDutyList = res.result.engineeringInterfacePersonList || [] + // } else if (row.designInitiator == 0) { + // this.verifyDutyList = res.result.studioPersonList || [] + // } else if (!row.verifyDuty || row.verifyDuty == '') { this.verifyDutyList = res.result.allPersonList || [] - } + // } callback() }, getData(row, res) {