修改
This commit is contained in:
@@ -82,7 +82,7 @@ namespace CleanMachine.DAL.SYS
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Role> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT * FROM SYS_ROLE ";
|
||||
string strSql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CleanMachine.DAL.SYS
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT * FROM SYS_ROLE_MENU_PERMISSION ";
|
||||
string strSql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CleanMachine.DAL.SYS
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.User> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT * FROM SYS_USER ";
|
||||
string strSql = $@"SELECT A.USER_ID,A.USER_CODE,A.USER_NAME,A.SCHEDULE_CODE,A.USED_FLAG,A.DEL_FLAG,A.PASSWORD,B.ROLE_ID,B.ROLE_GRADE FROM SYS_USER A LEFT JOIN SYS_ROLE B ON A.ROLE_ID = B.ROLE_ID ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
|
||||
Reference in New Issue
Block a user