|
@@ -97,7 +97,8 @@ public class InsuranceApplicationController {
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
HttpServletRequest request){
|
|
HttpServletRequest request){
|
|
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());
|
|
|
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|