修改三级用户信息报错问题

development
温天培 2 years ago
parent 5aef5f5d3a
commit 44693ac92d

@ -1,27 +0,0 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 求职者
/// </summary>
[SugarTable("jobhunter")]
[Description("求职者")]
public class JobHunter : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -1,47 +0,0 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 求职信息
/// </summary>
[SugarTable("jobhunt_message")]
[Description("求职信息")]
public class JobhuntMessage : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
}
}

@ -1,63 +0,0 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 招聘消息
/// </summary>
[SugarTable("recruit_message")]
[Description("招聘消息")]
public class RecruitMessage : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -1,24 +0,0 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 系统地区数据
/// </summary>
[SugarTable("sys_area")]
[Description("系统地区数据")]
public class SysArea : AutoIncrementEntity
{
/// <summary>
/// 父级ID
/// </summary>
public Int16 parent_id { get; set; }
/// <summary>
/// 地区名
/// </summary>
public string name { get; set; }
}
}

@ -79,151 +79,6 @@
公司详情 公司详情
</summary> </summary>
</member> </member>
<member name="T:GDZZ.Application.Entity.JobHunter">
<summary>
求职者
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.Gender">
<summary>
性别
</summary>
</member>
<member name="T:GDZZ.Application.Entity.JobhuntMessage">
<summary>
求职信息
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.Entity.RecruitMessage">
<summary>
招聘消息
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.Entity.SysArea">
<summary>
系统地区数据
</summary>
</member>
<member name="P:GDZZ.Application.Entity.SysArea.parent_id">
<summary>
父级ID
</summary>
</member>
<member name="P:GDZZ.Application.Entity.SysArea.name">
<summary>
地区名
</summary>
</member>
<member name="F:GDZZ.Application.Service.Auth.AuthService._oauthConfig"> <member name="F:GDZZ.Application.Service.Auth.AuthService._oauthConfig">
<summary> <summary>
获取配置文件 获取配置文件
@ -634,621 +489,5 @@
公司详情 公司详情
</summary> </summary>
</member> </member>
<member name="T:GDZZ.Application.JobHunterDto">
<summary>
求职者输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterDto.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterDto.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterDto.Gender">
<summary>
性别
</summary>
</member>
<member name="T:GDZZ.Application.JobHunterInput">
<summary>
求职者输入参数
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterInput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterInput.Gender">
<summary>
性别
</summary>
</member>
<member name="P:GDZZ.Application.DeleteJobHunterInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.UpdateJobHunterInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:GDZZ.Application.JobHunterOutput">
<summary>
求职者输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterOutput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterOutput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.JobHunterOutput.Gender">
<summary>
性别
</summary>
</member>
<member name="T:GDZZ.Application.JobHunterService">
<summary>
求职者服务
</summary>
</member>
<member name="M:GDZZ.Application.JobHunterService.Page(GDZZ.Application.JobHunterInput)">
<summary>
分页查询求职者
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobHunterService.Add(GDZZ.Application.AddJobHunterInput)">
<summary>
增加求职者
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobHunterService.Delete(GDZZ.Application.DeleteJobHunterInput)">
<summary>
删除求职者
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobHunterService.Update(GDZZ.Application.UpdateJobHunterInput)">
<summary>
更新求职者
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobHunterService.Get(GDZZ.Application.QueryeJobHunterInput)">
<summary>
获取求职者
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobHunterService.List(GDZZ.Application.JobHunterInput)">
<summary>
获取求职者列表
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:GDZZ.Application.JobhuntMessageDto">
<summary>
求职信息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageInput">
<summary>
求职信息输入参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.DeleteJobhuntMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.UpdateJobhuntMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageOutput">
<summary>
求职信息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageService">
<summary>
求职信息服务
</summary>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Page(GDZZ.Application.JobhuntMessageInput)">
<summary>
分页查询求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Add(GDZZ.Application.AddJobhuntMessageInput)">
<summary>
增加求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Delete(GDZZ.Application.DeleteJobhuntMessageInput)">
<summary>
删除求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Update(GDZZ.Application.UpdateJobhuntMessageInput)">
<summary>
更新求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Get(GDZZ.Application.QueryeJobhuntMessageInput)">
<summary>
获取求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.List(GDZZ.Application.JobhuntMessageInput)">
<summary>
获取求职信息列表
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:GDZZ.Application.RecruitMessageDto">
<summary>
招聘消息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageInput">
<summary>
招聘消息输入参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.AddRecruitMessageInput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.AddRecruitMessageInput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.DeleteRecruitMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.UpdateRecruitMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageOutput">
<summary>
招聘消息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageService">
<summary>
招聘消息服务
</summary>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Page(GDZZ.Application.RecruitMessageInput)">
<summary>
分页查询招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Add(GDZZ.Application.AddRecruitMessageInput)">
<summary>
增加招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Delete(GDZZ.Application.DeleteRecruitMessageInput)">
<summary>
删除招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Update(GDZZ.Application.UpdateRecruitMessageInput)">
<summary>
更新招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Get(GDZZ.Application.QueryeRecruitMessageInput)">
<summary>
获取招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.List(GDZZ.Application.RecruitMessageInput)">
<summary>
获取招聘消息列表
</summary>
<param name="input"></param>
<returns></returns>
</member>
</members> </members>
</doc> </doc>

