fix: 更新多语言刷新缓存数据

This commit is contained in:
TsMask
2025-02-26 17:55:27 +08:00
parent 5c45a9b08e
commit a65ac8f9eb
3 changed files with 27 additions and 17 deletions

View File

@@ -19,8 +19,8 @@ func (r SysI18n) Select(param model.SysI18n) []model.SysI18n {
tx := db.DB("").Model(&model.SysI18n{})
tx = tx.Where("del_flag = '0'")
// 查询条件拼接
if param.Key != "" {
tx = tx.Where("key = ?", param.Key)
if param.KeyLable != "" {
tx = tx.Where("key_lable = ?", param.KeyLable)
}
if param.ValueZh != "" {
tx = tx.Where("value_zh = ?", param.ValueZh)