|
|
@@ -72,7 +72,7 @@ public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMa
|
|
|
in.setId(use.getId());
|
|
|
restrictProjectMapper.updateByPrimaryKeySelective(in);
|
|
|
}
|
|
|
- int i = userBusinessMapper.judgeBusiness(in.getUid(), in.getPid(), TokenManager.getAdminId());
|
|
|
+ int i = userBusinessMapper.judgeBusiness(in.getUid(), in.getPid(),null);
|
|
|
if (i==0){
|
|
|
UserBusiness ub=new UserBusiness();
|
|
|
ub.setId(UUID.randomUUID().toString());
|
|
|
@@ -84,6 +84,8 @@ public class RestrictProjectServiceImpl extends BaseMybatisDao<RestrictProjectMa
|
|
|
ub.setCreateTime(new Date());
|
|
|
ub.setRemarks("领取限定项目触发");
|
|
|
userBusinessMapper.insertSelective(ub);
|
|
|
+ }else {
|
|
|
+ userBusinessMapper.updateAidByUidAndPid(aid,in.getUid(),in.getPid());
|
|
|
}
|
|
|
addUserLog(in,0);
|
|
|
User user = userMapper.queryById(in.getUid());
|