|
|
@@ -10,8 +10,10 @@ import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.admin.dao.SysMethodLogDao;
|
|
|
import com.ydtech.modules.esm.model.InsTaskImage;
|
|
|
import com.ydtech.modules.ins.model.InsOrder;
|
|
|
+import com.ydtech.modules.ins.model.ya.CarModel_Req;
|
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
|
import com.ydtech.modules.ins.service.InsZhongmeiService;
|
|
|
+import com.ydtech.modules.ins.service.YongAnService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -34,6 +36,9 @@ public class InsZhongmeiController {
|
|
|
|
|
|
private final InsZhongmeiService insZhongmeiService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private YongAnService yongAnService;
|
|
|
+
|
|
|
public InsZhongmeiController(InsZhongmeiService insZhongmeiService) {
|
|
|
this.insZhongmeiService = insZhongmeiService;
|
|
|
}
|
|
|
@@ -44,12 +49,17 @@ public class InsZhongmeiController {
|
|
|
if (StringUtils.isEmpty(modelName)) {
|
|
|
throw new SystemException("车型不能为空");
|
|
|
}
|
|
|
- return insZhongmeiService.modelQuery(modelName);
|
|
|
+ CarModel_Req carModelReq = new CarModel_Req();
|
|
|
+ carModelReq.setModelName(modelName);
|
|
|
+
|
|
|
+ return yongAnService.modelsQuery(carModelReq);
|
|
|
+// return insZhongmeiService.modelQuery(modelName);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/vinSearch")
|
|
|
@ApiOperation("vin码查询")
|
|
|
public HttpResult vinSearch(@RequestParam String frameNo) {
|
|
|
+
|
|
|
return insZhongmeiService.vinSearch(frameNo);
|
|
|
}
|
|
|
|