|
@@ -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));
|
|
|
|