Commit d345bead authored by dahai's avatar dahai

修改膜打印 更新工作组数据API

parent 62b4390d
...@@ -68,7 +68,7 @@ public class ReadExcelApi { ...@@ -68,7 +68,7 @@ public class ReadExcelApi {
try { try {
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器) //将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver( CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver(
requ.getSession().getServletContext()); requ.getServletContext());
// 判断是否是多数据段提交格式 // 判断是否是多数据段提交格式
if (multipartResolver.isMultipart(requ)) { if (multipartResolver.isMultipart(requ)) {
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) requ; MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) requ;
......
...@@ -66,7 +66,7 @@ public class ReadXmlApi { ...@@ -66,7 +66,7 @@ public class ReadXmlApi {
try { try {
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器) //将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver( CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver(
requ.getSession().getServletContext()); requ.getServletContext());
// 判断是否是多数据段提交格式 // 判断是否是多数据段提交格式
if (multipartResolver.isMultipart(requ)) { if (multipartResolver.isMultipart(requ)) {
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) requ; MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) requ;
......
...@@ -75,7 +75,7 @@ public class TaskListApi { ...@@ -75,7 +75,7 @@ public class TaskListApi {
* taskId 任务单ID * taskId 任务单ID
* name 打印转出人姓名 * name 打印转出人姓名
* process 打印转出人所在工序 * process 打印转出人所在工序
* printer 打印机编号 * failedList 废证任务单
* *
* @return * @return
*/ */
...@@ -90,7 +90,22 @@ public class TaskListApi { ...@@ -90,7 +90,22 @@ public class TaskListApi {
List<String> list = (List<String>) jsonArray; List<String> list = (List<String>) jsonArray;
return taskListService.updateState2(failedList, list, process, name); return taskListService.updateState2(failedList, list, process, name);
} }
/**
* 更改任务单工作组
* (打印转出)
* taskId 任务单ID
* workGroup 工作组
*
* @return
*/
@RequestMapping("updateWorkGroup")
public boolean updateWorkGroup(@RequestBody String json) {
JSONObject jsonObject = JSONObject.fromObject(json);
JSONArray jsonArray = (JSONArray) jsonObject.get("taskIdList");
String workGroup = jsonObject.get("workGroup").toString();
List<String> list = (List<String>) jsonArray;
return taskListService.updateWorkGroup(list, workGroup);
}
/** /**
* 查询任务单详情 * 查询任务单详情
......
...@@ -26,7 +26,7 @@ public interface InfoManagementMapper { ...@@ -26,7 +26,7 @@ public interface InfoManagementMapper {
") " + ") " +
"A" + "A" +
")" + ")" +
"WHERE RN BETWEEN #{end} AND #{begin}" + "WHERE RN BETWEEN #{begin} AND #{end}" +
"</script>") "</script>")
public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate, @Param("begin") long begin, @Param("end") long end); public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate, @Param("begin") long begin, @Param("end") long end);
......
...@@ -1501,6 +1501,8 @@ public interface TaskListMapper { ...@@ -1501,6 +1501,8 @@ public interface TaskListMapper {
"group by CARD_TYPE, CARD_TYPE_ID, failed_count, PUNCHING_DATE") "group by CARD_TYPE, CARD_TYPE_ID, failed_count, PUNCHING_DATE")
public List<Map<String, Object>> selectWorkGroupReport(@Param("startDate")String startDate,@Param("endDate") String endDate,@Param("workGroup") String workGroup); public List<Map<String, Object>> selectWorkGroupReport(@Param("startDate")String startDate,@Param("endDate") String endDate,@Param("workGroup") String workGroup);
@Update("udpate task set work_group = #{workGroup} where TASK_ID = #{taskId}")
public boolean updateWorkGroup(@Param("taskId")String taskId,@Param("workGroup") long workGroup);
......
...@@ -100,4 +100,5 @@ public interface TaskListService { ...@@ -100,4 +100,5 @@ public interface TaskListService {
public List<Map<String,Object>> selectWorkGroupReport(String startDate,String endDate,String workGroup); public List<Map<String,Object>> selectWorkGroupReport(String startDate,String endDate,String workGroup);
public boolean updateWorkGroup(List<String> list,String workGroup);
} }
...@@ -955,6 +955,15 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -955,6 +955,15 @@ public class TaskListServiceImpl implements TaskListService {
return taskListMapper.getPrintOutCount(); return taskListMapper.getPrintOutCount();
} }
@Override
@Transactional
public boolean updateWorkGroup(List<String> list, String workGroup) {
for (String taskId:list){
taskListMapper.updateWorkGroup(taskId,Long.valueOf(workGroup));
}
return true;
}
private String createGroupNo(List<Integer> c, List<Integer> nsList) { private String createGroupNo(List<Integer> c, List<Integer> nsList) {
try { try {
String groupNo = ""; String groupNo = "";
......
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