...
|
...
|
@@ -26,6 +26,7 @@ import com.yohoufo.dal.order.model.StorageDeposit; |
|
|
import com.yohoufo.dal.order.StorageDepositMapper;
|
|
|
import com.yohoufo.order.convert.GoodsInfoConvertor;
|
|
|
import com.yohoufo.order.model.response.OrderSubmitResponse;
|
|
|
import com.yohoufo.order.service.DepositService;
|
|
|
import com.yohoufo.order.service.IBuyerOrderMetaService;
|
|
|
import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -63,6 +64,9 @@ public class DepositOrderService { |
|
|
@Autowired
|
|
|
private OrderCodeGenerator orderCodeGenerator;
|
|
|
|
|
|
@Autowired
|
|
|
private DepositService depositService;
|
|
|
|
|
|
/**
|
|
|
* 根据库存货号,计算需要召回的费用
|
|
|
* @param req
|
...
|
...
|
@@ -75,7 +79,7 @@ public class DepositOrderService { |
|
|
Integer depositEndTime = storageDeposit.getDepositEndTime();
|
|
|
int depositRemainDay = 45;
|
|
|
if (null != depositEndTime) {
|
|
|
depositRemainDay = (depositEndTime - DateUtil.getCurrentTimeSecond()) / 24 * 60 * 60;
|
|
|
depositRemainDay = depositService.getRemainDay(req.getUid(), req.getDepositCode());
|
|
|
}
|
|
|
|
|
|
Integer skup = storageDeposit.getSkup();
|
...
|
...
|
|