| | |
| | | import com.yeshi.fanli.dao.mybatis.ExtractAuditRecordMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.ExtractMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.ExtractRecordMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.HongBaoV2Mapper;
|
| | | import com.yeshi.fanli.dao.mybatis.MoneyRecordMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.PayInfoMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.SystemMapper;
|
| | |
| | |
|
| | | @Resource
|
| | | private HongBaoMapper hongBaoMapper;
|
| | |
|
| | | @Resource
|
| | | private HongBaoV2Mapper hongBaoV2Mapper;
|
| | |
|
| | | @Resource
|
| | | private PushService pushService;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | userNotificationService.extractApply(extract.getUserInfo().getId());
|
| | |
|
| | | if ("是".equals(autoExtract)) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | try {
|
| | |
|
| | | userNotificationService.extractTransferFail(user.getId(),
|
| | |
| | |
|
| | | @Override
|
| | | public void checkExtract(String uid) throws ExtractException {
|
| | | int count = hongBaoMapper.getCountByUidAndState(Long.parseLong(uid), HongBao.STATE_YILINGQU);
|
| | | if (count == 0)
|
| | | Long count = hongBaoV2Mapper.countByUidAndState(Long.parseLong(uid), HongBao.STATE_YILINGQU);
|
| | | if (count == null || count == 0)
|
| | | throw new ExtractException(1, "没有已到账的红包");
|
| | | List<Integer> list = extractMapper.checkExtract(uid);
|
| | | if (list != null && list.size() > 0 && list.get(0) == 0)
|