|
@@ -206,30 +206,31 @@ public class StationController {
|
|
|
@RequestMapping(value = "/stationOilGunList", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
// public void stationOilGunList(@RequestParam StationRequest request,HttpServletResponse response){
|
|
|
- public String stationOilGunList(@RequestParam String userType,String token,Integer stationId){
|
|
|
+// public String stationOilGunList(@RequestParam String userType,String token,Integer stationId){
|
|
|
+ public String stationOilGunList(@RequestParam Integer stationId){
|
|
|
Gson gson =new Gson();
|
|
|
StationOilGun stationOilGun =new StationOilGun();
|
|
|
//查询登录人是否存在
|
|
|
- AppUserInfo appUserInfo =new AppUserInfo();
|
|
|
+// AppUserInfo appUserInfo =new AppUserInfo();
|
|
|
//订单类型 是小程序还是公众号
|
|
|
- appUserInfo.setUserType(userType);
|
|
|
- if(userType.equals("1")){
|
|
|
- //1 是公众号
|
|
|
- appUserInfo.setBlogToken(token);
|
|
|
- }else if(userType.equals("2")){
|
|
|
- //2是小程序
|
|
|
- appUserInfo.setMinaToken(token);
|
|
|
- }
|
|
|
- List<AppUserInfo> appUserInfoList =appUserInfoService.Authentication(appUserInfo);
|
|
|
- if(appUserInfoList!=null&&appUserInfoList.size()>0){
|
|
|
+// appUserInfo.setUserType(userType);
|
|
|
+// if(userType.equals("1")){
|
|
|
+// //1 是公众号
|
|
|
+// appUserInfo.setBlogToken(token);
|
|
|
+// }else if(userType.equals("2")){
|
|
|
+// //2是小程序
|
|
|
+// appUserInfo.setMinaToken(token);
|
|
|
+// }
|
|
|
+// List<AppUserInfo> appUserInfoList =appUserInfoService.Authentication(appUserInfo);
|
|
|
+// if(appUserInfoList!=null&&appUserInfoList.size()>0){
|
|
|
//获取油站id根据油站号查询油站对应的所有油枪信息
|
|
|
stationOilGun.setStationId(stationId);
|
|
|
List<StationOilGun> stationOilGunList = stationOilGunService.stationOilGunList(stationOilGun);
|
|
|
ResultData resultData=ResultData.success(stationOilGunList);
|
|
|
return gson.toJson(resultData);
|
|
|
- }else {
|
|
|
- ResultData resultData=ResultData.error(CodeMsg.USER_NOT_EXSIST);
|
|
|
- return gson.toJson(resultData);
|
|
|
- }
|
|
|
+// }else {
|
|
|
+// ResultData resultData=ResultData.error(CodeMsg.USER_NOT_EXSIST);
|
|
|
+// return gson.toJson(resultData);
|
|
|
+// }
|
|
|
}
|
|
|
}
|