This commit is contained in:
gongxh
2022-05-06 10:36:42 +08:00
parent 3acbcc78c7
commit c57ca69dfd
23 changed files with 534 additions and 375 deletions

View File

@@ -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}";