|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -171,6 +172,12 @@ public class OyeResultController extends BaseRESTfulController {
|
|
|
}
|
|
|
try {
|
|
|
result = oyeResultService.insertOutboundResult(map);
|
|
|
+ if(map.get("orderId") != null) {
|
|
|
+ List<BigDecimal> orderIds = oyeRealtimeInventoryMapper.getUnReceiveOrder(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
|
+ if (orderIds.size() > 0 && orderIds.get(0) != null) {
|
|
|
+ oyeRealtimeInventoryMapper.closeOrder(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
|
+ }
|
|
|
+ }
|
|
|
try {
|
|
|
if(map.get("orderId") != null) {
|
|
|
bmsTruckFeign.addDetailsOrder(DataChange.dataToBigDecimal(map.get("orderId")));
|