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.
udi-wms-java/src/main/java/com/glxp/api/controller/inout/IoStatDataController.java

49 lines
1.4 KiB
Java

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);
}
}