| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BOMFeedback; |
| | | import com.whyc.pojo.DefectiveProducts; |
| | | import com.whyc.pojo.DefectiveProductsHistory; |
| | | import com.whyc.service.BOMFeedbakService; |
| | | import com.whyc.service.DefectiveProductsService; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | DefectiveProducts defective= ActionUtil.getGson().fromJson(defectiveJson, DefectiveProducts.class); |
| | | return service.addDefective(defective,multipartFileList); |
| | | } |
| | | |
| | | @ApiOperation("处理不良品") |
| | | @PostMapping("updateDefective") |
| | | public Response updateDefective(@RequestBody DefectiveProductsHistory defectiveHis) { |
| | | return service.updateDefective(defectiveHis); |
| | | } |
| | | |
| | | @ApiOperation("归档不良品") |
| | | @PostMapping("stopDefective") |
| | | public Response stopDefective(@RequestParam int deftId) { |
| | | return service.stopDefective(deftId); |
| | | } |
| | | } |