package com.svse.control;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.svse.entity.ActionsEntity;
import com.svse.service.ActionsService;

import net.sf.json.JSONObject;

@Controller
@RequestMapping("action.do")
public class ActionControl {
	@Autowired
	private ActionsService aserv;

	// 全查询
	@RequestMapping(params = "method=allaction")
	@ResponseBody
	public JSONObject all(int limit, int offset) {
		// 共有多少条
		int count = this.aserv.Count();
		// 分页查询
		List<ActionsEntity> ar = this.aserv.getAll(offset,limit);
		
		JSONObject obj = new JSONObject();

		obj.put("rows", ar);
		obj.put("total", count);
		return obj;
	}

	@RequestMapping(params = "method=all")
	@ResponseBody
	public List<ActionsEntity> getAll() {
		List<ActionsEntity> ar=this.aserv.getAll();
		return ar;
	}
	
	@RequestMapping(params = "method=allm")
	@ResponseBody
	public List<ActionsEntity> getAll(int moduleid) {
		List<ActionsEntity> ar=this.aserv.getAll(moduleid);
		return ar;
	}

}
最近下载更多
shuangfu  LV25 2023年12月2日
阿凝是个小可爱  LV14 2023年9月15日
tds176761  LV3 2023年4月11日
what_the_fo  LV5 2023年4月3日
qazwer11  LV5 2022年12月25日
mmmmmmppp  LV10 2022年12月14日
limuzi  LV7 2022年6月19日
W_123456  LV8 2022年6月17日
testuser1234567  LV24 2022年5月22日
Tloser  LV1 2022年4月26日
最近浏览更多
哈哈哈123123 3月22日
暂无贡献等级
2602275348  LV12 2024年12月23日
半夏bx  LV14 2024年10月12日
微信网友_6745742881968128  LV3 2024年6月25日
sunlea  LV20 2024年5月23日
yangyuer  LV1 2024年4月26日
alexxxxx  LV2 2024年4月11日
lwllll  LV2 2024年3月29日
1134116035 2024年2月21日
暂无贡献等级
江江江2326  LV1 2023年12月28日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友