|
@@ -8,6 +8,7 @@ import java.util.regex.Pattern;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import com.lote.wms.outstock.order.dao.OutOrderMapper;
|
|
|
import org.apache.http.client.ClientProtocolException;
|
|
|
import org.mybatis.plugin.model.Pager;
|
|
|
import org.mybatis.plugin.util.PagerUtil;
|
|
@@ -82,7 +83,6 @@ import com.lote.wms.outstock.boxed.entity.OutBoxed;
|
|
|
import com.lote.wms.outstock.boxed.entity.OutBoxedItem;
|
|
|
import com.lote.wms.outstock.boxed.service.OutBoxedItemService;
|
|
|
import com.lote.wms.outstock.boxed.service.OutBoxedService;
|
|
|
-import com.lote.wms.outstock.order.dao.OutOrderMapper;
|
|
|
import com.lote.wms.outstock.order.entity.OutOrder;
|
|
|
import com.lote.wms.outstock.order.entity.OutOrderBusinessType;
|
|
|
import com.lote.wms.outstock.order.entity.OutOrderCriteria;
|
|
@@ -147,6 +147,9 @@ public class OutOrderServiceImpl implements OutOrderService {
|
|
|
@Autowired
|
|
|
private OutOrderMapper outOrderMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private OutOrderService outOrderService;
|
|
|
+
|
|
|
@Resource
|
|
|
private WarehouseService warehouseService;
|
|
|
|
|
@@ -890,9 +893,6 @@ public class OutOrderServiceImpl implements OutOrderService {
|
|
|
* 处理从单号库获取单号
|
|
|
*
|
|
|
* @param order
|
|
|
- * @param message
|
|
|
- * @param user
|
|
|
- * @param opType
|
|
|
* @return
|
|
|
*/
|
|
|
private TrackingNo getTrackingNoFromDB(OutOrder order) {
|
|
@@ -1433,7 +1433,7 @@ public class OutOrderServiceImpl implements OutOrderService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Message selectForWeigh(String orderNo) {
|
|
|
+ public Message selectForWeigh(String orderNo, User user) {
|
|
|
Message message = new Message();
|
|
|
message.setSuccess(false);
|
|
|
|
|
@@ -1478,6 +1478,16 @@ public class OutOrderServiceImpl implements OutOrderService {
|
|
|
message.setMsg("该订单未完成下架,不能操作称重");
|
|
|
return message;
|
|
|
}
|
|
|
+ // todo 判断是否为海关查验单,如果是就调用拦截,如果不是就发运
|
|
|
+ if (StringUtil.isNotNull(order.getExtend1()) && "2".equals(order.getExtend1())) {
|
|
|
+ Message holdUp = outOrderService.holdUp(order.getId(), user);
|
|
|
+ if (holdUp.isSuccess()) {
|
|
|
+ message.setMsg("该订单为海关查验单,已自动拦截.");
|
|
|
+ } else {
|
|
|
+ message.setMsg(holdUp.getMsg());
|
|
|
+ }
|
|
|
+ return message;
|
|
|
+ }
|
|
|
|
|
|
int boxNum = outBoxedService.countByOutOrderId(order.getId());// 不会计算空的箱子
|
|
|
if (boxNum < 1) {// 订单从未装箱
|