|
@@ -7,6 +7,8 @@ import com.rongwei.bsentity.vo.OperOutsideInspectionVo;
|
|
import com.rongwei.bsentity.vo.ZhcxOutsideExportVo;
|
|
import com.rongwei.bsentity.vo.ZhcxOutsideExportVo;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -22,12 +24,14 @@ import java.util.Map;
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/zhcxOperOutsideInspection")
|
|
@RequestMapping("/zhcxOperOutsideInspection")
|
|
@Slf4j
|
|
@Slf4j
|
|
|
|
+@Api("外部报验参数")
|
|
public class ZhcxOperOutsideInspectionController {
|
|
public class ZhcxOperOutsideInspectionController {
|
|
@Autowired
|
|
@Autowired
|
|
private ZhcxOutsideInspectionItpService inspectionService;
|
|
private ZhcxOutsideInspectionItpService inspectionService;
|
|
@Autowired
|
|
@Autowired
|
|
private LockUtils lockUtils;
|
|
private LockUtils lockUtils;
|
|
|
|
|
|
|
|
+ @ApiOperation("外部报验操作")
|
|
@PostMapping("/OperInspectionStatus")
|
|
@PostMapping("/OperInspectionStatus")
|
|
public R OperInspectionStatus(@RequestBody List<OperOutsideInspectionVo> vo) {
|
|
public R OperInspectionStatus(@RequestBody List<OperOutsideInspectionVo> vo) {
|
|
try {
|
|
try {
|
|
@@ -48,6 +52,7 @@ public class ZhcxOperOutsideInspectionController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("文件下载")
|
|
@PostMapping("/downloadFile")
|
|
@PostMapping("/downloadFile")
|
|
public void downloadFile(@RequestBody ZhcxOutsideExportVo zhcxOutsideExportVo, HttpServletResponse response) throws FileNotFoundException {
|
|
public void downloadFile(@RequestBody ZhcxOutsideExportVo zhcxOutsideExportVo, HttpServletResponse response) throws FileNotFoundException {
|
|
int i = inspectionService.downloadFile(zhcxOutsideExportVo, response);
|
|
int i = inspectionService.downloadFile(zhcxOutsideExportVo, response);
|