You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
2 years ago
|
package com.glxp.api.controller.inout;
|
||
|
|
||
|
import com.github.pagehelper.PageInfo;
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
import com.glxp.api.entity.inout.IoStatOrderEntity;
|
||
|
import com.glxp.api.req.inout.FilterStatDataRequest;
|
||
|
import com.glxp.api.service.inout.IoStatDayService;
|
||
|
import com.glxp.api.service.inout.IoStatMonthService;
|
||
|
import com.glxp.api.service.inout.IoStatOrderService;
|
||
|
import com.glxp.api.service.inout.IoStatYearService;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
import javax.annotation.Resource;
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* 出入库汇总数据接口
|
||
|
*/
|
||
|
@Slf4j
|
||
|
@RestController
|
||
|
public class IoStatDataController {
|
||
|
|
||
|
@Resource
|
||
|
private IoStatOrderService statOrderService;
|
||
|
@Resource
|
||
|
private IoStatDayService statDayService;
|
||
|
@Resource
|
||
|
private IoStatMonthService statMonthService;
|
||
|
@Resource
|
||
|
private IoStatYearService statYearService;
|
||
|
|
||
|
/**
|
||
|
* 查询汇总记录列表
|
||
|
*
|
||
|
* @param statDataRequest
|
||
|
* @return
|
||
|
*/
|
||
|
@GetMapping("/udiwms/inout/stat/filter")
|
||
|
public BaseResponse filterList(FilterStatDataRequest statDataRequest) {
|
||
|
List<IoStatOrderEntity> list = statOrderService.filterList(statDataRequest);
|
||
|
PageInfo<IoStatOrderEntity> pageInfo = new PageInfo<>(list);
|
||
|
return ResultVOUtils.page(pageInfo);
|
||
|
}
|
||
|
|
||
|
}
|