|
@@ -26,17 +26,13 @@ public class FrontpageController {
|
|
@Resource
|
|
@Resource
|
|
private YtiotFrontpageQueryService ytiotFrontpageQueryService;
|
|
private YtiotFrontpageQueryService ytiotFrontpageQueryService;
|
|
private static FrontpageController frontpageController;
|
|
private static FrontpageController frontpageController;
|
|
-
|
|
|
|
@PostConstruct
|
|
@PostConstruct
|
|
public void init() {
|
|
public void init() {
|
|
frontpageController = this;
|
|
frontpageController = this;
|
|
frontpageController.ytiotFrontpageQueryService = this.ytiotFrontpageQueryService;
|
|
frontpageController.ytiotFrontpageQueryService = this.ytiotFrontpageQueryService;
|
|
}
|
|
}
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private TokenAuthService tokenAuthService;
|
|
private TokenAuthService tokenAuthService;
|
|
-
|
|
|
|
-
|
|
|
|
@RequestMapping(value = "/getFrontpageQuery", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/getFrontpageQuery", method = {RequestMethod.GET, RequestMethod.POST})
|
|
public ModelAndView getFrontpageQuery(@RequestParam(value = "queryJson", required = false) String queryJson) {
|
|
public ModelAndView getFrontpageQuery(@RequestParam(value = "queryJson", required = false) String queryJson) {
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
@@ -69,7 +65,8 @@ public class FrontpageController {
|
|
mav.setViewName("return");
|
|
mav.setViewName("return");
|
|
//通过获取用户信息
|
|
//通过获取用户信息
|
|
YtiotTAdmin o = (YtiotTAdmin) tokenAuthBO.getData().get(Constants.USER_INFO);
|
|
YtiotTAdmin o = (YtiotTAdmin) tokenAuthBO.getData().get(Constants.USER_INFO);
|
|
- net.sf.json.JSONObject jsonObject = net.sf.json.JSONObject.fromObject(queryJson);
|
|
|
|
|
|
+
|
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(queryJson);
|
|
jsonObject.put("V_LOGINNAME", o.getVLoginname());
|
|
jsonObject.put("V_LOGINNAME", o.getVLoginname());
|
|
jsonObject.put("V_PASSWORD", o.getVPassword());
|
|
jsonObject.put("V_PASSWORD", o.getVPassword());
|
|
try {
|
|
try {
|