rolemg/src/com/ideabobo/action/NoticeAction.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.ideabobo.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.google.gson.Gson;
import com.ideabobo.model.Notice;
import com.ideabobo.service.NoticeService;
import com.ideabobo.util.GetNowTime;
import com.ideabobo.util.IdeaAction;
import com.ideabobo.util.Page;

@Controller
public class NoticeAction extends IdeaAction {
	@Resource
	private NoticeService noticeService;
	private static final long serialVersionUID = -3218238026025256103L;
	private Notice notice;
	Gson json = new Gson();
	public Notice getNotice() {
		return notice;
	}

	public void setNotice(Notice notice) {
		this.notice = notice;
	}

	public String notice(){
		return SUCCESS;
	}
	
	public String noticeRead(){
		return "readonly";
	}
	
	
	public void getList(){
		String title = request.getParameter("stitle");
		String sort = request.getParameter("sort");
		String order = request.getParameter("order");
		Page page = new Page();
		Map paramsMap = new HashMap();
		paramsMap.put("title", title);
		paramsMap.put("sort", "order by "+sort+" "+order);
		String pageNo = (String) this.request.getParameter("page");
		String pageSizes = (String) this.request.getParameter("rows");
		if (pageNo == null) {
			page.setPageSize(10);
			page.setPageNo(1);
		} else {
			page.setPageSize(Integer.parseInt(pageSizes));
			page.setPageNo(Integer.parseInt(pageNo));
		}
		page = noticeService.findByPage(page, paramsMap);
		
		Map<String, Object> map = new HashMap<String, Object>();
后面还有 33 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。