|
|
|
@@ -144,6 +144,12 @@ public class WxQuestionOneselfUserServiceImpl implements WxQuestionOneselfUserSe |
|
|
|
wxQuestionOneselfMapper.updateCountUser(record.getQuestionId()); |
|
|
|
|
|
|
|
WxQuestionOneself wxQuestionOneself = wxQuestionOneselfMapper.selectById(record.getQuestionId()); |
|
|
|
if(now.before(wxQuestionOneself.getStartDate())){ |
|
|
|
throw new MallinkException(ErrorCode.QUESTION_NOT_START); |
|
|
|
} |
|
|
|
if(now.after(wxQuestionOneself.getEndDate())){ |
|
|
|
throw new MallinkException(ErrorCode.QUESTION_END); |
|
|
|
} |
|
|
|
if(wxQuestionOneself.getRewardCredit() != null && wxQuestionOneself.getRewardCredit() > 0){ |
|
|
|
WxCreditHistory wxCreditHistory = new WxCreditHistory(); |
|
|
|
wxCreditHistory.setTenantId(record.getFinalTenantId()); |
|
|
|
|