slq-funds
pom.xml
依赖slq-common,sql-user,slq-log,slq-index
Mapper
BalanceMapper.xml(资金平衡实体的Mapper)
BillInfoMapper.xml(账单信息的Mapper)
FoundHandleMapper.xml(资金处理的Mapper)
RechargeStatMapper.xml(统计的Mapper)
UserFundsMapper.xml
entity
BalanceEO.java(资金平衡实体)
balanceNo(平衡号),beginMoney(期初余额),rechargeMoney(充值金额),applyMoney(报名完成的交易金额),vipMoney(vip交易金额),
serviceMoney(服务金额),withdrawMoney(体现金额),addMoney(加币金额),reductionMoney(减币金额),endMoney(期末金额),
statitisticsDate(统计日期),createTime(创建时间)
int compareTo(Object o)
BillInfo.java(账单信息)
billNo(账单号),uid(账单所属/转入方),orderId(订单号),billType(账单类型),fromUid(转出方),refId(关联id),billPrice(账单金额),
charges(手续费),officialBalance(截止目前官方总余额),createTime(创建时间),vipRefundsType(VIP返款金额类型)
FundHandleEO.java(资金处理EO)
fundId(资金处理号),transactionId(交易号),fundsHType(资金类型),uid(资金所属用户id),serviceId(申请客服id),applyNote(申请备注),
dealNote(处理备注),authenManagerid(审核管理员ID),handleUid(处理人id),totalPrice(总费用),fundsHstate(资金处理状态),
createTime(创建时间),authTime(审核时间),dealTime(退款时间),cardNo(收款账号),bankName(收款人银行名字),province(省),
openingBank(开户行),realName(姓名),payChannel(支付渠道),taxes(税费),charges(手续费),actualGetPrice(收款人实际收到金额),
UserInfo
RechargeStatisticalEO.java(统计EO)
totalPrice(总充值),todayCost(今日充值),yesterdayCost(昨日充值),thisMonthCost(本月充值),lastMonthCost(上月充值),
advisoryCount(每日资讯总人数)
utils
FundsConvert.java(dto与eo转换)
BillDTO convertBill(BillInfo billInfo, Long uid);
GenericPage<BillDTO> convertBill(GenericPage<BillInfo> page, Long uid);
void typeConvert(BillDTO billDTO, BillInfo billInfo);
dao
BalanceDBDAOImpl.java(资金平衡实体的DAO)
BillDBDAOImpt.java(账单信息DAO)
List<BillInfo> selectByMap(Map<String, Object> queryParam);
FundsDBDAOImpl.java(资金处理DAO)
void updateFunds(Long uid, BigDecimal goldCount, BigDecimal totalCount, BigDecimal rechargeOnly, BigDecimal activeGive);(更新资金)
UserInfo getUserGold(Long uid);(查询资金)
FundsHandleDADAO.java(资金处理的DAO)
void updateFundHState(FundHandleEO fundHandleEO);(更新资金处理)
FundsRedisDAOImpl.java
void updateFunds(Long uid, BigDecimal goldCount, BigDecimal totalCount, BigDecimal rechargeOnly, BigDecimal activeGive);(更新资金)
Long getGoldCount(Long uid);(查询资金)
int topNumber(Long uid);(财富榜排名)
public final static String FUNDS_ID_SEQ = "CACHE_SLQ_FUNDS_ID_SEQ";(缓存中资金生成序列的key)
String getFundsId(FundsHandleType fundsHType);(生成资金号)
RechargeStatDBDAOImpl.java(统计的DAO)
BigDecimal sumRechargeStat(Map<String, Object> queryMap);
int getAdvisoryCount(Map<String, Object> queryMap);
BigDecimal getApplyStat(Map<String, Object> queryMap);
BigDecimal getVipStat(Map<String, Object> queryMap);
BigDecimal getApplyStatCharges(Map<String, Object> queryMap);
BigDecimal getVipStatCharges(Map<String, Object> queryMap);
BigDecimal getWithdrawMoney(Map<String, Object> queryMap);
redis
BillRedisDAOImpt.java
public final static String BILL_NO_SEQ = "CACHE_SLQ_BILL_NO_SEQ";(缓存中账单生成序列的KEY)
public final static String BALANCE_NO_SEQ = "CACHE_SLQ_BALANCE_NO_SEQ";(缓存中资金平衡表生成序列的KEY)
String createBillNo();
String createBalanceNo();
business
BalanceManagerImpl.java
BalanceEO add() throws ParseException;
GenericPage<BalanceEO> query(Map queryMap, int start, int pageSize, String orderBy, boolean isAsc);
BillManagerImpl.java(账单管理)
void addBill(BillInfo billInfo);(账单管理)
List<BillInfo> queryBill(Long uid, Long fromUid, Long refId, int billType);(查询账单)
InviteStatusDTO queryInviteStatus(Long uid);(查询邀请状态)
BigDecimal getOfficialBalance(String date) throws ParseException;(获取给定日期的账户余额)
GenericPage<BillInfo> queryBillPage(Map<String, Object> queryMap, int limit, int start,String sortBy, boolean isAsc);(根据条件分页查询账单)
GenericPage<BillInfo> queryBillPage(Long uid, long index, int fetchType, int pageSize);(前台查询)
List<BillInfo> queryBillsList(Map<String, Object> queryMap, String sortBy, boolean isAsc);
GenericPage<BillInfo> queryVipReturn(Map<String, Object> queryMap,int limit, int start, String sortBy, boolean isAsc);(查询vip返款账单)
GenericPage<BillInfo> queryVipRecharge(Map<String, Object> queryMap,int limit, int start, String sortBy, boolean isAsc);(查询vip充值账单)
List<BillInfo> queryVipReturnList(Map<String, Object> queryMap, String sortBy, boolean isAsc);(查询vip返款账单列表)
List<BillInfo> queryVipRechargeList(Map<String, Object> queryMap, String sortBy, boolean isAsc);(查询vip充值账单列表)
BillInfo queryByBillNo(String billNo);