|
@@ -6,6 +6,9 @@ import com.rongwei.bsentity.dto.InsideInspectionOperRequest;
|
|
|
import com.rongwei.bsentity.dto.inside.*;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -24,6 +27,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/inside/inspection")
|
|
|
+@Api(tags = "内部报验")
|
|
|
public class ZhcxInsideInspectionController {
|
|
|
|
|
|
@Autowired
|
|
@@ -35,6 +39,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("发起报验")
|
|
|
@PostMapping("/launch")
|
|
|
public R launch(@RequestBody InsideInspectionOperRequest req){
|
|
|
service.launch(req);
|
|
@@ -48,6 +53,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/dispacth")
|
|
|
+ @ApiOperation("派单")
|
|
|
public R dispacth(@RequestBody InsideInspectionDispatchRequest req){
|
|
|
req.setDispatchFlag(1);
|
|
|
service.dispatch(req);
|
|
@@ -60,6 +66,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("改派")
|
|
|
@PostMapping("/reDispatch")
|
|
|
public R reDispatch(@RequestBody InsideInspectionDispatchRequest req){
|
|
|
req.setDispatchFlag(2);
|
|
@@ -73,6 +80,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("执行")
|
|
|
@PostMapping("/execute")
|
|
|
public R execute(@RequestBody InsideInspectionDispatchRequest req){
|
|
|
service.execute(req);
|
|
@@ -85,6 +93,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("取消")
|
|
|
@PostMapping("/cancel")
|
|
|
public R cancel(@RequestBody InsideInspectionRequest req){
|
|
|
service.cancel(req);
|
|
@@ -97,6 +106,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("重新报验")
|
|
|
@PostMapping("/reInspection")
|
|
|
public R reInspection(@RequestBody InsideInspectionReInspectionRequest req){
|
|
|
service.reInspection(req);
|
|
@@ -104,11 +114,12 @@ public class ZhcxInsideInspectionController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 重新报验
|
|
|
+ * 添加修改记录
|
|
|
*
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("添加修改记录")
|
|
|
@PostMapping("/addModifyHistory")
|
|
|
public R addModifyHistory(@RequestBody InsideInspectionModifyRecordRequest req){
|
|
|
service.addModifyHistory(req);
|
|
@@ -121,6 +132,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param exportReq
|
|
|
* @param response
|
|
|
*/
|
|
|
+ @ApiOperation("文件下载")
|
|
|
@PostMapping("/downloadFile")
|
|
|
public void downloadFile(@RequestBody ZhcxInsideExportRequest exportReq, HttpServletResponse response) {
|
|
|
int i = service.downloadFile(exportReq, response);
|
|
@@ -137,6 +149,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("保存内部报验")
|
|
|
@PostMapping("/insertInspection")
|
|
|
public R insertInspection(@RequestBody InsideInspectionInsertRequest req){
|
|
|
service.insertInspection(req);
|
|
@@ -149,6 +162,7 @@ public class ZhcxInsideInspectionController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("修改内部报验")
|
|
|
@PostMapping("/updateInspection")
|
|
|
public R updateInspection(@RequestBody InsideInspectionUpdateRequest req){
|
|
|
service.updateInspection(req);
|