Commit 03b72d27 authored by dahai's avatar dahai

任务单加上一个工位的操作转出确认时间

parent 12005cfa
...@@ -43,9 +43,9 @@ public class ExportExcelApi { ...@@ -43,9 +43,9 @@ public class ExportExcelApi {
MDC.put("ip", remoteAddr); MDC.put("ip", remoteAddr);
JSONObject jsonObject = JSONObject.fromObject(list); JSONObject jsonObject = JSONObject.fromObject(list);
JSONArray jsonArray = JSONArray.fromObject(jsonObject.get("list")); JSONArray jsonArray = JSONArray.fromObject(jsonObject.get("list"));
// String type = jsonObject.get("type").toString(); String isHistory = jsonObject.get("isHistory").toString();
String name = jsonObject.get("name").toString(); String name = jsonObject.get("name").toString();
List<Map<String, Object>> mapList = detailReceiptListService.selectPostDetails(jsonArray, name); List<Map<String, Object>> mapList = detailReceiptListService.selectPostDetails(jsonArray, name,isHistory);
response.setContentType("application/x-download"); response.setContentType("application/x-download");
response.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8");
String dateTime = DateFormatUtils.format(new Date(), "yyyy-MM-dd"); String dateTime = DateFormatUtils.format(new Date(), "yyyy-MM-dd");
......
...@@ -192,12 +192,12 @@ public class TaskListApi { ...@@ -192,12 +192,12 @@ public class TaskListApi {
String remoteAddr = requ.getRemoteAddr(); String remoteAddr = requ.getRemoteAddr();
MDC.put("ip", remoteAddr); MDC.put("ip", remoteAddr);
List<Object> objects = new ArrayList <>(); List<Object> objects = new ArrayList <>();
try { // try {
objects = taskListService.selectByCountyAtAuxiliary(Long.valueOf(process) - 1); objects = taskListService.selectByCountyAtAuxiliary(Long.valueOf(process) - 1);
}catch (Exception e){ // }catch (Exception e){
logger.error("工序:" + process); // logger.error("工序:" + process);
logger.error("Exception 查询任务单详情(辅助库)(下发、数据核验、膜打印)异常", e); // logger.error("Exception 查询任务单详情(辅助库)(下发、数据核验、膜打印)异常", e);
} // }
return objects; return objects;
} }
......
...@@ -10,7 +10,7 @@ import java.util.Map; ...@@ -10,7 +10,7 @@ import java.util.Map;
* 2019/3/9 14:55 * 2019/3/9 14:55
*/ */
public interface DetailReceiptListService { public interface DetailReceiptListService {
public List<Map<String,Object>> selectPostDetails(List<Integer> stringList,String name); public List<Map<String,Object>> selectPostDetails(List<Integer> stringList,String name,String isHistory);
public List<DetailReceiptListEntity> selectDetailReceiptListEntityByCardId(String cardID); public List<DetailReceiptListEntity> selectDetailReceiptListEntityByCardId(String cardID);
......
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.DetailReceiptListEntity; import com.yxproject.start.entity.DetailReceiptListEntity;
import com.yxproject.start.mapper.DetailReceiptListMapper;
import com.yxproject.start.service.DetailReceiptListService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.yxproject.start.service.DetailReceiptListService;
import com.yxproject.start.mapper.DetailReceiptListMapper;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -19,7 +19,7 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService { ...@@ -19,7 +19,7 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
private DetailReceiptListMapper detailReceiptListMapper; private DetailReceiptListMapper detailReceiptListMapper;
@Override @Override
public List<Map<String, Object>> selectPostDetails(List<Integer> stringList,String name) { public List<Map<String, Object>> selectPostDetails(List<Integer> stringList,String name,String isHistory) {
String str =""; String str ="";
for (int i =0;i<stringList.size();i++){ for (int i =0;i<stringList.size();i++){
if (i==stringList.size()-1){ if (i==stringList.size()-1){
...@@ -30,7 +30,9 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService { ...@@ -30,7 +30,9 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
} }
// str+=")"; // str+=")";
if ("0".equals(isHistory)){
detailReceiptListMapper.updateReceiptListEntityByCardId(str,name); detailReceiptListMapper.updateReceiptListEntityByCardId(str,name);
}
return detailReceiptListMapper.selectPostDetails(str); return detailReceiptListMapper.selectPostDetails(str);
} }
@Override @Override
......
...@@ -781,7 +781,7 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -781,7 +781,7 @@ public class TaskListServiceImpl implements TaskListService {
} }
Map<String, Object> datemap = new LinkedHashMap<>(); Map<String, Object> datemap = new LinkedHashMap<>();
datemap.put("date", "计"); datemap.put("date", "计");
datemap.put("yi", yi); datemap.put("yi", yi);
datemap.put("gangao", gangao); datemap.put("gangao", gangao);
datemap.put("kuai", kuai); datemap.put("kuai", kuai);
......
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