|
@@ -78,6 +78,9 @@ public class InsuranceApplicationController {
|
|
@Autowired
|
|
@Autowired
|
|
private InsurancePolicyRecordService insurancePolicyRecordService;
|
|
private InsurancePolicyRecordService insurancePolicyRecordService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyUserService companyUserService;
|
|
|
|
+
|
|
@ApiOperation(value="投保单列表")
|
|
@ApiOperation(value="投保单列表")
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -149,7 +152,8 @@ public class InsuranceApplicationController {
|
|
MessageResult<InsuranceApplicationDTO> msgResult = new MessageResult<>();
|
|
MessageResult<InsuranceApplicationDTO> msgResult = new MessageResult<>();
|
|
|
|
|
|
AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();
|
|
AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();
|
|
- Company company = companyService.findByCreateBy(principal.getName());
|
|
|
|
|
|
+ CompanyUser companyUser = companyUserService.findByUserName(principal.getName());
|
|
|
|
+ Company company = companyService.get(companyUser.getCompanyId());
|
|
|
|
|
|
if(company == null){
|
|
if(company == null){
|
|
msgResult.setResult(false);
|
|
msgResult.setResult(false);
|