|
|
|
|
@ -801,16 +801,40 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
for (Map<String, Object> map : sqlList) { |
|
|
|
|
Object countObj = map.get("num"); |
|
|
|
|
if (countObj instanceof Integer) { |
|
|
|
|
int count = (Integer) countObj; |
|
|
|
|
if (count <= 200) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} else if (countObj instanceof Long) { |
|
|
|
|
long count = (Long) countObj; |
|
|
|
|
if (count <= 200L) { |
|
|
|
|
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") + "';"); |
|
|
|
|
for (Map<String, Object> stringObjectMap : maps) { |
|
|
|
|
if (stringObjectMap.get("xzdpcsdm") != null) { |
|
|
|
|
newModelClue.setInvolveDepartId((String) stringObjectMap.get("xzdpcsdm")); |
|
|
|
|
} |
|
|
|
|
if (stringObjectMap.get("xzdpcs") != null) { |
|
|
|
|
newModelClue.setInvolveDepartName((String) stringObjectMap.get("xzdpcs")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
newModelClue.setUniqueKey((String) map.get("xzdpcsdm") + map.get("xzdzrr")); |
|
|
|
|
newModelClue.setNegativeIdEx((String) map.get("xzdpcsdm") + map.get("xzdzrr")); |
|
|
|
|
newModelClue.setInvolveDepartName((String) map.get("xzdpcs")); |
|
|
|
|
SupExternalDepart supExternalDepart = supExternalDepartMapper.selectOne(new LambdaQueryWrapper<SupExternalDepart>().eq(SupExternalDepart::getInternalId, map.get("xzdpcsdm")).last("LIMIT 1")); |
|
|
|
|
if (newModelClue.getInvolveDepartId() != null) { |
|
|
|
|
SupExternalDepart supExternalDepart = supExternalDepartMapper.selectOne(new LambdaQueryWrapper<SupExternalDepart>().eq(SupExternalDepart::getInternalId, newModelClue.getInvolveDepartId()).last("LIMIT 1")); |
|
|
|
|
if (supExternalDepart != null) { |
|
|
|
|
if (supExternalDepart.getInternalId() != null) { |
|
|
|
|
newModelClue.setInvolveDepartId(supExternalDepart.getInternalId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
newModelClue.setData(JSONObject.toJSONString(map)); |
|
|
|
|
newModelClue.setDistributionState("0"); |
|
|
|
|
newModelClue.setThingDesc( |
|
|
|
|
|