|
|
|
@ -11,11 +11,15 @@ import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.controller.BaseController;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicUdiProductEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.ProductInfoEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiCompanyEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.req.basic.BasicDictSelectRequest;
|
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
|
import com.glxp.api.req.basic.ProductInfoFilterRequest;
|
|
|
|
|
import com.glxp.api.req.basic.UdiCompanyRequest;
|
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.trace.TraceManuCodeRellResponse;
|
|
|
|
|
import com.glxp.api.service.basic.BasicUdiProductService;
|
|
|
|
|
import com.glxp.api.service.basic.ProductInfoService;
|
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
@ -139,5 +143,30 @@ public class UdiProductController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success("更新成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udi/basic/dict/filterCpmctymc")
|
|
|
|
|
public BaseResponse filterCpmctymc(ProductInfoFilterRequest productInfoFilterRequest) {
|
|
|
|
|
|
|
|
|
|
List<ProductInfoEntity> productInfoEntities = productInfoService.filterCpmctymc(productInfoFilterRequest);
|
|
|
|
|
PageInfo<ProductInfoEntity> pageInfo = new PageInfo<>(productInfoEntities);
|
|
|
|
|
PageSimpleResponse<ProductInfoEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
pageSimpleResponse.setList(productInfoEntities);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udi/basic/dict/filterGgxh")
|
|
|
|
|
public BaseResponse filterGgxh(ProductInfoFilterRequest productInfoFilterRequest) {
|
|
|
|
|
|
|
|
|
|
List<ProductInfoEntity> productInfoEntities = productInfoService.filterGgxh(productInfoFilterRequest);
|
|
|
|
|
PageInfo<ProductInfoEntity> pageInfo = new PageInfo<>(productInfoEntities);
|
|
|
|
|
PageSimpleResponse<ProductInfoEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
pageSimpleResponse.setList(productInfoEntities);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|