| | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.*; |
| | | import com.ruoyi.basic.enums.StandardProductListChcekTypeEnums; |
| | | import com.ruoyi.basic.pojo.*; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.basic.service.StandardMethodListService; |
| | |
| | | |
| | | @ApiOperation(value = "删除标准树的层级") |
| | | @DeleteMapping("/delStandardTree") |
| | | public Result delStandardTree(String tree) { |
| | | return Result.success(standardTreeService.delStandardTree(tree)); |
| | | public Result delStandardTree(String level, String id) { |
| | | return Result.success(standardTreeService.delStandardTree(level,id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "通过标准树查询对应的检验项目") |
| | |
| | | @ApiOperation(value = "删除厂家要求值绑定") |
| | | @DeleteMapping("/deleteProductSupplierAsk") |
| | | public Result deleteProductSupplierAsk(Integer supplierAskId) { |
| | | standardProductListSupplierAskService.removeById(supplierAskId); |
| | | standardProductListSupplierAskService.deleteProductSupplierAsk(supplierAskId); |
| | | return Result.success(); |
| | | } |
| | | |
| | |
| | | @PostMapping("/updateStandardProductListBatch") |
| | | public Result updateStandardProductListBatch(@RequestBody Map<String, Object> param) { |
| | | List<StandardProductList> standardProductList = (List<StandardProductList>) param.get("standardProductList"); |
| | | if(CollectionUtils.isEmpty(standardProductList)){ |
| | | for (StandardProductList productList : standardProductList) { |
| | | productList.setCheckStatus(StandardProductListChcekTypeEnums.WAIT_CHECK.getCode()); |
| | | } |
| | | } |
| | | return Result.success(standardProductListService.updateBatchById(standardProductList)); |
| | | } |
| | | |
| | |
| | | standardProductListService.productListCheck(standardProductListUpdateRecord); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("查询标准库是否存在审核中状态") |
| | | @GetMapping("/existCheckingRecord") |
| | | public Result existCheckingRecord(){ |
| | | return Result.success(standardProductListService.existCheckingRecord()); |
| | | } |
| | | } |