|
@@ -8,11 +8,16 @@ import com.rongwei.bsentity.dto.ReInspectionRequest;
|
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionInsertRequest;
|
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionUpdateRequest;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+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;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -26,6 +31,7 @@ import java.util.Map;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/zhcxOutsideInspectionItp")
|
|
|
+@Api(tags = "外部报验")
|
|
|
public class ZhcxOutsideInspectionItpController {
|
|
|
|
|
|
@Autowired
|
|
@@ -34,12 +40,17 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
@Autowired
|
|
|
private ZhcxReprotSameDayRealTimeInspectionStatisticsService reprotSameDayRealTimeInspectionStatisticsService;
|
|
|
|
|
|
+ @ApiOperation("发起报验")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "id", value = "外部报验id")
|
|
|
+ })
|
|
|
@PostMapping("/splitOrder")
|
|
|
- public R copyNodesSave(@RequestBody Map<String, String> map){
|
|
|
+ public R copyNodesSave(@RequestBody @ApiIgnore Map<String, String> map){
|
|
|
service.splitOrder(map.get("id"));
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("重新报验")
|
|
|
@PostMapping("/reInspection")
|
|
|
public R reInspection(@RequestBody ReInspectionRequest res){
|
|
|
service.reInspection(res.getId(), res.getMasterSlaveUpdate());
|
|
@@ -52,6 +63,7 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
* @param res
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("生成修改记录")
|
|
|
@PostMapping("/genModifyRecord")
|
|
|
public R modifyRecord(@RequestBody ReInspectionRequest res){
|
|
|
service.modifyItpHistory(res);
|
|
@@ -63,6 +75,7 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiIgnore
|
|
|
@PostMapping("/genLastHourInspection")
|
|
|
public R genLastHourInspection(){
|
|
|
reprotSameDayRealTimeInspectionStatisticsService.genStatistics();
|
|
@@ -75,6 +88,7 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("保存报验单")
|
|
|
@PostMapping("/insertInspection")
|
|
|
public R insertInspection(@RequestBody OutsideInspectionInsertRequest req){
|
|
|
service.insertInspection(req);
|
|
@@ -87,6 +101,7 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("修改报验单")
|
|
|
@PostMapping("/updateInspection")
|
|
|
public R updateInspection(@RequestBody OutsideInspectionUpdateRequest req){
|
|
|
service.updateInspection(req);
|
|
@@ -99,6 +114,7 @@ public class ZhcxOutsideInspectionItpController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("推送到报送平台")
|
|
|
@PostMapping("/syncBsPlatform")
|
|
|
public R syncBsPlatform(@RequestBody OutsideInspactionSyncReqquest req){
|
|
|
service.sync2SubmissionPlatform(req);
|