whyclxw
2024-07-23 12d9277646a5eeafc20f18c6bb4ea8a855d4e2c1
不良品推送修改
3个文件已修改
12 ■■■■ 已修改文件
src/main/java/com/whyc/controller/DefectiveProductsController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/mapper/DefectiveProductsMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/DefectiveProductsMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | 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