|
@@ -10,6 +10,7 @@ import com.uas.platform.b2c.common.account.model.TradeLog;
|
|
|
import com.uas.platform.b2c.common.account.model.User;
|
|
import com.uas.platform.b2c.common.account.model.User;
|
|
|
import com.uas.platform.b2c.core.config.SysConf;
|
|
import com.uas.platform.b2c.core.config.SysConf;
|
|
|
import com.uas.platform.b2c.core.constant.SplitChar;
|
|
import com.uas.platform.b2c.core.constant.SplitChar;
|
|
|
|
|
+import com.uas.platform.b2c.core.constant.Type;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.support.log.TradeBufferedLogger;
|
|
import com.uas.platform.b2c.core.support.log.TradeBufferedLogger;
|
|
|
import com.uas.platform.b2c.core.utils.FastjsonUtils;
|
|
import com.uas.platform.b2c.core.utils.FastjsonUtils;
|
|
@@ -55,7 +56,6 @@ import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
|
import com.uas.platform.core.model.EncodingRulesConstant;
|
|
import com.uas.platform.core.model.EncodingRulesConstant;
|
|
|
import com.uas.platform.core.model.PageInfo;
|
|
import com.uas.platform.core.model.PageInfo;
|
|
|
import com.uas.platform.core.model.Status;
|
|
import com.uas.platform.core.model.Status;
|
|
|
-import com.uas.platform.core.model.Type;
|
|
|
|
|
import com.uas.platform.core.persistence.criteria.CriterionExpression;
|
|
import com.uas.platform.core.persistence.criteria.CriterionExpression;
|
|
|
import com.uas.platform.core.persistence.criteria.LogicalExpression;
|
|
import com.uas.platform.core.persistence.criteria.LogicalExpression;
|
|
|
import com.uas.platform.core.persistence.criteria.PredicateUtils;
|
|
import com.uas.platform.core.persistence.criteria.PredicateUtils;
|
|
@@ -388,10 +388,6 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|
|
purchase.setCurrency(crName);
|
|
purchase.setCurrency(crName);
|
|
|
JSONObject object = FastjsonUtils.fromJson(orderFromCust.getOrderRemark(), JSONObject.class);
|
|
JSONObject object = FastjsonUtils.fromJson(orderFromCust.getOrderRemark(), JSONObject.class);
|
|
|
purchase.setPurchaseRemark(object.getString(orderFromCust.getStoreid()));//绑定评论
|
|
purchase.setPurchaseRemark(object.getString(orderFromCust.getStoreid()));//绑定评论
|
|
|
- purchase.setSendType(orderFromCust.getDeliverytype());
|
|
|
|
|
- if (orderFromCust.getJsonTakeSelf() != null){
|
|
|
|
|
- purchase.setJsonTakeSelf(orderFromCust.getJsonTakeSelf());
|
|
|
|
|
- }
|
|
|
|
|
purchase.setSellerenuu(enuu);
|
|
purchase.setSellerenuu(enuu);
|
|
|
purchase.setStoreid(orderFromCust.getStoreid());
|
|
purchase.setStoreid(orderFromCust.getStoreid());
|
|
|
//如果是优软代售的。
|
|
//如果是优软代售的。
|
|
@@ -416,6 +412,7 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|
|
purchase.setInvoiceAddress(FastjsonUtils.toJson(billOne.get(0)));
|
|
purchase.setInvoiceAddress(FastjsonUtils.toJson(billOne.get(0)));
|
|
|
purchase.setInvoicetitle(billOne.get(0).getHead());
|
|
purchase.setInvoicetitle(billOne.get(0).getHead());
|
|
|
purchase.setFare(0d);//默认为0
|
|
purchase.setFare(0d);//默认为0
|
|
|
|
|
+ purchase.setSendType(Type.Delivery_ByUU_Code.value());//寄售类型统一为第三方配送
|
|
|
}else {
|
|
}else {
|
|
|
if(orderFromCust.getBuyerentername() == null) {
|
|
if(orderFromCust.getBuyerentername() == null) {
|
|
|
Enterprise enterprise = enterpriseDao.findByUu(orderFromCust.getBuyerenuu());
|
|
Enterprise enterprise = enterpriseDao.findByUu(orderFromCust.getBuyerenuu());
|
|
@@ -433,9 +430,13 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|
|
purchase.setInvoicetype(orderFromCust.getInvoicetype());
|
|
purchase.setInvoicetype(orderFromCust.getInvoicetype());
|
|
|
purchase.setInvoiceAddress(orderFromCust.getInvoiceAddress());
|
|
purchase.setInvoiceAddress(orderFromCust.getInvoiceAddress());
|
|
|
purchase.setInvoicetitle(orderFromCust.getInvoicetitle());
|
|
purchase.setInvoicetitle(orderFromCust.getInvoicetitle());
|
|
|
- //如果是自营的,则保存配送规则和运费信息
|
|
|
|
|
|
|
+ //如果是自营的,则保存配送规则和运费信息,自提点信息和配送方式
|
|
|
purchase.setFare(orderFromCust.getFare());
|
|
purchase.setFare(orderFromCust.getFare());
|
|
|
purchase.setJsonRule(orderFromCust.getJsonRule());
|
|
purchase.setJsonRule(orderFromCust.getJsonRule());
|
|
|
|
|
+ purchase.setSendType(orderFromCust.getDeliverytype());
|
|
|
|
|
+ if (orderFromCust.getJsonTakeSelf() != null){
|
|
|
|
|
+ purchase.setJsonTakeSelf(orderFromCust.getJsonTakeSelf());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
List<User> users = userDao.findUserByUserUU(purchase.getBuyeruu());
|
|
List<User> users = userDao.findUserByUserUU(purchase.getBuyeruu());
|
|
|
User user = null;
|
|
User user = null;
|