You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdny-jxpt/dxhy-erp/src/main/java/com/dxhy/erp/controller/RequestRecallController.java

38 lines
1.4 KiB

package com.dxhy.erp.controller;
2 years ago
import com.alibaba.fastjson.JSONObject;
import com.dxhy.common.controller.AbstractController;
import com.dxhy.erp.entity.RequestRecord;
import com.dxhy.erp.service.RequestRecordService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@SuppressWarnings("AlibabaMethodTooLong")
@RequestMapping("/recall")
@RestController
@Slf4j
public class RequestRecallController extends AbstractController {
@Resource
RequestRecordService requestRecordService;
@ApiOperation(value = "重调接口入口", notes = "重调接口入口")
@RequestMapping(path = "/requestRecordRecall", method = {RequestMethod.POST})
public ResponseEntity<?> recall(RequestRecord requestRecord) {
2 years ago
log.info("重调用接口调用开始");
log.info("重调用接口入参:{}", JSONObject.toJSONString(requestRecord));
ResponseEntity responseEntity = requestRecordService.reCall(requestRecord);
log.info("重调用接口调用结束,返回参数:{}", JSONObject.toJSONString(responseEntity));
return responseEntity;
}
}