@ -1,32 +0,0 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输出参数
/// </summary>
public class JobHunterDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -1,57 +0,0 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输入参数
/// </summary>
public class JobHunterInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public virtual string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public virtual Int16 Gender { get; set; }
}
public class AddJobHunterInput : JobHunterInput
{
}
public class DeleteJobHunterInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateJobHunterInput : JobHunterInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeJobHunterInput : DeleteJobHunterInput
{
}
}

@ -1,31 +0,0 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输出参数
/// </summary>
public class JobHunterOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -1,16 +0,0 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IJobHunterService
{
Task Add(AddJobHunterInput input);
Task Delete(DeleteJobHunterInput input);
Task<JobHunter> Get([FromQuery] QueryeJobHunterInput input);
Task<dynamic> List([FromQuery] JobHunterInput input);
Task<dynamic> Page([FromQuery] JobHunterInput input);
Task Update(UpdateJobHunterInput input);
}
}

@ -1,96 +0,0 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 求职者服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "JobHunter", Order = 1)]
public class JobHunterService : IJobHunterService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<JobHunter> _rep;
public JobHunterService(SqlSugarRepository<JobHunter> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/page")]
public async Task<dynamic> Page([FromQuery] JobHunterInput input)
{
var entities = await _rep.AsQueryable()
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/add")]
public async Task Add(AddJobHunterInput input)
{
var entity = input.Adapt<JobHunter>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/delete")]
public async Task Delete(DeleteJobHunterInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/edit")]
public async Task Update(UpdateJobHunterInput input)
{
var entity = input.Adapt<JobHunter>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/detail")]
public async Task<JobHunter> Get([FromQuery] QueryeJobHunterInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取求职者列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/list")]
public async Task<dynamic> List([FromQuery] JobHunterInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -1,57 +0,0 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输出参数
/// </summary>
public class JobhuntMessageDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
}
}

@ -1,100 +0,0 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输入参数
/// </summary>
public class JobhuntMessageInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public virtual string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public virtual string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public virtual int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public virtual int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public virtual string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public virtual int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public virtual int CityId { get; set; }
}
public class AddJobhuntMessageInput : JobhuntMessageInput
{
/// <summary>
/// 租户Id
/// </summary>
[Required(ErrorMessage = "租户Id不能为空")]
public override long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
[Required(ErrorMessage = "求职详情不能为空")]
public override string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
[Required(ErrorMessage = "求职标题不能为空")]
public override string Title { get; set; }
}
public class DeleteJobhuntMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateJobhuntMessageInput : JobhuntMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeJobhuntMessageInput : DeleteJobhuntMessageInput
{
}
}

@ -1,56 +0,0 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输出参数
/// </summary>
public class JobhuntMessageOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
}
}

@ -1,16 +0,0 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IJobhuntMessageService
{
Task Add(AddJobhuntMessageInput input);
Task Delete(DeleteJobhuntMessageInput input);
Task<JobhuntMessage> Get([FromQuery] QueryeJobhuntMessageInput input);
Task<dynamic> List([FromQuery] JobhuntMessageInput input);
Task<dynamic> Page([FromQuery] JobhuntMessageInput input);
Task Update(UpdateJobhuntMessageInput input);
}
}

