Commit 5082c6fd authored by tank.li@mushiny.com's avatar tank.li@mushiny.com

拣货任务完善,出库单与系统绑定 完成后反馈

parent d28a2f35
......@@ -372,7 +372,9 @@ public class ICQAService {
* @param taskId
* @return
*/
public MessageDTO check(String skuId, int checked, String containerId, String factory, String section, String taskId) {
public MessageDTO check(String skuId, int checked,
String containerId, String factory,
String section, String taskId) {
MessageDTO messageDTO = MessageDTO.success();
List<Map> invs = this.jdbcRepository.queryBySql(Sql_Table.SQL_INV_UNITLOADID,containerId);
if(invs.isEmpty()){
......@@ -380,33 +382,33 @@ public class ICQAService {
messageDTO.setMESSAGE("没有找到该容器:"+containerId);
return messageDTO;
}
List<Map> items = this.jdbcRepository.queryBySql(Sql_Table.SQL_QUERYITEM_BYSKUNO, skuId);
List<Map> items = this.jdbcRepository.queryBySql(Sql_Table.SQL_QUERY_ITEMINFO, skuId,containerId);
if(items.isEmpty()){
messageDTO.setCODE(1);
messageDTO.setMESSAGE("没有找到该商品信息:"+skuId);
return messageDTO;
}
Map item = items.get(0);
String mID = CommonUtils.parseString("ID",item);
//货位信息
Map data = invs.get(0);
String uid = CommonUtils.parseString("ID",data);
int amount = CommonUtils.parseInteger("AMOUNT",item);
//查询盘点的入库数量
Map icqaOrderPosition = this.getIcqaOrderPosition(taskId,skuId);
String pId = CommonUtils.parseString("ID", icqaOrderPosition);
//更新入库单状态
this.updateIcqaOrderStatus(pId,taskId ,skuId, Sql_Table.FINISH,checked);
this.updateIcqaOrderStatus(pId,taskId ,skuId, Sql_Table.FINISH,checked,amount);
return messageDTO;
}
private void updateIcqaOrderStatus(String pId, String taskId, String skuId, String finish, int checked) {
private void updateIcqaOrderStatus(String pId, String taskId,
String skuId, String finish,
int checked,int amount) {
MessageDTO messageDTO = MessageDTO.success();
Map newValue = new HashMap();
newValue.put("STATE",finish);
newValue.put("COUNT",checked);
newValue.put("COUNT",amount);
CommonUtils.modifyUselessInfo(newValue);
Map con = new HashMap();
......
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