| | |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.service.BasicData; |
| | | |
| | | /// <summary> |
| | | /// 岗位信息 |
| | | /// </summary> |
| | | public class MesPositionManager : Repository<MesPosition> |
| | | { |
| | | // 当前类已经继承了 Repository 增、删、查、改的方法 |
| | |
| | | PositionDescription = position.FDESCRIPTIONS, |
| | | Department = position.FDept, |
| | | Fforbidstatus = position.FForbidStatus, |
| | | FUseOrgId = position.FUseOrgId, |
| | | FCreateOrgId = position.FCreateOrgId, |
| | | //FUseOrgId = position.FUseOrgId, |
| | | //FCreateOrgId = position.FCreateOrgId, |
| | | //// 如果存在,使用现有的CreateDate,后续将删除后重新插入 |
| | | //// 如果不存在,设为当前时间 |
| | | //CreationDate = existingCustomer?.CreationDate ?? DateTime.Now, |
| | |
| | | DisabledDate = position.FForbidDate != null |
| | | ? DateTime.ParseExact(position.FForbidDate, |
| | | "yyyy-MM-dd HH:mm:ss", null) |
| | | : null |
| | | : null, |
| | | |
| | | FUseOrgId = string.IsNullOrEmpty(position.FUseOrgId) ? "1" : position.FUseOrgId, |
| | | FCreateOrgId = string.IsNullOrEmpty(position.FCreateOrgId) ? "1" : position.FCreateOrgId, |
| | | }; |
| | | |
| | | // ERP: 0=未禁用, 1=禁用 |