package lj.service; import lj.model.GoodInfo; public class ShoppingService { public final static String SESSION_SHOPPINGS="shoppings"; private GoodInfo[] goods={ new GoodInfo("01","麻辣脆骨干锅","香辣",68), new GoodInfo("02","酸辣土豆丝","香辣",8), new GoodInfo("03","银鱼蒸蛋","清淡",18), new GoodInfo("04","冬瓜炖排骨","清淡",38), new GoodInfo("05","鸭脖鸭掌鸭翅拼盘","酱卤",28), new GoodInfo("05","无锡酱排骨","酱卤",48)}; public GoodInfo[] findAllGoods() { return goods; } public GoodInfo findGoodByGoodId(String goodId){ for(GoodInfo good:goods) if(good.getGoodId().equals(goodId)) return good; return null; } }
最近下载更多
a2418735612 LV1
1月4日
xdjxdjxdj LV1
2023年3月27日
蹇金金 LV7
2023年3月15日
你们的代码都是我的了 LV16
2022年12月13日
1379585889 LV11
2022年12月13日
panhhuii LV1
2022年6月28日
CHENHAOJUDA LV10
2022年6月25日
123agfargq LV3
2022年6月14日
miyucats LV1
2022年6月7日
软工小虫 LV1
2022年5月25日
最近浏览更多
zrz666 LV1
4月18日
admin_z LV22
1月29日
taoshen95 LV14
1月4日
a2418735612 LV1
1月4日
zhong1126 LV1
2023年12月29日
asddwh LV12
2023年12月29日
2517958616 LV1
2023年12月26日
qxs110 LV1
2023年12月25日
eqeqleqeqn LV1
2023年12月22日
颜菜菜 LV2
2023年12月19日