|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.ms.api.biz;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.ms.api.bo.MoveConditionBO;
|
|
|
|
|
import com.ms.api.bo.MovePriceBO;
|
|
|
|
@ -137,33 +138,33 @@ public class SaveBatchMoveTaskBizService extends BizBaseService {
|
|
|
|
|
MoveConditionBO condition = new MoveConditionBO();
|
|
|
|
|
MovePriceBO priceBO = new MovePriceBO();
|
|
|
|
|
condition.setMovePriceBO(priceBO);
|
|
|
|
|
if (!Objects.isNull(setting.getDeliveryDelayDay())) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getDeliveryDelayDay())) {
|
|
|
|
|
condition.setDeliveryDelayDay(setting.getDeliveryDelayDay());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!StringUtils.isEmpty(setting.getAliPriceType())) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getAliPriceType())) {
|
|
|
|
|
priceBO.setAliPriceType(setting.getAliPriceType());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
condition.setNoConsignPriceType(setting.getNoConsignPriceType());
|
|
|
|
|
|
|
|
|
|
if (setting.getPriceTail() >= 0) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getPriceTail())) {
|
|
|
|
|
priceBO.setPriceTail(setting.getPriceTail());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (setting.getMoveOnsaleType() > 0) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getMoveOnsaleType())) {
|
|
|
|
|
condition.setMoveOnsaleTyp(setting.getMoveOnsaleType());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!Objects.isNull(setting.getFreightTemplateId()) && setting.getFreightTemplateId() > 0) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getFreightTemplateId())) {
|
|
|
|
|
condition.setFreightTemplateId(setting.getFreightTemplateId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (setting.getReduceType() > 0) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getReduceType())) {
|
|
|
|
|
condition.setReduceType(setting.getReduceType());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (setting.getSupply7dayReturn() > 0) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(setting.getSupply7dayReturn())) {
|
|
|
|
|
condition.setSupply7dayReturn(setting.getSupply7dayReturn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|