This commit is contained in:
Lemon
2023-07-19 10:02:35 +08:00
parent fd36eb89ae
commit 6905a3f62d
2 changed files with 26 additions and 1 deletions

View File

@@ -6,7 +6,10 @@ import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.domain.MemberPlateNumberRelation;
import com.jsowell.pile.dto.CarVinDTO;
import com.jsowell.pile.dto.QueryOrderDTO;
import com.jsowell.pile.service.IMemberPlateNumberRelationService;
import com.jsowell.pile.service.IOrderBasicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -24,6 +27,9 @@ public class TempController extends BaseController {
@Autowired
private IOrderBasicInfoService orderBasicInfoService;
@Autowired
private IMemberPlateNumberRelationService memberPlateNumberRelationService;
/**
* 临时刷数据接口
* http://localhost:8080/temp/tempUpdateVirtualAmount
@@ -117,4 +123,23 @@ public class TempController extends BaseController {
logger.info("临时接口计算站点订单报表 result:{}", JSONObject.toJSONString(response));
return response;
}
/**
* 临时接口测试vin查询方法
* @param dto
* @return
*/
@PostMapping("/tempTestVinCode")
public RestApiResponse<?> tempTestVinCode(@RequestBody CarVinDTO dto) {
RestApiResponse<?> response = null;
try {
MemberPlateNumberRelation memberPlateInfoByVinCode = memberPlateNumberRelationService.getMemberPlateInfoByVinCode(dto.getVinCode());
response = new RestApiResponse<>(memberPlateInfoByVinCode);
} catch (Exception e) {
logger.error("临时接口测试vin查询方法 error,", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
}
logger.info("临时接口测试vin查询方法 result:{}", response);
return response;
}
}