67761 法规清单导出,责任领域串数据问题修改。
This commit is contained in:
+1
@@ -101,6 +101,7 @@ public class SysDictItem implements Serializable {
|
||||
private java.lang.String attributeType;
|
||||
|
||||
/**逻辑删除标识*/
|
||||
/**value:0可用,1逻辑删除**/
|
||||
@TableLogic
|
||||
public Integer delFlag;
|
||||
|
||||
|
||||
+12
-10
@@ -4,16 +4,17 @@ package com.jero.modules.system.enums;
|
||||
* 数据字典code枚举类
|
||||
*/
|
||||
public enum DicCodeEnum {
|
||||
REGION("适用地区","0","region"),
|
||||
REGION("适用地区","1493782108399820801","region"),
|
||||
DUTY_TERRITORY("责任领域","1513417672023441409","duty_territory"),
|
||||
;
|
||||
|
||||
String name;
|
||||
String value;
|
||||
String id;
|
||||
String code;
|
||||
|
||||
private DicCodeEnum(String name, String value, String code) {
|
||||
private DicCodeEnum(String name, String id, String code) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
this.id = id;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@@ -25,13 +26,14 @@ public enum DicCodeEnum {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
@@ -40,10 +42,10 @@ public enum DicCodeEnum {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public static String getTextByValue(String value) {
|
||||
public static String getTextByCode(String code) {
|
||||
DicCodeEnum[] values = values();
|
||||
for (DicCodeEnum dicCodeEnum : values) {
|
||||
if (dicCodeEnum.value.equals(value)) {
|
||||
if (dicCodeEnum.code.equals(code)) {
|
||||
return dicCodeEnum.name;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public interface SysDictItemMapper extends BaseMapper<SysDictItem> {
|
||||
@Select("SELECT sys_dict_item.* FROM sys_dict_item LEFT JOIN sys_dict ON sys_dict_item.dict_id = sys_dict.id WHERE DICT_CODE = #{dictCode} order by sys_dict_item.item_text asc")
|
||||
public List<SysDictItem> selectItemsOrderBySortOrder(String dictCode);
|
||||
|
||||
@Select("SELECT sys_dict.dict_code,sys_dict_item.* from sys_dict_item LEFT JOIN sys_dict ON sys_dict_item.dict_id = sys_dict.id where status = 1")
|
||||
@Select("SELECT sys_dict.dict_code,sys_dict_item.* from sys_dict_item LEFT JOIN sys_dict ON sys_dict_item.dict_id = sys_dict.id where status = 1 and sys_dict_item.del_flag = 0")
|
||||
List<SysDictItem> selectItemsAll();
|
||||
|
||||
/**
|
||||
|
||||
+9
-2
@@ -57,12 +57,14 @@ import com.jero.modules.system.entity.SysCategory;
|
||||
import com.jero.modules.system.entity.SysDictItem;
|
||||
import com.jero.modules.system.entity.SysRole;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
import com.jero.modules.system.enums.DicCodeEnum;
|
||||
import com.jero.modules.system.mapper.SysCategoryMapper;
|
||||
import com.jero.modules.system.mapper.SysDictItemMapper;
|
||||
import com.jero.modules.system.mapper.SysRoleMapper;
|
||||
import com.jero.modules.system.mapper.SysUserMapper;
|
||||
import com.jero.modules.system.service.IProjectUserDutyTerritoryService;
|
||||
import com.jero.modules.system.service.ISysAnnouncementService;
|
||||
import com.jero.modules.system.service.ISysDictItemService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.system.service.impl.SysCategoryServiceImpl;
|
||||
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
||||
@@ -254,6 +256,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
@Autowired
|
||||
private IProjectUserDutyTerritoryService projectUserDutyTerritoryService;
|
||||
|
||||
@Autowired
|
||||
private ISysDictItemService sysDictItemService;
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*
|
||||
@@ -6868,6 +6873,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
String value = "";
|
||||
boolean flag = true;
|
||||
|
||||
List<SysDictItem> dutyTerritoryDictItemList = this.sysDictItemService.selectItemsByDictCode(DicCodeEnum.DUTY_TERRITORY.getCode());
|
||||
|
||||
List<String> userNameList = new ArrayList<>();
|
||||
String designDutyIds = dataList.stream().map(ProjectLawsInventoryEO::getDesignDutyId).collect(Collectors.joining(","));
|
||||
String verifyDutyIds = dataList.stream().map(ProjectLawsInventoryEO::getVerifyDutyId).collect(Collectors.joining(","));
|
||||
@@ -7008,7 +7015,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
//责任领域(多选必填)
|
||||
flag = must(projectLawsInventoryEO, errorMsg, msgList, dutyTerritory,"责任领域","Responsible Field");
|
||||
if(flag){
|
||||
value = pullMore(dictItemList, projectLawsInventoryEO, errorMsg, dutyTerritory,msgList,"责任领域","Responsible Field","duty_territory");
|
||||
value = pullMore(dutyTerritoryDictItemList, projectLawsInventoryEO, errorMsg, dutyTerritory,msgList,"责任领域","Responsible Field","duty_territory");
|
||||
if(StringUtils.isNotBlank(value)){
|
||||
//工程接口人(责任领域下的工程接口人)
|
||||
Map<String, Object> objectMap = iProjectRelatedPersonnelService.queryPersonByProjectId(projectLawsInventoryEOTemp.getProjectLibraryId(), value);
|
||||
@@ -7055,7 +7062,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
//交付物类型
|
||||
value = tree(categoryList,treeNameList, projectLawsInventoryEO, errorMsg, designDeliverableType,msgList,"交付物类型","Deliverable Type","deliverable_template");
|
||||
if(StringUtils.isNotBlank(value)){
|
||||
String treeId = getTreeId(categoryList, projectLawsInventoryEOTemp, treeNameList, value);
|
||||
String treeId = getTreeId(categoryList, projectLawsInventoryEOTemp, treeNameList, value);s
|
||||
projectLawsInventoryEO.setDesignDeliverableType(treeId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user