| | |
| | | import com.ruoyi.common.enums.RawMaterialInspectState; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.quality.dto.RawMaterialDto; |
| | | import com.ruoyi.quality.pojo.QualityInspect; |
| | | import com.ruoyi.quality.pojo.RawMaterial; |
| | | import com.ruoyi.quality.service.RawMaterialService; |
| | | import com.ruoyi.staff.pojo.StaffOnJob; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | public AjaxResult delete(@RequestBody List<Integer> ids) { |
| | | return AjaxResult.success(rawMaterialService.removeByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 导出原料数据 |
| | | */ |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, RawMaterialDto rawMaterialDto) { |
| | | rawMaterialService.export(response, rawMaterialDto); |
| | | } |
| | | |
| | | @PostMapping("/down") |
| | | public void down(HttpServletResponse response,@RequestBody RawMaterialDto rawMaterialDto) { |
| | | rawMaterialService.down(response, rawMaterialDto); |
| | | } |
| | | } |