|
|
|
@ -9,6 +9,8 @@ import com.doudian.open.api.order_BatchSearchIndex.data.OrderBatchSearchIndexDat
|
|
|
|
|
import com.doudian.open.api.order_BatchSearchIndex.data.PlainToEncryptIndexListItem;
|
|
|
|
|
import com.doudian.open.api.order_BatchSearchIndex.param.OrderBatchSearchIndexParam;
|
|
|
|
|
import com.doudian.open.api.order_BatchSearchIndex.param.PlainTextListItem;
|
|
|
|
|
import com.ms.api.bo.DsPurchaseSettingBo;
|
|
|
|
|
import com.ms.api.bo.PurchaseSettingBO;
|
|
|
|
|
import com.ms.api.common.Pager;
|
|
|
|
|
import com.ms.api.consts.*;
|
|
|
|
|
import com.ms.api.dto.order.PurchaseSettingDTO;
|
|
|
|
@ -488,7 +490,7 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
return rows.stream().collect(Collectors.toMap(PurchaseOrderSetting::getPurchaseOrderId, x -> x));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PurchaseSettingDTO getPurchaseSetting(Long shopId) {
|
|
|
|
|
public PurchaseSettingBO getPurchaseSetting(Long shopId) {
|
|
|
|
|
PurchaseSetting purchaseSetting = purchaseSettingMapper.selectByShopId(shopId);
|
|
|
|
|
// boolean isNewestVersion = purchaseSetting.version = PurchaseOrderConst.CURRENT_PURCHASE_SETTING_VERSION;
|
|
|
|
|
|
|
|
|
@ -521,28 +523,33 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
autoFillOrderMemoTpl = purchaseSetting.getAutoFillOrderMemoTpl();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PurchaseSettingDTO purchaseSettingDTO = new PurchaseSettingDTO();
|
|
|
|
|
purchaseSettingDTO.setIsAppendShopRemark(isAppendShopRemark);
|
|
|
|
|
purchaseSettingDTO.setIsAppendShopNote(isAppendShopNote);
|
|
|
|
|
purchaseSettingDTO.setIsAutoFillRemark(isAutoFillRemark);
|
|
|
|
|
purchaseSettingDTO.setIsAutoFillOrderMemo(isAutoFillOrderMemo);
|
|
|
|
|
purchaseSettingDTO.setAppendShopRemarkTpl(appendShopRemarkTpl);
|
|
|
|
|
purchaseSettingDTO.setAppendShopNoteTpl(appendShopNoteTpl);
|
|
|
|
|
purchaseSettingDTO.setAutoFillRemarkTpl(autoFillRemarkTpl);
|
|
|
|
|
purchaseSettingDTO.setAutoFillOrderMemoTpl(autoFillOrderMemoTpl);
|
|
|
|
|
PurchaseSettingBO purchaseSettingBO = new PurchaseSettingBO();
|
|
|
|
|
purchaseSettingBO.setIsAppendShopRemark(isAppendShopRemark);
|
|
|
|
|
purchaseSettingBO.setIsAppendShopNote(isAppendShopNote);
|
|
|
|
|
purchaseSettingBO.setIsAutoFillRemark(isAutoFillRemark);
|
|
|
|
|
purchaseSettingBO.setIsAutoFillOrderMemo(isAutoFillOrderMemo);
|
|
|
|
|
purchaseSettingBO.setAppendShopRemarkTpl(appendShopRemarkTpl);
|
|
|
|
|
purchaseSettingBO.setAppendShopNoteTpl(appendShopNoteTpl);
|
|
|
|
|
purchaseSettingBO.setAutoFillRemarkTpl(autoFillRemarkTpl);
|
|
|
|
|
purchaseSettingBO.setAutoFillOrderMemoTpl(autoFillOrderMemoTpl);
|
|
|
|
|
|
|
|
|
|
if (purchaseSetting == null) {
|
|
|
|
|
savePurchaseSetting(shopId, purchaseSettingDTO);
|
|
|
|
|
savePurchaseSetting(shopId, purchaseSettingBO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return purchaseSettingDTO;
|
|
|
|
|
return purchaseSettingBO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean savePurchaseSetting(Long shopId, PurchaseSettingDTO purchaseSettingDTO) {
|
|
|
|
|
public boolean savePurchaseSetting(Long shopId, PurchaseSettingBO purchaseSettingBO) {
|
|
|
|
|
// todo:
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DsPurchaseSettingBo getDsPurchaseSettingByShopId(Long shopId) {
|
|
|
|
|
// todo:
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|