| | |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | |
| | | checkUnique(company); |
| | | |
| | | Company insert = new Company(); |
| | | insert.setCreator(loginUserInfo.getId()); |
| | | insert.setCreateDate(new Date()); |
| | |
| | | .leftJoin(SystemUser.class,SystemUser::getId,Company::getCreator); |
| | | queryWrapper.selectAll(Company.class) |
| | | .selectAs(Category::getName,Company::getCategoryName) |
| | | .select("count(t1.id) as countNum") |
| | | .selectAs(SystemUser::getRealname,Company::getCreatorName); |
| | | IPage<Company> companyIPage = companyJoinMapper.selectJoinPage(page, Company.class, queryWrapper); |
| | | return PageData.from(companyIPage); |