WH01243 7 месяцев назад
Родитель
Сommit
a209135fbc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      jyBXCore/rpc/service/operator.go

+ 2 - 2
jyBXCore/rpc/service/operator.go

@@ -287,7 +287,7 @@ func getGetCriteriaType(entId, positionId, tag int64) []map[string]interface{} {
 }
 }
 func getConfiguration(conditionName, conditionType string, entId int64) []map[string]interface{} {
 func getConfiguration(conditionName, conditionType string, entId int64) []map[string]interface{} {
 	data := IC.BiMysql.SelectBySql(`SELECT
 	data := IC.BiMysql.SelectBySql(`SELECT
-					DISTINCT b.name,b.element_value
+					DISTINCT b.name,b.element_value as code
 				FROM
 				FROM
 					customer_data_yys_permissions  a  INNER JOIN   customer_data_yys_permission_elements  b  
 					customer_data_yys_permissions  a  INNER JOIN   customer_data_yys_permission_elements  b  
 				on  
 				on  
@@ -302,7 +302,7 @@ func getConfiguration(conditionName, conditionType string, entId int64) []map[st
 	}
 	}
 	if len(*data) == 0 {
 	if len(*data) == 0 {
 		data = IC.BiMysql.SelectBySql(`SELECT
 		data = IC.BiMysql.SelectBySql(`SELECT
-					DISTINCT name,element_value
+					DISTINCT name,element_value as  code
 				FROM
 				FROM
 					customer_data_yys_permission_elements  where 
 					customer_data_yys_permission_elements  where 
 					ent_id = ?
 					ent_id = ?