|
|
|
|
@ -108,12 +108,35 @@ public class DataPetitionComplaintController {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (StrUtil.isNotBlank(data.getTurnAround())) { |
|
|
|
|
String departPart = data.getTurnAround().replace("公安", ""); |
|
|
|
|
//具体承办单位
|
|
|
|
|
if (StrUtil.isNotBlank(data.getHandleDepartName())){ |
|
|
|
|
String deparPart = data.getHandleDepartName().replace("长沙市公安局", "").replace("公安","");; |
|
|
|
|
List<SupDepart> departs = departService.list(new LambdaQueryWrapper<SupDepart>().like(SupDepart::getShortName,deparPart)); |
|
|
|
|
if (departs.size() == 1) { |
|
|
|
|
data.setDepartId(departs.get(0).getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (StrUtil.isNotBlank(data.getTurnAround())) { |
|
|
|
|
//转往处
|
|
|
|
|
String departPart = data.getTurnAround().replace("长沙市公安局", "").replace("公安",""); |
|
|
|
|
List<SupDepart> departs = departService.list(new LambdaQueryWrapper<SupDepart>().eq(SupDepart::getShortName, departPart)); |
|
|
|
|
if (departs.size() == 1) { |
|
|
|
|
data.setDepartId(departs.get(0).getId()); |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
|
|
|
|
|
if (!"长沙市公安局".equals(data.getRegister())){ |
|
|
|
|
String departPart; |
|
|
|
|
departPart = data.getRegister().replace("长沙市公安局", "").replace("公安", ""); |
|
|
|
|
List<SupDepart> departs = departService.list(new LambdaQueryWrapper<SupDepart>().eq(SupDepart::getShortName, departPart)); |
|
|
|
|
if (departs.size() == 1) { |
|
|
|
|
data.setDepartId(departs.get(0).getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|