Commit edc67701 authored by 黄奎's avatar 黄奎

页面修改

parent d9e0fa28
......@@ -850,83 +850,109 @@ namespace Edu.WebApi.Controllers.User
string message = "";
var customer = base.AppletCustomerInfo;
//是否是同行注册
bool isB2B = false;
if (customer != null&&customer.GroupId>0)
{
query.Group_Id = customer.GroupId;
isB2B = true;
}
if (query.Group_Id <= 0)
{
query.Group_Id = base.UserInfo.Group_Id;
}
if (customer != null)
{
if (!string.IsNullOrEmpty(query.StuTel)&& studentModule.CheckStudentModule(query, 1))
{
message = "此学员手机号已绑定同行!请重新录入!";
}
if (!string.IsNullOrEmpty(query.QQ)&& studentModule.CheckStudentModule(query, 2))
{
message = "此学员QQ已绑定同行!请重新录入!";
}
if (!string.IsNullOrEmpty(query.WeChatNo)&&studentModule.CheckStudentModule(query, 3))
{
message = "此学员微信已绑定同行!请重新录入!";
}
}
//后台验证
else
if (!string.IsNullOrEmpty(query.StuTel))
{
if (!string.IsNullOrEmpty(query.StuTel))
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, StuTel = query.StuTel });
string name = UserReidsCache.GetUserLoginInfo((model?.CreateBy ?? 0))?.AccountName ?? "";
if (model != null && model.StuId > 0)
{
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, StuTel = query.StuTel });
string name = UserReidsCache.GetUserLoginInfo(model.CreateBy)?.AccountName ?? "";
if (model != null && model.StuId > 0)
if (query.StuId > 0)
{
if (query.StuId > 0)
if (query.StuId != model.StuId)
{
if (query.StuId != model.StuId)
if (isB2B)
{
message = "此学员手机号已绑定同行!请重新录入!";
}
else
{
message = string.Format("此学员手机号已被【{0}】于【{1}】注册。", name, Common.ConvertHelper.FormatTime(model.CreateTime));
}
}
}
else
{
if (isB2B)
{
message = "此学员手机号已绑定同行!请重新录入!";
}
else
{
message = string.Format("此学员手机号已被【{0}】于【{1}】注册。", name, Common.ConvertHelper.FormatTime(model.CreateTime));
}
}
}
if (!string.IsNullOrEmpty(query.QQ))
}
if (!string.IsNullOrEmpty(query.QQ))
{
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, QQ = query.QQ });
string name = UserReidsCache.GetUserLoginInfo((model?.CreateBy ?? 0))?.AccountName ?? "";
if (model != null && model.StuId > 0)
{
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, QQ = query.QQ });
string name = UserReidsCache.GetUserLoginInfo(model.CreateBy)?.AccountName ?? "";
if (model != null && model.StuId > 0)
if (query.StuId > 0)
{
if (query.StuId > 0)
if (query.StuId != model.StuId)
{
if (query.StuId != model.StuId)
if (isB2B)
{
message = "此学员QQ已绑定同行!请重新录入!";
}
else {
message = string.Format("此学员QQ号已被【{0}】于【{1}】注册。", name, Common.ConvertHelper.FormatTime(model.CreateTime));
}
}
}
else
{
if (isB2B)
{
message = "此学员QQ已绑定同行!请重新录入!";
}
else
{
message = string.Format("此学员QQ号已被【{0}】于【{1}】注册。", name, Common.ConvertHelper.FormatTime(model.CreateTime));
}
}
}
if (!string.IsNullOrEmpty(query.WeChatNo))
}
if (!string.IsNullOrEmpty(query.WeChatNo))
{
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, WeChatNo = query.WeChatNo });
string name = UserReidsCache.GetUserLoginInfo((model?.CreateBy ?? 0))?.AccountName ?? "";
if (model != null && model.StuId > 0)
{
var model = studentModule.CheckExistsStuModule(new RB_Student_ViewModel() { Group_Id = query.Group_Id, WeChatNo = query.WeChatNo });
string name = UserReidsCache.GetUserLoginInfo(model.CreateBy)?.AccountName ?? "";
if (model != null && model.StuId > 0)
if (query.StuId > 0)
{
if (query.StuId > 0)
if (query.StuId != model.StuId)
{
if (query.StuId != model.StuId)
if (isB2B)
{
message = "此学员微信已绑定同行!请重新录入!";
}
else
{
message = string.Format("此学员QQ号已被【{0}】于【{1}】注册。", name, Common.ConvertHelper.FormatTime(model.CreateTime));
}
}
}
else
{
if (isB2B)
{
message = "此学员微信已绑定同行!请重新录入!";
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment