| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | |
| | | @GetMapping(path = "/getDayAmountAndMoney") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoDayClient>>> getDayAmountAndMoney(ClientAmountQO qo) { |
| | | if(qo.getYearMonth() == null) { |
| | | SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String yearMonth = qo.getYearMonth(); |
| | | if(yearMonth == null) { |
| | | return BaseResponseUtils.buildErrorMsg(StatisticlResultCode.YEAR_AND_MONTH_CANNOT_BE_NULL.getMessage()); |
| | | }else { |
| | | yearMonth = yearMonth + "-01"; |
| | | try { |
| | | Date date = dateFormat.parse(yearMonth); |
| | | } catch (Exception e) { |
| | | return BaseResponseUtils.buildErrorMsg(StatisticlResultCode.YEAR_OR_MONTH_IS_ERROR.getMessage()); |
| | | } |
| | | } |
| | | |
| | | try { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 指定时间段内开物理卡农户 |
| | | * |
| | |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 指定时间段内每个农户充值合计(物理卡) |