ปรับปรุงการแจ้งเตือน
This commit is contained in:
@@ -196,7 +196,16 @@ namespace TodoAPI2.Models
|
||||
entity.limit_quota = 0;
|
||||
entity.limit_frame_quota = 0;
|
||||
|
||||
var all_emp = (from i in emp.GetListByemployee_type(null, null) where i.workingstatus == "สถานะปฏิบัติงาน" select i).ToList();
|
||||
var active_emp = (from i in _repository.Context.eva_adjust_postponement_detail
|
||||
join j in _repository.Context.eva_adjust_postponement on i.adjust_postponement_id equals j.id
|
||||
where j.fiscal_year == model.fiscal_year
|
||||
&& j.theRound == model.theRound
|
||||
select i.employee_id).ToList();
|
||||
|
||||
var all_emp = (from i in emp.GetListByemployee_type(null, null)
|
||||
where i.workingstatus != "คณะกรรมการเนติบัณฑิตยสภา"
|
||||
&& active_emp.Contains(i.id)
|
||||
select i).ToList();
|
||||
var all_emp_id_list = (from i in all_emp select i.id).ToList();
|
||||
entity.limit = AddMultipleDetail(entity.id, all_emp_id_list, entity.fiscal_year, entity.theRound, all_emp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user