Procházet zdrojové kódy

添加查询的时间

raojiaolong@163.com před 2 roky
rodič
revize
9464db7d22

+ 3 - 1
mhotel/src/com/happy/action/houseAction.java

@@ -324,6 +324,8 @@ public class houseAction extends ActionSupport implements ServletRequestAware {
         StringBuilder s2 = new StringBuilder("");
         if (orderTime!=null){
             s1.append("  and DATE_FORMAT(order_start_time,'%Y-%m-%d') = '").append(orderTime).append("'");
+        }else{
+            orderTime = UUIDUtil.getNewDate().substring(0,10);
         }
         if (hName!=null){
             s2.append("  and a.h_name like '%").append(hName).append("%'");
@@ -331,7 +333,7 @@ public class houseAction extends ActionSupport implements ServletRequestAware {
         if (managerId!=null){
             s2.append("  and a.manager_id = '").append(managerId).append("'");
         }
-        IPage<HouseSumEto> houseIPage = houseService.queryPageHouseSum(s1.toString(),s2.toString(),page,rows);
+        IPage<HouseSumEto> houseIPage = houseService.queryPageHouseSum(orderTime,s2.toString(),page,rows);
         if(houseIPage!=null && !"".equals(houseIPage)){
             resultJson.put("message", "查询分页成功");
             resultJson.put("code", 200);

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 5 - 3
mhotel/src/com/happy/dao/impl/HouseImplDao.java