Commit a6860509 authored by 麻笑宇's avatar 麻笑宇

1.公司详情增加证件类型

2.人员列表增加设备类型字段和筛选字段为equipTypeName,筛选条件为equipType
parent c1adfde9
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
tui.profile, tui.profile,
tui.certificate_num certificateNum, tui.certificate_num certificateNum,
tui.post_name postName, tui.post_name postName,
tui.phone tui.phone,
tui.equip_type equipType
FROM FROM
tzs_user_info tui tzs_user_info tui
where where
...@@ -117,6 +118,9 @@ ...@@ -117,6 +118,9 @@
<if test="map.post != null and map.post != ''"> <if test="map.post != null and map.post != ''">
AND tui.post LIKE concat ( '%', #{map.post}, '%' ) AND tui.post LIKE concat ( '%', #{map.post}, '%' )
</if> </if>
<if test="map.equipType != null and map.equipType != ''">
AND tui.equip_type LIKE concat ( '%', #{map.equipType}, '%' )
</if>
</select> </select>
<select id="getPostList" resultType="java.util.Map"> <select id="getPostList" resultType="java.util.Map">
SELECT SELECT
......
...@@ -28,8 +28,10 @@ import com.yeejoin.amos.boot.module.statistics.api.mapper.EnterpriseBizMapper; ...@@ -28,8 +28,10 @@ import com.yeejoin.amos.boot.module.statistics.api.mapper.EnterpriseBizMapper;
import com.yeejoin.amos.boot.module.statistics.api.mapper.PlanTaskMapper; import com.yeejoin.amos.boot.module.statistics.api.mapper.PlanTaskMapper;
import com.yeejoin.amos.boot.module.statistics.api.mapper.TzsBaseInstitutionMapper; import com.yeejoin.amos.boot.module.statistics.api.mapper.TzsBaseInstitutionMapper;
import com.yeejoin.amos.boot.module.ymt.api.dto.BaseUnitLicenceDto; import com.yeejoin.amos.boot.module.ymt.api.dto.BaseUnitLicenceDto;
import com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto;
import com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence; import com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence;
import com.yeejoin.amos.boot.module.ymt.api.mapper.BaseUnitLicenceMapper; import com.yeejoin.amos.boot.module.ymt.api.mapper.BaseUnitLicenceMapper;
import com.yeejoin.amos.boot.module.ymt.api.mapper.EquipmentCategoryMapper;
import com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper; import com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper;
import com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitIcDto; import com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitIcDto;
import com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitInfoDto; import com.yeejoin.amos.boot.module.ymt.flc.api.dto.RegUnitInfoDto;
...@@ -86,6 +88,8 @@ public class EnterpriseBizByTCMServiceImpl { ...@@ -86,6 +88,8 @@ public class EnterpriseBizByTCMServiceImpl {
private PlanTaskMapper planTaskMapper; private PlanTaskMapper planTaskMapper;
private EquipmentCategoryMapper equipmentCategoryMapper;
public EnterpriseBizByTCMServiceImpl(RedisUtils redisUtils, StCommonServiceImpl stCommonService, public EnterpriseBizByTCMServiceImpl(RedisUtils redisUtils, StCommonServiceImpl stCommonService,
TzBaseEnterpriseInfoMapper tzBaseEnterpriseInfoMapper, TzBaseEnterpriseInfoMapper tzBaseEnterpriseInfoMapper,
EnterpriseBizMapper enterpriseBizMapper, EnterpriseBizMapper enterpriseBizMapper,
...@@ -95,7 +99,8 @@ public class EnterpriseBizByTCMServiceImpl { ...@@ -95,7 +99,8 @@ public class EnterpriseBizByTCMServiceImpl {
BaseUnitLicenceMapper baseUnitLicenceMapper, BaseUnitLicenceMapper baseUnitLicenceMapper,
RegUnitInfoMapper regUnitInfoMapper, RegUnitInfoMapper regUnitInfoMapper,
RegUnitIcMapper regUnitIcMapper, RegUnitIcMapper regUnitIcMapper,
PlanTaskMapper planTaskMapper) { PlanTaskMapper planTaskMapper,
EquipmentCategoryMapper equipmentCategoryMapper) {
this.redisUtils = redisUtils; this.redisUtils = redisUtils;
this.stCommonService = stCommonService; this.stCommonService = stCommonService;
this.tzBaseEnterpriseInfoMapper = tzBaseEnterpriseInfoMapper; this.tzBaseEnterpriseInfoMapper = tzBaseEnterpriseInfoMapper;
...@@ -107,6 +112,7 @@ public class EnterpriseBizByTCMServiceImpl { ...@@ -107,6 +112,7 @@ public class EnterpriseBizByTCMServiceImpl {
this.regUnitInfoMapper = regUnitInfoMapper; this.regUnitInfoMapper = regUnitInfoMapper;
this.regUnitIcMapper = regUnitIcMapper; this.regUnitIcMapper = regUnitIcMapper;
this.planTaskMapper = planTaskMapper; this.planTaskMapper = planTaskMapper;
this.equipmentCategoryMapper = equipmentCategoryMapper;
} }
public Map<String, Object> getInfoByUseCodeMap(String useCode) { public Map<String, Object> getInfoByUseCodeMap(String useCode) {
...@@ -441,6 +447,23 @@ public class EnterpriseBizByTCMServiceImpl { ...@@ -441,6 +447,23 @@ public class EnterpriseBizByTCMServiceImpl {
public Page<Map<String,Object>> getPersonPage(JSONObject map, Page page) { public Page<Map<String,Object>> getPersonPage(JSONObject map, Page page) {
Page<Map<String, Object>> result = planTaskMapper.getPersonPage(page, map); Page<Map<String, Object>> result = planTaskMapper.getPersonPage(page, map);
List<EquipmentCategoryDto> equipmentCategoryDtos = equipmentCategoryMapper.selectClassify();
Map<String,String> equipType = new HashMap<>();
for(EquipmentCategoryDto dto : equipmentCategoryDtos){
equipType.put(dto.getCode(),dto.getName());
}
for(Map<String,Object> m : result.getRecords()){
if(StrUtil.isNotEmpty((String) m.get("equipType"))){
JSONArray array = JSONArray.parseArray(m.get("equipType")+"");
array.forEach(t->{
if(StrUtil.isEmpty((String) m.get("equipTypeName"))){
m.put("equipTypeName",equipType.get(t+""));
}else{
m.put("equipTypeName",m.get("equipTypeName")+"/"+equipType.get(t+""));
}
});
}
}
return result; return result;
} }
......
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
"keyParams": [ "keyParams": [
{ "key": "unitType", "label": "单位类型" }, { "key": "unitType", "label": "单位类型" },
{ "key": "useUnit", "label": "单位名称" }, { "key": "useUnit", "label": "单位名称" },
{ "key": "useUnitCertificate", "label": "证件类型" },
{ "key": "useUnitCode", "label": "证件号码" }, { "key": "useUnitCode", "label": "证件号码" },
{ "key": "governingBody", "label": "管辖机构" }, { "key": "governingBody", "label": "管辖机构" },
{ "key": "address", "label": "地址" }, { "key": "address", "label": "地址" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment