Commit 53d307a2 authored by dahai's avatar dahai

push

parent feca00ef
...@@ -594,22 +594,24 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -594,22 +594,24 @@ public class TaskListServiceImpl implements TaskListService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean saveTask(List<Map<String, Object>> list, String submitName, String process) { public boolean saveTask(List<Map<String, Object>> list, String submitName, String process) {
Map<String, Object> stringObjectMap = list.get(0); if (list.size()>0){
TaskEntity taskEntity = new TaskEntity(); Map<String, Object> stringObjectMap = list.get(0);
taskEntity.setCardType(Long.valueOf(stringObjectMap.get("CARD_TYPE_ID") + "")); TaskEntity taskEntity = new TaskEntity();
taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE") + ""); taskEntity.setCardType(Long.valueOf(stringObjectMap.get("CARD_TYPE_ID") + ""));
taskEntity.setSubmitName(submitName); taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE") + "");
taskEntity.setTaskStateId(Long.valueOf(process)); taskEntity.setSubmitName(submitName);
saveTask(taskEntity); taskEntity.setTaskStateId(Long.valueOf(process));
for (Object object : list) { saveTask(taskEntity);
Map<String, Object> map = (Map<String, Object>) object; for (Object object : list) {
GroupNoEntity groupNoEntity = new GroupNoEntity(); Map<String, Object> map = (Map<String, Object>) object;
groupNoEntity.setGroupNo(map.get("GROUP_NO") + ""); GroupNoEntity groupNoEntity = new GroupNoEntity();
groupNoEntity.setInvalidCount(Long.valueOf(map.get("INVALID_COUNT") + "")); groupNoEntity.setGroupNo(map.get("GROUP_NO") + "");
groupNoEntity.setValidCount(Long.valueOf(map.get("VALID_COUNT") + "")); groupNoEntity.setInvalidCount(Long.valueOf(map.get("INVALID_COUNT") + ""));
groupNoEntity.setSpecialCardCount((long) 0); groupNoEntity.setValidCount(Long.valueOf(map.get("VALID_COUNT") + ""));
groupNoEntity.setTaskId(taskEntity.getTaskId()); groupNoEntity.setSpecialCardCount((long) 0);
groupNoMapper.saveGroupNo(groupNoEntity); groupNoEntity.setTaskId(taskEntity.getTaskId());
groupNoMapper.saveGroupNo(groupNoEntity);
}
} }
return true; return true;
......
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