| | |
| | | @ApiImplicitParam(name = "pageSize", value = "每一页数量", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "materialCoding", value = "材料编码", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "materialName", value = "材料名称", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "condition", value = "状态", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "type", value = "状态", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "createTime", value = "来料日期", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAll") |
| | | public Result<?> selectRawMaterial(Integer pageSize, Integer pageNo, String materialCoding, String materialName, Integer condition, String createTime) { |
| | | IPage<RawMaterial> iPage = rawMaterialService.selectRawMaterial(materialCoding, materialName, condition, createTime, new Page<Objects>(pageNo, pageSize)); |
| | | public Result<?> selectRawMaterial(Integer pageSize, Integer pageNo, String materialCoding, String materialName, Integer type, String createTime) { |
| | | IPage<RawMaterial> iPage = rawMaterialService.selectRawMaterial(materialCoding, materialName, type, createTime, new Page<Objects>(pageNo, pageSize)); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("row", iPage.getRecords()); |
| | | map.put("total", iPage.getTotal()); |