|
|
@ -84,7 +84,6 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
private OrderGoodsAccessoriesMapper zyOrderGoodsAccessoriesMapper; |
|
|
|
private OrderGoodsAccessoriesMapper zyOrderGoodsAccessoriesMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//顾客地址表
|
|
|
|
//顾客地址表
|
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
CustomerReceivingAddressMapper customerReceivingAddressMapper; |
|
|
|
CustomerReceivingAddressMapper customerReceivingAddressMapper; |
|
|
@ -98,10 +97,9 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
private ZySpeechMessageMapper zySpeechMessageMapper; |
|
|
|
private ZySpeechMessageMapper zySpeechMessageMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 大屏数据-获取订单的状态 |
|
|
|
* 大屏数据-获取订单的状态 |
|
|
|
|
|
|
|
* |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -131,6 +129,7 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 大屏数据-获取历史订单 |
|
|
|
* 大屏数据-获取历史订单 |
|
|
|
|
|
|
|
* |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -145,6 +144,7 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取今日订单及七日订单 |
|
|
|
* 获取今日订单及七日订单 |
|
|
|
|
|
|
|
* |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -158,7 +158,6 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
|
|
|
|
* @param zyOrdersJk |
|
|
|
* @param zyOrdersJk |
|
|
|
* @param orderGoodsJkList |
|
|
|
* @param orderGoodsJkList |
|
|
|
* @return |
|
|
|
* @return |
|
|
@ -186,8 +185,7 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
zyOrders.setUserId(zyOrdersJk.getUserId()); |
|
|
|
zyOrders.setUserId(zyOrdersJk.getUserId()); |
|
|
|
zyOrders.setGoodsQuantity(zyOrdersJk.getGoodsQuantity()); |
|
|
|
zyOrders.setGoodsQuantity(zyOrdersJk.getGoodsQuantity()); |
|
|
|
//顾客地址
|
|
|
|
//顾客地址
|
|
|
|
if(zyOrdersJk.getAddressId()!=null&&zyOrdersJk.getAddressId()!="") |
|
|
|
if (zyOrdersJk.getAddressId() != null && zyOrdersJk.getAddressId() != "") { |
|
|
|
{ |
|
|
|
|
|
|
|
CustomerReceivingAddress customerReceivingAddress = customerReceivingAddressMapper.selectById(zyOrdersJk.getAddressId()); |
|
|
|
CustomerReceivingAddress customerReceivingAddress = customerReceivingAddressMapper.selectById(zyOrdersJk.getAddressId()); |
|
|
|
zyOrders.setCityId(customerReceivingAddress.getCityId()); |
|
|
|
zyOrders.setCityId(customerReceivingAddress.getCityId()); |
|
|
|
zyOrders.setAddress(customerReceivingAddress.getAddress()); |
|
|
|
zyOrders.setAddress(customerReceivingAddress.getAddress()); |
|
|
@ -197,8 +195,7 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//顾客发票
|
|
|
|
//顾客发票
|
|
|
|
if(zyOrdersJk.getInvoiceId()!=null&&zyOrdersJk.getInvoiceId()!="") |
|
|
|
if (zyOrdersJk.getInvoiceId() != null && zyOrdersJk.getInvoiceId() != "") { |
|
|
|
{ |
|
|
|
|
|
|
|
CustomerInvoice customerInvoice = customerInvoiceMapper.selectById(zyOrdersJk.getInvoiceId()); |
|
|
|
CustomerInvoice customerInvoice = customerInvoiceMapper.selectById(zyOrdersJk.getInvoiceId()); |
|
|
|
zyOrders.setInvoiceCustomerType(Integer.parseInt(customerInvoice.getCustomerType())); |
|
|
|
zyOrders.setInvoiceCustomerType(Integer.parseInt(customerInvoice.getCustomerType())); |
|
|
|
zyOrders.setInvoiceType(Integer.parseInt(customerInvoice.getInvoiceType())); |
|
|
|
zyOrders.setInvoiceType(Integer.parseInt(customerInvoice.getInvoiceType())); |
|
|
@ -325,7 +322,9 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
// //生产计划工序id
|
|
|
|
// //生产计划工序id
|
|
|
|
// message.setZyplanprocessId();
|
|
|
|
// message.setZyplanprocessId();
|
|
|
|
//消息
|
|
|
|
//消息
|
|
|
|
message.setMessage("您有新的订单,订单编号:"+zo.getOrdersNum()+",请及时查看!"); |
|
|
|
String ordersNum = zo.getOrdersNum(); |
|
|
|
|
|
|
|
String code = ordersNum.substring(ordersNum.length() - 6); |
|
|
|
|
|
|
|
message.setMessage("您有新的订单,订单尾号:" + code + ",请及时查看!"); |
|
|
|
zySpeechMessageMapper.insert(message); |
|
|
|
zySpeechMessageMapper.insert(message); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|