diff --git a/.DS_Store b/.DS_Store index 4085ce8..ba296f4 100644 --- a/.DS_Store +++ b/.DS_Store diff --git a/antis-ncc-admin/src/api/extend/store.js b/antis-ncc-admin/src/api/extend/store.js new file mode 100644 index 0000000..a7ad160 --- /dev/null +++ b/antis-ncc-admin/src/api/extend/store.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +// 获取门店下拉框列表 +export const getStoreSelector = () => { + return request({ + url: '/api/Extend/LqMdxx/Selector', + method: 'GET' + }) +} diff --git a/antis-ncc-admin/src/views/lqKdKdjlb/Form copy.vue b/antis-ncc-admin/src/views/lqKdKdjlb/Form copy.vue new file mode 100644 index 0000000..db501fe --- /dev/null +++ b/antis-ncc-admin/src/views/lqKdKdjlb/Form copy.vue @@ -0,0 +1,575 @@ + + diff --git a/antis-ncc-admin/src/views/lqKdKdjlb/Form.vue b/antis-ncc-admin/src/views/lqKdKdjlb/Form.vue index b29edc6..1aaf0e6 100644 --- a/antis-ncc-admin/src/views/lqKdKdjlb/Form.vue +++ b/antis-ncc-admin/src/views/lqKdKdjlb/Form.vue @@ -1,537 +1,825 @@  + + diff --git a/antis-ncc-admin/src/views/permission/user/Form.vue b/antis-ncc-admin/src/views/permission/user/Form.vue index 53c8329..56411d5 100644 --- a/antis-ncc-admin/src/views/permission/user/Form.vue +++ b/antis-ncc-admin/src/views/permission/user/Form.vue @@ -40,9 +40,9 @@ - - + + @@ -51,10 +51,9 @@ - - + + @@ -70,6 +69,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + import { getDepartmentSelector } from '@/api/permission/department' -import { getPositionSelector } from '@/api/permission/position' import { getRoleSelector } from '@/api/permission/role' import { createUser, updateUser, getUserInfo } from '@/api/permission/user' +import { getStoreSelector } from '@/api/extend/store' export default { data() { @@ -223,16 +256,20 @@ export default { email: '', urgentContacts: '', urgentTelePhone: '', - postalAddress: '' + postalAddress: '', + mdid: '', + fyft: '否', + gwfl: '', + gw: '' }, roleId: [], departmentTreeData: [], - positionTreeData: [], roleTreeData: [], genderTreeData: [], nationTreeData: [], educationTreeData: [], certificatesTypeTreeData: [], + storeTreeData: [], formLoading: false, genderProps: { value: 'enCode', @@ -271,10 +308,6 @@ export default { this.departmentTreeData = res.data.list }) - // 获取岗位 - getPositionSelector().then(res => { - this.positionTreeData = res.data.list - }) // 获取角色 getRoleSelector().then(res => { @@ -301,6 +334,13 @@ export default { this.genderTreeData = res }) + // 获取门店数据 + getStoreSelector().then(res => { + this.storeTreeData = res.data.list + }).catch(() => { + this.storeTreeData = [] + }) + if (this.dataForm.id) { this.formLoading = true getUserInfo(this.dataForm.id).then(res => { diff --git a/antis-ncc-admin/src/views/permission/user/index.vue b/antis-ncc-admin/src/views/permission/user/index.vue index f6094ac..d91b4ed 100644 --- a/antis-ncc-admin/src/views/permission/user/index.vue +++ b/antis-ncc-admin/src/views/permission/user/index.vue @@ -61,6 +61,15 @@ + + + + + diff --git a/netcore/src/Application/.DS_Store b/netcore/src/Application/.DS_Store index 9f1b196..4008227 100644 --- a/netcore/src/Application/.DS_Store +++ b/netcore/src/Application/.DS_Store diff --git a/netcore/src/Application/NCC.API.Core/.DS_Store b/netcore/src/Application/NCC.API.Core/.DS_Store new file mode 100644 index 0000000..3d2f091 --- /dev/null +++ b/netcore/src/Application/NCC.API.Core/.DS_Store diff --git a/netcore/src/Modularity/Extend/NCC.Extend/LqBmzbService.cs b/netcore/src/Modularity/Extend/NCC.Extend/LqBmzbService.cs index 6e75e31..c15ad40 100644 --- a/netcore/src/Modularity/Extend/NCC.Extend/LqBmzbService.cs +++ b/netcore/src/Modularity/Extend/NCC.Extend/LqBmzbService.cs @@ -1,225 +1,225 @@ -using NCC.Common.Core.Manager; -using NCC.Common.Enum; -using NCC.Common.Extension; -using NCC.Common.Filter; -using NCC.Dependency; -using NCC.DynamicApiController; -using NCC.FriendlyException; -using NCC.Extend.Interfaces.LqBmzb; -using Mapster; -using Microsoft.AspNetCore.Mvc; -using SqlSugar; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using NCC.Extend.Entitys; -using NCC.Extend.Entitys.Dto.LqBmzb; -using Yitter.IdGenerator; -using NCC.Common.Helper; -using NCC.JsonSerialization; -using NCC.Common.Model.NPOI; -using NCC.Common.Configuration; -using NCC.DataEncryption; -using NCC.ClayObject; +// using NCC.Common.Core.Manager; +// using NCC.Common.Enum; +// using NCC.Common.Extension; +// using NCC.Common.Filter; +// using NCC.Dependency; +// using NCC.DynamicApiController; +// using NCC.FriendlyException; +// using NCC.Extend.Interfaces.LqBmzb; +// using Mapster; +// using Microsoft.AspNetCore.Mvc; +// using SqlSugar; +// using System; +// using System.Collections.Generic; +// using System.Linq; +// using System.Threading.Tasks; +// using NCC.Extend.Entitys; +// using NCC.Extend.Entitys.Dto.LqBmzb; +// using Yitter.IdGenerator; +// using NCC.Common.Helper; +// using NCC.JsonSerialization; +// using NCC.Common.Model.NPOI; +// using NCC.Common.Configuration; +// using NCC.DataEncryption; +// using NCC.ClayObject; -namespace NCC.Extend.LqBmzb -{ - /// - /// 部门管理服务 - /// - [ApiDescriptionSettings(Tag = "Extend",Name = "LqBmzb", Order = 200)] - [Route("api/Extend/[controller]")] - public class LqBmzbService : ILqBmzbService, IDynamicApiController, ITransient - { - private readonly ISqlSugarRepository _lqBmzbRepository; - private readonly SqlSugarScope _db; - private readonly IUserManager _userManager; +// namespace NCC.Extend.LqBmzb +// { +// /// +// /// 部门管理服务 +// /// +// [ApiDescriptionSettings(Tag = "Extend",Name = "LqBmzb", Order = 200)] +// [Route("api/Extend/[controller]")] +// public class LqBmzbService : ILqBmzbService, IDynamicApiController, ITransient +// { +// private readonly ISqlSugarRepository _lqBmzbRepository; +// private readonly SqlSugarScope _db; +// private readonly IUserManager _userManager; - /// - /// 初始化一个类型的新实例 - /// - public LqBmzbService( - ISqlSugarRepository lqBmzbRepository, - IUserManager userManager) - { - _lqBmzbRepository = lqBmzbRepository; - _db = _lqBmzbRepository.Context; - _userManager = userManager; - } +// /// +// /// 初始化一个类型的新实例 +// /// +// public LqBmzbService( +// ISqlSugarRepository lqBmzbRepository, +// IUserManager userManager) +// { +// _lqBmzbRepository = lqBmzbRepository; +// _db = _lqBmzbRepository.Context; +// _userManager = userManager; +// } - /// - /// 获取部门管理 - /// - /// 参数 - /// - [HttpGet("{id}")] - public async Task GetInfo(string id) - { - var entity = await _db.Queryable().FirstAsync(p => p.Id == id); - var output = entity.Adapt(); - return output; - } +// /// +// /// 获取部门管理 +// /// +// /// 参数 +// /// +// [HttpGet("{id}")] +// public async Task GetInfo(string id) +// { +// var entity = await _db.Queryable().FirstAsync(p => p.Id == id); +// var output = entity.Adapt(); +// return output; +// } - /// - /// 获取部门管理列表 - /// - /// 请求参数 - /// - [HttpGet("")] - public async Task GetList([FromQuery] LqBmzbListQueryInput input) - { - var sidx = input.sidx == null ? "id" : input.sidx; - var data = await _db.Queryable() - .WhereIF(!string.IsNullOrEmpty(input.id), p => p.Id.Contains(input.id)) - .WhereIF(!string.IsNullOrEmpty(input.bmmc), p => p.Bmmc.Contains(input.bmmc)) - .WhereIF(!string.IsNullOrEmpty(input.bmfl), p => p.Bmfl.Equals(input.bmfl)) - .Select(it=> new LqBmzbListOutput - { - id = it.Id, - bmmc=it.Bmmc, - bmfl=it.Bmfl, - }).MergeTable().OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); - return PageResult.SqlSugarPageResult(data); - } +// /// +// /// 获取部门管理列表 +// /// +// /// 请求参数 +// /// +// [HttpGet("")] +// public async Task GetList([FromQuery] LqBmzbListQueryInput input) +// { +// var sidx = input.sidx == null ? "id" : input.sidx; +// var data = await _db.Queryable() +// .WhereIF(!string.IsNullOrEmpty(input.id), p => p.Id.Contains(input.id)) +// .WhereIF(!string.IsNullOrEmpty(input.bmmc), p => p.Bmmc.Contains(input.bmmc)) +// .WhereIF(!string.IsNullOrEmpty(input.bmfl), p => p.Bmfl.Equals(input.bmfl)) +// .Select(it=> new LqBmzbListOutput +// { +// id = it.Id, +// bmmc=it.Bmmc, +// bmfl=it.Bmfl, +// }).MergeTable().OrderBy(sidx+" "+input.sort).ToPagedListAsync(input.currentPage, input.pageSize); +// return PageResult.SqlSugarPageResult(data); +// } - /// - /// 新建部门管理 - /// - /// 参数 - /// - [HttpPost("")] - public async Task Create([FromBody] LqBmzbCrInput input) - { - var userInfo = await _userManager.GetUserInfo(); - var entity = input.Adapt(); - entity.Id = YitIdHelper.NextId().ToString(); - var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); - if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); - } +// /// +// /// 新建部门管理 +// /// +// /// 参数 +// /// +// [HttpPost("")] +// public async Task Create([FromBody] LqBmzbCrInput input) +// { +// var userInfo = await _userManager.GetUserInfo(); +// var entity = input.Adapt(); +// entity.Id = YitIdHelper.NextId().ToString(); +// var isOk = await _db.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandAsync(); +// if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1000); +// } - /// - /// 获取部门管理无分页列表 - /// - /// 请求参数 - /// - [NonAction] - public async Task GetNoPagingList([FromQuery] LqBmzbListQueryInput input) - { - var sidx = input.sidx == null ? "id" : input.sidx; - var data = await _db.Queryable() - .WhereIF(!string.IsNullOrEmpty(input.id), p => p.Id.Contains(input.id)) - .WhereIF(!string.IsNullOrEmpty(input.bmmc), p => p.Bmmc.Contains(input.bmmc)) - .WhereIF(!string.IsNullOrEmpty(input.bmfl), p => p.Bmfl.Equals(input.bmfl)) - .Select(it=> new LqBmzbListOutput - { - id = it.Id, - bmmc=it.Bmmc, - bmfl=it.Bmfl, - }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); - return data; - } +// /// +// /// 获取部门管理无分页列表 +// /// +// /// 请求参数 +// /// +// [NonAction] +// public async Task GetNoPagingList([FromQuery] LqBmzbListQueryInput input) +// { +// var sidx = input.sidx == null ? "id" : input.sidx; +// var data = await _db.Queryable() +// .WhereIF(!string.IsNullOrEmpty(input.id), p => p.Id.Contains(input.id)) +// .WhereIF(!string.IsNullOrEmpty(input.bmmc), p => p.Bmmc.Contains(input.bmmc)) +// .WhereIF(!string.IsNullOrEmpty(input.bmfl), p => p.Bmfl.Equals(input.bmfl)) +// .Select(it=> new LqBmzbListOutput +// { +// id = it.Id, +// bmmc=it.Bmmc, +// bmfl=it.Bmfl, +// }).MergeTable().OrderBy(sidx+" "+input.sort).ToListAsync(); +// return data; +// } - /// - /// 导出部门管理 - /// - /// 请求参数 - /// - [HttpGet("Actions/Export")] - public async Task Export([FromQuery] LqBmzbListQueryInput input) - { - var userInfo = await _userManager.GetUserInfo(); - var exportData = new List(); - if (input.dataType == 0) - { - var data = Clay.Object(await this.GetList(input)); - exportData = data.Solidify>().list; - } - else - { - exportData = await this.GetNoPagingList(input); - } - List paramList = "[{\"value\":\"部门编号\",\"field\":\"id\"},{\"value\":\"部门名称\",\"field\":\"bmmc\"},{\"value\":\"部门分类\",\"field\":\"bmfl\"},]".ToList(); - ExcelConfig excelconfig = new ExcelConfig(); - excelconfig.FileName = "部门管理.xls"; - excelconfig.HeadFont = "微软雅黑"; - excelconfig.HeadPoint = 10; - excelconfig.IsAllSizeColumn = true; - excelconfig.ColumnModel = new List(); - List selectKeyList = input.selectKey.Split(',').ToList(); - foreach (var item in selectKeyList) - { - var isExist = paramList.Find(p => p.field == item); - if (isExist != null) - { - excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); - } - } - var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; - ExcelExportHelper.Export(exportData, excelconfig, addPath); - var fileName = _userManager.UserId + "|" + addPath + "|xls"; - var output = new - { - name = excelconfig.FileName, - url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") - }; - return output; - } +// /// +// /// 导出部门管理 +// /// +// /// 请求参数 +// /// +// [HttpGet("Actions/Export")] +// public async Task Export([FromQuery] LqBmzbListQueryInput input) +// { +// var userInfo = await _userManager.GetUserInfo(); +// var exportData = new List(); +// if (input.dataType == 0) +// { +// var data = Clay.Object(await this.GetList(input)); +// exportData = data.Solidify>().list; +// } +// else +// { +// exportData = await this.GetNoPagingList(input); +// } +// List paramList = "[{\"value\":\"部门编号\",\"field\":\"id\"},{\"value\":\"部门名称\",\"field\":\"bmmc\"},{\"value\":\"部门分类\",\"field\":\"bmfl\"},]".ToList(); +// ExcelConfig excelconfig = new ExcelConfig(); +// excelconfig.FileName = "部门管理.xls"; +// excelconfig.HeadFont = "微软雅黑"; +// excelconfig.HeadPoint = 10; +// excelconfig.IsAllSizeColumn = true; +// excelconfig.ColumnModel = new List(); +// List selectKeyList = input.selectKey.Split(',').ToList(); +// foreach (var item in selectKeyList) +// { +// var isExist = paramList.Find(p => p.field == item); +// if (isExist != null) +// { +// excelconfig.ColumnModel.Add(new ExcelColumnModel() { Column = isExist.field, ExcelColumn = isExist.value }); +// } +// } +// var addPath = FileVariable.TemporaryFilePath + excelconfig.FileName; +// ExcelExportHelper.Export(exportData, excelconfig, addPath); +// var fileName = _userManager.UserId + "|" + addPath + "|xls"; +// var output = new +// { +// name = excelconfig.FileName, +// url = "/api/File/Download?encryption=" + DESCEncryption.Encrypt(fileName, "NCC") +// }; +// return output; +// } - /// - /// 批量删除部门管理 - /// - /// 主键数组 - /// - [HttpPost("batchRemove")] - public async Task BatchRemove([FromBody] List ids) - { - var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); - if (entitys.Count > 0) - { - try - { - //开启事务 - _db.BeginTran(); - //批量删除部门管理 - await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); - //关闭事务 - _db.CommitTran(); - } - catch (Exception) - { - //回滚事务 - _db.RollbackTran(); - throw NCCException.Oh(ErrorCode.COM1002); - } - } - } +// /// +// /// 批量删除部门管理 +// /// +// /// 主键数组 +// /// +// [HttpPost("batchRemove")] +// public async Task BatchRemove([FromBody] List ids) +// { +// var entitys = await _db.Queryable().In(it => it.Id, ids).ToListAsync(); +// if (entitys.Count > 0) +// { +// try +// { +// //开启事务 +// _db.BeginTran(); +// //批量删除部门管理 +// await _db.Deleteable().In(d => d.Id,ids).ExecuteCommandAsync(); +// //关闭事务 +// _db.CommitTran(); +// } +// catch (Exception) +// { +// //回滚事务 +// _db.RollbackTran(); +// throw NCCException.Oh(ErrorCode.COM1002); +// } +// } +// } - /// - /// 更新部门管理 - /// - /// 主键 - /// 参数 - /// - [HttpPut("{id}")] - public async Task Update(string id, [FromBody] LqBmzbUpInput input) - { - var entity = input.Adapt(); - var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); - if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); - } +// /// +// /// 更新部门管理 +// /// +// /// 主键 +// /// 参数 +// /// +// [HttpPut("{id}")] +// public async Task Update(string id, [FromBody] LqBmzbUpInput input) +// { +// var entity = input.Adapt(); +// var isOk = await _db.Updateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); +// if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1001); +// } - /// - /// 删除部门管理 - /// - /// - [HttpDelete("{id}")] - public async Task Delete(string id) - { - var entity = await _db.Queryable().FirstAsync(p => p.Id == id); - _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); - var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); - if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); - } - } -} +// /// +// /// 删除部门管理 +// /// +// /// +// [HttpDelete("{id}")] +// public async Task Delete(string id) +// { +// var entity = await _db.Queryable().FirstAsync(p => p.Id == id); +// _ = entity ?? throw NCCException.Oh(ErrorCode.COM1005); +// var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); +// if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); +// } +// } +// } diff --git a/netcore/src/Modularity/Extend/NCC.Extend/LqMdxxService.cs b/netcore/src/Modularity/Extend/NCC.Extend/LqMdxxService.cs index b2664d5..d84b556 100644 --- a/netcore/src/Modularity/Extend/NCC.Extend/LqMdxxService.cs +++ b/netcore/src/Modularity/Extend/NCC.Extend/LqMdxxService.cs @@ -277,5 +277,18 @@ namespace NCC.Extend.LqMdxx var isOk = await _db.Deleteable().Where(d => d.Id == id).ExecuteCommandAsync(); if (!(isOk > 0)) throw NCCException.Oh(ErrorCode.COM1002); } + + /// + /// 获取门店下拉选择数据 + /// + /// + [HttpGet("Selector")] + public async Task GetSelector() + { + var list = await _db.Queryable() + .Select(it => new { id = it.Id, fullName = it.Dm, enCode = it.Mdbm }) + .ToListAsync(); + return new { list = list }; + } } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserCrInput.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserCrInput.cs index 8649dda..efc2e40 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserCrInput.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserCrInput.cs @@ -133,5 +133,30 @@ namespace NCC.System.Entitys.Dto.Permission.User /// 排序 /// public long? sortCode { get; set; } + + /// + /// 门店ID + /// + public string mdid { get; set; } + + /// + /// 职位 + /// + public string zw { get; set; } + + /// + /// 费用分摊(是/否) + /// + public string fyft { get; set; } + + /// + /// 岗位分类 + /// + public string gwfl { get; set; } + + /// + /// 岗位 + /// + public string gw { get; set; } } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserInfoOutput.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserInfoOutput.cs index cacc647..56c000f 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserInfoOutput.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserInfoOutput.cs @@ -136,5 +136,30 @@ namespace NCC.System.Entitys.Dto.Permission.User /// 排序 /// public long? sortCode { get; set; } + + /// + /// 门店ID + /// + public string mdid { get; set; } + + /// + /// 职位 + /// + public string zw { get; set; } + + /// + /// 费用分摊(是/否) + /// + public string fyft { get; set; } + + /// + /// 岗位分类 + /// + public string gwfl { get; set; } + + /// + /// 岗位 + /// + public string gw { get; set; } } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListAllOutput.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListAllOutput.cs index aea4fc6..3ac52dc 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListAllOutput.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListAllOutput.cs @@ -61,5 +61,30 @@ namespace NCC.System.Entitys.Dto.Permission.User [JsonIgnore] public int? deleteMark { get; set; } + /// + /// 门店ID + /// + public string mdid { get; set; } + + /// + /// 职位 + /// + public string zw { get; set; } + + /// + /// 费用分摊(是/否) + /// + public string fyft { get; set; } + + /// + /// 岗位分类 + /// + public string gwfl { get; set; } + + /// + /// 岗位 + /// + public string gw { get; set; } + } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListOutput.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListOutput.cs index 84b23d1..cfd913e 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListOutput.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Dto/Permission/User/UserListOutput.cs @@ -93,5 +93,30 @@ namespace NCC.System.Entitys.Dto.Permission.User /// [JsonIgnore] public int? deleteMark { get; set; } + + /// + /// 门店ID + /// + public string mdid { get; set; } + + /// + /// 职位 + /// + public string zw { get; set; } + + /// + /// 费用分摊(是/否) + /// + public string fyft { get; set; } + + /// + /// 岗位分类 + /// + public string gwfl { get; set; } + + /// + /// 岗位 + /// + public string gw { get; set; } } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Entity/Permission/UserEntity.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Entity/Permission/UserEntity.cs index 94948e3..cc2f599 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Entity/Permission/UserEntity.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Entity/Permission/UserEntity.cs @@ -328,5 +328,35 @@ namespace NCC.System.Entitys.Permission [SugarColumn(ColumnName = "F_OpenId")] public string OpenId { get; set; } + /// + /// 门店ID + /// + [SugarColumn(ColumnName = "F_MDID")] + public string Mdid { get; set; } + + /// + /// 职位 + /// + [SugarColumn(ColumnName = "F_ZW")] + public string Zw { get; set; } + + /// + /// 费用分摊(是/否) + /// + [SugarColumn(ColumnName = "F_FYFT")] + public string Fyft { get; set; } + + /// + /// 岗位分类 + /// + [SugarColumn(ColumnName = "F_GWFL")] + public string Gwfl { get; set; } + + /// + /// 岗位 + /// + [SugarColumn(ColumnName = "F_GW")] + public string Gw { get; set; } + } } diff --git a/netcore/src/Modularity/System/NCC.System.Entitys/Model/Permission/User/UserInfo.cs b/netcore/src/Modularity/System/NCC.System.Entitys/Model/Permission/User/UserInfo.cs index 438d3d6..f47f0cb 100644 --- a/netcore/src/Modularity/System/NCC.System.Entitys/Model/Permission/User/UserInfo.cs +++ b/netcore/src/Modularity/System/NCC.System.Entitys/Model/Permission/User/UserInfo.cs @@ -59,6 +59,11 @@ namespace NCC.System.Entitys.Model.Permission.User public string organizeName { get; set; } /// + /// 门店ID + /// + public string mdid { get; set; } + + /// /// 我的主管 /// public string managerId { get; set; } diff --git a/netcore/src/Modularity/System/NCC.System/Service/Permission/UsersService.cs b/netcore/src/Modularity/System/NCC.System/Service/Permission/UsersService.cs index 0561a3e..f337b4f 100644 --- a/netcore/src/Modularity/System/NCC.System/Service/Permission/UsersService.cs +++ b/netcore/src/Modularity/System/NCC.System/Service/Permission/UsersService.cs @@ -86,7 +86,7 @@ namespace NCC.System.Service.Permission if (!input.organizeId.IsNullOrEmpty()) organizeIds = await GetSubOrganizeIds(input.organizeId); var data = await _userRepository.Context.Queryable((a, b) => new JoinQueryInfos(JoinType.Left, b.Id == SqlFunc.ToString(a.OrganizeId))) - .Select((a, b) => new UserListOutput { id = a.Id, account = a.Account, realName = a.RealName, creatorTime = a.CreatorTime, department = b.FullName, description = a.Description, enabledMark = a.EnabledMark, gender = a.Gender, mobilePhone = a.MobilePhone, positionId = a.PositionId, position = "", roleId = a.RoleId, roleName = "", sortCode = a.SortCode, deleteMark = a.DeleteMark, organizeId = a.OrganizeId }) + .Select((a, b) => new UserListOutput { id = a.Id, account = a.Account, realName = a.RealName, creatorTime = a.CreatorTime, department = b.FullName, description = a.Description, enabledMark = a.EnabledMark, gender = a.Gender, mobilePhone = a.MobilePhone, positionId = a.PositionId, position = "", roleId = a.RoleId, roleName = "", sortCode = a.SortCode, deleteMark = a.DeleteMark, organizeId = a.OrganizeId, mdid = a.Mdid, zw = a.Zw, fyft = a.Fyft, gwfl = a.Gwfl, gw = a.Gw }) .MergeTable() .Mapper((output) => { @@ -161,7 +161,12 @@ namespace NCC.System.Service.Permission sortCode = a.SortCode, quickQuery = a.QuickQuery, enabledMark = a.EnabledMark, - deleteMark = a.DeleteMark + deleteMark = a.DeleteMark, + mdid = a.Mdid, + zw = a.Zw, + fyft = a.Fyft, + gwfl = a.Gwfl, + gw = a.Gw }) .MergeTable().Where(p => p.enabledMark.Equals(1) && p.deleteMark == null).OrderBy(p => p.sortCode).ToListAsync(); return list; @@ -567,6 +572,10 @@ namespace NCC.System.Service.Permission it.Birthday, it.TelePhone, it.Landline, + it.Mdid, + it.Fyft, + it.Gwfl, + it.Gw, it.LastModifyTime, it.LastModifyUserId }).ExecuteCommandAsync(); @@ -762,6 +771,7 @@ namespace NCC.System.Service.Permission gender = SqlFunc.ToInt32(a.Gender), organizeId = a.OrganizeId, organizeName = b.FullName, + mdid = a.Mdid, managerId = a.ManagerId, isAdministrator = SqlFunc.IIF(a.IsAdministrator == 1, true, false), portalId = SqlFunc.IIF(a.PortalId == null, defaultPortalId, a.PortalId), diff --git a/参考资料/.DS_Store b/参考资料/.DS_Store index 253eac6..cef9513 100644 --- a/参考资料/.DS_Store +++ b/参考资料/.DS_Store