marge: 合并11.2版本
This commit is contained in:
1 parent
7bcb439d57
commit
e5212c47ba
88 files changed
+11678
-3054
No files matched your search
@@ -0,0 +1,17 @@
|
||||
DELIMITER //
|
||||
|
||||
CREATE FUNCTION IF NOT EXISTS omc_get_dict_value(field_value VARCHAR(255), type VARCHAR(255))
|
||||
RETURNS VARCHAR(255) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
|
||||
DETERMINISTIC
|
||||
BEGIN
|
||||
DECLARE result VARCHAR(255);
|
||||
|
||||
SELECT `dict_value` INTO result
|
||||
FROM `sys_dict_data`
|
||||
WHERE `dict_label` = field_value AND `dict_type` = type
|
||||
LIMIT 1;
|
||||
|
||||
RETURN result;
|
||||
END //
|
||||
|
||||
DELIMITER ;
|
||||
Reference in new issue
Block a user