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