|
|
|
@ -224,6 +224,8 @@ public class DumpServiceImpl implements DumpService { |
|
|
|
double nums = Double.parseDouble(currentRollSap.get("nums").toString())+rollQty; |
|
|
|
currentRollSap.put("nums", nums); |
|
|
|
} |
|
|
|
// 修改卷的状态 |
|
|
|
rollDao.updateRollStatus(rollNo,"D"); |
|
|
|
responseData.setCode("0"); |
|
|
|
}else{ |
|
|
|
responseData.setCode("1"); |
|
|
|
@ -303,6 +305,8 @@ public class DumpServiceImpl implements DumpService { |
|
|
|
}else{ |
|
|
|
dumpToSap.remove(site+"-"+partNo); |
|
|
|
} |
|
|
|
// 修改卷的状态 |
|
|
|
rollDao.updateRollStatus(rollNo,"I"); |
|
|
|
responseData.setCode("0"); |
|
|
|
return responseData; |
|
|
|
} |
|
|
|
@ -519,6 +523,7 @@ public class DumpServiceImpl implements DumpService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public ResponseData goBackHome(HttpSession session) { |
|
|
|
ResponseData responseData = new ResponseData(); |
|
|
|
//1.恢复扫码标记 |
|
|
|
@ -541,6 +546,10 @@ public class DumpServiceImpl implements DumpService { |
|
|
|
Map<String, String> dumpRollNos = (Map<String, String>) session.getAttribute("dumpRollNos"); |
|
|
|
if(null!=dumpRollNos){ |
|
|
|
session.removeAttribute("dumpRollNos"); |
|
|
|
// 还原扫描卷的状态 |
|
|
|
for (String key:dumpRollNos.keySet()){ |
|
|
|
rollDao.updateRollStatus(key,"I"); |
|
|
|
} |
|
|
|
} |
|
|
|
//7.移除卷号统计map |
|
|
|
Map<String, String> dumpRollCounts = (Map<String, String>) session.getAttribute("dumpRollCounts"); |
|
|
|
@ -559,6 +568,8 @@ public class DumpServiceImpl implements DumpService { |
|
|
|
} |
|
|
|
//10.移除提交标记 |
|
|
|
session.removeAttribute("dump_submit_flag"); |
|
|
|
|
|
|
|
|
|
|
|
responseData.setCode("0"); |
|
|
|
return responseData; |
|
|
|
} |
|
|
|
|