Commit 4c07ab9f authored by liuxinben's avatar liuxinben

生成任务单,创建数据合核验报表逻辑修改

parent 50566cf9
......@@ -759,12 +759,21 @@ public class TaskListServiceImpl implements TaskListService {
groupNoMapper.saveGroupNo(groupNoEntity);
}
// 查询数据核验报表信息 并保存数据核验报表
List<Map<String, Object>> mapList = dataAuditingMapper.selectDataAuditingEntity(groupNo);
for (Map<String, Object> map : mapList){
// List<Map<String, Object>> mapList = dataAuditingMapper.selectDataAuditingEntity(groupNo);
// for (Map<String, Object> map : mapList){
// DataAuditingEntity dataAuditingEntity = new DataAuditingEntity();
// dataAuditingEntity.setValidCount(Long.valueOf(map.get("INVALID_COUNT")+""));
// dataAuditingEntity.setValidCount(Long.valueOf(map.get("VALID_COUNT")+""));
// dataAuditingEntity.setPoliceSubstation(map.get("POLICE_SUBSTATION")+"");
// dataAuditingEntity.setTaskId(taskEntity.getTaskId());
// dataAuditingMapper.saveDataAuditingEntity(dataAuditingEntity);
// }
for (Object object : list) {
Map<String, Object> map = (Map<String, Object>) object;
DataAuditingEntity dataAuditingEntity = new DataAuditingEntity();
dataAuditingEntity.setValidCount(Long.valueOf(map.get("INVALID_COUNT")+""));
dataAuditingEntity.setValidCount(Long.valueOf(map.get("VALID_COUNT")+""));
dataAuditingEntity.setPoliceSubstation(map.get("POLICE_SUBSTATION")+"");
dataAuditingEntity.setInvalidCount(Long.valueOf(map.get("INVALID_COUNT") + ""));
dataAuditingEntity.setValidCount(Long.valueOf(map.get("VALID_COUNT") + ""));
dataAuditingEntity.setPoliceSubstation(map.get("COUNTY_CODE") + "");
dataAuditingEntity.setTaskId(taskEntity.getTaskId());
dataAuditingMapper.saveDataAuditingEntity(dataAuditingEntity);
}
......
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