|
@@ -3,6 +3,7 @@ package com.dragoninfo.dcuc.duceap.facade;
|
|
import com.dragonsoft.duceap.base.entity.metadata.CodeDicDTO;
|
|
import com.dragonsoft.duceap.base.entity.metadata.CodeDicDTO;
|
|
import com.dragonsoft.duceap.code.CodeInfoService;
|
|
import com.dragonsoft.duceap.code.CodeInfoService;
|
|
import com.dragonsoft.duceap.code.model.base.CodeDic;
|
|
import com.dragonsoft.duceap.code.model.base.CodeDic;
|
|
|
|
+import com.dragonsoft.duceap.code.util.CodeInfoUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -65,4 +66,14 @@ public class DuceapCodeFacade implements IDuceapCodeFacade {
|
|
public List<Map<String, Object>> getCodeResource(String codeDicId) {
|
|
public List<Map<String, Object>> getCodeResource(String codeDicId) {
|
|
return codeInfoService.getCodeResource(codeDicId, true);
|
|
return codeInfoService.getCodeResource(codeDicId, true);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getCodeLabel(String codeDicId, String value) {
|
|
|
|
+ return CodeInfoUtils.getLabel(codeDicId, value);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getCodeValue(String codeDicId, String label) {
|
|
|
|
+ return CodeInfoUtils.getFirstValueByLabel(codeDicId, label);
|
|
|
|
+ }
|
|
}
|
|
}
|