|
@@ -299,7 +299,7 @@ public class WcsTaskSubService {
|
|
|
List<InvLotLocId> invLotLocIds = invLotLocIdService.queryInvByInvLotatt(invLotAtt);
|
|
|
for (InvLotLocId invLotLocId : invLotLocIds) {
|
|
|
BigDecimal qty = invLotLocId.getQty();
|
|
|
- if (qty.compareTo(canQty) == 1) {
|
|
|
+ if (qty.compareTo(canQty) > 0) {
|
|
|
continue;
|
|
|
} else if (qty.compareTo(canQty) == 0) {
|
|
|
wmsDocAsnDetails.setReceivedQty(expectedQty);
|
|
@@ -311,7 +311,7 @@ public class WcsTaskSubService {
|
|
|
con = false;
|
|
|
continue;
|
|
|
}
|
|
|
- } else if (qty.compareTo(canQty) == -1) {
|
|
|
+ } else if (qty.compareTo(canQty) < 0) {
|
|
|
wmsDocAsnDetails.setReceivedQty(receivedQty.add(qty));
|
|
|
int i = iWmsDocAsnDetailsService.updateWmsDocAsnDetails(wmsDocAsnDetails);
|
|
|
if (i > 0) {
|
|
@@ -414,7 +414,6 @@ public class WcsTaskSubService {
|
|
|
|
|
|
/**
|
|
|
* 越库完成后回调
|
|
|
- * TODO chenyang
|
|
|
* @param wcsTask
|
|
|
* @return
|
|
|
*/
|
|
@@ -449,6 +448,7 @@ public class WcsTaskSubService {
|
|
|
iWmsDocOrderDetailsService.updateWmsDocOrderDetails(list.get(0));
|
|
|
//修改 出库单单头40
|
|
|
updateWmsDocOrderHeader(orderNo, sku);
|
|
|
+ turnOffTheUnpacker(sku);
|
|
|
return AjaxResult.success("");
|
|
|
}
|
|
|
|