Commit b15b64aa authored by liudong1993's avatar liudong1993

委托区分教育

parent 10e2cd47
...@@ -21,7 +21,7 @@ namespace Property.Repository ...@@ -21,7 +21,7 @@ namespace Property.Repository
/// <returns></returns> /// <returns></returns>
public RB_Audit_Delegate GetDelegateByInitiatorEmpId(int empId, string dateTime, DelegateContentEnum delegateContent) public RB_Audit_Delegate GetDelegateByInitiatorEmpId(int empId, string dateTime, DelegateContentEnum delegateContent)
{ {
string sql = $@"SELECT * from rb_audit_delegate d where d.DelegateState = {(int)DelegateStateEnum.Normal} and d.InitiatorEmpId = {empId} and '{dateTime}' >= d.StartDate and '{dateTime}' <= d.EndDate and d.DelegateContent like '%{(int)delegateContent}%'"; string sql = $@"SELECT * from rb_audit_delegate d where d.DelegateState = {(int)DelegateStateEnum.Normal} and d.InitiatorEmpId = {empId} and d.Type =1 and '{dateTime}' >= d.StartDate and '{dateTime}' <= d.EndDate and d.DelegateContent like '%{(int)delegateContent}%'";
return Get<RB_Audit_Delegate>(sql).FirstOrDefault(); return Get<RB_Audit_Delegate>(sql).FirstOrDefault();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment