@ -3,14 +3,12 @@ package com.glxp.api.admin.controller.thrsys;
import cn.hutool.core.util.IdUtil ;
import com.github.pagehelper.PageInfo ;
import com.glxp.api.admin.annotation.AuthRuleAnnotation ;
import com.glxp.api.admin.entity.inventory.InvSubWarehouseEntity ;
import com.glxp.api.admin.entity.thrsys.ThrInvWarehouseEntity ;
import com.glxp.api.admin.entity.thrsys.ThrSubInvWarehouseEntity ;
import com.glxp.api.admin.req.inout.DeleteRequest ;
import com.glxp.api.admin.req.inventory.FilterInvSubWarehouseRequest ;
import com.glxp.api.admin.req.thrsys.FilterThrInvWarehouseRequest ;
import com.glxp.api.admin.req.thrsys.FilterThrSubInvWarehouseRequest ;
import com.glxp.api.admin.res.PageSimpleResponse ;
import com.glxp.api.admin.res.thrsys.ThrSubInvWarehouseResponse ;
import com.glxp.api.admin.service.thrsys.ThrInvWarehouseService ;
import com.glxp.api.admin.service.thrsys.ThrSubInvWarehouseService ;
import com.glxp.api.common.enums.ResultEnum ;
@ -37,12 +35,12 @@ public class ThrSubInvWarehouseController {
@GetMapping ( "/thirdSys/sub/inv/warehouse/filter" )
public BaseResponse filterInvWarehouse ( FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest ) {
List < ThrSubInvWarehouse Entity> thrInvWarehouseEntiti es = thrSubInvWarehouseService . filterThrInvWarehou se( filterThrSubInvWarehouseRequest ) ;
PageInfo < ThrSubInvWarehouse Entity > pageInfo ;
pageInfo = new PageInfo < > ( thr InvWarehouseEntiti es) ;
PageSimpleResponse < ThrSubInvWarehouse Entity > pageSimpleResponse = new PageSimpleResponse < > ( ) ;
List < ThrSubInvWarehouse Response> thrSubInvWarehouseRespons es = thrSubInvWarehouseService . filterThrInvWarehou seRespon se( filterThrSubInvWarehouseRequest ) ;
PageInfo < ThrSubInvWarehouse Response > pageInfo ;
pageInfo = new PageInfo < > ( thr SubInvWarehouseRespons es) ;
PageSimpleResponse < ThrSubInvWarehouse Response > pageSimpleResponse = new PageSimpleResponse < > ( ) ;
pageSimpleResponse . setTotal ( pageInfo . getTotal ( ) ) ;
pageSimpleResponse . setList ( thr InvWarehouseEntiti es) ;
pageSimpleResponse . setList ( thr SubInvWarehouseRespons es) ;
return ResultVOUtils . success ( pageSimpleResponse ) ;
}