|
|
@@ -237,7 +237,12 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
|
|
|
}
|
|
|
RestrictProject outRestrictProjects = restrictProjectMapper.selectByParam(new InputRestrictProject(order.getBuyerId(), TokenManager.getAdminId(), t.getCommodityId()));
|
|
|
if (outRestrictProjects==null||outRestrictProjects.getType()==0){
|
|
|
- throw new BusinessException("该项目已为公共限定项目,请先领取");
|
|
|
+ User user = userMapper.selectByPrimaryKey(order.getBuyerId());
|
|
|
+ if (user.getShareType()==2&&user.getAid().equals(AFTConstants.CAOJIN_AID)){
|
|
|
+ throw new BusinessException("该项目已为他人限定项目,无法创建");
|
|
|
+ }else {
|
|
|
+ throw new BusinessException("该项目已为公共限定项目,请先领取");
|
|
|
+ }
|
|
|
}else if (!outRestrictProjects.getAid().equals(TokenManager.getAdminId())){
|
|
|
throw new BusinessException("该项目已为他人限定项目,无法创建");
|
|
|
}
|