|
|
@ -24,7 +24,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import tk.mybatis.mapper.entity.Example;
|
|
|
|
import tk.mybatis.mapper.entity.Example;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
@ -42,6 +41,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
private UsersMapper usersMapper;
|
|
|
|
private UsersMapper usersMapper;
|
|
|
|
|
|
|
|
|
|
|
|
private Logger logger = LogUtils.getBussinessLogger();
|
|
|
|
private Logger logger = LogUtils.getBussinessLogger();
|
|
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
@SneakyThrows
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Integer getUserAwardRecordNum(Long userId) {
|
|
|
|
public Integer getUserAwardRecordNum(Long userId) {
|
|
|
@ -246,4 +246,21 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
|
|
|
|
ajaxResult.setRetcode(AjaxResult.SUCCESS);
|
|
|
|
ajaxResult.setRetcode(AjaxResult.SUCCESS);
|
|
|
|
return ajaxResult;
|
|
|
|
return ajaxResult;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public AjaxResult insertFailRecord(Long userId, String source) {
|
|
|
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
|
|
|
AwardRecord awardRecord = new AwardRecord();
|
|
|
|
|
|
|
|
awardRecord.setUserId(userId);
|
|
|
|
|
|
|
|
awardRecord.setSource(source);
|
|
|
|
|
|
|
|
awardRecord.setAwardType(0);
|
|
|
|
|
|
|
|
awardRecord.setCreateDateTime(new Date());
|
|
|
|
|
|
|
|
awardRecord.setUpdateDateTime(new Date());
|
|
|
|
|
|
|
|
awardRecord.setState(Constants.STATE_VALID);
|
|
|
|
|
|
|
|
awardRecordMapper.insert(awardRecord);
|
|
|
|
|
|
|
|
ajaxResult.setRetcode(AjaxResult.SUCCESS);
|
|
|
|
|
|
|
|
ajaxResult.setData(awardRecord.getId());
|
|
|
|
|
|
|
|
return ajaxResult;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|