| | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "未包含小区"); |
| | | Assert.hasKeyAndValue(reqJson, "startDate", "未包含开始时间"); |
| | | Assert.hasKeyAndValue(reqJson, "endDate", "未包含结束时间"); |
| | | |
| | | if(reqJson.containsKey("startDate") && reqJson.containsKey("endDate")) { |
| | | String startDate = reqJson.getString("startDate"); |
| | | String endDate = reqJson.getString("endDate"); |
| | | if (!startDate.contains(":")) { |
| | |
| | | reqJson.put("endDate", endDate); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |