@Authority({"12"})publicStringseeApplyMeetingRoon(){StringlistLike="selectcount(1)fromTB_BUS_MEETING_APPLYwhereMEETING_ROON_ID="+"'"+tbMeetingRoon.getMeetingRoonId()+"'"+...
@Authority({ "12" })
public String seeApplyMeetingRoon() {
String listLike = "select count(1) from TB_BUS_MEETING_APPLY where MEETING_ROON_ID="
+ "'" + tbMeetingRoon.getMeetingRoonId() + "'" + "";
String listAll = "select * from TB_BUS_MEETING_APPLY where MEETING_ROON_ID="
+ "'" + tbMeetingRoon.getMeetingRoonId() + "'" + "";
Map paramMap = new HashMap();
if (tbBusMeetingApplyBean != null) {
String name = StringDecode.decode(tbBusMeetingApplyBean
.getApplyMeetingName());
paramMap.put("name", "%" + name.replaceAll("%", "'%'") + "%");
listLike += " and APPLY_MEETING_NAME like :name";
listAll += " and APPLY_MEETING_NAME like :name";
}
if (cpage == null) {
cpage = 1;
}
this.paginationSupport = jdbcManager.find(listAll, listLike,
TbBusMeetingApplyBean.class, paramMap, 10,
((cpage - 1) * 10) + 1);
this.url = "seeApplyMeetingRoon.action";
return SUCCESS;
}
@Id
@FieldName(name = "MEETING_ID", type = Integer.class)
public String meetingId;
@TableName("TB_BUS_MEETING")
在 struts2 的 action 里写的
展开