|
@@ -1,9 +1,13 @@
|
|
package com.sooka.web.controller.system;
|
|
package com.sooka.web.controller.system;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import javax.servlet.http.Cookie;
|
|
import javax.servlet.http.Cookie;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+
|
|
|
|
+import com.sooka.business.schooldistrict.domain.BtpPolicestationVillage;
|
|
|
|
+import com.sooka.business.schooldistrict.service.IBtpPolicestationVillageService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
@@ -43,6 +47,9 @@ public class SysIndexController extends BaseController
|
|
@Autowired
|
|
@Autowired
|
|
private SysPasswordService passwordService;
|
|
private SysPasswordService passwordService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IBtpPolicestationVillageService btpPolicestationVillageService;
|
|
|
|
+
|
|
// 系统首页
|
|
// 系统首页
|
|
@GetMapping("/index")
|
|
@GetMapping("/index")
|
|
public String index(ModelMap mmap)
|
|
public String index(ModelMap mmap)
|
|
@@ -130,7 +137,8 @@ public class SysIndexController extends BaseController
|
|
@GetMapping("/system/main")
|
|
@GetMapping("/system/main")
|
|
public String main(ModelMap mmap)
|
|
public String main(ModelMap mmap)
|
|
{
|
|
{
|
|
- mmap.put("version", SookaConfig.getVersion());
|
|
|
|
|
|
+ mmap.put("policestations", btpPolicestationVillageService.getAllByParentId(0L));
|
|
|
|
+ mmap.put("villages", Arrays.asList(new BtpPolicestationVillage()));
|
|
return "main";
|
|
return "main";
|
|
}
|
|
}
|
|
|
|
|