package com.ruoyi.inspect.controller;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.basic.dto.IfsInventoryQuantityDto;
|
import com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto;
|
import com.ruoyi.basic.pojo.IfsInventoryQuantity;
|
import com.ruoyi.common.annotation.PersonalScope;
|
import com.ruoyi.common.core.domain.Result;
|
import com.ruoyi.inspect.service.OutsourcingFinishProductInspectionService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* 外购成品检验controller
|
*/
|
@RestController
|
@RequestMapping("/outsourcingFinishProduct")
|
public class OutsourcingFinishProductInspectionController {
|
|
@Autowired
|
private OutsourcingFinishProductInspectionService outsourcingFinishProductInspectionService;
|
|
@ApiOperation(value = "仓库报检查询")
|
@GetMapping("/getWarehouseSubmit")
|
public Result getWarehouseSubmit(Page page, IfsInventoryQuantity ifsInventoryQuantity) {
|
return Result.success(outsourcingFinishProductInspectionService.getWarehouseSubmit(page, ifsInventoryQuantity));
|
}
|
|
@ApiOperation(value = "外购成品检验查询检验中")
|
@GetMapping("/getIfsByStateOne")
|
@PreAuthorize("@ss.hasPermi('business:order')")
|
@PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantityDto.class, paramName = "createUser")
|
public Result getIfsByStateOne(Page page, IfsInventoryQuantityDto ifsInventoryQuantityDto){
|
return Result.success(outsourcingFinishProductInspectionService.getIfsByStateOne(page, ifsInventoryQuantityDto));
|
}
|
|
@ApiOperation(value = "外购成品检验查询已检验")
|
@GetMapping("/getIfsByOver")
|
@PreAuthorize("@ss.hasPermi('business:order')")
|
@PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantitySupplierDto.class, paramName = "createUser")
|
public Result getIfsByOver(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){
|
return Result.success(outsourcingFinishProductInspectionService.getIfsByOver(page, ifsInventoryQuantityDto));
|
}
|
|
@ApiOperation(value = "原材料报检查询全部")
|
@PreAuthorize("@ss.hasPermi('get:Ifs:ByAll')")
|
@GetMapping("/getIfsByAll")
|
public Result getIfsByAll(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){
|
return Result.success(outsourcingFinishProductInspectionService.getIfsByOver(page, ifsInventoryQuantityDto));
|
}
|
|
|
|
}
|