修改bug

This commit is contained in:
yangjun 2026-01-29 09:05:42 +08:00
parent 1b17c6ffa0
commit 9cb5527b2e
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import com.nu.modules.configSuppliersApply.mapper.NuConfigSuppliersApplyMapper;
import com.nu.modules.configSuppliersApply.service.INuConfigSuppliersApplyService; import com.nu.modules.configSuppliersApply.service.INuConfigSuppliersApplyService;
import com.nu.modules.configSuppliersInfo.entity.ConfigSuppliersInfo; import com.nu.modules.configSuppliersInfo.entity.ConfigSuppliersInfo;
import com.nu.modules.configSuppliersInfo.service.IConfigSuppliersInfoService; import com.nu.modules.configSuppliersInfo.service.IConfigSuppliersInfoService;
import com.nu.utils.DictUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -28,6 +30,8 @@ public class NuConfigSuppliersApplyServiceImpl extends ServiceImpl<NuConfigSuppl
@Autowired @Autowired
private IConfigSuppliersInfoService suppliersInfoService; private IConfigSuppliersInfoService suppliersInfoService;
@Autowired
private DictUtils dictUtils;
@Override @Override
public List<Map<String, Object>> getModifyInfo(NuConfigSuppliersApply suppliersApply) { public List<Map<String, Object>> getModifyInfo(NuConfigSuppliersApply suppliersApply) {
@ -83,6 +87,10 @@ public class NuConfigSuppliersApplyServiceImpl extends ServiceImpl<NuConfigSuppl
usingValue = usingValue != null ? sdf.format((Date) usingValue) : null; usingValue = usingValue != null ? sdf.format((Date) usingValue) : null;
} }
if(StringUtils.equals(fieldName,"suppliersNature")){
usingValue = usingValue != null ? dictUtils.translateDictValue("suppliers_nature", usingValue.toString()) : null;
modifyValue = modifyValue != null ? dictUtils.translateDictValue("suppliers_nature", modifyValue.toString()) : null;
}
// 创建结果项 // 创建结果项
Map<String, Object> fieldMap = new HashMap<>(); Map<String, Object> fieldMap = new HashMap<>();
fieldMap.put("id", IdUtil.simpleUUID()); fieldMap.put("id", IdUtil.simpleUUID());