|
|
|
@ -6,13 +6,12 @@ import cn.hutool.core.date.DateUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.api.dao.inout.IoStatMonthDao;
|
|
|
|
|
import com.glxp.api.dao.inout.IoStatOrderDao;
|
|
|
|
|
import com.glxp.api.dao.inout.IoStatQuarterDao;
|
|
|
|
|
import com.glxp.api.entity.inout.IoStatMonthEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.IoStatOrderEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.IoStatQuarterEntity;
|
|
|
|
|
import com.glxp.api.constant.ConstantType;
|
|
|
|
|
import com.glxp.api.dao.inout.*;
|
|
|
|
|
import com.glxp.api.entity.inout.*;
|
|
|
|
|
import com.glxp.api.entity.system.SystemParamConfigEntity;
|
|
|
|
|
import com.glxp.api.req.inout.FilterStatDataDetailRequest;
|
|
|
|
|
import com.glxp.api.res.inv.DateRequest;
|
|
|
|
|
import com.glxp.api.service.inout.IoStatQuarterService;
|
|
|
|
|
import com.glxp.api.util.GennerOrderUtils;
|
|
|
|
|
import com.glxp.api.util.OrderNoTypeBean;
|
|
|
|
@ -26,7 +25,9 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Service
|
|
|
|
@ -43,31 +44,65 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
private GennerOrderUtils gennerOrderUtils;
|
|
|
|
|
@Resource
|
|
|
|
|
private SqlSessionFactory sqlSessionFactory;
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderDao orderDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderDetailResultDao ioOrderDetailResultDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void statData(Date date) {
|
|
|
|
|
//汇总上一季度的数据
|
|
|
|
|
DateTime yesterday = DateUtil.offsetDay(date, -1);
|
|
|
|
|
//查询上一季度各个月度的数据
|
|
|
|
|
List<IoStatMonthEntity> statMonthList = getMonthStatList(yesterday);
|
|
|
|
|
if (CollUtil.isNotEmpty(statMonthList)) {
|
|
|
|
|
int quarter = yesterday.quarter();
|
|
|
|
|
int year = yesterday.year();
|
|
|
|
|
String topDate=getStartDayOfQuarter(year,quarter);
|
|
|
|
|
String lastDate=getLastDayOfQuarter(year,quarter);
|
|
|
|
|
//查询单号
|
|
|
|
|
List<String> orderIdFkList = new ArrayList<>();
|
|
|
|
|
//汇总上一个季度的数据
|
|
|
|
|
List<IoStatQuarterEntity> dataList = new ArrayList<>();
|
|
|
|
|
orderIdFkList = orderDao.selectOrderfirstAndLastIdList(lastDate, topDate);
|
|
|
|
|
List<IoOrderDetailResultEntity> orderDetailResultEntities = new ArrayList<>();
|
|
|
|
|
if(orderIdFkList.size()>0){
|
|
|
|
|
orderDetailResultEntities = ioOrderDetailResultDao.selectStatDataByTime(orderIdFkList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(orderDetailResultEntities)) {
|
|
|
|
|
//声明用于存放汇总数据的集合
|
|
|
|
|
List<IoStatQuarterEntity> dataList = new ArrayList<>();
|
|
|
|
|
statMonthList.forEach(statMonthEntity -> {
|
|
|
|
|
orderDetailResultEntities.forEach(orderDetailResultEntity -> {
|
|
|
|
|
//获取新的汇总数据
|
|
|
|
|
IoStatQuarterEntity statData = getStatData(dataList, statMonthEntity, yesterday);
|
|
|
|
|
IoStatQuarterEntity statData = getStatData(dataList, orderDetailResultEntity, yesterday);
|
|
|
|
|
|
|
|
|
|
//设置入库数据
|
|
|
|
|
statData.setInCount(statData.getInCount() + statMonthEntity.getInCount());
|
|
|
|
|
statData.setInPrice(statMonthEntity.getInPrice());
|
|
|
|
|
statData.setInAmount(statData.getInAmount().add(statMonthEntity.getInAmount()));
|
|
|
|
|
|
|
|
|
|
//设置出库数据
|
|
|
|
|
statData.setOutCount(statData.getOutCount() + statMonthEntity.getOutCount());
|
|
|
|
|
statData.setOutPrice(statMonthEntity.getOutPrice());
|
|
|
|
|
statData.setOutAmount(statData.getOutAmount().add(statMonthEntity.getOutAmount()));
|
|
|
|
|
//查询此单是出库还是入库
|
|
|
|
|
IoOrderEntity order = orderDao.selectOne(new QueryWrapper<IoOrderEntity>().select("mainAction").eq("billNo", orderDetailResultEntity.getOrderIdFk()).eq("deptCode",orderDetailResultEntity.getDeptCode()));
|
|
|
|
|
if (order.getMainAction().equals(ConstantType.TYPE_PUT)) {
|
|
|
|
|
//入库
|
|
|
|
|
statData.setInCount(orderDetailResultEntity.getReCount() + statData.getInCount());
|
|
|
|
|
if (null != orderDetailResultEntity.getPrice()) {
|
|
|
|
|
BigDecimal inAmount = orderDetailResultEntity.getPrice().multiply(BigDecimal.valueOf(orderDetailResultEntity.getReCount()));
|
|
|
|
|
statData.setInAmount(inAmount.add(statData.getInAmount()));
|
|
|
|
|
}
|
|
|
|
|
} else if (order.getMainAction().equals(ConstantType.TYPE_OUT)) {
|
|
|
|
|
//出库
|
|
|
|
|
statData.setOutCount(orderDetailResultEntity.getReCount() + statData.getOutCount());
|
|
|
|
|
if (null != orderDetailResultEntity.getPrice()) {
|
|
|
|
|
BigDecimal outAmount = orderDetailResultEntity.getPrice().multiply(BigDecimal.valueOf(orderDetailResultEntity.getReCount()));
|
|
|
|
|
statData.setOutAmount(outAmount.add(statData.getOutAmount()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//汇总上一季度存在上上一季度不存在产品的汇总数据
|
|
|
|
|
//获取上上天的数据
|
|
|
|
|
QueryWrapper<IoStatQuarterEntity> ew = new QueryWrapper<>();
|
|
|
|
|
ew.eq("year", yesterday.year());
|
|
|
|
|
ew.eq("quarter", yesterday.quarter()-1);
|
|
|
|
|
List<IoStatQuarterEntity> ioStatMonthEntityList=statQuarterDao.selectList(ew);
|
|
|
|
|
List<IoStatQuarterEntity> newOrOldDate=getNewOrOldDate(dataList,ioStatMonthEntityList,yesterday);
|
|
|
|
|
dataList.addAll(newOrOldDate);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//插入汇总数据
|
|
|
|
|
saveData(yesterday, dataList);
|
|
|
|
|
}
|
|
|
|
@ -103,7 +138,7 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
OrderNoTypeBean orderNoTypeBean = new OrderNoTypeBean("STATQ", "yyyyMMdd");
|
|
|
|
|
String orderNo = gennerOrderUtils.createStatOrderNo(orderNoTypeBean);
|
|
|
|
|
statOrderEntity.setRecordKey(orderNo);
|
|
|
|
|
statOrderEntity.setType(3);
|
|
|
|
|
statOrderEntity.setType(2);
|
|
|
|
|
statOrderEntity.setDate(yesterday);
|
|
|
|
|
statOrderEntity.setTitle(yesterday.year() + " 年 " + yesterday.quarter() + " 季度出入库汇总");
|
|
|
|
|
|
|
|
|
@ -133,18 +168,19 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
* 获取季度数据
|
|
|
|
|
*
|
|
|
|
|
* @param dataList
|
|
|
|
|
* @param statMonthEntity
|
|
|
|
|
* @param orderDetailResultEntity
|
|
|
|
|
* @param yesterday
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
private IoStatQuarterEntity getStatData(List<IoStatQuarterEntity> dataList, IoStatMonthEntity statMonthEntity, DateTime yesterday) {
|
|
|
|
|
private IoStatQuarterEntity getStatData(List<IoStatQuarterEntity> dataList, IoOrderDetailResultEntity orderDetailResultEntity, DateTime yesterday) {
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(dataList)) {
|
|
|
|
|
for (IoStatQuarterEntity statQuarterEntity : dataList) {
|
|
|
|
|
if (statQuarterEntity.getRelIdFk().equals(statMonthEntity.getRelIdFk())) {
|
|
|
|
|
if ((StrUtil.isNotBlank(statQuarterEntity.getBatchNo()) && StrUtil.isNotBlank(statMonthEntity.getBatchNo())) && statQuarterEntity.getBatchNo().equals(statMonthEntity.getBatchNo())) {
|
|
|
|
|
return statQuarterEntity;
|
|
|
|
|
} else if (StrUtil.isBlank(statQuarterEntity.getBatchNo()) && StrUtil.isBlank(statMonthEntity.getBatchNo())) {
|
|
|
|
|
return statQuarterEntity;
|
|
|
|
|
for (IoStatQuarterEntity statDayEntity : dataList) {
|
|
|
|
|
if (Long.valueOf(statDayEntity.getRelIdFk()).equals(orderDetailResultEntity.getBindRlFk()) && statDayEntity.getDeptCode().equals(orderDetailResultEntity.getDeptCode())) {
|
|
|
|
|
if ((StrUtil.isNotBlank(statDayEntity.getBatchNo()) && StrUtil.isNotBlank(orderDetailResultEntity.getBatchNo())) && statDayEntity.getBatchNo().equals(orderDetailResultEntity.getBatchNo())) {
|
|
|
|
|
return statDayEntity;
|
|
|
|
|
} else if (StrUtil.isBlank(statDayEntity.getBatchNo()) && StrUtil.isBlank(orderDetailResultEntity.getBatchNo())) {
|
|
|
|
|
return statDayEntity;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -152,30 +188,30 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
|
|
|
|
|
//未存在于集合中,构造新数据
|
|
|
|
|
IoStatQuarterEntity statData = new IoStatQuarterEntity();
|
|
|
|
|
statData.setDeptCode(orderDetailResultEntity.getDeptCode());
|
|
|
|
|
statData.setYear(yesterday.year());
|
|
|
|
|
statData.setQuarter(yesterday.quarter());
|
|
|
|
|
statData.setRelIdFk(statMonthEntity.getRelIdFk());
|
|
|
|
|
statData.setNameCode(statMonthEntity.getNameCode());
|
|
|
|
|
statData.setProductName(statMonthEntity.getProductName());
|
|
|
|
|
statData.setGgxh(statMonthEntity.getGgxh());
|
|
|
|
|
statData.setBatchNo(statMonthEntity.getBatchNo());
|
|
|
|
|
statData.setRelIdFk(String.valueOf(orderDetailResultEntity.getBindRlFk()));
|
|
|
|
|
statData.setNameCode(orderDetailResultEntity.getNameCode());
|
|
|
|
|
statData.setProductName(orderDetailResultEntity.getCoName());
|
|
|
|
|
statData.setGgxh(orderDetailResultEntity.getSpec());
|
|
|
|
|
statData.setBatchNo(orderDetailResultEntity.getBatchNo());
|
|
|
|
|
//设置结余价格
|
|
|
|
|
statData.setBalancePrice(statMonthEntity.getBalancePrice());
|
|
|
|
|
statData.setBalancePrice(orderDetailResultEntity.getPrice());
|
|
|
|
|
//设置初始化出入库数量和价格
|
|
|
|
|
statData.setInCount(0);
|
|
|
|
|
statData.setInPrice(statMonthEntity.getBalancePrice());
|
|
|
|
|
statData.setInPrice(null == orderDetailResultEntity.getPrice() ? BigDecimal.ZERO : orderDetailResultEntity.getPrice());
|
|
|
|
|
statData.setInAmount(BigDecimal.ZERO);
|
|
|
|
|
|
|
|
|
|
statData.setOutCount(0);
|
|
|
|
|
statData.setOutPrice(statMonthEntity.getBalancePrice());
|
|
|
|
|
statData.setOutPrice(null == orderDetailResultEntity.getPrice() ? BigDecimal.ZERO : orderDetailResultEntity.getPrice());
|
|
|
|
|
statData.setOutAmount(BigDecimal.ZERO);
|
|
|
|
|
|
|
|
|
|
//设置期初数据
|
|
|
|
|
IoStatQuarterEntity statQuarterEntity = statQuarterDao.selectOne(buildQueryWrapper(statMonthEntity, yesterday));
|
|
|
|
|
IoStatQuarterEntity statQuarterEntity = statQuarterDao.selectOne(buildQueryWrapper(orderDetailResultEntity, yesterday));
|
|
|
|
|
if (null == statQuarterEntity) {
|
|
|
|
|
//第一次汇总季度数据
|
|
|
|
|
statData.setBeginCount(0);
|
|
|
|
|
statData.setBalancePrice(statMonthEntity.getBalancePrice());
|
|
|
|
|
statData.setBeginPrice(null == orderDetailResultEntity.getPrice() ? BigDecimal.ZERO : orderDetailResultEntity.getPrice());
|
|
|
|
|
statData.setBeginAmount(BigDecimal.ZERO);
|
|
|
|
|
|
|
|
|
|
statData.setBalanceCount(0);
|
|
|
|
@ -190,7 +226,7 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//设置结余价格
|
|
|
|
|
statData.setBalancePrice(statMonthEntity.getBalancePrice());
|
|
|
|
|
statData.setBalancePrice(statData.getBeginPrice());
|
|
|
|
|
|
|
|
|
|
dataList.add(statData);
|
|
|
|
|
return statData;
|
|
|
|
@ -199,11 +235,11 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
/**
|
|
|
|
|
* 构造查询条件
|
|
|
|
|
*
|
|
|
|
|
* @param statMonthEntity
|
|
|
|
|
* @param ioOrderDetailResultEntity
|
|
|
|
|
* @param yesterday
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
private QueryWrapper<IoStatQuarterEntity> buildQueryWrapper(IoStatMonthEntity statMonthEntity, DateTime yesterday) {
|
|
|
|
|
private QueryWrapper<IoStatQuarterEntity> buildQueryWrapper(IoOrderDetailResultEntity ioOrderDetailResultEntity, DateTime yesterday) {
|
|
|
|
|
QueryWrapper<IoStatQuarterEntity> wrapper = new QueryWrapper<>();
|
|
|
|
|
if (yesterday.quarter() == 1) {
|
|
|
|
|
//当前汇总的记录为第一季度,上一季度时间取前一年的第四季度数据
|
|
|
|
@ -213,42 +249,93 @@ public class IoStatQuarterServiceImpl implements IoStatQuarterService {
|
|
|
|
|
wrapper.eq("year", yesterday.year())
|
|
|
|
|
.eq("quarter", yesterday.quarter() - 1);
|
|
|
|
|
}
|
|
|
|
|
wrapper.eq("relIdFk", statMonthEntity.getRelIdFk())
|
|
|
|
|
.eq(StrUtil.isNotBlank(statMonthEntity.getBatchNo()), "batchNo", statMonthEntity.getBatchNo())
|
|
|
|
|
.eq(StrUtil.isNotBlank(statMonthEntity.getNameCode()), "nameCode", statMonthEntity.getNameCode());
|
|
|
|
|
wrapper.eq("relIdFk", ioOrderDetailResultEntity.getBindRlFk());
|
|
|
|
|
wrapper.eq(StrUtil.isNotBlank(ioOrderDetailResultEntity.getBatchNo()), "batchNo", ioOrderDetailResultEntity.getBatchNo());
|
|
|
|
|
wrapper.eq(StrUtil.isNotBlank(ioOrderDetailResultEntity.getNameCode()), "nameCode", ioOrderDetailResultEntity.getNameCode());
|
|
|
|
|
return wrapper;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询季度对应的月度数据
|
|
|
|
|
*
|
|
|
|
|
* @param quarter 季度,从1开始
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
private List<IoStatMonthEntity> getMonthStatList(DateTime yesterday) {
|
|
|
|
|
int quarter = yesterday.quarter();
|
|
|
|
|
List<Integer> months = new ArrayList<>(3);
|
|
|
|
|
switch (quarter) {
|
|
|
|
|
case 1:
|
|
|
|
|
months.addAll(Arrays.asList(1, 2, 3));
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
months.addAll(Arrays.asList(4, 5, 6));
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
months.addAll(Arrays.asList(7, 8, 9));
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
months.addAll(Arrays.asList(10, 11, 12));
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
//计算季初
|
|
|
|
|
public static String getStartDayOfQuarter(int year, int quarter) {
|
|
|
|
|
|
|
|
|
|
int startMonth = (quarter - 1) * 3;
|
|
|
|
|
|
|
|
|
|
// 根据月获取开始时间
|
|
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
|
|
|
|
|
|
|
cal.set(Calendar.YEAR, year);
|
|
|
|
|
cal.set(Calendar.MONTH, startMonth);
|
|
|
|
|
cal.set(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
|
|
|
|
|
|
cal.set(Calendar.HOUR, 0);
|
|
|
|
|
cal.set(Calendar.MINUTE, 0);
|
|
|
|
|
cal.set(Calendar.SECOND, 0);
|
|
|
|
|
|
|
|
|
|
// 创建 SimpleDateFormat 对象,用于格式化日期时间
|
|
|
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
// 使用 SimpleDateFormat 格式化 Calendar 对象,得到格式化之后的字符串
|
|
|
|
|
String dateString = df.format(cal.getTime());
|
|
|
|
|
|
|
|
|
|
return dateString;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//计算季末
|
|
|
|
|
public static String getLastDayOfQuarter(int year, int quarter) {
|
|
|
|
|
|
|
|
|
|
int lastMonth = quarter * 3 - 1;
|
|
|
|
|
|
|
|
|
|
// 根据月获取开始时间
|
|
|
|
|
// 根据月获取开始时间
|
|
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
|
|
|
|
|
|
|
cal.set(Calendar.YEAR, year);
|
|
|
|
|
cal.set(Calendar.MONTH, lastMonth);
|
|
|
|
|
cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));
|
|
|
|
|
|
|
|
|
|
cal.set(Calendar.HOUR, 0);
|
|
|
|
|
cal.set(Calendar.MINUTE, 0);
|
|
|
|
|
cal.set(Calendar.SECOND, 0);
|
|
|
|
|
|
|
|
|
|
// 创建 SimpleDateFormat 对象,用于格式化日期时间
|
|
|
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
// 使用 SimpleDateFormat 格式化 Calendar 对象,得到格式化之后的字符串
|
|
|
|
|
String dateString = df.format(cal.getTime());
|
|
|
|
|
|
|
|
|
|
return dateString;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<IoStatQuarterEntity> getNewOrOldDate(List<IoStatQuarterEntity> newIoStatDayEntity, List<IoStatQuarterEntity> oldIoStatDayEntity, DateTime lastMonth) {
|
|
|
|
|
|
|
|
|
|
// 计算出两个集合之间产品批次号组成的差异
|
|
|
|
|
// List<IoStatMonthEntity> ioStatMonthEntityList = oldIoStatDayEntity.stream().filter(notComment -> {
|
|
|
|
|
// List<IoStatMonthEntity> filtered = newIoStatDayEntity.stream().filter(all -> all.getBatchNo().equals(notComment.getBatchNo()) && all.getRelIdFk().equals(notComment.getRelIdFk())).collect(Collectors.toList());
|
|
|
|
|
// return filtered.isEmpty();
|
|
|
|
|
// }).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
List<IoStatQuarterEntity> ioStatMonthEntityList = oldIoStatDayEntity.stream()
|
|
|
|
|
.filter(notComment -> {
|
|
|
|
|
List<IoStatQuarterEntity> filtered = newIoStatDayEntity.stream().filter(all ->
|
|
|
|
|
Objects.equals(all.getBatchNo(), notComment.getBatchNo()) // 使用 Objects.equals 来进行非空判断
|
|
|
|
|
&& Objects.equals(all.getRelIdFk(), notComment.getRelIdFk())
|
|
|
|
|
&& Objects.equals(all.getDeptCode(), notComment.getDeptCode()))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
return filtered.isEmpty();
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
for (IoStatQuarterEntity ioStatDayEntity : ioStatMonthEntityList) {
|
|
|
|
|
ioStatDayEntity.setId(null);
|
|
|
|
|
ioStatDayEntity.setBeginCount(ioStatDayEntity.getBalanceCount());
|
|
|
|
|
ioStatDayEntity.setBeginAmount(ioStatDayEntity.getBalanceAmount());
|
|
|
|
|
ioStatDayEntity.setBeginPrice(ioStatDayEntity.getBalancePrice());
|
|
|
|
|
ioStatDayEntity.setQuarter(ioStatDayEntity.getQuarter()+1);
|
|
|
|
|
ioStatDayEntity.setInAmount(new BigDecimal(0));
|
|
|
|
|
ioStatDayEntity.setOutAmount(new BigDecimal(0));
|
|
|
|
|
ioStatDayEntity.setInCount(0);
|
|
|
|
|
ioStatDayEntity.setOutCount(0);
|
|
|
|
|
}
|
|
|
|
|
List<IoStatMonthEntity> list = statMonthDao.selectList(new QueryWrapper<IoStatMonthEntity>()
|
|
|
|
|
.eq("year", yesterday.year())
|
|
|
|
|
.eq("quarter", yesterday.quarter())
|
|
|
|
|
.in("month", months)
|
|
|
|
|
);
|
|
|
|
|
return list;
|
|
|
|
|
return ioStatMonthEntityList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|