瀏覽代碼

保险代理人类型翻译

yanliming 5 年之前
父節點
當前提交
fdae05efc0

+ 9 - 0
picc-admin-server/src/main/java/com/jpsoft/picc/modules/base/controller/InsuranceAgentController.java

@@ -6,6 +6,7 @@ import com.jpsoft.picc.modules.common.utils.PojoUtils;
 import com.jpsoft.picc.modules.common.dto.Sort;
 import com.jpsoft.picc.modules.common.dto.MessageResult;
 import com.jpsoft.picc.modules.base.service.InsuranceAgentService;
+import com.jpsoft.picc.modules.sys.service.DataDictionaryService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
@@ -27,6 +28,9 @@ public class InsuranceAgentController {
     @Autowired
     private InsuranceAgentService insuranceAgentService;
 
+    @Autowired
+    private DataDictionaryService dataDictionaryService;
+
     @ApiOperation(value="创建空记录")
     @GetMapping("create")
     public MessageResult<InsuranceAgent> create(){
@@ -220,6 +224,11 @@ public class InsuranceAgentController {
 
         Page<InsuranceAgent> page = insuranceAgentService.pageSearch(searchParams,pageIndex,pageSize,sortList);
 
+        for (InsuranceAgent insuranceAgent:page) {
+            String typeN = dataDictionaryService.findParentId("c2a81ce0-9527-4d74-9e29-cd02d4c10a9b",insuranceAgent.getType());
+            insuranceAgent.setTypeN(typeN);
+        }
+
         msgResult.setResult(true);
         msgResult.setData(PojoUtils.pageWrapper(page));