| | |
| | | |
| | | 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.pojo.StandardProductList; |
| | | import com.ruoyi.basic.pojo.StandardProductListSupplierAsk; |
| | | import com.ruoyi.basic.pojo.StandardTree; |
| | | import com.ruoyi.basic.service.StandardMethodListService; |
| | | import com.ruoyi.basic.service.StandardProductListService; |
| | | import com.ruoyi.basic.service.StandardProductListSupplierAskService; |
| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | public Result copyStandardProductSort(@RequestBody CopyStandardProductListDto copyStandardProductListDto) { |
| | | return Result.success(standardProductListService.copyStandardProductSort(copyStandardProductListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "标准树下检验项提交") |
| | | @PostMapping("/productListSubmit") |
| | | public Result productListSubmit(@RequestBody StandardProductListUpdateRecord standardProductListUpdateRecord) { |
| | | standardProductListService.productListSubmit(standardProductListUpdateRecord); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "标准树下检验项审核") |
| | | @PostMapping("/productListCheck") |
| | | public Result productListCheck(@RequestBody StandardProductListUpdateRecord standardProductListUpdateRecord) { |
| | | standardProductListService.productListCheck(standardProductListUpdateRecord); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("查询标准库是否存在审核中状态") |
| | | @GetMapping("/existCheckingRecord") |
| | | public Result existCheckingRecord(){ |
| | | return Result.success(standardProductListService.existCheckingRecord()); |
| | | } |
| | | } |