src/main/java/com/whyc/controller/DefectiveProductsController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/mapper/DefectiveProductsMapper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/DefectiveProductsMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/controller/DefectiveProductsController.java
@@ -1,5 +1,6 @@ package com.whyc.controller; import com.whyc.dto.DefectiveDto; import com.whyc.dto.Response; import com.whyc.pojo.BOMFeedback; import com.whyc.pojo.DefectiveProducts; @@ -43,4 +44,11 @@ public Response stopDefective(@RequestParam int deftId) { return service.stopDefective(deftId); } @ApiOperation("获取不良品") @GetMapping("getDefectives") public Response getDefectives(@RequestParam String message) { DefectiveDto defectiveDto= ActionUtil.getGson().fromJson(message, DefectiveDto.class); return service.getDefectiveLimit(defectiveDto); } } src/main/java/com/whyc/mapper/DefectiveProductsMapper.java
@@ -9,7 +9,7 @@ public interface DefectiveProductsMapper extends CustomMapper<DefectiveProducts>{ //不良品首页推送 List<DefectiveProducts> getDefectiveLimit(@Param("dto")DefectiveDto defectiveDto); List<DefectiveProducts> getDefectiveLimit(@Param("dto") DefectiveDto defectiveDto); } src/main/resources/mapper/DefectiveProductsMapper.xml
@@ -35,7 +35,7 @@ </if> <if test="dto.confirmStatus!=null"> and confirm_status=#{confirmStatus} and confirm_status=#{dto.confirmStatus} </if> </where> order by start_time desc