feat(wms): 新增发货报表统计功能
- 在IWmsDeliveryPlanService接口中新增getDeliveryReport方法 - 在WmsDeliveryPlanController中添加/report接口用于获取发货报表 - 在WmsDeliveryPlanMapper中新增selectDeliveryReport方法 - 在WmsDeliveryPlanMapper.xml中编写发货报表查询SQL - 在WmsDeliveryPlanServiceImpl中实现发货报表统计逻辑 - 新增WmsDeliveryReportVo类用于封装发货报表数据
This commit is contained in:
@@ -6,8 +6,10 @@ import com.klp.domain.vo.WmsDeliveryPlanVo;
|
||||
import com.klp.domain.bo.WmsDeliveryPlanBo;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.domain.vo.WmsDeliveryReportVo;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -49,4 +51,6 @@ public interface IWmsDeliveryPlanService {
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
|
||||
List<WmsDeliveryPlanStatisticsVo> getDeliveryPlanStatistics(Long planId);
|
||||
|
||||
List<WmsDeliveryReportVo> getDeliveryReport(Date startTime, Date endTime);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.klp.common.utils.StringUtils;
|
||||
import com.klp.domain.vo.WmsDeliveryPlanStatisticsVo;
|
||||
import com.klp.domain.vo.WmsDeliveryReportVo;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.klp.domain.bo.WmsDeliveryPlanBo;
|
||||
@@ -16,10 +17,7 @@ import com.klp.domain.WmsDeliveryPlan;
|
||||
import com.klp.mapper.WmsDeliveryPlanMapper;
|
||||
import com.klp.service.IWmsDeliveryPlanService;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 发货计划Service业务层处理
|
||||
@@ -120,4 +118,15 @@ public class WmsDeliveryPlanServiceImpl implements IWmsDeliveryPlanService {
|
||||
public List<WmsDeliveryPlanStatisticsVo> getDeliveryPlanStatistics(Long planId) {
|
||||
return baseMapper.selectDeliveryPlanStatistics(planId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取发货报表统计信息
|
||||
*
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @return 报表统计信息列表
|
||||
*/
|
||||
public List<WmsDeliveryReportVo> getDeliveryReport(Date startTime, Date endTime) {
|
||||
return baseMapper.selectDeliveryReport(startTime, endTime);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user