12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- package com.rongwei.bsserver.controller;
- import com.rongwei.bscommon.sys.service.ZhcxInsideInspectionService;
- import com.rongwei.bsentity.dto.InsideInspectionOperRequest;
- import com.rongwei.bsentity.dto.inside.InsideInspectionDispatchRequest;
- import com.rongwei.rwcommon.base.R;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * <p>
- * 内部报验-报验管理 前端控制器
- * </p>
- *
- * @author wm
- * @since 2024-05-21
- */
- @RestController
- @RequestMapping("/inside/inspection")
- public class ZhcxInsideInspectionController {
- @Autowired
- private ZhcxInsideInspectionService zhcxInsideInspectionService;
- /**
- * 发起
- *
- * @param req
- * @return
- */
- @PostMapping("/launch")
- public R launch(@RequestBody InsideInspectionOperRequest req){
- zhcxInsideInspectionService.launch(req);
- return R.ok();
- }
- /**
- * 派单
- *
- * @param req
- * @return
- */
- @PostMapping("/dispacth")
- public R dispacth(@RequestBody InsideInspectionDispatchRequest req){
- req.setDispatchFlag(1);
- zhcxInsideInspectionService.dispatch(req);
- return R.ok("派单成功");
- }
- /**
- * 派单
- *
- * @param req
- * @return
- */
- @PostMapping("/reDispatch")
- public R reDispatch(@RequestBody InsideInspectionDispatchRequest req){
- req.setDispatchFlag(2);
- zhcxInsideInspectionService.reDispatch(req);
- return R.ok("改派成功");
- }
- }
|