| | |
| | | page = 1;
|
| | | }
|
| | |
|
| | | long count = 0;
|
| | | |
| | | int pageSize = Constant.PAGE_SIZE;
|
| | |
|
| | | List<UserTaoLiJinRecordVO> list = userTaoLiJinRecordService.getRecordByUid((page - 1) * pageSize, pageSize, uid);
|
| | |
|
| | | if (list == null) {
|
| | | list = new ArrayList<UserTaoLiJinRecordVO>();
|
| | | } else if (list.size() > 0) {
|
| | | count = userTaoLiJinRecordService.countRecordByUid(uid);
|
| | | }
|
| | |
|
| | | long count = userTaoLiJinRecordService.countShareRecordByUid(uid);
|
| | | |
| | | GsonBuilder gsonBuilder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation();
|
| | | gsonBuilder.registerTypeAdapter(Date.class, new JsonSerializer<Date>() {
|
| | | @Override
|
| | |
| | | |
| | | long countRecordByUid(@Param("uid")Long uid); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 统计分析记录条数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countShareRecordByUid(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 今日创建分享红包个数 |
| | | * @param uid |
| | |
| | | |
| | | <select id="countRecordByUid" resultType="Long"> |
| | | SELECT IFNULL(COUNT(d.`utlj_id`),0) FROM yeshi_ec_user_taolijin_record d |
| | | WHERE d.`utlj_uid` = #{uid} |
| | | </select> |
| | | |
| | | |
| | | <select id="countShareRecordByUid" resultType="Long"> |
| | | SELECT IFNULL(COUNT(d.`utlj_id`),0) FROM yeshi_ec_user_taolijin_record d |
| | | WHERE d.`utlj_uid` = #{uid} AND d.utlj_use_type = 2 |
| | | </select> |
| | | |
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public long countShareRecordByUid(Long uid) {
|
| | | return userTaoLiJinRecordMapper.countShareRecordByUid(uid);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public long countTodayNum(Long uid) {
|
| | | return userTaoLiJinRecordMapper.countTodayNum(uid);
|
| | | }
|
| | |
| | | */
|
| | | public List<UserTaoLiJinRecordVO> getRecordByUid(long start, int count, Long uid);
|
| | |
|
| | | /**
|
| | | * 统计创建记录条数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countShareRecordByUid(Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 统计创建次数
|
| | |
| | | */
|
| | | public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
|
| | | throws UserTaoLiJinRecordException;
|
| | | |
| | | |
| | | }
|
| | |
|