public RightResult QueryRightResult(int businessModuleId, int rightId, GrantSubjectType subjectType, int subjectId) { var sql = string.Empty; sql = @"select b.*,a.grantType from right_assign a where a.businessModuleInstance={0} and a.right={1} and a.subjectType={2} and a.subjectId={3} and a.right=b.id"; return(null); }
public IEnumerable <Right> QueryRightByBusinessModule(int businessModuleInstanceId, GrantSubjectType subjectType, int subjectId, GrantType grantType) { var sql = string.Empty; sql = @"select b.* from right_assign a,right b where a.right = b.id and a.businessModuleInstance ={0} and grantType={1} and subject={2} and subjectType={3}"; Console.WriteLine(string.Format(sql, businessModuleInstanceId, grantType, subjectId, subjectType)); return(null); }