|
@ -7,6 +7,7 @@ import com.zscat.mallplus.annotation.SysLog; |
|
|
import com.zscat.mallplus.build.entity.BuildWuyeCompany; |
|
|
import com.zscat.mallplus.build.entity.BuildWuyeCompany; |
|
|
import com.zscat.mallplus.enums.StatusEnum; |
|
|
import com.zscat.mallplus.enums.StatusEnum; |
|
|
import com.zscat.mallplus.util.EasyPoiUtils; |
|
|
import com.zscat.mallplus.util.EasyPoiUtils; |
|
|
|
|
|
import com.zscat.mallplus.util.StringUtils; |
|
|
import com.zscat.mallplus.utils.CommonResult; |
|
|
import com.zscat.mallplus.utils.CommonResult; |
|
|
import com.zscat.mallplus.utils.ValidatorUtils; |
|
|
import com.zscat.mallplus.utils.ValidatorUtils; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
@ -45,7 +46,11 @@ public class BuildWuyeCompanyController { |
|
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize |
|
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize |
|
|
) { |
|
|
) { |
|
|
try { |
|
|
try { |
|
|
return new CommonResult().success(IBuildWuyeCompanyService.page(new Page<BuildWuyeCompany>(pageNum, pageSize), new QueryWrapper<>(entity))); |
|
|
QueryWrapper<BuildWuyeCompany> qw = new QueryWrapper<>(); |
|
|
|
|
|
if(StringUtils.isNotBlank(entity.getKeyword())){ |
|
|
|
|
|
qw.like("name",entity.getKeyword()); |
|
|
|
|
|
} |
|
|
|
|
|
return new CommonResult().success(IBuildWuyeCompanyService.page(new Page<BuildWuyeCompany>(pageNum, pageSize), qw)); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("根据条件查询所有物业公司表列表:%s", e.getMessage(), e); |
|
|
log.error("根据条件查询所有物业公司表列表:%s", e.getMessage(), e); |
|
|
} |
|
|
} |
|
|