瀏覽代碼

默认值处理

WH01243 7 月之前
父節點
當前提交
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{} {
 	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 = ?