This commit is contained in:
张江玮
2023-04-06 13:32:18 +08:00
parent f8b18fdfae
commit 2fb546bc48
5 changed files with 31 additions and 22 deletions

View File

@@ -28,6 +28,7 @@ import org.nl.wms.util.IdUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
@@ -427,6 +428,9 @@ public class HnjSendMaterialTask extends AbstractAcsTask {
taskTab.insert(emptyJson);
JSONObject fullJson = JSONObject.parseObject(JSON.toJSONString(fullDto));
taskTab.insert(fullJson);
int real_qty = workOrderObj.getIntValue("real_qty");
workOrderObj.put("real_qty", ++real_qty);
workOrderTab.update(workOrderObj);
//创建好立即下发
this.immediateNotifyAcs();