Commit 6f53b218 authored by dahai's avatar dahai

添加添加快证任务单API

parent 6c54680a
......@@ -176,9 +176,7 @@ public class TaskListApi {
List<Object> objects = taskListService.selectGroupAtACCU(groupNo);
boolean b = taskListService.saveTask(objects,name,0+"");
}
//todo 保存任务单数据
return "成功生成循环单";
}
......@@ -190,43 +188,12 @@ public class TaskListApi {
* countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @return
*/
// @RequestMapping("createTask")
// @Transactional
// public String queryByCountyAtACCU(@RequestBody String str, HttpServletResponse resp){
// System.out.println(str);
// JSONObject jsonObject = JSONObject.fromObject(str);
// String date = jsonObject.getString("date");
// String name = jsonObject.getString("name");
//// String process = jsonObject.getString("tag");
// JSONArray jsonCounty = jsonObject.getJSONArray("countyList");
// JSONArray jsonGroup = jsonObject.getJSONArray("groupList");
// List<Map<String,Object>> countyList =(List<Map<String,Object>>)jsonCounty;
// //正常生成区县任务单
// for (Map<String,Object> map :countyList){
// String typeCode = map.get("typeCode").toString();
// String countyCode = map.get("countyCode").toString();
// List<Object> objects = taskListService.selectGroupAtACCU(replaceDate(date), typeCode, countyCode);
// boolean b = taskListService.saveTask(objects,name,0+"");
// }
// //生成某几个组的区县任务单
// if (jsonGroup.size()>0){
// List<String> groupList =(List<String>)jsonGroup;
// //查询组号详情
// String groupNo = "(";
// for ( int i= 0; i<groupList.size();i++){
// if (i!=groupList.size()-1){
// groupNo=groupNo+groupList.get(i)+",";
// }else {
// groupNo=groupNo+groupList.get(i)+")";
// }
// }
// List<Object> objects = taskListService.selectGroupAtACCU(groupNo);
// boolean b = taskListService.saveTask(objects,name,0+"");
// }
// //todo 保存任务单数据
// return "成功生成循环单";
//
// }
@RequestMapping("createFastTask")
@Transactional
public String createFastTask(@RequestBody String str, HttpServletResponse resp){
//todo
return null;
}
......
......@@ -342,7 +342,7 @@ public class TaskListServiceImpl implements TaskListService {
Map<String,Object> typemap = new LinkedHashMap<>();
for (Map<String,Object> o:mapList){
if (typemap!=null&&typemap.containsKey(o.get("TASK_ID")+"")){
List<Map<String,Object>> maplist_county= (List<Map<String,Object>>)typemap.get(o.get("TASK_ID"));
List<Map<String,Object>> maplist_county= (List<Map<String,Object>>)typemap.get(o.get("TASK_ID")+"");
maplist_county.add(o);
typemap.put(o.get("TASK_ID")+"",maplist_county);
}else {
......
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