Commit a2ca388f authored by dahai's avatar dahai

修改查询任务单详情

parent b9d35a90
...@@ -163,7 +163,7 @@ public class TaskListApi { ...@@ -163,7 +163,7 @@ public class TaskListApi {
/** /**
* 查询任务单详情 * 查询任务单详情
* (辅助库) * (辅助库)
* *(下发、数据核验)
* @param process 工序 * @param process 工序
* @param resp * @param resp
* @return * @return
...@@ -177,15 +177,15 @@ public class TaskListApi { ...@@ -177,15 +177,15 @@ public class TaskListApi {
/** /**
* 查询任务单详情 * 查询任务单详情
* (辅助库) * (辅助库)
* *(预订位、平压、冲切)
* @param process 工序 * @param process 工序
* @param resp * @param resp
* @return * @return
*/ */
@RequestMapping("queryByCountyAtAuxiliaryState1") @RequestMapping("queryByCountyAtAuxiliaryState1")
public List<Object> queryByCountyAtAuxiliaryState1(@RequestParam("process") String process, HttpServletResponse resp) { public Map queryByCountyAtAuxiliaryState1(@RequestParam("process") String process, HttpServletResponse resp) {
List<Object> objects = taskListService.selectByCountyAtAuxiliary(Long.valueOf(process) - 1); Map map = taskListService.selectByCountyAtAuxiliary2(Long.valueOf(process) - 1);
return objects; return map;
} }
/** /**
......
...@@ -29,6 +29,8 @@ public interface TaskListService { ...@@ -29,6 +29,8 @@ public interface TaskListService {
public List<Object> selectByCountyAtAuxiliary(long process); public List<Object> selectByCountyAtAuxiliary(long process);
public Map selectByCountyAtAuxiliary2(long process);
public List<Object> selectGroupAtACCU(String date,String typeCode,String countyCode); public List<Object> selectGroupAtACCU(String date,String typeCode,String countyCode);
public List<Object> selectGroupAtACCU(String groupNo); public List<Object> selectGroupAtACCU(String groupNo);
......
...@@ -217,6 +217,7 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -217,6 +217,7 @@ public class TaskListServiceImpl implements TaskListService {
/** /**
* 查询任务单详情 * 查询任务单详情
* 辅助库 * 辅助库
* (下发、数据核验)
* @param process 查询工序 * @param process 查询工序
* @return * @return
*/ */
...@@ -236,6 +237,37 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -236,6 +237,37 @@ public class TaskListServiceImpl implements TaskListService {
return list; return list;
} }
/**
* 查询任务单详情
* 辅助库
* (预订位、平压、冲切)
* @param process 查询工序
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Map selectByCountyAtAuxiliary2(long process) {
//查询普通组号列表 在辅助库中
List<Map<String, Object>> mapList_common = taskListMapper.selectByCountyAtAuxiliary_common(process);
//查询快证组号列表 在辅助库中
List<Map<String, Object>> mapList_fast = taskListMapper.selectByCountyAtAuxiliary_fast(process);
//查询余证组号列表 在辅助库中
List<Map<String, Object>> mapList_remaind = taskListMapper.selectByCountyAtAuxiliary_remaind(process);
List<Map<String,Object>> list = new ArrayList<>();
list = formateMap(mapList_common);
list.addAll(formateMap(mapList_fast));
list.addAll(formateMap(mapList_remaind));
int total =0;
for (Map<String,Object> map : list){
total+=Integer.valueOf(map.get("typeSum").toString());
}
Map<String,Object> map = new LinkedHashMap<>();
map.put("total",total);
map.put("typeList",list);
return map;
}
/** /**
* 查询组号信息 * 查询组号信息
* 受理库 * 受理库
...@@ -412,7 +444,7 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -412,7 +444,7 @@ public class TaskListServiceImpl implements TaskListService {
} }
private List formateMap(List<Map<String, Object>> maplist){ private List<Map<String,Object>> formateMap(List<Map<String, Object>> maplist){
Map<String,Object> typeMap = new LinkedHashMap<>(); Map<String,Object> typeMap = new LinkedHashMap<>();
for (Map o :maplist){ for (Map o :maplist){
// 组合JSON // 组合JSON
......
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