Browse Source

默认值处理

WH01243 7 months ago
parent
commit
a209135fbc
1 changed files with 2 additions and 2 deletions
  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{} {
 	data := IC.BiMysql.SelectBySql(`SELECT
-					DISTINCT b.name,b.element_value
+					DISTINCT b.name,b.element_value as code
 				FROM
 					customer_data_yys_permissions  a  INNER JOIN   customer_data_yys_permission_elements  b  
 				on  
@@ -302,7 +302,7 @@ func getConfiguration(conditionName, conditionType string, entId int64) []map[st
 	}
 	if len(*data) == 0 {
 		data = IC.BiMysql.SelectBySql(`SELECT
-					DISTINCT name,element_value
+					DISTINCT name,element_value as  code
 				FROM
 					customer_data_yys_permission_elements  where 
 					ent_id = ?