Browse Source

修改25号模型:重点人员管控人数过多3

main
sjh 1 year ago
parent
commit
0bb150323a
  1. 30
      src/main/java/com/biutag/supervision/service/ModelClueService.java

30
src/main/java/com/biutag/supervision/service/ModelClueService.java

@ -804,35 +804,37 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
Object countObj = map.get("num");
if (countObj instanceof Integer) {
int count = (Integer) countObj;
if (count <= 200) {
if (count <= 2) {
continue;
}
} else if (countObj instanceof Long) {
long count = (Long) countObj;
if (count <= 200L) {
if (count <= 2L) {
continue;
}
}
ModelClue newModelClue = new ModelClue();
newModelClue.setInvolvePoliceName((String) map.get("xzdzrr"));
List<Map<String, Object>> maps = modelClueDataMapper.selectByUniqueKeys("select * from dwd_ry_zddxgk_zdry where xzdzrr = '" + map.get("xzdzrr") + "';");
String xzdpcsdm = "";
String xzdpcs = "";
String gxdwjgdm = "";
String gxdw = "";
String xzdzrr = "";
for (Map<String, Object> stringObjectMap : maps) {
if (stringObjectMap.get("xzdpcsdm") != null) {
newModelClue.setInvolveDepartId((String) stringObjectMap.get("xzdpcsdm"));
if (stringObjectMap.get("gxdwjgdm") != null && !stringObjectMap.get("gxdwjgdm").equals("")) {
gxdwjgdm = (String) stringObjectMap.get("gxdwjgdm");
newModelClue.setInvolveDepartId(gxdwjgdm);
}
if (stringObjectMap.get("xzdpcs") != null) {
newModelClue.setInvolveDepartName((String) stringObjectMap.get("xzdpcs"));
if (stringObjectMap.get("gxdw") != null && !stringObjectMap.get("gxdw").equals("")) {
gxdw = (String) stringObjectMap.get("gxdw");
newModelClue.setInvolveDepartName(gxdw);
}
if (stringObjectMap.get("xzdzrr") != null && !stringObjectMap.get("xzdzrr").equals("")) {
xzdzrr = (String) stringObjectMap.get("xzdzrr");
}
xzdpcsdm = (String) stringObjectMap.get("xzdpcsdm");
xzdpcs = (String) stringObjectMap.get("xzdpcs");
xzdzrr = (String) stringObjectMap.get("xzdzrr");
}
newModelClue.setUniqueKey(xzdpcsdm + xzdzrr);
newModelClue.setNegativeIdEx(xzdpcsdm + xzdzrr);
newModelClue.setInvolveDepartName(xzdpcs);
newModelClue.setUniqueKey(gxdwjgdm + xzdzrr);
newModelClue.setNegativeIdEx(gxdwjgdm + xzdzrr);
newModelClue.setInvolveDepartName(gxdw);
if (newModelClue.getInvolveDepartId() != null) {
SupExternalDepart supExternalDepart = supExternalDepartMapper.selectOne(new LambdaQueryWrapper<SupExternalDepart>().eq(SupExternalDepart::getInternalId, newModelClue.getInvolveDepartId()).last("LIMIT 1"));
if (supExternalDepart != null) {

Loading…
Cancel
Save