fix 同步人员控制人事范围
This commit is contained in:
@@ -16,4 +16,10 @@ public class WerkEntity : SugarBaseEntity
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "bit", DefaultValue = "1")]
|
||||
public bool Enable { get; set; }
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public class JinkoSapService : IJinkoSapService
|
||||
{
|
||||
var apiUrl = "/RESTAdapter/Rest/EHR_PERSONNEL/";
|
||||
|
||||
var werks = await _dbContext.Queryable<WerkEntity>().ToListAsync();
|
||||
var werks = await _dbContext.Queryable<WerkEntity>().Where(x => x.Enable).ToListAsync();
|
||||
|
||||
List<SapPersonItem> persons = new();
|
||||
List<SapPersonJobStatus> jobInfos = new();
|
||||
|
||||
Reference in New Issue
Block a user