修改bug
This commit is contained in:
parent
1b17c6ffa0
commit
9cb5527b2e
|
|
@ -8,6 +8,8 @@ import com.nu.modules.configSuppliersApply.mapper.NuConfigSuppliersApplyMapper;
|
|||
import com.nu.modules.configSuppliersApply.service.INuConfigSuppliersApplyService;
|
||||
import com.nu.modules.configSuppliersInfo.entity.ConfigSuppliersInfo;
|
||||
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.stereotype.Service;
|
||||
|
||||
|
|
@ -28,6 +30,8 @@ public class NuConfigSuppliersApplyServiceImpl extends ServiceImpl<NuConfigSuppl
|
|||
|
||||
@Autowired
|
||||
private IConfigSuppliersInfoService suppliersInfoService;
|
||||
@Autowired
|
||||
private DictUtils dictUtils;
|
||||
|
||||
@Override
|
||||
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;
|
||||
}
|
||||
|
||||
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<>();
|
||||
fieldMap.put("id", IdUtil.simpleUUID());
|
||||
|
|
|
|||
Loading…
Reference in New Issue