|
@@ -30,6 +30,7 @@ import com.xt.jygl.gkjcxx.gk.service.GkService;
|
|
|
import com.xt.jygl.gkyxtjyfx.hxhbtj.entity.HxhbtjEntity;
|
|
|
import com.xt.jygl.gkyxtjyfx.hxhbtj.service.HxhbtjService;
|
|
|
import com.xt.jygl.gkyxtjyfx.hxhbtj.vo.HxhbtjVo;
|
|
|
+import com.xtframe.core.anon.auth.RequiresPermissions;
|
|
|
import com.xtframe.core.base.ctl.WebJsonResult;
|
|
|
import com.xtframe.core.support.SecurityMgr;
|
|
|
import com.xtframe.sec.code.entity.CodeEntity;
|
|
@@ -55,7 +56,7 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
|
|
|
// @SuppressWarnings("unused")
|
|
|
@RequestMapping(value = "/main")
|
|
|
-// @RequiresPermissions("hxhbtj:main")
|
|
|
+ @RequiresPermissions("hxhbtj:main")
|
|
|
public String main(SimplePageRequest page, Model model, final HttpServletRequest request, final String rq, final String szgkid, final String menuid) throws JsonProcessingException {
|
|
|
// 查询条件
|
|
|
Specification<HxhbtjEntity> spec = new Specification<HxhbtjEntity>() {
|
|
@@ -103,7 +104,7 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/delete")
|
|
|
-// @RequiresPermissions("hxhbtj:delete")
|
|
|
+ @RequiresPermissions("hxhbtj:delete")
|
|
|
@ResponseBody
|
|
|
public WebJsonResult delete(Model model, String id) {
|
|
|
WebJsonResult wr = success();
|
|
@@ -118,7 +119,6 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/view")
|
|
|
-// @RequiresPermissions("hxhbtj:main")
|
|
|
public String view(Model model, String id, String menuid) {
|
|
|
HxhbtjEntity entity = hxhbtjService.findOne(id);
|
|
|
HxhbtjVo vo = new HxhbtjVo();
|
|
@@ -179,7 +179,7 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/add")
|
|
|
-// @RequiresPermissions("hxhbtj:add")
|
|
|
+ @RequiresPermissions("hxhbtj:add")
|
|
|
public String add(Model model, String menuid, String path) {
|
|
|
if (!StringUtils.isEmpty(path)) {
|
|
|
path = path.replace(":", "&");
|
|
@@ -199,7 +199,7 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/edit")
|
|
|
-// @RequiresPermissions("hxhbtj:edit")
|
|
|
+ @RequiresPermissions("hxhbtj:edit")
|
|
|
public String edit(Model model, String id, String path) {
|
|
|
if (!StringUtils.isEmpty(path)) {
|
|
|
path = path.replace(":", "&");
|