whyclxw
2024-07-23 12d9277646a5eeafc20f18c6bb4ea8a855d4e2c1
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);
    }
}