| | |
| | | |
| | | if (null != startDate){ |
| | | try { |
| | | params.put("startDate",sdfstart.format(startDate)); |
| | | params.put("startTime",sdfstart.format(startDate)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | }else { |
| | | params.put("startDate",sdfstart.format(startTime)); |
| | | params.put("startTime",sdfstart.format(startTime)); |
| | | } |
| | | |
| | | if (null != endDate){ |
| | | try { |
| | | params.put("endDate",sdfend.format(endDate)); |
| | | params.put("endTime",sdfend.format(endDate)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | }else { |
| | | params.put("endDate",sdfend.format(now)); |
| | | params.put("endTime",sdfend.format(now)); |
| | | } |
| | | |
| | | params.put("userId", userId); |
| | |
| | | Date startTime = cal.getTime(); |
| | | if (null != startDate){ |
| | | try { |
| | | params.put("startDate",sdfstart.format(startDate)); |
| | | params.put("startTime",sdfstart.format(startDate)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | }else { |
| | | params.put("startDate",sdfstart.format(startTime)); |
| | | params.put("startTime",sdfstart.format(startTime)); |
| | | } |
| | | if (null != endDate){ |
| | | try { |
| | | params.put("endDate",sdfend.format(endDate)); |
| | | params.put("endTime",sdfend.format(endDate)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | }else { |
| | | params.put("endDate",sdfend.format(now)); |
| | | params.put("endTime",sdfend.format(now)); |
| | | } |
| | | params.put("userId", userId); |
| | | params.put("receiptNumber", receiptNumber); |