diff --git a/src/main/java/com/spring/modules/part/controller/PartInformationController.java b/src/main/java/com/spring/modules/part/controller/PartInformationController.java index 847d0f47..ac794eda 100644 --- a/src/main/java/com/spring/modules/part/controller/PartInformationController.java +++ b/src/main/java/com/spring/modules/part/controller/PartInformationController.java @@ -426,4 +426,18 @@ public class PartInformationController { return R.ok().put("rows", list); } + /** + * @description: 材料报表 -- 所有信息展示 + * @author: yzz + * @date: 2024年2月19日 16点55分 + * @param: [data] + * @return: com.spring.common.utils.R + **/ + @PostMapping(value="/partAllInfoSearch") + @ResponseBody + public R partAllInfoSearch(@RequestBody PartInformationVo data) { + PageUtils page = partInformationService.partAllInfoSearch(data); + return R.ok().put("page", page); + } + } diff --git a/src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java b/src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java index 065baa53..e07e19ce 100644 --- a/src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java +++ b/src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java @@ -112,4 +112,7 @@ public interface PartInformationMapper extends BaseMapper void deleteManufacturerByPartNo(PartInformationEntity data); void deleteLocationByPartNo(PartInformationEntity data); + + IPage partAllInfoSearch(Page partInformationVoPage, @Param("query") PartInformationVo data); + } diff --git a/src/main/java/com/spring/modules/part/service/PartInformationService.java b/src/main/java/com/spring/modules/part/service/PartInformationService.java index 61563689..2240e839 100644 --- a/src/main/java/com/spring/modules/part/service/PartInformationService.java +++ b/src/main/java/com/spring/modules/part/service/PartInformationService.java @@ -89,4 +89,6 @@ public interface PartInformationService { void deleteDefaultLocation(PartInformationVo data); void deleteLocation(LocationInformationVo data); + + PageUtils partAllInfoSearch(PartInformationVo data); } diff --git a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java index 3864034b..0baee033 100644 --- a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java @@ -707,4 +707,17 @@ public class PartInformationServiceImpl extends ServiceImpl resultList = this.partInformationMapper.partAllInfoSearch(new Page(data.getPage(), data.getLimit()), data); + return new PageUtils(resultList); + } } diff --git a/src/main/resources/mapper/part/PartInformationMapper.xml b/src/main/resources/mapper/part/PartInformationMapper.xml index 364e8b20..10e1a133 100644 --- a/src/main/resources/mapper/part/PartInformationMapper.xml +++ b/src/main/resources/mapper/part/PartInformationMapper.xml @@ -659,4 +659,123 @@ delete from plm_part_location where part_no = #{partNo} and site = #{site} + + + + +