|
|
@@ -1,6 +1,7 @@
|
|
|
package com.cyksj.service.translations.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.mapper.BackInfoTranslationsMapper;
|
|
|
import com.cyksj.model.entity.BackInfoTranslations;
|
|
|
@@ -52,6 +53,9 @@ public class BackInfoTranslationsFrontServiceImpl implements BackInfoTranslation
|
|
|
|
|
|
@Override
|
|
|
public String setLanguagePayTitle(Long goodsId, Long skuId, String lang) {
|
|
|
+ if (StrUtil.isEmpty(lang)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
BackInfoTranslations goodsL = backInfoTranslationsMapper.selectOne(Wrappers.lambdaQuery(BackInfoTranslations.class)
|
|
|
.eq(BackInfoTranslations::getType, BackInfoTranslations.Type.goods.ordinal())
|
|
|
.eq(BackInfoTranslations::getFuncId, goodsId)
|
|
|
@@ -79,6 +83,9 @@ public class BackInfoTranslationsFrontServiceImpl implements BackInfoTranslation
|
|
|
}
|
|
|
|
|
|
public void setFieldLanguage(Class<?> tclass, Object obj, Integer type, Long funcId, String lang) {
|
|
|
+ if (StrUtil.isEmpty(lang)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
List<BackInfoTranslations> backInfoTranslations = backInfoTranslationsMapper.selectList(Wrappers.lambdaQuery(BackInfoTranslations.class)
|
|
|
.eq(BackInfoTranslations::getType, type)
|
|
|
.eq(BackInfoTranslations::getLang, lang)
|