|
@@ -0,0 +1,28 @@
|
|
|
|
+package com.xt.js.gkaq.web.ctl;
|
|
|
|
+
|
|
|
|
+import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
|
+import org.springframework.ui.Model;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+
|
|
|
|
+import com.xt.js.gkaq.common.BaseCtl;
|
|
|
|
+import com.xt.js.gkaq.dwxx.model.JyrjcxxModel;
|
|
|
|
+import com.xt.js.gkaq.dwxx.service.JyrjcxxService;
|
|
|
|
+import com.xt.js.gkaq.web.vo.UserVo;
|
|
|
|
+
|
|
|
|
+@Controller
|
|
|
|
+@RequestMapping(value = "/jyr")
|
|
|
|
+public class JyrjcxxCtl extends BaseCtl {
|
|
|
|
+ @Autowired
|
|
|
|
+ private JyrjcxxService jyrjcxxService;
|
|
|
|
+
|
|
|
|
+ // @RequiresPermissions("jyr:main")
|
|
|
|
+ @RequestMapping("")
|
|
|
|
+ public String main(Model model, UserVo vo) {
|
|
|
|
+ JyrjcxxModel jyr = new JyrjcxxModel();
|
|
|
|
+ jyr.setGkjyr("test");
|
|
|
|
+ jyrjcxxService.add(jyr);
|
|
|
|
+ return "dwxx/jyr/main";
|
|
|
|
+ }
|
|
|
|
+}
|