|
@@ -321,16 +321,17 @@ public class houseAction extends ActionSupport implements ServletRequestAware {
|
|
|
public String queryPageHouseSum(){
|
|
public String queryPageHouseSum(){
|
|
|
JSONObject resultJson = new JSONObject();
|
|
JSONObject resultJson = new JSONObject();
|
|
|
StringBuilder s1 = new StringBuilder("");
|
|
StringBuilder s1 = new StringBuilder("");
|
|
|
|
|
+ StringBuilder s2 = new StringBuilder("");
|
|
|
if (orderTime!=null){
|
|
if (orderTime!=null){
|
|
|
s1.append(" and DATE_FORMAT(order_start_time,'%Y-%m-%d') = '").append(orderTime).append("'");
|
|
s1.append(" and DATE_FORMAT(order_start_time,'%Y-%m-%d') = '").append(orderTime).append("'");
|
|
|
}
|
|
}
|
|
|
if (hName!=null){
|
|
if (hName!=null){
|
|
|
- s1.append(" and house_name like '%").append(hName).append("%'");
|
|
|
|
|
|
|
+ s2.append(" and a.h_name like '%").append(hName).append("%'");
|
|
|
}
|
|
}
|
|
|
if (managerId!=null){
|
|
if (managerId!=null){
|
|
|
- s1.append(" and hotel_manager_id = '").append(managerId).append("'");
|
|
|
|
|
|
|
+ s2.append(" and a.manager_id = '").append(managerId).append("'");
|
|
|
}
|
|
}
|
|
|
- IPage<HouseSumEto> houseIPage = houseService.queryPageHouseSum(s1.toString(),page,rows);
|
|
|
|
|
|
|
+ IPage<HouseSumEto> houseIPage = houseService.queryPageHouseSum(s1.toString(),s2.toString(),page,rows);
|
|
|
if(houseIPage!=null && !"".equals(houseIPage)){
|
|
if(houseIPage!=null && !"".equals(houseIPage)){
|
|
|
resultJson.put("message", "查询分页成功");
|
|
resultJson.put("message", "查询分页成功");
|
|
|
resultJson.put("code", 200);
|
|
resultJson.put("code", 200);
|