合并分支 'master' 到 'dev_third_stage'
Master 查看合并请求 laws-nio/laws-weilai!105
This commit is contained in:
@@ -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 '创建人',
|
||||
|
||||
+27
-2
@@ -2157,8 +2157,17 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
// os.close(); // 后开先关
|
||||
// fis.close(); // 先开后关
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
throw new JeroBootException("下载文件失败,请重试");
|
||||
if (e instanceof JeroBootException){
|
||||
throw new JeroBootException(e.getMessage());
|
||||
} else {
|
||||
log.error(e.getMessage(), e);
|
||||
if (CutEnum.EN.getValue().equals(paramsCollectManifestVO.getCut())) {
|
||||
throw new JeroBootException("Failed to download file, please try again");
|
||||
} else {
|
||||
throw new JeroBootException("下载文件失败,请重试");
|
||||
}
|
||||
|
||||
}
|
||||
} finally {
|
||||
// IOUtils.closeQuietly(os);
|
||||
IOUtils.closeQuietly(excelOS);
|
||||
@@ -2250,10 +2259,26 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
||||
Integer paramsTemplatePublishVersion = paramsCollectManifestVO.getParamsTemplatePublishVersion();
|
||||
String cut = paramsCollectManifestVO.getCut();
|
||||
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
|
||||
ParamsCollectManifestEO queryEO = new ParamsCollectManifestEO();
|
||||
queryEO.setParamsManifestId(paramsManifestId);
|
||||
|
||||
String userTypes = paramsCollectManifestVO.getUserTypes();
|
||||
if (userTypes != null && CollectManifestUserTypeEnum.SDT.getValue().equals(userTypes)){
|
||||
queryEO.setUserTypes(CollectManifestUserTypeEnum.SDT.getValue());
|
||||
queryEO.setSdt(loginUser.getUsername());
|
||||
}
|
||||
|
||||
List<Map<String, Object>> 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<ParamsConfigEO> paramsConfigEOList = paramsConfigEOService.queryList(paramsManifestId); // 查询所有配置列
|
||||
|
||||
|
||||
+3
@@ -74,4 +74,7 @@ public class ParamsCollectManifestVO {
|
||||
|
||||
private String exportName; // 导出文件名
|
||||
|
||||
@ApiModelProperty(value = "用户类型")
|
||||
private String userTypes; // 用户类型
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -519,7 +519,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
sysUserDepartMapper.insert(sysUserDepart);
|
||||
|
||||
// 添加用户角色关系
|
||||
SysUserRole userRole = new SysUserRole(sysUser.getId(), "1534020318437208065"); // 新增用户默认角色均为工程师
|
||||
SysUserRole userRole = new SysUserRole(sysUser.getId(), "1550369502225551361"); // 新增用户默认角色均为一般用户
|
||||
sysUserRoleMapper.insert(userRole);
|
||||
|
||||
// 添加用户信息
|
||||
|
||||
-2
@@ -12,8 +12,6 @@ public enum SearchEnum {
|
||||
FULL_TEXT_SEARCH_CN("全部中文","fulltextsearchcn"),
|
||||
FULL_TEXT_SEARCH_EN("全部英文","fulltextsearchen");
|
||||
|
||||
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
|
||||
+4
-11
@@ -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<ProjectRelat
|
||||
StringBuilder midId = new StringBuilder();
|
||||
for (String data : lawEngineerNameList) {
|
||||
if (StringUtils.isNotEmpty(lawEngineerName)) {
|
||||
lawEngineerId = lawEngineerUsers.stream().filter(e -> 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<ProjectRelat
|
||||
StringBuilder midId = new StringBuilder();
|
||||
for (String data : engineeringInterfacePersonNameList) {
|
||||
if (StringUtils.isNotEmpty(engineeringInterfacePersonName)) {
|
||||
engineeringInterfacePersonId = engineeringInterfacePersonUsers.stream().filter(e -> 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<ProjectRelat
|
||||
StringBuilder midId = new StringBuilder();
|
||||
for (String data : certificationEngineerNameList) {
|
||||
if (StringUtils.isNotEmpty(certificationEngineerName)) {
|
||||
certificationEngineerId = certificationEngineerUsers.stream().filter(e -> 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(",");
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
||||
<div class="Virtual-detail-title">
|
||||
<span>
|
||||
{{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}})——{{$t(this.paramsManifest.title)}}
|
||||
{{$t('ParameteItemCollectionList')}}({{$t(this.$route.query.projectName)}}) — {{$t(this.paramsManifest.title)}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user