|
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping("/demo")
|
|
@@ -31,6 +32,22 @@ public class StationController {
|
|
|
private AppUserInfoService appUserInfoService;
|
|
|
|
|
|
|
|
|
+ //获取油站公告信息
|
|
|
+ @RequestMapping(value = "/getStationNoticeInfo", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public String getStationNoticeInfo(@RequestParam Integer stationId){
|
|
|
+ Gson gson =new Gson();
|
|
|
+ //返回结果集
|
|
|
+ ResultData resultData=null;
|
|
|
+ if(stationId !=null){
|
|
|
+ Map<String, Object> stationNoticeInfo = stationService.getStationNoticeInfo(stationId);
|
|
|
+ resultData =ResultData.success(stationNoticeInfo);
|
|
|
+ }else {
|
|
|
+ resultData =ResultData.error(CodeMsg.REQUEST_FAIL);
|
|
|
+ }
|
|
|
+ return gson.toJson(resultData);
|
|
|
+ }
|
|
|
+
|
|
|
//获取油站轮播图
|
|
|
@RequestMapping(value = "/getStationPicList", method = RequestMethod.GET)
|
|
|
@ResponseBody
|