|
|
|
@ -660,8 +660,8 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
isAutoFillOrderMemo = 0;
|
|
|
|
|
appendShopRemarkTpl = PurchaseTool.getDefaultAppendVenderRemarkTpl();
|
|
|
|
|
appendShopNoteTpl = PurchaseTool.getDefaultAppendVenderRemarkTpl();
|
|
|
|
|
autoFillRemarkTpl = null;
|
|
|
|
|
autoFillOrderMemoTpl = null;
|
|
|
|
|
autoFillRemarkTpl = "";
|
|
|
|
|
autoFillOrderMemoTpl = "";
|
|
|
|
|
} else {
|
|
|
|
|
isAppendShopRemark = purchaseSetting.getIsAppendShopRemark();
|
|
|
|
|
isAppendShopNote = purchaseSetting.getIsAppendShopNote();
|
|
|
|
@ -732,12 +732,13 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
purchaseSettingLog.setSource("savePurchaseSetting");
|
|
|
|
|
purchaseSettingLog.setData(JSONObject.toJSONString(setting));
|
|
|
|
|
purchaseSettingLog.setBeforeData(oldSettingJson);
|
|
|
|
|
// todo: 当前操作员信息补充
|
|
|
|
|
// purchaseSettingLog.setOperateShopId(shopId);
|
|
|
|
|
// purchaseSettingLog.setOperateIp();
|
|
|
|
|
// todo: 当前操作员ID和IP补充
|
|
|
|
|
purchaseSettingLog.setOperateShopId(shopId);
|
|
|
|
|
// purchaseSettingLog.setOperateIp("");
|
|
|
|
|
|
|
|
|
|
purchaseSettingLog.setGmtCreate(new Date());
|
|
|
|
|
purchaseSettingLog.setGmtModified(new Date());
|
|
|
|
|
purchaseSettingLogMapper.insert(purchaseSettingLog);
|
|
|
|
|
purchaseSettingLogMapper.insertSelective(purchaseSettingLog);
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -783,6 +784,9 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
ret.setIsUseAllProduct(1);
|
|
|
|
|
ret.setIsUsePartProduct(0);
|
|
|
|
|
ret.setIsForbidIsolationPurchase(0);
|
|
|
|
|
ret.setGmtCreate(null);
|
|
|
|
|
ret.setGmtModified(null);
|
|
|
|
|
ret.setGmtIsAutoPurchase(null);
|
|
|
|
|
} else {
|
|
|
|
|
ret.setIsPurchaseLogisticsUpdateToPlatform(dsPurchaseSetting.getIsPurchaseLogisticsUpdateToPlatform());
|
|
|
|
|
ret.setDeliveryTimeType(dsPurchaseSetting.getDeliveryTimeType());
|
|
|
|
@ -796,6 +800,9 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
ret.setIsUseAllProduct(dsPurchaseSetting.getIsUseAllProduct());
|
|
|
|
|
ret.setIsUsePartProduct(dsPurchaseSetting.getIsUsePartProduct());
|
|
|
|
|
ret.setIsForbidIsolationPurchase(dsPurchaseSetting.getIsForbidIsolationPurchase());
|
|
|
|
|
ret.setGmtCreate(dsPurchaseSetting.getGmtCreate());
|
|
|
|
|
ret.setGmtModified(dsPurchaseSetting.getGmtModified());
|
|
|
|
|
ret.setGmtIsAutoPurchase(dsPurchaseSetting.getGmtIsAutoPurchase());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ret.setFilterAutoPurchaseProducts(filterAutoPurchaseProductMap);
|
|
|
|
@ -841,7 +848,7 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
obj.setGmtCreate(new Date());
|
|
|
|
|
obj.setGmtModified(new Date());
|
|
|
|
|
|
|
|
|
|
return dsPurchaseSettingMapper.insert(obj);
|
|
|
|
|
return dsPurchaseSettingMapper.insertSelective(obj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<JSONObject> getOrderAndPurchaseOrdersMap(String shopId, List<String> shopIds,
|
|
|
|
|