[AppleScript] 纯文本查看 复制代码
//根据日期查询预约设置数据
public List<Map> getOrderSettingByMonth(String date) {//2019‐3
String dateBegin = date + "‐1";//2019‐3‐1
String dateEnd = date + "‐31";//2019‐3‐31
Map map = new HashMap();
map.put("dateBegin",dateBegin);
map.put("dateEnd",dateEnd);
List<OrderSetting> list = orderSettingDao.getOrderSettingByMonth(map);
List<Map> data = new ArrayList<>();
for (OrderSetting orderSetting : list) {
Map orderSettingMap = new HashMap();
orderSettingMap.put("date",orderSetting.getOrderDate().getDate());//
获得日期(几号)
orderSettingMap.put("number",orderSetting.getNumber());//可预约人数
orderSettingMap.put("reservations",orderSetting.getReservations());//
已预约人数
data.add(orderSettingMap);
}
return data;
}