Commit a0e84e01 authored by 黄奎's avatar 黄奎

页面修改

parent 47e85500
......@@ -188,5 +188,10 @@ namespace Edu.Model.ViewModel.User
/// 协助人员
/// </summary>
public List<RB_Student_Assist_Extend> AssistList { get; set; }
/// <summary>
/// 是否查询当天访客
/// </summary>
public int IsQCurrentDay { get; set; }
}
}
\ No newline at end of file
......@@ -4,6 +4,7 @@ using Edu.Common.Enum.Duty;
using Edu.Common.Plugin;
using Edu.Model.ViewModel.Duty;
using Edu.Module.Duty;
using Edu.Module.User;
using Edu.WebApi.Filter;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
......@@ -24,8 +25,16 @@ namespace Edu.WebApi.Controllers.Duty
[EnableCors("AllowCors")]
public class DutyPlanController : BaseController
{
/// <summary>
/// 值班计划处理类对象
/// </summary>
private readonly DutyPlanModule dutyPlanModule = AOP.AOPHelper.CreateAOPObject<DutyPlanModule>();
/// <summary>
/// 学员处理类对象
/// </summary>
private readonly StudentModule studentModule = AOP.AOPHelper.CreateAOPObject<StudentModule>();
/// <summary>
/// 获取值班计划分页列表【管理端】
/// </summary>
......@@ -541,6 +550,8 @@ namespace Edu.WebApi.Controllers.Duty
return ApiResult.Success(data: pageModel);
}
/// <summary>
/// 获取访客分页列表
/// </summary>
......
......@@ -803,6 +803,24 @@ namespace Edu.WebApi.Controllers.User
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 检查学员手机号码是否存在
/// </summary>
/// <returns></returns>
public ApiResult CheckExistsStu()
{
var extModel = new RB_Student_ViewModel()
{
StuId = base.ParmJObj.GetInt("StuId"),
StuTel = base.ParmJObj.GetStringValue("StuTel"),
};
var customer = base.AppletCustomerInfo;
extModel.Group_Id = customer.GroupId;
extModel.CustomerId = customer.CustomerId;
bool flag = studentModule.CheckStudentModule(extModel);
return flag ? ApiResult.Failed(message: "此学员手机号已绑定同行!请重新录入!") : ApiResult.Success();
}
/// <summary>
/// 获取收客平台列表
/// </summary>
......
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