@ -1,99 +0,0 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "JobhuntMessage", Order = 1)]
public class JobhuntMessageService : IJobhuntMessageService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<JobhuntMessage> _rep;
public JobhuntMessageService(SqlSugarRepository<JobhuntMessage> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/page")]
public async Task<dynamic> Page([FromQuery] JobhuntMessageInput input)
{
var entities = await _rep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.PositionInfo), u => u.PositionInfo == input.PositionInfo)
.WhereIF(!string.IsNullOrWhiteSpace(input.Title), u => u.Title == input.Title)
.WhereIF(!string.IsNullOrWhiteSpace(input.Tag), u => u.Tag == input.Tag)
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/add")]
public async Task Add(AddJobhuntMessageInput input)
{
var entity = input.Adapt<JobhuntMessage>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/delete")]
public async Task Delete(DeleteJobhuntMessageInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/edit")]
public async Task Update(UpdateJobhuntMessageInput input)
{
var entity = input.Adapt<JobhuntMessage>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/detail")]
public async Task<JobhuntMessage> Get([FromQuery] QueryeJobhuntMessageInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取求职信息列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/list")]
public async Task<dynamic> List([FromQuery] JobhuntMessageInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -1,77 +0,0 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输出参数
/// </summary>
public class RecruitMessageDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -1,114 +0,0 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输入参数
/// </summary>
public class RecruitMessageInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public virtual string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public virtual string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public virtual int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public virtual int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public virtual int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public virtual int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public virtual string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public virtual string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public virtual int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public virtual int Experience { get; set; }
}
public class AddRecruitMessageInput : RecruitMessageInput
{
/// <summary>
/// 职位详情
/// </summary>
[Required(ErrorMessage = "职位详情不能为空")]
public override string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
[Required(ErrorMessage = "标题不能为空")]
public override string Title { get; set; }
}
public class DeleteRecruitMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateRecruitMessageInput : RecruitMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeRecruitMessageInput : DeleteRecruitMessageInput
{
}
}

@ -1,76 +0,0 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输出参数
/// </summary>
public class RecruitMessageOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -1,16 +0,0 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IRecruitMessageService
{
Task Add(AddRecruitMessageInput input);
Task Delete(DeleteRecruitMessageInput input);
Task<RecruitMessage> Get([FromQuery] QueryeRecruitMessageInput input);
Task<dynamic> List([FromQuery] RecruitMessageInput input);
Task<dynamic> Page([FromQuery] RecruitMessageInput input);
Task Update(UpdateRecruitMessageInput input);
}
}

@ -1,100 +0,0 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "RecruitMessage", Order = 1)]
public class RecruitMessageService : IRecruitMessageService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<RecruitMessage> _rep;
public RecruitMessageService(SqlSugarRepository<RecruitMessage> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/page")]
public async Task<dynamic> Page([FromQuery] RecruitMessageInput input)
{
var entities = await _rep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.PositionInfo), u => u.PositionInfo == input.PositionInfo)
.WhereIF(!string.IsNullOrWhiteSpace(input.Title), u => u.Title == input.Title)
.WhereIF(!string.IsNullOrWhiteSpace(input.Phone), u => u.Phone == input.Phone)
.WhereIF(!string.IsNullOrWhiteSpace(input.Tag), u => u.Tag == input.Tag)
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/add")]
public async Task Add(AddRecruitMessageInput input)
{
var entity = input.Adapt<RecruitMessage>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/delete")]
public async Task Delete(DeleteRecruitMessageInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/edit")]
public async Task Update(UpdateRecruitMessageInput input)
{
var entity = input.Adapt<RecruitMessage>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/detail")]
public async Task<RecruitMessage> Get([FromQuery] QueryeRecruitMessageInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取招聘消息列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/list")]
public async Task<dynamic> List([FromQuery] RecruitMessageInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GDZZ.Application.Service;
public interface ITestService
{
Task TestChangeDatabase();
}

@ -1,80 +0,0 @@
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Furion.FriendlyException;
using Furion.JsonSerialization;
using Furion.Logging.Extensions;
using GDZZ.Core;
using GDZZ.Core.Entity;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Text.Json;
using System.Threading.Tasks;
namespace GDZZ.Application.Service;
[ApiDescriptionSettings("Application",Name = "Test", Order = 1)]
public class TestService : ITestService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<Documentation> _userRep;
public TestService(SqlSugarRepository<Documentation> userRep)
{
_userRep=userRep;
}
[AllowAnonymous]
public void TestDatabaseChange() {
Type[] types = new Type[] { typeof(SysUser) };
var diffString = _userRep.Context.CodeFirst.GetDifferenceTables(types).ToDiffList();
Console.Write(diffString);
}
[HttpGet("/test/TestChangeDatabase")]
[AllowAnonymous]
public async Task TestChangeDatabase()
{
var user = await _userRep.ToListAsync();
_userRep.CurrentBeginTran();
_userRep.CurrentCommitTran();
}
[AllowAnonymous]
public async Task<Student> JsonSerializerTest(string json) {
string us = UserManager.Account;
var sq = JsonSerializer.Deserialize<Student>(json);
var ss= Newtonsoft.Json.JsonConvert.DeserializeObject<Student>(json);
var s = JSON.Deserialize<Student>(json);
return s;
}
[LoggingMonitor]
public void TestLog()
{
throw Oops.Bah($"业务异常{DateTime.Now}");
}
[AllowAnonymous]
public void TestLog2()
{
Student student = null;
student.FirstName = "hahah";
}
[NonUnify]
public void TestLogInfo()
{
$"info日志{DateTime.Now}".LogInformation();
}
}
public class Student {
public string FirstName { get; set; }
public int RealAge { get; set; }
}

@ -402,5 +402,11 @@ public enum ErrorCode
/// 表单不存在 /// 表单不存在
/// </summary> /// </summary>
[ErrorCodeItemMetadata("表单不存在")] [ErrorCodeItemMetadata("表单不存在")]
F1000 F1000,
/// <summary>
/// 租户不存在
/// </summary>
[ErrorCodeItemMetadata("租户不存在")]
F1001
} }

@ -2560,6 +2560,11 @@
表单不存在 表单不存在
</summary> </summary>
</member> </member>
<member name="F:GDZZ.Core.ErrorCode.F1001">
<summary>
租户不存在
</summary>
</member>
<member name="T:GDZZ.Core.FileExtensionEnum"> <member name="T:GDZZ.Core.FileExtensionEnum">
<summary> <summary>
文件扩展枚举 文件扩展枚举

@ -82,7 +82,12 @@ public class AuthService : IAuthService, IDynamicApiController, ITransient
throw Oops.Oh(ErrorCode.D1017); throw Oops.Oh(ErrorCode.D1017);
//获取对应租户 //获取对应租户
var tenant = _sysTenantRep.Single(user.TenantId); var tenant = _sysTenantRep.Single(user.TenantId);
if (tenant.IsNullOrZero())
throw Oops.Oh(ErrorCode.F1001);
// 生成Token令牌 // 生成Token令牌
//var accessToken = await _jwtBearerManager.CreateTokenAdmin(user); //var accessToken = await _jwtBearerManager.CreateTokenAdmin(user);
var accessToken = JWTEncryption.Encrypt(new Dictionary<string, object> var accessToken = JWTEncryption.Encrypt(new Dictionary<string, object>
{ {

@ -17,15 +17,18 @@ namespace GDZZ.Core.Service;
public class SysEmpService : ISysEmpService, ITransient public class SysEmpService : ISysEmpService, ITransient
{ {
private readonly SqlSugarRepository<SysEmp> _sysEmpRep; // 员工表仓储 private readonly SqlSugarRepository<SysEmp> _sysEmpRep; // 员工表仓储
private readonly SqlSugarRepository<SysEmpPos> sysEmpPosRep; // 员工表仓储
private readonly ISysEmpExtOrgPosService _sysEmpExtOrgPosService; private readonly ISysEmpExtOrgPosService _sysEmpExtOrgPosService;
private readonly ISysEmpPosService _sysEmpPosService; private readonly ISysEmpPosService _sysEmpPosService;
public SysEmpService(SqlSugarRepository<SysEmp> sysEmpRep, public SysEmpService(SqlSugarRepository<SysEmp> sysEmpRep,
SqlSugarRepository<SysEmpPos> sysEmpPosRep,
ISysEmpExtOrgPosService sysEmpExtOrgPosService, ISysEmpExtOrgPosService sysEmpExtOrgPosService,
ISysEmpPosService sysEmpPosService) ISysEmpPosService sysEmpPosService)
{ {
_sysEmpRep = sysEmpRep; _sysEmpRep = sysEmpRep;
this.sysEmpPosRep = sysEmpPosRep;
_sysEmpExtOrgPosService = sysEmpExtOrgPosService; _sysEmpExtOrgPosService = sysEmpExtOrgPosService;
_sysEmpPosService = sysEmpPosService; _sysEmpPosService = sysEmpPosService;
} }
@ -79,13 +82,17 @@ public class SysEmpService : ISysEmpService, ITransient
try try
{ {
_sysEmpRep.CurrentBeginTran(); _sysEmpRep.CurrentBeginTran();
var emppos = await this.sysEmpPosRep.FirstOrDefaultAsync(x => x.SysEmpId == long.Parse(sysEmpParam.Id));
await this.sysEmpPosRep.DeleteAsync(x =>x.SysEmpId == long.Parse(sysEmpParam.Id));
// 先删除员工信息 // 先删除员工信息
await _sysEmpRep.DeleteAsync(u => u.Id == long.Parse(sysEmpParam.Id)); await _sysEmpRep.DeleteAsync(u => u.Id == long.Parse(sysEmpParam.Id));
// 再新增新员工信息 // 再新增新员工信息
var emp = sysEmpParam.Adapt<SysEmp>(); var emp = sysEmpParam.Adapt<SysEmp>();
await _sysEmpRep.InsertAsync(emp); await _sysEmpRep.InsertAsync(emp);
//await this.sysEmpPosRep.InsertAsync(new SysEmpPos() { SysEmpId = emppos.SysEmpId, SysPosId = emp.Id });
// 更新附属机构职位信息 // 更新附属机构职位信息
await _sysEmpExtOrgPosService.AddOrUpdate(emp.Id, sysEmpParam.ExtIds); await _sysEmpExtOrgPosService.AddOrUpdate(emp.Id, sysEmpParam.ExtIds);

Loading…
Cancel
Save