|
@@ -4,14 +4,8 @@ import com.baidu.ueditor.ActionEnter;
|
|
|
import com.baidu.ueditor.define.ActionMap;
|
|
|
import com.baidu.ueditor.define.BaseState;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
-import com.yc.education.model.Brand;
|
|
|
-import com.yc.education.model.CarSedan;
|
|
|
-import com.yc.education.model.Provider;
|
|
|
-import com.yc.education.model.UserInfo;
|
|
|
-import com.yc.education.service.IBrandService;
|
|
|
-import com.yc.education.service.ICarSedanService;
|
|
|
-import com.yc.education.service.IProviderService;
|
|
|
-import com.yc.education.service.IUserInfoService;
|
|
|
+import com.yc.education.model.*;
|
|
|
+import com.yc.education.service.*;
|
|
|
import com.yc.education.util.AjaxMessage;
|
|
|
import com.yc.education.util.MapUtils;
|
|
|
import com.yc.education.util.ViewUtil;
|
|
@@ -60,6 +54,9 @@ public class ProviderAdminController {
|
|
|
@Autowired
|
|
|
private ICarSedanService iCarSedanService;//车型
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBrandFourSService iBrandFourSService;//品牌
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 服务商信息列表
|
|
@@ -120,10 +117,10 @@ public class ProviderAdminController {
|
|
|
@RequestMapping("searchSeries.html")
|
|
|
public AjaxMessage<Object> searchSeries (String name){
|
|
|
AjaxMessage<Object> am = new AjaxMessage<>();
|
|
|
- List<CarSedan> listSeriesByName = iCarSedanService.listSeriesByName(name);//查询车型数据
|
|
|
-
|
|
|
- if (listSeriesByName != null){
|
|
|
- am.setData(listSeriesByName);//将数据返还前台
|
|
|
+ /*List<CarSedan> listSeriesByName = iCarSedanService.listSeriesByName(name);//查询车型数据*/
|
|
|
+ List<BrandFourS> listBrandByName = iBrandFourSService.listBrandByName(name);//根据品牌名模糊查询4s店品牌
|
|
|
+ if (listBrandByName != null){
|
|
|
+ am.setData(listBrandByName);//将数据返还前台
|
|
|
am.setIs(true);
|
|
|
|
|
|
}
|