jsk 通知下一位
This commit is contained in:
parent
b03e0726b2
commit
e57ef19733
|
|
@ -330,12 +330,12 @@ public class GreenWashCarController extends GreenBaseController {
|
||||||
+ "STARTREMIND,ENDREMIND,MOVE_CAR,INT_STATUS,IS_PUSH "
|
+ "STARTREMIND,ENDREMIND,MOVE_CAR,INT_STATUS,IS_PUSH "
|
||||||
+ " from green_wash_car_info where SUBSTR(APPLY_TIME,1,5)>to_char(SYSDATE,'hh24:mi') and APPLY_DATE ='"+info.getApplyDate()+"' order by APPLY_TIME asc";
|
+ " from green_wash_car_info where SUBSTR(APPLY_TIME,1,5)>to_char(SYSDATE,'hh24:mi') and APPLY_DATE ='"+info.getApplyDate()+"' order by APPLY_TIME asc";
|
||||||
List<Map<String, Object>> list = hibernateDao.queryForListWithSql(sql);
|
List<Map<String, Object>> list = hibernateDao.queryForListWithSql(sql);
|
||||||
|
if(list==null||list.size()==0||list.get(0).get("ID")==null){
|
||||||
|
return new RestResult(Constant.FAILED, "今日已无下一位预约洗车用户!");
|
||||||
|
}
|
||||||
System.out.println( sql);
|
System.out.println( sql);
|
||||||
System.out.println( list.size());
|
System.out.println( list.size());
|
||||||
System.out.println( list.get(0).get("ID"));
|
System.out.println( list.get(0).get("ID"));
|
||||||
if(list==null||list.size()==0||list.get(0).get("ID")==null){
|
|
||||||
return new RestResult(Constant.FAILED, "今日已无预约洗车用户!");
|
|
||||||
}
|
|
||||||
String userId = (String) list.get(0).get("USER_ID");
|
String userId = (String) list.get(0).get("USER_ID");
|
||||||
String startTime=info.getApplyDate()+" "+(String) list.get(0).get("APPLY_TIME");
|
String startTime=info.getApplyDate()+" "+(String) list.get(0).get("APPLY_TIME");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue