|
|
@@ -28,6 +28,7 @@ import com.goafanti.common.dao.OrganizationIdentityMapper;
|
|
|
import com.goafanti.common.dao.UserChannelMapper;
|
|
|
import com.goafanti.common.dao.UserMapper;
|
|
|
import com.goafanti.common.dao.UserTransferLogMapper;
|
|
|
+import com.goafanti.common.enums.ChannelStatus;
|
|
|
import com.goafanti.common.enums.SocietyTag;
|
|
|
import com.goafanti.common.error.BusinessException;
|
|
|
import com.goafanti.common.model.User;
|
|
|
@@ -182,14 +183,14 @@ public class UserChannelServiceImpl extends BaseMybatisDao<UserChannelMapper> im
|
|
|
in.setPassword(passwordUtil.getEncryptPwd("123456", now.getTime()));
|
|
|
User u=userMapper.selectByName(in.getUserName());
|
|
|
if (u==null) {
|
|
|
- in.setStatus(0);
|
|
|
+ in.setStatus(ChannelStatus.WFP.getCode());
|
|
|
in.setUid(uid);
|
|
|
list.add(in);
|
|
|
}else {
|
|
|
// 共享类型 0-私有 1-公共 2 签单
|
|
|
- if(u.getShareType()==0)in.setStatus(3);
|
|
|
- else if(u.getShareType()==1)in.setStatus(4);
|
|
|
- else if(u.getShareType()==2)in.setStatus(5);
|
|
|
+ if(u.getShareType()==0)in.setStatus(ChannelStatus.YCZSY.getCode());
|
|
|
+ else if(u.getShareType()==1)in.setStatus(ChannelStatus.YCZGG.getCode());
|
|
|
+ else if(u.getShareType()==2)in.setStatus(ChannelStatus.YCZQD.getCode());
|
|
|
in.setUid(u.getId());
|
|
|
list2.add(in);
|
|
|
}
|