|
|
|
@ -188,12 +188,20 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
|
zyOrders.setOrdersType(zyOrdersJk.getOrdersType()); |
|
|
|
|
zyOrders.setUserId(zyOrdersJk.getUserId()); |
|
|
|
|
zyOrders.setGoodsQuantity(zyOrdersJk.getGoodsQuantity()); |
|
|
|
|
//顾客地址
|
|
|
|
|
if(zyOrdersJk.getAddressId()!=null&&zyOrdersJk.getAddressId()!="") |
|
|
|
|
{ |
|
|
|
|
CustomerReceivingAddress customerReceivingAddress = customerReceivingAddressMapper.selectById(zyOrdersJk.getAddressId()); |
|
|
|
|
zyOrders.setCityId(customerReceivingAddress.getCityId()); |
|
|
|
|
zyOrders.setAddress(customerReceivingAddress.getAddress()); |
|
|
|
|
zyOrders.setZipCode(customerReceivingAddress.getZipCode()); |
|
|
|
|
zyOrders.setReceiver(zyOrdersJk.getReceiver()); |
|
|
|
|
zyOrders.setMobile(customerReceivingAddress.getMobile()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//顾客发票
|
|
|
|
|
if(zyOrdersJk.getInvoiceId()!=null&&zyOrdersJk.getInvoiceId()!="") |
|
|
|
|
{ |
|
|
|
|
CustomerInvoice customerInvoice = customerInvoiceMapper.selectById(zyOrdersJk.getInvoiceId()); |
|
|
|
|
zyOrders.setInvoiceCustomerType(Integer.parseInt(customerInvoice.getCustomerType())); |
|
|
|
|
zyOrders.setInvoiceType(Integer.parseInt(customerInvoice.getInvoiceType())); |
|
|
|
@ -202,6 +210,8 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
|
zyOrders.setTelephone(customerInvoice.getTelephone()); |
|
|
|
|
zyOrders.setBankPublic(customerInvoice.getBankDeposit()); |
|
|
|
|
zyOrders.setAccountNumber(customerInvoice.getAccountNumber()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
zyOrders.setSalesEnterpriseId(zyOrdersJk.getSalesEnterpriseId()); |
|
|
|
|
zyOrders.setSalespersonId(zyOrdersJk.getSalespersonId()); |
|
|
|
|
zyOrders.setLogisticsEnterprisesId(zyOrdersJk.getLogisticsEnterprisesId()); |
|
|
|
|