| | |
| | | * @param money |
| | | */ |
| | | void updateMoney(@Param("id")Long id , @Param("money")Double money); |
| | | |
| | | /** |
| | | *当前余额总量(物理卡) |
| | | * @param |
| | | * @return |
| | | */ |
| | | Double getTotalMoneyIcCards(); |
| | | } |
| | |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long cardId; |
| | | /** |
| | | * 余额总量 |
| | | */ |
| | | private Double totalMoney; |
| | | } |
| | |
| | | |
| | | ORDER BY card.id |
| | | </select> |
| | | <!--当前余额总量(物理卡)--> |
| | | <select id="getTotalMoneyIcCards" resultType="java.lang.Double"> |
| | | SELECT |
| | | IFNULL(SUM(money),0) AS totalMoney |
| | | FROM |
| | | `se_client_card` |
| | | WHERE state = 1 |
| | | </select> |
| | | </mapper> |
| | |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 当前余额总量(物理卡) |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getTotalMoneyIcCards") |
| | | @SsoAop() |
| | | public BaseResponse<Double> getTotalMoneyIcCards() { |
| | | try { |
| | | Double res = icCardSv.getTotalMoneyIcCards(); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | }catch (Exception e){ |
| | | log.error("获取记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | @Autowired |
| | | private SeCardOperateMapper seCardOperateMapper; |
| | | @Autowired |
| | | private SeClientCardMapper seClientCardMapper; |
| | | |
| | | /** |
| | | * 指定时间段内开卡总数量(物理卡) |
| | |
| | | |
| | | return rsVo ; |
| | | } |
| | | |
| | | /** |
| | | * 当前余额总量(物理卡) |
| | | * @param |
| | | * @return |
| | | */ |
| | | public Double getTotalMoneyIcCards() { |
| | | |
| | | Double totalMoney = seClientCardMapper.getTotalMoneyIcCards(); |
| | | return totalMoney ; |
| | | } |
| | | } |