首页>代码>MyEclipse + jsp+SSH(spring+Struts+hibernate)+bootstrap 餐厅点餐前后台完整版>/DinnerRoom/src/cn/dinner/action/DinnerNoticeAction.java
package cn.dinner.action; import java.util.List; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import cn.dinner.entity.DinnerNotice; import cn.dinner.service.DinnerNoticeservice; public class DinnerNoticeAction { @Autowired private DinnerNoticeservice dinnerNoticeservice; //查询条件 private Integer id; private JSONArray noticejson; /** * 查询小票 * @return */ public String getAlldinnerNoticeByid(){ List<DinnerNotice> noticeList = dinnerNoticeservice.getAllDinnerNoticeByID(id); noticejson = JSONArray.fromObject(noticeList); return "success"; } //封装 public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public JSONArray getNoticejson() { return noticejson; } public void setNoticejson(JSONArray noticejson) { this.noticejson = noticejson; } public DinnerNoticeservice getDinnerNoticeservice() { return dinnerNoticeservice; } public void setDinnerNoticeservice(DinnerNoticeservice dinnerNoticeservice) { this.dinnerNoticeservice = dinnerNoticeservice; } }
最近下载更多
jkjfdgbkl LV2
2023年11月14日
haotzy LV3
2023年10月7日
woaiheyuhlx LV1
2023年6月9日
朱俪的邮件及存储 LV8
2023年3月18日
唐僧洗头用飘柔啊 LV1
2023年3月8日
604183463 LV2
2023年2月28日
飞翔的面包片 LV12
2022年12月15日
pannifeng LV2
2022年11月21日
zzw123zzw LV6
2022年9月30日
zhaoyangwfd LV17
2022年6月20日
最近浏览更多
fkjafjkkfo LV2
4月24日
eircNB LV2
4月17日
lizheng1118 LV8
2月8日
李朝磊 LV18
1月30日
minjing123 LV8
1月4日
WBelong LV7
2023年12月25日
武器12344
2023年11月28日
暂无贡献等级
shuaii666
2023年11月13日
暂无贡献等级
jkjfdgbkl LV2
2023年11月2日
微信网友_6658069491355648 LV2
2023年10月16日