| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-07-28 |
| | | */ |
| | | @Api(tags = "1、物料表") |
| | | @Api(tags = "报检管理-->原材料报检") |
| | | @RestController |
| | | @RequestMapping("/raw-material") |
| | | public class RawMaterialController { |
| | |
| | | @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 = String.class), |
| | | @ApiImplicitParam(name = "condition", value = "状态", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "createTime", value = "来料日期", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAll") |
| | | public Result<?> selectRawMaterial(Integer pageSize, Integer pageNo, String materialCoding, String materialName, String condition, String createTime) { |
| | | 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)); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("row", iPage.getRecords()); |