stringsql=$@"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}%'";
stringsql=$@"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}%'";