|
|
|
@ -47,7 +47,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
|
@Override
|
|
|
|
|
public Integer getUserAwardRecordNum(Long userId) {
|
|
|
|
|
public Integer getUserAwardRecordNum(String userId) {
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
Date start = simpleDateFormat.parse(simpleDateFormat2.format(new Date())+ " 00:00:00");
|
|
|
|
@ -63,7 +63,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
|
@Override
|
|
|
|
|
public AjaxResult isAward(Long userId,String source) {
|
|
|
|
|
public AjaxResult isAward(String userId,String source) {
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
Date start = simpleDateFormat.parse(simpleDateFormat2.format(new Date())+ " 00:00:00");
|
|
|
|
@ -220,8 +220,14 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
|
Long total = page.getTotal();
|
|
|
|
|
List<AwardRecordVo> awardRecordVoList = new ArrayList<>();
|
|
|
|
|
for (AwardRecord awardRecord:awardRecordList){
|
|
|
|
|
Long userId = awardRecord.getUserId();
|
|
|
|
|
Users users = usersMapper.selectByPrimaryKey(userId);
|
|
|
|
|
String userId = awardRecord.getUserId();
|
|
|
|
|
Users findUsers = new Users();
|
|
|
|
|
findUsers.setUserId(userId);
|
|
|
|
|
findUsers.setState(Constants.STATE_VALID);
|
|
|
|
|
Users users = usersMapper.selectOne(findUsers);
|
|
|
|
|
if (null == users){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
AwardRecordVo awardRecordVo = new AwardRecordVo();
|
|
|
|
|
awardRecordVo.setOpenId(users.getOpenId());
|
|
|
|
|
if ( 0 == awardRecord.getAwardType()){
|
|
|
|
@ -254,7 +260,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
|
@Override
|
|
|
|
|
public AjaxResult insertFailRecord(Long userId, String source) {
|
|
|
|
|
public AjaxResult insertFailRecord(String userId, String source) {
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
AwardRecord awardRecord = new AwardRecord();
|
|
|
|
|
awardRecord.setUserId(userId);
|
|
|
|
|