|
|
|
|
@ -160,21 +160,34 @@ public class Job {
|
|
|
|
|
} |
|
|
|
|
//获取单位进行处理
|
|
|
|
|
if(StrUtil.isNotEmpty(ajjbxx.getBadwidmc())){ |
|
|
|
|
String unitName = ajjbxx.getBadwidmc(); |
|
|
|
|
log.info("单位名称:",ajjbxx.getBadwidmc()); |
|
|
|
|
SupDepart supDepart=supDepartMapper.selectOne(new LambdaQueryWrapper<SupDepart>().eq(SupDepart::getName,ajjbxx.getBadwidmc())); |
|
|
|
|
if(!unitName.contains("长沙市公安局")){ |
|
|
|
|
unitName = ajjbxx.getBadwidmc().split("湖南省")[1]; |
|
|
|
|
} |
|
|
|
|
SupDepart supDepart=supDepartMapper.selectOne(new LambdaQueryWrapper<SupDepart>().eq(SupDepart::getName,unitName)); |
|
|
|
|
if(ObjectUtil.isNotEmpty(supDepart)){ |
|
|
|
|
rpcApply.setDepartId(supDepart.getId()); |
|
|
|
|
rpcApply.setDepartName(supDepart.getShortName()); |
|
|
|
|
} |
|
|
|
|
//获取二级单位的信息
|
|
|
|
|
String[] depts = ajjbxx.getBadwidmc().split("局"); |
|
|
|
|
String StatisticsGroupName = null; |
|
|
|
|
if(depts.length >= 2){ |
|
|
|
|
StatisticsGroupName = depts[0]+"局"+depts[1]+"局"; |
|
|
|
|
//判断是否为非长沙市公安局
|
|
|
|
|
if(!unitName.contains("长沙市公安局")){ |
|
|
|
|
//非长沙市公安局
|
|
|
|
|
String[] depts = ajjbxx.getBadwidmc().split("局")[0].split("省"); |
|
|
|
|
if(depts.length > 0){ |
|
|
|
|
StatisticsGroupName="湖南省长沙市公安局" + depts[1]+"局"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
StatisticsGroupName = depts[0]+"局"; |
|
|
|
|
//长沙市公安局
|
|
|
|
|
StatisticsGroupName ="长沙市公安局"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SupDepart groupDept= supDepartMapper.selectOne(new LambdaQueryWrapper<SupDepart>().eq(SupDepart::getName,StatisticsGroupName)); |
|
|
|
|
if(ObjectUtil.isNotEmpty(groupDept)){ |
|
|
|
|
rpcApply.setSecondDepartId(groupDept.getId()); |
|
|
|
|
|