|
|
@ -2,6 +2,7 @@ package org.jeecg.modules.demo.zyorders.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import org.jeecg.common.util.CommonUtils; |
|
|
|
import org.jeecg.common.util.CommonUtils; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.base.service.IZyClothsTypeService; |
|
|
|
import org.jeecg.modules.demo.customerinvoice.entity.CustomerInvoice; |
|
|
|
import org.jeecg.modules.demo.customerinvoice.entity.CustomerInvoice; |
|
|
|
import org.jeecg.modules.demo.customerinvoice.mapper.CustomerInvoiceMapper; |
|
|
|
import org.jeecg.modules.demo.customerinvoice.mapper.CustomerInvoiceMapper; |
|
|
|
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress; |
|
|
|
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress; |
|
|
@ -40,6 +41,7 @@ import java.util.ArrayList; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Description: 订单基本信息管理 |
|
|
|
* @Description: 订单基本信息管理 |
|
|
@ -97,6 +99,11 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private ZySpeechMessageMapper zySpeechMessageMapper; |
|
|
|
private ZySpeechMessageMapper zySpeechMessageMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IZyOrdersService zyOrdersService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IZyClothsTypeService zyClothsTypeService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 大屏数据-获取订单的状态 |
|
|
|
* 大屏数据-获取订单的状态 |
|
|
@ -341,14 +348,9 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getOrdersNum() { |
|
|
|
public String getOrdersNum() { |
|
|
|
String mrstr = "000000000000000000"; |
|
|
|
List<ZyOrders> list = zyOrdersService.list(); |
|
|
|
QueryWrapper<ZyOrders> qw = new QueryWrapper(); |
|
|
|
List<String> collect = list.stream().map(ZyOrders::getOrdersNum).collect(Collectors.toList()); |
|
|
|
int listsize = baseMapper.selectCount(qw); |
|
|
|
String OrdersNum = String.format("%018d", zyClothsTypeService.getListMax(collect, 18)); |
|
|
|
int strsize = listsize + 1; |
|
|
|
|
|
|
|
String str = strsize + ""; |
|
|
|
|
|
|
|
int strlength = str.length(); |
|
|
|
|
|
|
|
String substr = mrstr.substring(0, mrstr.length() - strlength); |
|
|
|
|
|
|
|
String OrdersNum = substr + str; |
|
|
|
|
|
|
|
return OrdersNum; |
|
|
|
return OrdersNum; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|