合并分支 'dev_third_stage' 到 'master'
Dev third stage 查看合并请求 laws-nio/laws-weilai!164
This commit is contained in:
@@ -79,7 +79,7 @@ ALTER TABLE `laws_weilai`.`params_report_config_data`
|
||||
ALTER TABLE `laws_weilai`.`params_report`
|
||||
ADD COLUMN `params_template_publish_version` int(11) NULL DEFAULT NULL COMMENT '对应参数模板发布版本' AFTER `old_params_manifest_id`;
|
||||
|
||||
-- 法规月报管理表
|
||||
-- 法规月报管理表(生成环境已同步)
|
||||
CREATE TABLE `laws_monthly_report_manage` (
|
||||
`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 '创建人',
|
||||
@@ -94,6 +94,91 @@ ALTER TABLE `laws_weilai`.`params_report`
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- 法规月报标题模板(生成环境已同步)
|
||||
CREATE TABLE `laws_monthly_report_title_template` (
|
||||
`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 '创建人',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
||||
`update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期',
|
||||
`sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门',
|
||||
`parent_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父id',
|
||||
`title_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '中文标题',
|
||||
`title_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英文标题',
|
||||
`sort` int(10) NULL DEFAULT NULL COMMENT '排序',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- 法规月报填写(生成环境已同步)
|
||||
CREATE TABLE `laws_monthly_report_write` (
|
||||
`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 '创建人',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
||||
`update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期',
|
||||
`sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门',
|
||||
`month` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '月份',
|
||||
`memories_chapter` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '章节目录',
|
||||
`content_template` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '内容模板',
|
||||
`title_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '中文标题',
|
||||
`title_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英文标题',
|
||||
`technology_territory` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关领域',
|
||||
`apply_car` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '适用车型',
|
||||
`apply_scope` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '适用范围',
|
||||
`state` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态',
|
||||
`use_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用法',
|
||||
`implement_car` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实施车型',
|
||||
`issue_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发布日期',
|
||||
`new_car_implement_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '新车型实施日期',
|
||||
`production_car_implement_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '在产车实施日期',
|
||||
`content_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主要内容中文',
|
||||
`content_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主要内容英文',
|
||||
`work_progress_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'NIO工作进展中文',
|
||||
`work_progress_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'NIO工作进展英文',
|
||||
`laws_contact` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '法规联系人',
|
||||
`link` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接',
|
||||
`export_state` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '导出状态',
|
||||
`related_areas_cn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关领域中文',
|
||||
`related_areas_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关领域英文',
|
||||
`source_cn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源中文',
|
||||
`time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日期',
|
||||
`source_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源英文',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- 法规月报新征求意见模板表(生成环境已同步)
|
||||
CREATE TABLE `new_opinion_template` (
|
||||
`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 '创建人',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
||||
`update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期',
|
||||
`sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门',
|
||||
`laws_monthly_report_write_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '月报填写表id',
|
||||
`plan_number_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计划号中文',
|
||||
`standard_name_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标准名称中文',
|
||||
`standard_name_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标准名称英文',
|
||||
`expiration_date` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '征求意见截止日期',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- 法规月报新发布标准模板表(生成环境已同步)
|
||||
CREATE TABLE `new_standard_template` (
|
||||
`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 '创建人',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
|
||||
`update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期',
|
||||
`sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门',
|
||||
`laws_monthly_report_write_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '月报填写表id',
|
||||
`standard_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标准编号',
|
||||
`standard_name_cn` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标准名称中文',
|
||||
`standard_name_en` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标准名称英文',
|
||||
`issue_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发布日期',
|
||||
`implement_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实施日期',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- 参数清单表 修改字段长度
|
||||
ALTER TABLE `laws_weilai`.`params_manifest`
|
||||
MODIFY COLUMN `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题' AFTER `sys_org_code`;
|
||||
|
||||
+3
@@ -446,6 +446,9 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
||||
/*String itemNum = row.getCell(0, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemName = row.getCell(1, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();
|
||||
String itemContents = row.getCell(2, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK).toString();*/
|
||||
if(StringUtils.isEmpty(itemNum) && StringUtils.isEmpty(itemName) && StringUtils.isEmpty(itemContents)){
|
||||
continue;
|
||||
}
|
||||
|
||||
Map<String,Object> itemInfoMap = new HashMap<>();
|
||||
String itemId = UUID.randomUUID().toString().replace("-", "");
|
||||
|
||||
+1
-1
@@ -806,7 +806,7 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl<ProblemKnowle
|
||||
|
||||
//XXX向您推送了XXXXXXXXXX,请注意查看。
|
||||
String msgContentEN = currentUser.getUsername()+" pushed " + problemKnowledgeBaseTitle + " to you.Please be reminded to check it out.";
|
||||
String msgTitle = problemKnowledgeBaseTitle + " has been shared with you, please check.";
|
||||
String msgTitle = "A problem knowledge base has been shared with you, please check";
|
||||
|
||||
//飞书跳转链接
|
||||
String hrefFeishu = backUrl + JumpLinkEnum.PROBLEM_KNOWLEDGE_BASE_DETAIL.getLink() + "?id=" + problemKnowledgeBaseId;
|
||||
|
||||
+40
@@ -391,6 +391,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
if(CollectionUtils.isNotEmpty(projectTaskInventoryEOList)){
|
||||
//项目任务清单数据初始化。
|
||||
this.projectTaskInventoryEOService.saveBatch(projectTaskInventoryEOList);
|
||||
projectTaskInventoryEOList.forEach(taskInventory -> {
|
||||
this.initConditionAssessmentEO(taskInventory.getProjectLawsInventoryId());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -593,6 +596,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
|
||||
removeById(id);
|
||||
this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(Arrays.asList(id.split(",")));
|
||||
|
||||
QueryWrapper<ConditionAssessmentEO> removeWrapper = new QueryWrapper<>();
|
||||
removeWrapper.lambda().eq(ConditionAssessmentEO::getProjectLawsInventoryId,id);
|
||||
this.conditionAssessmentEOService.remove(removeWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -627,6 +634,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
|
||||
removeByIds(ids);
|
||||
this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(ids);
|
||||
|
||||
QueryWrapper<ConditionAssessmentEO> removeWrapper = new QueryWrapper<>();
|
||||
removeWrapper.lambda().in(ConditionAssessmentEO::getProjectLawsInventoryId,ids);
|
||||
this.conditionAssessmentEOService.remove(removeWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2620,6 +2631,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
// projectLawsInventoryLogEOService.updateLog(contentLog, projectLibraryId,CutEnum.CN.getValue());
|
||||
// projectLawsInventoryLogEOService.updateLog(enContentLog, projectLibraryId,CutEnum.EN.getValue());
|
||||
this.projectTaskInventoryEOService.saveBatch(projectTaskInventoryEOList);
|
||||
projectTaskInventoryEOList.forEach(taskInventory -> {
|
||||
this.initConditionAssessmentEO(taskInventory.getProjectLawsInventoryId());
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4472,6 +4486,11 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
this.projectTaskInventoryEOService.deleteByProjectLawsInventoryIds(idList);
|
||||
this.projectTaskInventoryEOService.saveBatch(projectTaskInventoryEOList);
|
||||
|
||||
//初始化项目状态评估
|
||||
projectTaskInventoryEOList.forEach(taskInventory -> {
|
||||
this.initConditionAssessmentEO(taskInventory.getProjectLawsInventoryId());
|
||||
});
|
||||
|
||||
//删除该法规的任务明细数据
|
||||
QueryWrapper<ProjectTaskInventoryDetailEO> deleteTaskInventoryDetailWrapper = new QueryWrapper<>();
|
||||
deleteTaskInventoryDetailWrapper.lambda().in(ProjectTaskInventoryDetailEO::getProjectTaskInventoryId,idList);
|
||||
@@ -4834,6 +4853,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
projectTaskInventoryEOList.add(projectTaskInventoryEO);
|
||||
}
|
||||
this.projectTaskInventoryEOService.saveBatch(projectTaskInventoryEOList);
|
||||
//初始化项目状态评估
|
||||
projectTaskInventoryEOList.forEach(taskInventory -> {
|
||||
this.initConditionAssessmentEO(taskInventory.getProjectLawsInventoryId());
|
||||
});
|
||||
|
||||
//更新log
|
||||
String serialNumber = dataList.stream().map(e->e.getSerialNumber()).collect(Collectors.joining(","));
|
||||
@@ -7314,4 +7337,21 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
return resultUserId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化 法规清单对应的 项目状态评估表
|
||||
* @param projectLawsInventoryId
|
||||
*/
|
||||
public void initConditionAssessmentEO(String projectLawsInventoryId){
|
||||
|
||||
QueryWrapper<ConditionAssessmentEO> removeWrapper = new QueryWrapper<>();
|
||||
removeWrapper.lambda().eq(ConditionAssessmentEO::getProjectLawsInventoryId,projectLawsInventoryId);
|
||||
this.conditionAssessmentEOService.remove(removeWrapper);
|
||||
|
||||
ConditionAssessmentEO conditionAssessmentEO = new ConditionAssessmentEO();
|
||||
conditionAssessmentEO.setRoleCode(ProjectRoleEnum.REGULATI_AND_HOMOLOGATION_ENGINEER.getValue());
|
||||
conditionAssessmentEO.setProjectLawsInventoryId(projectLawsInventoryId);
|
||||
conditionAssessmentEO.setConditionAssessment(CurrentProjectStatusEnum.BLUE.getValue());
|
||||
this.conditionAssessmentEOService.addOrUpdate(conditionAssessmentEO);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -449,8 +449,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
|
||||
QueryWrapper<ProjectLawsInventoryEO> lawsInventoryEOQueryWrapper = new QueryWrapper<>();
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,id);
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getInventoryAffirmStatus, InventoryAffirmStatusEnum.ACCEPTED.getValue());
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getTaskAffirmStatus, TaskAffirmStatusEnum.ACCEPTED.getValue());
|
||||
//lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getInventoryAffirmStatus, InventoryAffirmStatusEnum.ACCEPTED.getValue());
|
||||
//lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getTaskAffirmStatus, TaskAffirmStatusEnum.ACCEPTED.getValue());
|
||||
List<ProjectLawsInventoryEO> projectLawsInventoryEOList = projectLawsInventoryEOMapper.selectList(lawsInventoryEOQueryWrapper);
|
||||
if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){
|
||||
List<String> projectLawsInventoryIdList = projectLawsInventoryEOList.stream().distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList());
|
||||
|
||||
+12
-5
@@ -179,8 +179,8 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
QueryWrapper<ProjectLawsInventoryEO> lawsInventoryEOQueryWrapper = QueryGenerator.initQueryWrapper(projectLawsInventoryEO,req.getParameterMap());
|
||||
//QueryWrapper<ProjectLawsInventoryEO> lawsInventoryEOQueryWrapper = new QueryWrapper<>();
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId);
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getInventoryAffirmStatus, InventoryAffirmStatusEnum.ACCEPTED.getValue());
|
||||
lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getTaskAffirmStatus, TaskAffirmStatusEnum.ACCEPTED.getValue());
|
||||
//lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getInventoryAffirmStatus, InventoryAffirmStatusEnum.ACCEPTED.getValue());
|
||||
//lawsInventoryEOQueryWrapper.lambda().eq(ProjectLawsInventoryEO::getTaskAffirmStatus, TaskAffirmStatusEnum.ACCEPTED.getValue());
|
||||
|
||||
String dutyTerritoryStr = "";
|
||||
if (StringUtils.isNotEmpty(projectTaskInventoryEO.getDutyTerritory())) {
|
||||
@@ -224,7 +224,8 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
taskDetailQueryWrapper.lambda().in(ProjectTaskInventoryDetailEO::getProjectTaskInventoryId,projectLawsInventoryIdList);
|
||||
List<ProjectTaskInventoryDetailEO> projectTaskInventoryDetailEOList = this.projectTaskInventoryDetailEOMapper.selectList(taskDetailQueryWrapper);
|
||||
|
||||
if(CollectionUtils.isNotEmpty(projectTaskInventoryEOList) && CollectionUtils.isNotEmpty(projectTaskInventoryDetailEOList)){
|
||||
//if(CollectionUtils.isNotEmpty(projectTaskInventoryEOList) && CollectionUtils.isNotEmpty(projectTaskInventoryDetailEOList)){
|
||||
if(CollectionUtils.isNotEmpty(projectTaskInventoryEOList)){
|
||||
projectLawsInventoryEOList.forEach(projectLawsInventory -> {
|
||||
projectTaskInventoryEOList.forEach(projectTaskInventory -> {
|
||||
if(StringUtils.equals(projectLawsInventory.getId(),projectTaskInventory.getProjectLawsInventoryId())){
|
||||
@@ -575,7 +576,13 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
//2022-08-24 判断当前登录用户是否是系统管理员 或 R&H Manager角色,如果是的话,看到的数据与studio一致。
|
||||
List<SysUserRole> userRoleList = this.sysUserRoleService.list(new QueryWrapper<SysUserRole>().lambda().eq(SysUserRole::getUserId, currentUser.getId())); // 查询用户所有角色
|
||||
if(CollectionUtils.isNotEmpty(userRoleList)){
|
||||
List<String> roleIdList = CollectManifestRoleIdEnum.getIdList();
|
||||
List<String> roleIdList = new ArrayList<>();
|
||||
|
||||
String adminRoleId = CollectManifestRoleIdEnum.ADMIN_ID.getId();
|
||||
String managerRoleId = CollectManifestRoleIdEnum.MANAGER_ID.getId();
|
||||
roleIdList.add(adminRoleId);
|
||||
roleIdList.add(managerRoleId);
|
||||
|
||||
List<SysUserRole> userRoles = userRoleList.stream().filter(userRole -> {
|
||||
boolean flag = false;
|
||||
for (String roleId : roleIdList) {
|
||||
@@ -803,7 +810,7 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
}
|
||||
|
||||
/*if(StringUtils.isNotEmpty(actiProcInstId) && (isRegulationOwner || isHomologationEngineer || isStudio)){*/
|
||||
if(StringUtils.isNotEmpty(actiProcInstId) && (isStudio || (showVerify || showDesign || showPrehomo))){
|
||||
if(((isRegulationOwner || isHomologationEngineer || isStudio) || (showVerify || showDesign || showPrehomo))){
|
||||
projectTaskInventoryEO.setShowFlag(TaskStatusEnum.SHOW_FLAG.getValue());
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -81,4 +81,7 @@ public class LawsMonthlyReportTitleTemplateEO implements Serializable {
|
||||
|
||||
//排序
|
||||
private int sort;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String key;
|
||||
}
|
||||
|
||||
+4
@@ -220,6 +220,10 @@ public class LawsMonthlyReportTitleTemplateEOServiceImpl extends ServiceImpl<Law
|
||||
public List<LawsMonthlyReportTitleTemplateEO> getPageInfo(LawsMonthlyReportTitleTemplateEO lawsMonthlyReportTitleTemplateEOTemp, HttpServletRequest req) {
|
||||
QueryWrapper<LawsMonthlyReportTitleTemplateEO> queryWrapper = QueryGenerator.initQueryWrapper(lawsMonthlyReportTitleTemplateEOTemp, req.getParameterMap());
|
||||
List<LawsMonthlyReportTitleTemplateEO> lawsMonthlyReportTitleTemplateEOS = this.list(queryWrapper);
|
||||
for (LawsMonthlyReportTitleTemplateEO lawsMonthlyReportTitleTemplateEO : lawsMonthlyReportTitleTemplateEOS) {
|
||||
//前端需要的特殊数据格式
|
||||
lawsMonthlyReportTitleTemplateEO.setKey(lawsMonthlyReportTitleTemplateEO.getId());
|
||||
}
|
||||
List<LawsMonthlyReportTitleTemplateEO> parentList = lawsMonthlyReportTitleTemplateEOS.stream()
|
||||
.filter(e -> StringUtils.isBlank(e.getParentId())).collect(Collectors.toList());
|
||||
Collections.sort(parentList, new Comparator<LawsMonthlyReportTitleTemplateEO>() {
|
||||
|
||||
+3
-3
@@ -60,15 +60,15 @@ public class workFlowController {
|
||||
return this.startTaskToConfirmProcess(jsonObject);
|
||||
}else if(StringUtils.equals(type,FlowTypeEnum.SJFHXSHLC.getValue())){
|
||||
jsonObject.put("id", FlowTypeEnum.SJFHXSHLC.getProcessDefinitionKey());
|
||||
initConditionAssessmentEO(jsonObject);
|
||||
//initConditionAssessmentEO(jsonObject);
|
||||
return this.activiti_define_start(jsonObject);
|
||||
}else if(StringUtils.equals(type,FlowTypeEnum.PREHOMOQRLC.getValue())){
|
||||
jsonObject.put("id", FlowTypeEnum.PREHOMOQRLC.getProcessDefinitionKey());
|
||||
initConditionAssessmentEO(jsonObject);
|
||||
//initConditionAssessmentEO(jsonObject);
|
||||
return this.activiti_define_start(jsonObject);
|
||||
}else if(StringUtils.equals(type,FlowTypeEnum.YZFHXSCLC.getValue())){
|
||||
jsonObject.put("id", FlowTypeEnum.YZFHXSCLC.getProcessDefinitionKey());
|
||||
initConditionAssessmentEO(jsonObject);
|
||||
//initConditionAssessmentEO(jsonObject);
|
||||
return this.activiti_define_start(jsonObject);
|
||||
}else if(StringUtils.equals(type,FlowTypeEnum.FGYJSJLC.getValue())){
|
||||
jsonObject.put("id", FlowTypeEnum.FGYJSJLC.getProcessDefinitionKey());
|
||||
|
||||
@@ -725,6 +725,29 @@
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result || []
|
||||
if (this.dataSource.length == 0) {
|
||||
this.$nextTick(() => {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body')
|
||||
let antfixedLeft = document.querySelectorAll('.ant-table-fixed-left .ant-table-body-inner')
|
||||
let antfixedRight = document.querySelectorAll('.ant-table-fixed-right .ant-table-body-inner')
|
||||
anttablebody[0].classList.add('ant-table-body-one')
|
||||
antfixedLeft[0].classList.add('antfixedLeft')
|
||||
antfixedRight[0].classList.add('antfixedRight')
|
||||
})
|
||||
} else {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body-one')
|
||||
let antfixedLeft = document.getElementsByClassName('antfixedLeft')
|
||||
let antfixedRight = document.getElementsByClassName('antfixedRight')
|
||||
if (anttablebody && anttablebody.length > 0) {
|
||||
anttablebody[0].classList.remove('ant-table-body-one')
|
||||
}
|
||||
if (antfixedLeft && antfixedLeft.length > 0) {
|
||||
antfixedLeft[0].classList.remove('antfixedLeft')
|
||||
}
|
||||
if (antfixedRight && antfixedRight.length > 0) {
|
||||
antfixedRight[0].classList.remove('antfixedRight')
|
||||
}
|
||||
}
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
@@ -1030,6 +1053,37 @@
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent!important;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-fixed-header .ant-table-body-inner {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-inner {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-scroll .ant-table-header::-webkit-scrollbar {
|
||||
/*height: 0;*/
|
||||
width: 0;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-one {
|
||||
padding-bottom: 0!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedLeft {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedRight {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.box-input .ant-select-selection {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<!-- <span class="flow-chart-title">{{ $route.params.processNumber }} {{ $route.params.processTypeName }} 流程图</span>-->
|
||||
</div>
|
||||
<div class="flow-group" style="margin-top: 30px;overflow: auto;">
|
||||
<div class="flow-group" style="margin-top: 30px;overflow: auto;text-align: center">
|
||||
<img :src="processStep" class="process-img">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1507,9 +1507,32 @@
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
this.getRoleByUserId()
|
||||
if (res.success) {
|
||||
this.dataSource = res.result
|
||||
this.dataSource = res.result || []
|
||||
this.loading = false
|
||||
this.JLoading = false
|
||||
if (this.dataSource.length == 0) {
|
||||
this.$nextTick(() => {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body')
|
||||
let antfixedLeft = document.querySelectorAll('.ant-table-fixed-left .ant-table-body-inner')
|
||||
let antfixedRight = document.querySelectorAll('.ant-table-fixed-right .ant-table-body-inner')
|
||||
anttablebody[0].classList.add('ant-table-body-one')
|
||||
antfixedLeft[0].classList.add('antfixedLeft')
|
||||
antfixedRight[0].classList.add('antfixedRight')
|
||||
})
|
||||
} else {
|
||||
let anttablebody = document.getElementsByClassName('ant-table-body-one')
|
||||
let antfixedLeft = document.getElementsByClassName('antfixedLeft')
|
||||
let antfixedRight = document.getElementsByClassName('antfixedRight')
|
||||
if (anttablebody && anttablebody.length > 0) {
|
||||
anttablebody[0].classList.remove('ant-table-body-one')
|
||||
}
|
||||
if (antfixedLeft && antfixedLeft.length > 0) {
|
||||
antfixedLeft[0].classList.remove('antfixedLeft')
|
||||
}
|
||||
if (antfixedRight && antfixedRight.length > 0) {
|
||||
antfixedRight[0].classList.remove('antfixedRight')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.JLoading = false
|
||||
this.loading = false
|
||||
@@ -2052,7 +2075,7 @@
|
||||
commentContent: this.$t('For') + content.join(',') + this.$t('markedRejection') + ':' + this.formInlineComment.commentContent,
|
||||
projectLibraryId: this.$route.query.id
|
||||
}
|
||||
this.rejectCauseAdd(this.formInlineComment.commentContent,ids)
|
||||
this.rejectCauseAdd(this.formInlineComment.commentContent, ids)
|
||||
this.confirmLoadingComment = true
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
this.updateStatusBatch(1, selectedRowKeys)
|
||||
@@ -2067,14 +2090,14 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
rejectCauseAdd(rejectCause,ids) {
|
||||
rejectCauseAdd(rejectCause, ids) {
|
||||
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
let query = {
|
||||
rejectUserId:this.userInfo().id,
|
||||
rejectTime:rejectTime,
|
||||
rejectCause:rejectCause,
|
||||
projectLawsInventoryId:ids.join(','),
|
||||
rejectType:'0',
|
||||
rejectUserId: this.userInfo().id,
|
||||
rejectTime: rejectTime,
|
||||
rejectCause: rejectCause,
|
||||
projectLawsInventoryId: ids.join(','),
|
||||
rejectType: '0'
|
||||
}
|
||||
postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => {
|
||||
|
||||
@@ -2413,6 +2436,58 @@
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body::-webkit-scrollbar {
|
||||
z-index: 10000000;
|
||||
}
|
||||
|
||||
/*::v-deep .ant-table .ant-table-fixed-left {*/
|
||||
/* height: auto !important;*/
|
||||
/* bottom: 8px !important;*/
|
||||
/*}*/
|
||||
|
||||
/*::v-deep .ant-table .ant-table-fixed-right {*/
|
||||
/* height: auto !important;*/
|
||||
/* bottom: 8px !important;*/
|
||||
/*}*/
|
||||
|
||||
::v-deep .ant-table-fixed-header .ant-table-body-inner {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/*::v-deep .ant-table-fixed-left .ant-table-body-inner {*/
|
||||
/* overflow-y: scroll;*/
|
||||
/*}*/
|
||||
|
||||
/*::v-deep .ant-table-fixed-right .ant-table-body-inner {*/
|
||||
/* overflow-y: scroll;*/
|
||||
/*}*/
|
||||
::v-deep .ant-table-body {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-inner {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-scroll .ant-table-header::-webkit-scrollbar {
|
||||
/*height: 0;*/
|
||||
width: 0;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body-one {
|
||||
padding-bottom: 0!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedLeft {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
|
||||
::v-deep .antfixedRight {
|
||||
padding-bottom: 0!important;
|
||||
overflow: scroll!important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.box-input .ant-select-selection {
|
||||
|
||||
Reference in New Issue
Block a user