第一种
@Dictionary(dicGroup = "REFINA_STATE_NEW")
@Properties(enName = "REFINA_STATE", cnName = "再融资状态", dataType = "String")
private String refina_state;
SELECT * FROM `icloud_dictionary` WHERE pid=(SELECT id FROM `icloud_dictionary` WHERE chdictcode="REFINA_STATE_NEW")
if("0".equals(finaEn.getRefina_state())){
refinaLoanInfoDetailVO.setPayState("处理中");
}
if("1".equals(finaEn.getRefina_state())){
refinaLoanInfoDetailVO.setPayState("已完成");
}
if("2".equals(finaEn.getRefina_state())){
refinaLoanInfoDetailVO.setPayState("已废弃");
}
第二种
String payStateCn = IcloudUtils.getDicMap("REFINA_STATE_NEW").get(finaEn.getRefina_state());
refinaLoanInfoDetailVO.setPayState(payStateCn);
第三种
DicFmtUtil.formatDic(loanEn, "900");
DicFmtUtil.formatDic(refinaInfoNewEn,getCorpcd());
第四种
IcloudUtils.getDicName("CONTROL_SWITCH", "CFCA_SWITCH")
SELECT
CHDICTNAME字典名称
FROM
icloud_dictionary
WHERE pid =
(SELECT
id
FROM
icloud_dictionary
WHERE CHDICTCODE = 'CONTROL_SWITCH')字典代码
AND CHDICTCODE = 'CFCA_SWITCH'
id | pid | chdictcode字典代码 | chdictname字典名称 | chdictdesc字典说明 |
---|---|---|---|---|
4414 | null | control_switch | 控制开关 | 无 |
4417 | 4414 | cfca_switch | 1 | 1 开;0 关 |