|
@@ -11,6 +11,7 @@ import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -29,6 +30,7 @@ import java.util.Map;
|
|
|
@RestController
|
|
|
@RequestMapping("/inside/inspection")
|
|
|
@Api(tags = "内部报验")
|
|
|
+@Slf4j
|
|
|
public class ZhcxInsideInspectionController {
|
|
|
|
|
|
@Autowired
|
|
@@ -84,8 +86,13 @@ public class ZhcxInsideInspectionController {
|
|
|
@ApiOperation("执行")
|
|
|
@PostMapping("/execute")
|
|
|
public R execute(@RequestBody InsideInspectionDispatchRequest req){
|
|
|
- service.execute(req);
|
|
|
- return R.ok("执行成功");
|
|
|
+ try {
|
|
|
+ service.execute(req);
|
|
|
+ return R.ok("执行成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("执行异常, {}", e);
|
|
|
+ return R.error("执行异常");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|