service 层代码优化 (分页统一封装优化)

dev_drug_dm
qiuyt 1 month ago
parent 2ec91b2030
commit 129f616ba0

@ -41,11 +41,8 @@ public class AuthAdminServiceImpl implements AuthAdminService {
if (filterAuthUserRequest == null) {
return Collections.emptyList();
}
if (filterAuthUserRequest.getPage() != null) {
int offset = (filterAuthUserRequest.getPage() - 1) * filterAuthUserRequest.getLimit();
PageHelper.offsetPage(offset, filterAuthUserRequest.getLimit());
}
// 分页处理
filterAuthUserRequest.pageDispose();
return authAdminDao.listAdminPage(filterAuthUserRequest);
}
@ -153,10 +150,8 @@ public class AuthAdminServiceImpl implements AuthAdminService {
if (filterNoSelectUserRequest == null) {
return Collections.emptyList();
}
if (filterNoSelectUserRequest.getPage() != null) {
int offset = (filterNoSelectUserRequest.getPage() - 1) * filterNoSelectUserRequest.getLimit();
PageHelper.offsetPage(offset, filterNoSelectUserRequest.getLimit());
}
// 分页处理
filterNoSelectUserRequest.pageDispose();
return authAdminDao.selectNotSelectUser(filterNoSelectUserRequest.getUserIds(), filterNoSelectUserRequest.getDeptId());
}

@ -28,10 +28,8 @@ public class AuthCheckServiceImpl implements AuthCheckService {
if (filterAuthCheckRequest == null) {
return Collections.emptyList();
}
if (filterAuthCheckRequest.getPage() != null) {
int offset = (filterAuthCheckRequest.getPage() - 1) * filterAuthCheckRequest.getLimit();
PageHelper.offsetPage(offset, filterAuthCheckRequest.getLimit());
}
// 分页处理
filterAuthCheckRequest.pageDispose();
return authCheckDao.filterDevices(filterAuthCheckRequest);
}

@ -28,11 +28,8 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
if (customerInfoFilterRequest == null) {
return Collections.emptyList();
}
if (customerInfoFilterRequest.getPage() != null) {
int offset = (customerInfoFilterRequest.getPage() - 1) * customerInfoFilterRequest.getLimit();
PageHelper.offsetPage(offset, customerInfoFilterRequest.getLimit());
}
// 分页处理
customerInfoFilterRequest.pageDispose();
return customerInfoDao.filterCustomerInfo(customerInfoFilterRequest);
}
@ -41,8 +38,8 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
if (customerInfoFilterRequest == null) {
return Collections.emptyList();
}
int offset = (customerInfoFilterRequest.getPage() - 1) * customerInfoFilterRequest.getLimit();
PageHelper.offsetPage(offset, customerInfoFilterRequest.getLimit());
// 分页处理
customerInfoFilterRequest.pageDispose();
List<CustomerDetailEntity> customerDetailEntities = customerInfoDao.filterDetailCustomerInfo(customerInfoFilterRequest);
return customerDetailEntities;
}

@ -47,10 +47,8 @@ public class DeptServiceImpl implements DeptService {
if (filterInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvWarehouseRequest.getPage() != null) {
int offset = (filterInvWarehouseRequest.getPage() - 1) * filterInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvWarehouseRequest.getLimit());
}
// 分页处理
filterInvWarehouseRequest.pageDispose();
List<DeptEntity> data = deptDao.filterInvWarehouse(filterInvWarehouseRequest);
return data;
}
@ -60,10 +58,8 @@ public class DeptServiceImpl implements DeptService {
if (filterInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvWarehouseRequest.getPage() != null) {
int offset = (filterInvWarehouseRequest.getPage() - 1) * filterInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvWarehouseRequest.getLimit());
}
// 分页处理
filterInvWarehouseRequest.pageDispose();
List<DeptEntity> data = deptDao.filterAllByUser(filterInvWarehouseRequest);
return data;
}
@ -73,10 +69,8 @@ public class DeptServiceImpl implements DeptService {
if (filterInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvWarehouseRequest.getPage() != null) {
int offset = (filterInvWarehouseRequest.getPage() - 1) * filterInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvWarehouseRequest.getLimit());
}
// 分页处理
filterInvWarehouseRequest.pageDispose();
List<DeptEntity> data = deptDao.filterGroupInvWarehouse(filterInvWarehouseRequest);
return data;
}

@ -27,10 +27,8 @@ public class DeptUserServiceImpl implements DeptUserService {
@Override
public List<DeptUserEntity> selectDeptUser(FilterDeptUserReqeust filterDeptUserReqeust) {
if (filterDeptUserReqeust.getPage() != null) {
int offset = (filterDeptUserReqeust.getPage() - 1) * filterDeptUserReqeust.getLimit();
PageHelper.offsetPage(offset, filterDeptUserReqeust.getLimit());
}
// 分页处理
filterDeptUserReqeust.pageDispose();
return deptUserDao.selectDeptUser(filterDeptUserReqeust);
}
@ -50,10 +48,8 @@ public class DeptUserServiceImpl implements DeptUserService {
@Override
public List<DeptUserResponse> selectJoinDeptUser(FilterDeptUserReqeust filterDeptUserReqeust) {
if (filterDeptUserReqeust.getPage() != null) {
int offset = (filterDeptUserReqeust.getPage() - 1) * filterDeptUserReqeust.getLimit();
PageHelper.offsetPage(offset, filterDeptUserReqeust.getLimit());
}
// 分页处理
filterDeptUserReqeust.pageDispose();
return deptUserDao.selectJoinDeptUser(filterDeptUserReqeust);
}

@ -31,10 +31,8 @@ public class InvBusUserServiceImpl extends ServiceImpl<InvBusUserDao, InvBusUser
if (filterInvBusUserRequest == null) {
return Collections.emptyList();
}
if (filterInvBusUserRequest.getPage() != null) {
int offset = (filterInvBusUserRequest.getPage() - 1) * filterInvBusUserRequest.getLimit();
PageHelper.offsetPage(offset, filterInvBusUserRequest.getLimit());
}
// 分页处理
filterInvBusUserRequest.pageDispose();
return invBusUserDao.filterInvBusUser(filterInvBusUserRequest);
}
@ -43,10 +41,8 @@ public class InvBusUserServiceImpl extends ServiceImpl<InvBusUserDao, InvBusUser
if (filterInvBusUserRequest == null) {
return Collections.emptyList();
}
if (filterInvBusUserRequest.getPage() != null) {
int offset = (filterInvBusUserRequest.getPage() - 1) * filterInvBusUserRequest.getLimit();
PageHelper.offsetPage(offset, filterInvBusUserRequest.getLimit());
}
// 分页处理
filterInvBusUserRequest.pageDispose();
return invBusUserDao.filterUnSelect(filterInvBusUserRequest);
}

@ -70,10 +70,8 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
if (filterInvSubWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvSubWarehouseRequest.getPage() != null) {
int offset = (filterInvSubWarehouseRequest.getPage() - 1) * filterInvSubWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvSubWarehouseRequest.getLimit());
}
// 分页处理
filterInvSubWarehouseRequest.pageDispose();
List<InvWarehouseEntity> data = invWarehouseDao.filterInvSubWarehouse(filterInvSubWarehouseRequest);
return data;
}
@ -83,10 +81,8 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
if (filterInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvWarehouseRequest.getPage() != null) {
int offset = (filterInvWarehouseRequest.getPage() - 1) * filterInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvWarehouseRequest.getLimit());
}
// 分页处理
filterInvWarehouseRequest.pageDispose();
List<InvWarehouseEntity> data = invWarehouseDao.filterGroupInvSub(filterInvWarehouseRequest);
return data;
}
@ -208,10 +204,8 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
if (filterInvSubWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterInvSubWarehouseRequest.getPage() != null) {
int offset = (filterInvSubWarehouseRequest.getPage() - 1) * filterInvSubWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterInvSubWarehouseRequest.getLimit());
}
// 分页处理
filterInvSubWarehouseRequest.pageDispose();
List<InvSubWarehouseResponse> data = invWarehouseDao.filterInvSubWarehouseResponse(filterInvSubWarehouseRequest);
return data;
}

@ -26,10 +26,8 @@ public class SysCustomConfigServiceImpl implements ISysCustomConfigService {
if (request == null) {
return Collections.emptyList();
}
if (request.getPage() != null) {
int offset = (request.getPage() - 1) * request.getLimit();
PageHelper.offsetPage(offset, request.getLimit());
}
// 分页处理
request.pageDispose();
return sysCustomConfigDao.filterSysCustomConfig(request);
}

@ -25,11 +25,8 @@ public class SysDictDataServiceImpl implements ISysDictDataService {
@Override
public List<SysDictData> selectDictDataList(SysDictDataRequest sysDictDataRequest) {
if (sysDictDataRequest.getPage() != null) {
int offset = (sysDictDataRequest.getPage() - 1) * sysDictDataRequest.getLimit();
PageHelper.offsetPage(offset, sysDictDataRequest.getLimit());
}
// 分页处理
sysDictDataRequest.pageDispose();
return baseMapper.selectDictDataList(sysDictDataRequest);

@ -33,10 +33,8 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService {
@Override
public List<SysDictType> selectDictTypeList(SysDictTypeRequest sysDictTypeRequest) {
if (sysDictTypeRequest.getPage() != null) {
int offset = (sysDictTypeRequest.getPage() - 1) * sysDictTypeRequest.getLimit();
PageHelper.offsetPage(offset, sysDictTypeRequest.getLimit());
}
// 分页处理
sysDictTypeRequest.pageDispose();
return baseMapper.selectDictTypeList(sysDictTypeRequest);
}

@ -25,8 +25,9 @@ public class SysPdaKeyServiceImpl implements SysPdaKeyService {
if (filterDeviceKeyRequest == null) {
return Collections.emptyList();
}
int offset = (filterDeviceKeyRequest.getPage() - 1) * filterDeviceKeyRequest.getLimit();
PageHelper.offsetPage(offset, filterDeviceKeyRequest.getLimit());
// 分页处理
filterDeviceKeyRequest.pageDispose();
return sysPdaKeyDao.findDeviceKey(filterDeviceKeyRequest);
}

@ -42,11 +42,8 @@ public class SysRoleServiceImpl implements ISysRoleService {
@Override
public List<SysRole> selectPageRoleList(FilterRoleRequest filterRoleRequest) {
if (filterRoleRequest.getPage() != null) {
int offset = (filterRoleRequest.getPage() - 1) * filterRoleRequest.getLimit();
PageHelper.offsetPage(offset, filterRoleRequest.getLimit());
}
// 分页处理
filterRoleRequest.pageDispose();
return sysRoleMapper.selectRoleList(filterRoleRequest);
}

@ -25,8 +25,8 @@ public class UserRegisterServiceImpl implements UserRegisterService {
if (userResisterFilterRequest == null) {
return Collections.emptyList();
}
int offset = (userResisterFilterRequest.getPage() - 1) * userResisterFilterRequest.getLimit();
PageHelper.offsetPage(offset, userResisterFilterRequest.getLimit());
// 分页处理
userResisterFilterRequest.pageDispose();
return userRegisterDao.filterUserRegisters(userResisterFilterRequest);
}

@ -46,10 +46,8 @@ public class WarehouseBussinessTypeServiceImpl implements WarehouseBussinessType
if (filterInvBusTypeRequest == null) {
return Collections.emptyList();
}
if (filterInvBusTypeRequest.getPage() != null) {
int offset = (filterInvBusTypeRequest.getPage() - 1) * filterInvBusTypeRequest.getLimit();
PageHelper.offsetPage(offset, filterInvBusTypeRequest.getLimit());
}
// 分页处理
filterInvBusTypeRequest.pageDispose();
return warehouseBussinessTypeDao.filterList(filterInvBusTypeRequest);
}
@ -84,10 +82,8 @@ public class WarehouseBussinessTypeServiceImpl implements WarehouseBussinessType
if (filterInvLinkDataRequest == null) {
return Collections.emptyList();
}
if (filterInvLinkDataRequest.getPage() != null) {
int offset = (filterInvLinkDataRequest.getPage() - 1) * filterInvLinkDataRequest.getLimit();
PageHelper.offsetPage(offset, filterInvLinkDataRequest.getLimit());
}
// 分页处理
filterInvLinkDataRequest.pageDispose();
return warehouseBussinessTypeDao.selectListByCode(filterInvLinkDataRequest.getCode());
}

@ -83,10 +83,8 @@ public class WarehouseUserServiceImpl implements WarehouseUserService {
if (filterInvLinkDataRequest == null) {
return Collections.emptyList();
}
if (filterInvLinkDataRequest.getPage() != null) {
int offset = (filterInvLinkDataRequest.getPage() - 1) * filterInvLinkDataRequest.getLimit();
PageHelper.offsetPage(offset, filterInvLinkDataRequest.getLimit());
}
// 分页处理
filterInvLinkDataRequest.pageDispose();
return warehouseUserDao.selectListkey(filterInvLinkDataRequest);
}
@Override

@ -37,10 +37,8 @@ public class BasicCorpExportLogServiceImpl implements BasicCorpExportLogService
if (filterCorpExportLogRequest == null) {
return Collections.emptyList();
}
if (filterCorpExportLogRequest.getPage() != null) {
int offset = (filterCorpExportLogRequest.getPage() - 1) * filterCorpExportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterCorpExportLogRequest.getLimit());
}
// 分页处理
filterCorpExportLogRequest.pageDispose();
List<BasicCorpsExportLogEntity> data = basicCorpExportLogDao.filterCorpExportLog(filterCorpExportLogRequest);
return data;
}

@ -53,10 +53,8 @@ public class BasicCorpImportLogServiceImpl implements BasicCorpImportLogService
if (filterCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterCorpImportLogRequest.getPage() != null) {
int offset = (filterCorpImportLogRequest.getPage() - 1) * filterCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterCorpImportLogRequest.getLimit());
}
// 分页处理
filterCorpImportLogRequest.pageDispose();
List<BasicCorpsImportLogEntity> data = basicCorpImportLogDao.filterImportLog(filterCorpImportLogRequest);
return data;
}

@ -29,11 +29,8 @@ public class BasicCorpServiceImpl extends ServiceImpl<BasicCorpDao, BasicCorpEnt
if (basicUnitMaintainFilterRequest == null) {
return Collections.emptyList();
}
if (basicUnitMaintainFilterRequest.getPage() != null) {
int offset = (basicUnitMaintainFilterRequest.getPage() - 1) * basicUnitMaintainFilterRequest.getLimit();
PageHelper.offsetPage(offset, basicUnitMaintainFilterRequest.getLimit());
}
// 分页处理
basicUnitMaintainFilterRequest.pageDispose();
List<BasicCorpEntity> data = basicCorpDao.filterList(basicUnitMaintainFilterRequest);
return data;
}

@ -49,10 +49,8 @@ public class BasicHospTypeServiceImpl extends ServiceImpl<BasicHospTypeDao, Basi
if (basicHospTypeFilterRequest == null) {
return Collections.emptyList();
}
if (basicHospTypeFilterRequest.getPage() != null) {
int offset = (basicHospTypeFilterRequest.getPage() - 1) * basicHospTypeFilterRequest.getLimit();
PageHelper.offsetPage(offset, basicHospTypeFilterRequest.getLimit());
}
// 分页处理
basicHospTypeFilterRequest.pageDispose();
QueryWrapper<BasicHospTypeEntity> ew=new QueryWrapper<>();
if (StrUtil.isNotEmpty(basicHospTypeFilterRequest.getName())){
ew.like("name",basicHospTypeFilterRequest.getName());
@ -187,10 +185,8 @@ public class BasicHospTypeServiceImpl extends ServiceImpl<BasicHospTypeDao, Basi
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiRelevanceResponse> data = udiRelevanceDao.filterUdiGp(filterUdiRelRequest);
return data;

@ -26,10 +26,8 @@ public class BasicProductSetServiceImpl implements BasicProductSetService {
if (filterBasicProductSetrequest == null) {
return Collections.emptyList();
}
if (filterBasicProductSetrequest.getPage() != null) {
int offset = (filterBasicProductSetrequest.getPage() - 1) * filterBasicProductSetrequest.getLimit();
PageHelper.offsetPage(offset, filterBasicProductSetrequest.getLimit());
}
// 分页处理
filterBasicProductSetrequest.pageDispose();
return basicProductSetDao.filterSetup(filterBasicProductSetrequest);
}

@ -37,10 +37,8 @@ public class BasicProductsExportLogServiceImpl implements BasicProductsExportLog
if (filterInCodeLogRequest == null) {
return Collections.emptyList();
}
if (filterInCodeLogRequest.getPage() != null) {
int offset = (filterInCodeLogRequest.getPage() - 1) * filterInCodeLogRequest.getLimit();
PageHelper.offsetPage(offset, filterInCodeLogRequest.getLimit());
}
// 分页处理
filterInCodeLogRequest.pageDispose();
List<BasicProductsExportLogEntity> data = udiInfoExportLogDao.filterUdiInfoExportLog(filterInCodeLogRequest);
return data;
}

@ -38,10 +38,8 @@ public class BasicProductsImportDetailServiceImpl implements BasicProductsImport
if (filterInCodeLogRequest == null) {
return Collections.emptyList();
}
if (filterInCodeLogRequest.getPage() != null) {
int offset = (filterInCodeLogRequest.getPage() - 1) * filterInCodeLogRequest.getLimit();
PageHelper.offsetPage(offset, filterInCodeLogRequest.getLimit());
}
// 分页处理
filterInCodeLogRequest.pageDispose();
List<BasicProductsImportDetailEntity> data = udiInfoImportDao.filterUdiInfoImport(filterInCodeLogRequest);
return data;

@ -76,10 +76,8 @@ public class BasicProductsImportLogServiceImpl implements BasicProductsImportLog
if (filterUdiIpLogRequest == null) {
return Collections.emptyList();
}
if (filterUdiIpLogRequest.getPage() != null) {
int offset = (filterUdiIpLogRequest.getPage() - 1) * filterUdiIpLogRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiIpLogRequest.getLimit());
}
// 分页处理
filterUdiIpLogRequest.pageDispose();
List<BasicProductsImportLogEntity> data = udiInfoImportLogDao.filterImportLog(filterUdiIpLogRequest);
return data;
}

@ -24,10 +24,8 @@ public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
if (basicUnitMaintainFilterRequest == null) {
return Collections.emptyList();
}
if (basicUnitMaintainFilterRequest.getPage() != null) {
int offset = (basicUnitMaintainFilterRequest.getPage() - 1) * basicUnitMaintainFilterRequest.getLimit();
PageHelper.offsetPage(offset, basicUnitMaintainFilterRequest.getLimit());
}
// 分页处理
basicUnitMaintainFilterRequest.pageDispose();
List<BasicUnitMaintainEntity> data = basicUnitMaintainDao.filterList(basicUnitMaintainFilterRequest);
return data;

@ -39,10 +39,8 @@ public class CompanyProductRelevanceServiceImpl extends ServiceImpl<CompanyProdu
if (basicInstrumentMaintainRequest == null) {
return Collections.emptyList();
}
if (basicInstrumentMaintainRequest.getPage() != null) {
int offset = (basicInstrumentMaintainRequest.getPage() - 1) * basicInstrumentMaintainRequest.getLimit();
PageHelper.offsetPage(offset, basicInstrumentMaintainRequest.getLimit());
}
// 分页处理
basicInstrumentMaintainRequest.pageDispose();
List<CompanyProductRelevanceResponse> data = companyProductRelevanceDao.filterUdiGp(basicInstrumentMaintainRequest);
return data;

@ -43,10 +43,8 @@ public class EntrustReceServiceImpl extends ServiceImpl<EntrustReceDao,EntrustRe
if (basicEntrustRecRequest == null) {
return Collections.emptyList();
}
if (basicEntrustRecRequest.getPage() != null) {
int offset = (basicEntrustRecRequest.getPage() - 1) * basicEntrustRecRequest.getLimit();
PageHelper.offsetPage(offset, basicEntrustRecRequest.getLimit());
}
// 分页处理
basicEntrustRecRequest.pageDispose();
return entrustReceDao.filterEntrustRec(basicEntrustRecRequest);
}
@ -60,10 +58,8 @@ public class EntrustReceServiceImpl extends ServiceImpl<EntrustReceDao,EntrustRe
if (basicEntrustRecRequest == null) {
return Collections.emptyList();
}
if (basicEntrustRecRequest.getPage() != null) {
int offset = (basicEntrustRecRequest.getPage() - 1) * basicEntrustRecRequest.getLimit();
PageHelper.offsetPage(offset, basicEntrustRecRequest.getLimit());
}
// 分页处理
basicEntrustRecRequest.pageDispose();
return entrustReceDao.downloadEntrustRec(basicEntrustRecRequest);
}
@ -73,10 +69,8 @@ public class EntrustReceServiceImpl extends ServiceImpl<EntrustReceDao,EntrustRe
if (basicEntrustRecRequest == null) {
return Collections.emptyList();
}
if (basicEntrustRecRequest.getPage() != null) {
int offset = (basicEntrustRecRequest.getPage() - 1) * basicEntrustRecRequest.getLimit();
PageHelper.offsetPage(offset, basicEntrustRecRequest.getLimit());
}
// 分页处理
basicEntrustRecRequest.pageDispose();
List<EntrustReceResponse> entrustReceResponses = entrustReceDao.filterJoinEntrustRec(basicEntrustRecRequest);
if (CollUtil.isNotEmpty(entrustReceResponses)) {
//查询当前分库名称和委托验收分库名称

@ -27,10 +27,8 @@ public class ProductInfoServiceImpl implements ProductInfoService {
if (productInfoFilterRequest == null) {
return Collections.emptyList();
}
if (productInfoFilterRequest.getPage() != null && !productInfoFilterRequest.getPage().equals("")) {
int offset = (productInfoFilterRequest.getPage() - 1) * productInfoFilterRequest.getLimit();
PageHelper.offsetPage(offset, productInfoFilterRequest.getLimit());
}
// 分页处理
productInfoFilterRequest.pageDispose();
List<ProductInfoEntity> data = productInfoDao.filterProductGroup(productInfoFilterRequest);
return data;

@ -28,10 +28,8 @@ public class UdiCompanyServiceImpl implements UdiCompanyService {
@Override
public List<UdiCompanyEntity> filterUdiCompany(UdiCompanyRequest udiCompanyRequest) {
if (udiCompanyRequest.getPage() != null && udiCompanyRequest.getLimit() != null) {
int offset = (udiCompanyRequest.getPage() - 1) * udiCompanyRequest.getLimit();
PageHelper.offsetPage(offset, udiCompanyRequest.getLimit());
}
// 分页处理
udiCompanyRequest.pageDispose();
return udiCompanyDao.filterUdiCompany(udiCompanyRequest);
}

@ -68,10 +68,8 @@ public class UdiProductServiceImpl implements UdiProductService {
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiProductEntity> data = udiProductDao.filterUdiInfo(filterUdiRelRequest);
return data;

@ -37,10 +37,8 @@ public class UdiRelevanceServiceImpl extends ServiceImpl<UdiRelevanceDao, UdiRel
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiRelevanceResponse> data = udiRelevanceDao.filterUdiRelevance(filterUdiRelRequest);
return data;
}
@ -52,10 +50,8 @@ public class UdiRelevanceServiceImpl extends ServiceImpl<UdiRelevanceDao, UdiRel
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiRelevanceResponse> data = udiRelevanceDao.filterCertUdi(filterUdiRelRequest);
return data;
@ -66,10 +62,8 @@ public class UdiRelevanceServiceImpl extends ServiceImpl<UdiRelevanceDao, UdiRel
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiRelevanceResponse> data = udiRelevanceDao.filterUdiJoinSup(filterUdiRelRequest);
return data;
}
@ -145,10 +139,8 @@ public class UdiRelevanceServiceImpl extends ServiceImpl<UdiRelevanceDao, UdiRel
if (filterUdiRelRequest == null) {
return Collections.emptyList();
}
if (filterUdiRelRequest.getPage() != null) {
int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit();
PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit());
}
// 分页处理
filterUdiRelRequest.pageDispose();
List<UdiRelevanceResponse> data = udiRelevanceDao.filterUdiGp(filterUdiRelRequest);
return data;

@ -27,10 +27,8 @@ public class UdiRlSupServiceImpl implements UdiRlSupService {
if (basicInstrumentMaintainRequest == null) {
return Collections.emptyList();
}
if (basicInstrumentMaintainRequest.getPage() != null) {
int offset = (basicInstrumentMaintainRequest.getPage() - 1) * basicInstrumentMaintainRequest.getLimit();
PageHelper.offsetPage(offset, basicInstrumentMaintainRequest.getLimit());
}
// 分页处理
basicInstrumentMaintainRequest.pageDispose();
List<UdiRlSupResponse> data = udiRlSupDao.filterUdiGp(basicInstrumentMaintainRequest);
return data;
@ -41,10 +39,8 @@ public class UdiRlSupServiceImpl implements UdiRlSupService {
if (filterCompanyProductRelevanceRequest == null) {
return Collections.emptyList();
}
if (filterCompanyProductRelevanceRequest.getPage() != null) {
int offset = (filterCompanyProductRelevanceRequest.getPage() - 1) * filterCompanyProductRelevanceRequest.getLimit();
PageHelper.offsetPage(offset, filterCompanyProductRelevanceRequest.getLimit());
}
// 分页处理
filterCompanyProductRelevanceRequest.pageDispose();
return udiRlSupDao.filterCompanyProductRelevance(filterCompanyProductRelevanceRequest);
}
@ -58,8 +54,8 @@ public class UdiRlSupServiceImpl implements UdiRlSupService {
if (filterCompanyProductRelevanceRequest == null) {
return Collections.emptyList();
}
int offset = (filterCompanyProductRelevanceRequest.getPage() - 1) * filterCompanyProductRelevanceRequest.getLimit();
PageHelper.offsetPage(offset, filterCompanyProductRelevanceRequest.getLimit());
// 分页处理
filterCompanyProductRelevanceRequest.pageDispose();
List<UdiRlSupEntity> companyEntities = udiRlSupDao.getCompanyProductRelevance(filterCompanyProductRelevanceRequest);
return companyEntities;
}

@ -154,10 +154,8 @@ public class RelCodeBatchService extends ServiceImpl<RelCodeBatchMapper, RelCode
if (relCodeBatchRequest == null) {
return Collections.emptyList();
}
if (relCodeBatchRequest.getPage() != null) {
int offset = (relCodeBatchRequest.getPage() - 1) * relCodeBatchRequest.getLimit();
PageHelper.offsetPage(offset, relCodeBatchRequest.getLimit());
}
// 分页处理
relCodeBatchRequest.pageDispose();
return this.baseMapper.filterList(relCodeBatchRequest);
}

@ -108,10 +108,8 @@ public class RelCodeDetailService extends ServiceImpl<RelCodeDetailMapper, RelCo
if (relCodeDetailRequest == null) {
return Collections.emptyList();
}
if (relCodeDetailRequest.getPage() != null) {
int offset = (relCodeDetailRequest.getPage() - 1) * relCodeDetailRequest.getLimit();
PageHelper.offsetPage(offset, relCodeDetailRequest.getLimit());
}
// 分页处理
relCodeDetailRequest.pageDispose();
return this.baseMapper.filterList(relCodeDetailRequest);
}

@ -34,10 +34,8 @@ public class IoCodeLostServiceImpl extends ServiceImpl<IoCodeLostMapper, IoCodeL
if (ioCodeLostRequest == null) {
return Collections.emptyList();
}
if (ioCodeLostRequest.getPage() != null) {
int offset = (ioCodeLostRequest.getPage() - 1) * ioCodeLostRequest.getLimit();
PageHelper.offsetPage(offset, ioCodeLostRequest.getLimit());
}
// 分页处理
ioCodeLostRequest.pageDispose();
return codeLostEntityMapper.selectLost(ioCodeLostRequest);
}

@ -28,10 +28,8 @@ public class IoCodeRelServiceImpl extends ServiceImpl<IoCodeRelMapper, IoCodeRel
if (ioOrderRelRequest == null) {
return Collections.emptyList();
}
if (ioOrderRelRequest.getPage() != null) {
int offset = (ioOrderRelRequest.getPage() - 1) * ioOrderRelRequest.getLimit();
PageHelper.offsetPage(offset, ioOrderRelRequest.getLimit());
}
// 分页处理
ioOrderRelRequest.pageDispose();
return ioCodeRelMapper.selectIoCodeRelList(ioOrderRelRequest);
}
@ -84,10 +82,8 @@ public class IoCodeRelServiceImpl extends ServiceImpl<IoCodeRelMapper, IoCodeRel
if (ioOrderRelRequest == null) {
return Collections.emptyList();
}
if (ioOrderRelRequest.getPage() != null) {
int offset = (ioOrderRelRequest.getPage() - 1) * ioOrderRelRequest.getLimit();
PageHelper.offsetPage(offset, ioOrderRelRequest.getLimit());
}
// 分页处理
ioOrderRelRequest.pageDispose();
return ioCodeRelMapper.selectIoCodeRelDetailList(ioOrderRelRequest);
}

@ -110,27 +110,21 @@ public class IoOrderInvoiceService extends ServiceImpl<IoOrderInvoiceMapper, IoO
}
public List<IoOrderInvoiceResponse> filterGroupBy(IoOrderInvoiceRequest orderInvoiceRequest) {
if (orderInvoiceRequest.getPage() != null) {
int offset = (orderInvoiceRequest.getPage() - 1) * orderInvoiceRequest.getLimit();
PageHelper.offsetPage(offset, orderInvoiceRequest.getLimit());
}
// 分页处理
orderInvoiceRequest.pageDispose();
return ioOrderInvoiceMapper.filterGroupBy(orderInvoiceRequest);
}
public List<IoOrderInvoiceResponse> filterInvoice(IoOrderInvoiceRequest orderInvoiceRequest) {
if (orderInvoiceRequest.getPage() != null) {
int offset = (orderInvoiceRequest.getPage() - 1) * orderInvoiceRequest.getLimit();
PageHelper.offsetPage(offset, orderInvoiceRequest.getLimit());
}
// 分页处理
orderInvoiceRequest.pageDispose();
return ioOrderInvoiceMapper.filterInvoice(orderInvoiceRequest);
}
public List<IoOrderResponse> filterByInvoiceCode(IoOrderInvoiceRequest orderInvoiceRequest) {
if (orderInvoiceRequest.getPage() != null) {
int offset = (orderInvoiceRequest.getPage() - 1) * orderInvoiceRequest.getLimit();
PageHelper.offsetPage(offset, orderInvoiceRequest.getLimit());
}
// 分页处理
orderInvoiceRequest.pageDispose();
return ioOrderInvoiceMapper.filterByInvoiceCode(orderInvoiceRequest);
}

@ -24,10 +24,8 @@ public class InnerOrderDetailServiceImpl implements InnerOrderDetailService {
if (innerOrderDetailRequest == null) {
return Collections.emptyList();
}
if (innerOrderDetailRequest.getPage() != null) {
int offset = (innerOrderDetailRequest.getPage() - 1) * innerOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, innerOrderDetailRequest.getLimit());
}
// 分页处理
innerOrderDetailRequest.pageDispose();
List<innerOrderDetailResponse> data = innerOrderDetailDao.joinQueryList(innerOrderDetailRequest);
return data;
}

@ -40,10 +40,8 @@ public class InnerOrderServiceImpl implements InnerOrderService {
if (innerOrderRequest == null) {
return Collections.emptyList();
}
if (innerOrderRequest.getPage() != null) {
int offset = (innerOrderRequest.getPage() - 1) * innerOrderRequest.getLimit();
PageHelper.offsetPage(offset, innerOrderRequest.getLimit());
}
// 分页处理
innerOrderRequest.pageDispose();
List<InnerOrderEntity> data = innerOrderDao.queryPageList(innerOrderRequest);
return data;
}

@ -133,10 +133,8 @@ public class InvInnerOrderPrintServiceImpl implements InvInnerOrderPrintService
if (filterinnerOrderprintRequest == null) {
return Collections.emptyList();
}
if (filterinnerOrderprintRequest.getPage() != null) {
int offset = (filterinnerOrderprintRequest.getPage() - 1) * filterinnerOrderprintRequest.getLimit();
PageHelper.offsetPage(offset, filterinnerOrderprintRequest.getLimit());
}
// 分页处理
filterinnerOrderprintRequest.pageDispose();
List<InnerOrderPrintResponse> data = invInnerOrderPrintDao.filterJoinInnerPrint(filterinnerOrderprintRequest);
return data;

@ -88,10 +88,8 @@ public class SysLogininforServiceImpl implements ISysLogininforService, Logininf
@Override
public List<SysLogininfor> selectLogininforList(FilterLoginLogRequest logininfor) {
if (logininfor.getPage() != null) {
int offset = (logininfor.getPage() - 1) * logininfor.getLimit();
PageHelper.offsetPage(offset, logininfor.getLimit());
}
// 分页处理
logininfor.pageDispose();
return baseMapper.selectLogininforList(logininfor);
}

@ -44,10 +44,8 @@ public class SysOperLogServiceImpl implements ISysOperLogService, OperLogService
@Override
public List<SysOperLog> selectOperLogList(FilterOperLogRequest filterOperLogRequest) {
if (filterOperLogRequest.getPage() != null) {
int offset = (filterOperLogRequest.getPage() - 1) * filterOperLogRequest.getLimit();
PageHelper.offsetPage(offset, filterOperLogRequest.getLimit());
}
// 分页处理
filterOperLogRequest.pageDispose();
return baseMapper.selectList(filterOperLogRequest);
}

@ -27,10 +27,8 @@ public class PurApplyDetailImplService implements PurApplyDetailService {
if (purApplyRequest == null) {
return Collections.emptyList();
}
if (purApplyRequest.getPage() != null) {
int offset = (purApplyRequest.getPage() - 1) * purApplyRequest.getLimit();
PageHelper.offsetPage(offset, purApplyRequest.getLimit());
}
// 分页处理
purApplyRequest.pageDispose();
List<PurApplyDetailEntity> data = purApplyDetailDao.queryPageList(purApplyRequest);
return data;
}
@ -51,10 +49,8 @@ public class PurApplyDetailImplService implements PurApplyDetailService {
if (purApplyRequest == null) {
return Collections.emptyList();
}
if (purApplyRequest.getPage() != null) {
int offset = (purApplyRequest.getPage() - 1) * purApplyRequest.getLimit();
PageHelper.offsetPage(offset, purApplyRequest.getLimit());
}
// 分页处理
purApplyRequest.pageDispose();
List<PurOrderDetailResponse> data = purApplyDetailDao.joinQueryList(purApplyRequest);
return data;
}

@ -25,10 +25,8 @@ public class PurApplyServiceImpl implements PurApplyService {
if (purApplyRequest == null) {
return Collections.emptyList();
}
if (purApplyRequest.getPage() != null) {
int offset = (purApplyRequest.getPage() - 1) * purApplyRequest.getLimit();
PageHelper.offsetPage(offset, purApplyRequest.getLimit());
}
// 分页处理
purApplyRequest.pageDispose();
List<PurApplyResponse> data = purApplyDao.queryPageList(purApplyRequest);
return data;
}

@ -27,10 +27,8 @@ public class PurArrivalDetailServiceImpl implements PurArrivalDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurArrivalDetailResponse> data = purArrivalDetailDao.joinQueryList(purOrderDetailRequest);
return data;
}
@ -48,10 +46,8 @@ public class PurArrivalDetailServiceImpl implements PurArrivalDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurArrivalDetailEntity> data = purArrivalDetailDao.queryPageList(purOrderDetailRequest);
return data;
}

@ -27,10 +27,8 @@ public class PurArrivalServiceImpl implements PurArrivalService {
if (purArrivalRequest == null) {
return Collections.emptyList();
}
if (purArrivalRequest.getPage() != null) {
int offset = (purArrivalRequest.getPage() - 1) * purArrivalRequest.getLimit();
PageHelper.offsetPage(offset, purArrivalRequest.getLimit());
}
// 分页处理
purArrivalRequest.pageDispose();
List<PurArrivalResponse> data = purArrivalDao.queryPageList(purArrivalRequest);
return data;
}

@ -26,10 +26,8 @@ public class PurDeliveryDetailServiceImpl implements PurDeliveryDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurDeliveryDetailResponse> data = purDeliveryDetailDao.joinQueryList(purOrderDetailRequest);
return data;
}
@ -47,10 +45,8 @@ public class PurDeliveryDetailServiceImpl implements PurDeliveryDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurDeliveryDetailEntity> data = purDeliveryDetailDao.queryPageList(purOrderDetailRequest);
return data;
}

@ -36,10 +36,8 @@ public class PurDeliveryServiceImpl implements PurDeliveryService {
if (purDeliveryRequest == null) {
return Collections.emptyList();
}
if (purDeliveryRequest.getPage() != null) {
int offset = (purDeliveryRequest.getPage() - 1) * purDeliveryRequest.getLimit();
PageHelper.offsetPage(offset, purDeliveryRequest.getLimit());
}
// 分页处理
purDeliveryRequest.pageDispose();
List<PurDeliveryResponse> data = purDeliveryDao.queryPageList(purDeliveryRequest);
return data;
}

@ -28,10 +28,8 @@ public class PurOrderDetailServiceImpl implements PurOrderDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurOrderDetailResponse> data = purOrderDetailDao.joinQueryList(purOrderDetailRequest);
return data;
}
@ -41,10 +39,8 @@ public class PurOrderDetailServiceImpl implements PurOrderDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurOrderDetailResponse> data = purOrderDetailDao.joinQueryDrugList(purOrderDetailRequest);
return data;
}
@ -62,10 +58,8 @@ public class PurOrderDetailServiceImpl implements PurOrderDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurOrderDetailEntity> data = purOrderDetailDao.queryPageList(purOrderDetailRequest);
return data;
}

@ -45,10 +45,8 @@ public class PurOrderServiceImpl implements PurOrderService {
if (purOrderRequest == null) {
return Collections.emptyList();
}
if (purOrderRequest.getPage() != null) {
int offset = (purOrderRequest.getPage() - 1) * purOrderRequest.getLimit();
PageHelper.offsetPage(offset, purOrderRequest.getLimit());
}
// 分页处理
purOrderRequest.pageDispose();
List<PurOrderResponse> data = purOrderDao.queryPageList(purOrderRequest);
return data;
}

@ -27,10 +27,8 @@ public class PurPlanDetailServiceImpl implements PurPlanDetailService {
if (purApplyRequest == null) {
return Collections.emptyList();
}
if (purApplyRequest.getPage() != null) {
int offset = (purApplyRequest.getPage() - 1) * purApplyRequest.getLimit();
PageHelper.offsetPage(offset, purApplyRequest.getLimit());
}
// 分页处理
purApplyRequest.pageDispose();
List<PurOrderDetailResponse> data = purPlanDetailDao.joinQueryList(purApplyRequest);
return data;
}
@ -48,10 +46,8 @@ public class PurPlanDetailServiceImpl implements PurPlanDetailService {
if (purPlanDetailRequest == null) {
return Collections.emptyList();
}
if (purPlanDetailRequest.getPage() != null) {
int offset = (purPlanDetailRequest.getPage() - 1) * purPlanDetailRequest.getLimit();
PageHelper.offsetPage(offset, purPlanDetailRequest.getLimit());
}
// 分页处理
purPlanDetailRequest.pageDispose();
List<PurPlanDetailEntity> data = purPlanDetailDao.queryPageList(purPlanDetailRequest);
return data;
}

@ -25,10 +25,8 @@ public class PurPlanServiceImpl implements PurPlanService {
if (purPlanRequest == null) {
return Collections.emptyList();
}
if (purPlanRequest.getPage() != null) {
int offset = (purPlanRequest.getPage() - 1) * purPlanRequest.getLimit();
PageHelper.offsetPage(offset, purPlanRequest.getLimit());
}
// 分页处理
purPlanRequest.pageDispose();
List<PurPlanResponse> data = purPlanDao.queryPageList(purPlanRequest);
return data;
}

@ -28,10 +28,8 @@ public class PurReturnedDetailServiceImpl implements PurReturnedDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurReturnedDetailResponse> data = purReturnedDetailDao.joinQueryList(purOrderDetailRequest);
return data;
}
@ -49,10 +47,8 @@ public class PurReturnedDetailServiceImpl implements PurReturnedDetailService {
if (purOrderDetailRequest == null) {
return Collections.emptyList();
}
if (purOrderDetailRequest.getPage() != null) {
int offset = (purOrderDetailRequest.getPage() - 1) * purOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, purOrderDetailRequest.getLimit());
}
// 分页处理
purOrderDetailRequest.pageDispose();
List<PurReturnedDetailEntity> data = purReturnedDetailDao.queryPageList(purOrderDetailRequest);
return data;
}

@ -25,10 +25,8 @@ public class PurReturnedServiceImpl implements PurReturnedService {
if (purReturnedRequest == null) {
return Collections.emptyList();
}
if (purReturnedRequest.getPage() != null) {
int offset = (purReturnedRequest.getPage() - 1) * purReturnedRequest.getLimit();
PageHelper.offsetPage(offset, purReturnedRequest.getLimit());
}
// 分页处理
purReturnedRequest.pageDispose();
List<PurReturnedResponse> data = purReturnedDao.queryPageList(purReturnedRequest);
return data;
}

@ -41,10 +41,8 @@ public class SupCertServiceImpl extends ServiceImpl<SupCertDao, SupCertEntity> i
if (filterSupCertRequest == null) {
return Collections.emptyList();
}
if (filterSupCertRequest.getPage() != null) {
int offset = (filterSupCertRequest.getPage() - 1) * filterSupCertRequest.getLimit();
PageHelper.offsetPage(offset, filterSupCertRequest.getLimit());
}
// 分页处理
filterSupCertRequest.pageDispose();
return supCertDao.filterCompanyCert(filterSupCertRequest);
}
@ -53,10 +51,8 @@ public class SupCertServiceImpl extends ServiceImpl<SupCertDao, SupCertEntity> i
if (filterSupCertRequest == null) {
return Collections.emptyList();
}
if (filterSupCertRequest.getPage() != null) {
int offset = (filterSupCertRequest.getPage() - 1) * filterSupCertRequest.getLimit();
PageHelper.offsetPage(offset, filterSupCertRequest.getLimit());
}
// 分页处理
filterSupCertRequest.pageDispose();
List<SupCertEntity> companyEntities = supCertDao.getCompanyCert(filterSupCertRequest);
return companyEntities;
@ -68,10 +64,8 @@ public class SupCertServiceImpl extends ServiceImpl<SupCertDao, SupCertEntity> i
if (filterSupCertRequest == null) {
return Collections.emptyList();
}
if (filterSupCertRequest.getPage() != null) {
int offset = (filterSupCertRequest.getPage() - 1) * filterSupCertRequest.getLimit();
PageHelper.offsetPage(offset, filterSupCertRequest.getLimit());
}
// 分页处理
filterSupCertRequest.pageDispose();
List<SupCertEntity> companyEntities = supCertDao.getCompanyCert(filterSupCertRequest);
return companyEntities;

@ -26,10 +26,8 @@ public class SupCertSetServiceImpl extends ServiceImpl<SupCertSetDao, SupCertSet
if (filterCertSetsRequest == null) {
return Collections.emptyList();
}
if (filterCertSetsRequest.getPage() != null) {
int offset = (filterCertSetsRequest.getPage() - 1) * filterCertSetsRequest.getLimit();
PageHelper.offsetPage(offset, filterCertSetsRequest.getLimit());
}
// 分页处理
filterCertSetsRequest.pageDispose();
return supCertSetDao.filterCertSets(filterCertSetsRequest);
}

@ -52,10 +52,8 @@ public class SupManufacturerServiceImpl extends ServiceImpl<SupManufacturerDao,
if (filterSupManufacturerRequest == null) {
return Collections.emptyList();
}
if (filterSupManufacturerRequest.getPage() != null) {
int offset = (filterSupManufacturerRequest.getPage() - 1) * filterSupManufacturerRequest.getLimit();
PageHelper.offsetPage(offset, filterSupManufacturerRequest.getLimit());
}
// 分页处理
filterSupManufacturerRequest.pageDispose();
List<SupManufacturerEntity> companyEntities = supManufacturerDao.getCompany(filterSupManufacturerRequest);
return companyEntities;

@ -55,10 +55,8 @@ public class SupProductServiceImpl extends ServiceImpl<SupProductDao, SupProduct
if (filterPoductRequest == null) {
return Collections.emptyList();
}
if (filterPoductRequest.getPage() != null) {
int offset = (filterPoductRequest.getPage() - 1) * filterPoductRequest.getLimit();
PageHelper.offsetPage(offset, filterPoductRequest.getLimit());
}
// 分页处理
filterPoductRequest.pageDispose();
List<SupProductResponse> companyEntities = supProductDao.getRegistration(filterPoductRequest);
return companyEntities;
}

@ -27,10 +27,8 @@ public class BasicDownloadServiceImpl extends ServiceImpl<BasicDownloadDao,Basic
if (basicDownloadRequest == null) {
return Collections.emptyList();
}
if (basicDownloadRequest.getPage() != null) {
int offset = (basicDownloadRequest.getPage() - 1) * basicDownloadRequest.getLimit();
PageHelper.offsetPage(offset, basicDownloadRequest.getLimit());
}
// 分页处理
basicDownloadRequest.pageDispose();
return basicDownloadDao.filterDownloadStatus(basicDownloadRequest);
}

@ -38,10 +38,8 @@ public class BasicExportServiceImpl extends ServiceImpl<BasicExportDao, BasicExp
if (basicExportStatusRequest == null) {
return Collections.emptyList();
}
if (basicExportStatusRequest.getPage() != null) {
int offset = (basicExportStatusRequest.getPage() - 1) * basicExportStatusRequest.getLimit();
PageHelper.offsetPage(offset, basicExportStatusRequest.getLimit());
}
// 分页处理
basicExportStatusRequest.pageDispose();
return basicExportDao.filterExportStatus(basicExportStatusRequest);
}

@ -29,10 +29,8 @@ public class ClassifyCodeServiceImpl implements ClassifyCodeService {
if (filterClassifyCodeRequest == null) {
return Collections.emptyList();
}
if (filterClassifyCodeRequest.getPage() != null) {
int offset = (filterClassifyCodeRequest.getPage() - 1) * filterClassifyCodeRequest.getLimit();
PageHelper.offsetPage(offset, filterClassifyCodeRequest.getLimit());
}
// 分页处理
filterClassifyCodeRequest.pageDispose();
if (StrUtil.isNotEmpty(filterClassifyCodeRequest.getInFilter())) {
filterClassifyCodeRequest.setInFilterList(Arrays.asList(filterClassifyCodeRequest.getInFilter().split(",")));

@ -25,10 +25,8 @@ public class SysMenuHelpServiceImpl implements SysMenuHelpService {
@Override
public List<SysMenuHelpEntity> MenuHelpList(SysMenuHelpRequest sysMenuHelpRequest) {
if (sysMenuHelpRequest.getPage() != null) {
int offset = (sysMenuHelpRequest.getPage() - 1) * sysMenuHelpRequest.getLimit();
PageHelper.offsetPage(offset, sysMenuHelpRequest.getLimit());
}
// 分页处理
sysMenuHelpRequest.pageDispose();
return sysMenuHelpMapper.selectMenuHelpList(sysMenuHelpRequest);
}

@ -23,10 +23,8 @@ public class SysRemindMsgServiceImpl implements SysRemindMsgService {
@Override
public List<SysRemindMsgEntity> filterList(FilterSysRemindMsgRequest filterSysRemindMsgRequest) {
if (filterSysRemindMsgRequest.getPage() != null) {
int offset = (filterSysRemindMsgRequest.getPage() - 1) * filterSysRemindMsgRequest.getLimit();
PageHelper.offsetPage(offset, filterSysRemindMsgRequest.getLimit());
}
// 分页处理
filterSysRemindMsgRequest.pageDispose();
return sysRemindMsgMapper.filterList(filterSysRemindMsgRequest);
}

@ -20,10 +20,8 @@ public class SysRemindSetServiceImpl implements SysRemindSetService {
@Override
public List<SysRemindSetEntity> filterList(FilterSysRemindSetRequest filterSysRemindSetRequest) {
if (filterSysRemindSetRequest.getPage() != null) {
int offset = (filterSysRemindSetRequest.getPage() - 1) * filterSysRemindSetRequest.getLimit();
PageHelper.offsetPage(offset, filterSysRemindSetRequest.getLimit());
}
// 分页处理
filterSysRemindSetRequest.pageDispose();
return sysRemindSetMapper.filterList(filterSysRemindSetRequest);
}
}

@ -27,10 +27,10 @@ public class SystemPDFModuleServiceImpl extends ServiceImpl<SystemPDFModuleDao,
@Override
public List<SystemPDFModuleEntity> queryPage(FilterPdfModuleRequest FilterPDFModuleRequest) {
int offset = (FilterPDFModuleRequest.getPage() - 1) * FilterPDFModuleRequest.getLimit();
PageHelper.offsetPage(offset, FilterPDFModuleRequest.getLimit());
List<SystemPDFModuleEntity> list = systemPDFModuleDao.queryPage(FilterPDFModuleRequest);
public List<SystemPDFModuleEntity> queryPage(FilterPdfModuleRequest filterPdfModuleRequest) {
// 分页处理
filterPdfModuleRequest.pageDispose();
List<SystemPDFModuleEntity> list = systemPDFModuleDao.queryPage(filterPdfModuleRequest);
return list;
}

@ -23,10 +23,8 @@ public class SystemPDFTemplateRelevanceServiceImpl implements SystemPDFTemplateR
@Override
public List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest) {
if (systemPDFModuleRequest.getPage() != null) {
int offset = (systemPDFModuleRequest.getPage() - 1) * systemPDFModuleRequest.getLimit();
PageHelper.offsetPage(offset, systemPDFModuleRequest.getLimit());
}
// 分页处理
systemPDFModuleRequest.pageDispose();
return systemPDFTemplateRelevanceDao.filterList(systemPDFModuleRequest);
}

@ -20,10 +20,10 @@ public class SystemPDFTemplateServiceImpl extends ServiceImpl<SystemPDFTemplateD
SystemPDFTemplateDao systemPDFTemplateDao;
@Override
public List<SystemPDFTemplateEntity> queryPage(FilterPdfTemplateRequest FilterPdfTemplateRequest) {
int offset = (FilterPdfTemplateRequest.getPage() - 1) * FilterPdfTemplateRequest.getLimit();
PageHelper.offsetPage(offset, FilterPdfTemplateRequest.getLimit());
List<SystemPDFTemplateEntity> list = systemPDFTemplateDao.queryPage(FilterPdfTemplateRequest);
public List<SystemPDFTemplateEntity> queryPage(FilterPdfTemplateRequest filterPdfTemplateRequest) {
// 分页处理
filterPdfTemplateRequest.pageDispose();
List<SystemPDFTemplateEntity> list = systemPDFTemplateDao.queryPage(filterPdfTemplateRequest);
return list;
}

@ -24,12 +24,10 @@ public class SystemParamConfigServiceImpl extends ServiceImpl<SystemParamConfigD
SystemParamConfigDao systemParamConfigDao;
@Override
public List<SystemParamConfigEntity> queryPage(FilterParamConfigRequest FilterParamConfigRequest) {
if (FilterParamConfigRequest.getPage() != null) {
int offset = (FilterParamConfigRequest.getPage() - 1) * FilterParamConfigRequest.getLimit();
PageHelper.offsetPage(offset, FilterParamConfigRequest.getLimit());
}
List<SystemParamConfigEntity> list = systemParamConfigDao.queryPage(FilterParamConfigRequest);
public List<SystemParamConfigEntity> queryPage(FilterParamConfigRequest filterParamConfigRequest) {
// 分页处理
filterParamConfigRequest.pageDispose();
List<SystemParamConfigEntity> list = systemParamConfigDao.queryPage(filterParamConfigRequest);
return list;
}

@ -24,10 +24,8 @@ public class ThirdSysApiServiceImpl implements ThirdSysApiService {
if (filterSysApiRequest == null) {
return Collections.emptyList();
}
if (filterSysApiRequest.getPage() != null) {
int offset = (filterSysApiRequest.getPage() - 1) * filterSysApiRequest.getLimit();
PageHelper.offsetPage(offset, filterSysApiRequest.getLimit());
}
// 分页处理
filterSysApiRequest.pageDispose();
return thirdSysApiDao.findSysApi(filterSysApiRequest);
}

@ -16,10 +16,8 @@ public class BasicInsMaterialService extends ServiceImpl<BasicInsMaterialMapper,
if (thrInsMaterialFeeRequest == null) {
return Collections.emptyList();
}
if (thrInsMaterialFeeRequest.getPage() != null) {
int offset = (thrInsMaterialFeeRequest.getPage() - 1) * thrInsMaterialFeeRequest.getLimit();
PageHelper.offsetPage(offset, thrInsMaterialFeeRequest.getLimit());
}
// 分页处理
thrInsMaterialFeeRequest.pageDispose();
return super.baseMapper.filterList(thrInsMaterialFeeRequest);
}

@ -226,10 +226,8 @@ public class ThirdAliDrugService extends ServiceImpl<ThirdAliDrugMapper, ThirdAl
if (thirdAliDrug == null) {
return Collections.emptyList();
}
if (thirdAliDrug.getPage() != null) {
int offset = (thirdAliDrug.getPage() - 1) * thirdAliDrug.getLimit();
PageHelper.offsetPage(offset, thirdAliDrug.getLimit());
}
// 分页处理
thirdAliDrug.pageDispose();
return this.baseMapper.filterList(thirdAliDrug);
}

@ -21,10 +21,8 @@ public class ThrHslbService extends ServiceImpl<ThrHslbMapper, ThrHslbEntity> {
if (filterThrHslbRequest == null) {
return Collections.emptyList();
}
if (filterThrHslbRequest.getPage() != null) {
int offset = (filterThrHslbRequest.getPage() - 1) * filterThrHslbRequest.getLimit();
PageHelper.offsetPage(offset, filterThrHslbRequest.getLimit());
}
// 分页处理
filterThrHslbRequest.pageDispose();
List<ThrHslbEntity> data = thrHslbMapper.getHslbs(filterThrHslbRequest);
return data;
}

@ -34,10 +34,8 @@ public class ThrManufacturerService extends ServiceImpl<ThrManufacturerMapper, T
if (filterThrCorpRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpRequest.getPage() != null) {
int offset = (filterThrCorpRequest.getPage() - 1) * filterThrCorpRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpRequest.getLimit());
}
// 分页处理
filterThrCorpRequest.pageDispose();
List<ThrManufacturerEntity> data = thrManufacturerMapper.filterThrManu(filterThrCorpRequest);
return data;
}
@ -101,10 +99,8 @@ public class ThrManufacturerService extends ServiceImpl<ThrManufacturerMapper, T
if (basicProducstRequest == null) {
return Collections.emptyList();
}
if (basicProducstRequest.getPage() != null) {
int offset = (basicProducstRequest.getPage() - 1) * basicProducstRequest.getLimit();
PageHelper.offsetPage(offset, basicProducstRequest.getLimit());
}
// 分页处理
basicProducstRequest.pageDispose();
List<ThrManufacturerEntity> data = thrManufacturerMapper.getProductTypes(basicProducstRequest);
return data;
}

@ -20,10 +20,8 @@ public class ThrProductTypeService extends ServiceImpl<ThrProductTypeMapper, Thr
if (filterThrProductTypeRequest == null) {
return Collections.emptyList();
}
if (filterThrProductTypeRequest.getPage() != null) {
int offset = (filterThrProductTypeRequest.getPage() - 1) * filterThrProductTypeRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductTypeRequest.getLimit());
}
// 分页处理
filterThrProductTypeRequest.pageDispose();
List<ThrProductTypeEntity> data = thrProductTypeMapper.getProductTypes(filterThrProductTypeRequest);
return data;
}

@ -38,10 +38,8 @@ public class ThrCorpExportLogServiceImpl implements ThrCorpExportLogService {
if (filterThrCorpExportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpExportLogRequest.getPage() != null) {
int offset = (filterThrCorpExportLogRequest.getPage() - 1) * filterThrCorpExportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpExportLogRequest.getLimit());
}
// 分页处理
filterThrCorpExportLogRequest.pageDispose();
List<ThrCorpExportLogEntity> data = thrCorpExportLogDao.filterThrCorpExportLog(filterThrCorpExportLogRequest);
return data;
}

@ -26,10 +26,8 @@ public class ThrCorpImportDetailServiceImpl implements ThrCorpImportDetailServic
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrCorpImportDetailEntity> data = thrCorpImportDetailDao.filterCorpDetailImport(filterThrCorpImportLogRequest);
return data;
}

@ -38,10 +38,8 @@ public class ThrCorpImportLogServiceImpl implements ThrCorpImportLogService {
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrCorpImportLogEntity> data = thrCorpImportLogDao.filterThrCorpImportLog(filterThrCorpImportLogRequest);
return data;

@ -28,10 +28,8 @@ public class ThrCorpServiceImpl implements ThrCorpService {
if (filterThrCorpRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpRequest.getPage() != null) {
int offset = (filterThrCorpRequest.getPage() - 1) * filterThrCorpRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpRequest.getLimit());
}
// 分页处理
filterThrCorpRequest.pageDispose();
List<ThrCorpsResponse> data = thrCorpDao.filterThrCorps(filterThrCorpRequest);
return data;
}

@ -47,10 +47,8 @@ public class ThrDeptServiceImpl implements ThrDeptService {
if (filterThrDeptRequest == null) {
return Collections.emptyList();
}
if (filterThrDeptRequest.getPage() != null) {
int offset = (filterThrDeptRequest.getPage() - 1) * filterThrDeptRequest.getLimit();
PageHelper.offsetPage(offset, filterThrDeptRequest.getLimit());
}
// 分页处理
filterThrDeptRequest.pageDispose();
return thrDeptDao.filterThrInvWarehouse(filterThrDeptRequest);
}

@ -26,10 +26,8 @@ public class ThrInvProductsDetailServiceImpl implements ThrInvProductsDetailServ
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrInvProductsImportDetailEntity> data = thrInvProductsDetailDao.filterInvProductsDetailImport(filterThrCorpImportLogRequest);
return data;
}

@ -39,10 +39,8 @@ public class ThrInvProductsExportLogServiceImpl implements ThrInvProductsExportL
if (filterThrCorpExportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpExportLogRequest.getPage() != null) {
int offset = (filterThrCorpExportLogRequest.getPage() - 1) * filterThrCorpExportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpExportLogRequest.getLimit());
}
// 分页处理
filterThrCorpExportLogRequest.pageDispose();
List<ThrInvProductsExportLogEntity> data = thrInvProductsExportLogDao.filterThrInvProductsExportLog(filterThrCorpExportLogRequest);
return data;
}

@ -29,10 +29,8 @@ public class ThrInvProductsImportLogServiceImpl implements ThrInvProductsImportL
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrInvProductsImportLogEntity> data = thrInvProductsImportLogDao.filterThrInvProductsImportLog(filterThrCorpImportLogRequest);
return data;
}

@ -26,10 +26,8 @@ public class ThrInvProductsServiceImpl implements ThrInvProductsService {
if (filterThrInvProductsRequest == null) {
return Collections.emptyList();
}
if (filterThrInvProductsRequest.getPage() != null) {
int offset = (filterThrInvProductsRequest.getPage() - 1) * filterThrInvProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrInvProductsRequest.getLimit());
}
// 分页处理
filterThrInvProductsRequest.pageDispose();
List<ThrInvProductsEntity> data = thrInvProductsDao.filterThrInvProductss(filterThrInvProductsRequest);
return data;
}

@ -44,10 +44,8 @@ public class ThrInvWarehouseServiceImpl implements ThrInvWarehouseService {
if (filterThrSubInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterThrSubInvWarehouseRequest.getPage() != null) {
int offset = (filterThrSubInvWarehouseRequest.getPage() - 1) * filterThrSubInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterThrSubInvWarehouseRequest.getLimit());
}
// 分页处理
filterThrSubInvWarehouseRequest.pageDispose();
return thrInvWarehouseDao.filterThrInvWarehouse(filterThrSubInvWarehouseRequest);
}
@ -61,10 +59,8 @@ public class ThrInvWarehouseServiceImpl implements ThrInvWarehouseService {
if (filterThrSubInvWarehouseRequest == null) {
return Collections.emptyList();
}
if (filterThrSubInvWarehouseRequest.getPage() != null) {
int offset = (filterThrSubInvWarehouseRequest.getPage() - 1) * filterThrSubInvWarehouseRequest.getLimit();
PageHelper.offsetPage(offset, filterThrSubInvWarehouseRequest.getLimit());
}
// 分页处理
filterThrSubInvWarehouseRequest.pageDispose();
return thrInvWarehouseDao.selectByThrDeptCode(filterThrSubInvWarehouseRequest);
}

@ -30,10 +30,8 @@ public class ThrOrderDetailServiceImpl implements ThrOrderDetailService {
if (filterThrOrderDetailRequest == null) {
return Collections.emptyList();
}
if (filterThrOrderDetailRequest.getPage() != null) {
int offset = (filterThrOrderDetailRequest.getPage() - 1) * filterThrOrderDetailRequest.getLimit();
PageHelper.offsetPage(offset, filterThrOrderDetailRequest.getLimit());
}
// 分页处理
filterThrOrderDetailRequest.pageDispose();
List<ThrOrderDetailEntity> data = thrOrderDetailDao.filterThrOrderDetailDetail(filterThrOrderDetailRequest);
return data;
}

@ -35,10 +35,8 @@ public class ThrOrderExportLogServiceImpl implements ThrOrderExportLogService {
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrOrderExportLogEntity> data = thrOrderExportLogDao.filterThrOrderExportLog(filterThrCorpImportLogRequest);
return data;
}

@ -24,10 +24,8 @@ public class ThrOrderImportDetailServiceImpl implements ThrOrderImportDetailServ
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrOrderImportDetailEntity> data = thrOrderImportDetailDao.filterOrderdDetailImport(filterThrCorpImportLogRequest);
return data;
}

@ -55,10 +55,8 @@ public class ThrOrderImportLogServiceImpl implements ThrOrderImportLogService {
if (filterThrCorpImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrCorpImportLogRequest.getPage() != null) {
int offset = (filterThrCorpImportLogRequest.getPage() - 1) * filterThrCorpImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrCorpImportLogRequest.getLimit());
}
// 分页处理
filterThrCorpImportLogRequest.pageDispose();
List<ThrOrderImportLogEntity> data = thrOrderImportLogDao.filterThrOrderImportLog(filterThrCorpImportLogRequest);
return data;

@ -35,10 +35,8 @@ public class ThrOrderServiceImpl implements ThrOrderService {
if (filterThrOrderRequest == null) {
return Collections.emptyList();
}
if (filterThrOrderRequest.getPage() != null) {
int offset = (filterThrOrderRequest.getPage() - 1) * filterThrOrderRequest.getLimit();
PageHelper.offsetPage(offset, filterThrOrderRequest.getLimit());
}
// 分页处理
filterThrOrderRequest.pageDispose();
List<ThrOrderEntity> data = thrOrderDao.filterThrOrder(filterThrOrderRequest);
return data;
}

@ -48,10 +48,8 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
public List<ThrProductsAddDiResponse> filterThrProductsList(FilterThrProductsRequest filterThrProductsRequest) {
if (null != filterThrProductsRequest && filterThrProductsRequest.getPage() != null) {
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
}
// 分页处理
filterThrProductsRequest.pageDispose();
List<ThrProductsAddDiResponse> thrProductsAddDiResponses = thrProductsAddDiDao.filterThrProductsList(filterThrProductsRequest);
if (CollUtil.isNotEmpty(thrProductsAddDiResponses)) {

@ -25,10 +25,8 @@ public class ThrProductsAddServiceImpl implements ThrProductsAddService {
if (filterThrProductsRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsRequest.getPage() != null) {
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
}
// 分页处理
filterThrProductsRequest.pageDispose();
List<ThrProductsAddEntity> data = thrProductsAddDao.filterThrProductsRequest(filterThrProductsRequest);
return data;
}

@ -37,10 +37,8 @@ public class ThrProductsExportLogServiceImpl implements ThrProductsExportLogServ
if (filterThrProductsExportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsExportLogRequest.getPage() != null) {
int offset = (filterThrProductsExportLogRequest.getPage() - 1) * filterThrProductsExportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsExportLogRequest.getLimit());
}
// 分页处理
filterThrProductsExportLogRequest.pageDispose();
List<ThrProductsExportLogEntity> data = thrProductsExportLogDao.filterThrProductsExportLog(filterThrProductsExportLogRequest);
return data;
}

@ -24,10 +24,8 @@ public class ThrProductsImportDetailServiceImpl implements ThrProductsImportDeta
if (filterThrProductsImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsImportLogRequest.getPage() != null) {
int offset = (filterThrProductsImportLogRequest.getPage() - 1) * filterThrProductsImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsImportLogRequest.getLimit());
}
// 分页处理
filterThrProductsImportLogRequest.pageDispose();
List<ThrProductsImportDetailEntity> data = thrProductsImportDetailDao.filterProductsDetailImport(filterThrProductsImportLogRequest);
return data;
}

@ -23,10 +23,8 @@ public class ThrProductsImportLogServiceImpl implements ThrProductsImportLogServ
if (filterThrProductsImportLogRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsImportLogRequest.getPage() != null) {
int offset = (filterThrProductsImportLogRequest.getPage() - 1) * filterThrProductsImportLogRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsImportLogRequest.getLimit());
}
// 分页处理
filterThrProductsImportLogRequest.pageDispose();
List<ThrProductsImportLogEntity> data = thrProductsImportLogDao.filterThrPorductsImportLog(filterThrProductsImportLogRequest);
return data;
}

@ -52,10 +52,8 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
if (filterThrProductsRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsRequest.getPage() != null) {
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
}
// 分页处理
filterThrProductsRequest.pageDispose();
List<ThrProductsEntity> data = thrProductsDao.filterThrProducts(filterThrProductsRequest);
return data;
}
@ -64,10 +62,8 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
if (filterThrProductsRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsRequest.getPage() != null) {
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
}
// 分页处理
filterThrProductsRequest.pageDispose();
List<ThrProductsEntity> data = thrProductsDao.filterThrProducts1(filterThrProductsRequest);
return data;
}
@ -77,10 +73,8 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
if (filterThrProductsRequest == null) {
return Collections.emptyList();
}
if (filterThrProductsRequest.getPage() != null) {
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
}
// 分页处理
filterThrProductsRequest.pageDispose();
return thrProductsDao.filterJoinThrProducts(filterThrProductsRequest);
}

@ -41,11 +41,8 @@ public class ThrSystemDetailServiceImpl implements ThrSystemDetailService {
if (filterBasicThirdSysDetailRequest == null) {
return Collections.emptyList();
}
if (filterBasicThirdSysDetailRequest.getPage() != null) {
int offset = (filterBasicThirdSysDetailRequest.getPage() - 1) * filterBasicThirdSysDetailRequest.getLimit();
PageHelper.offsetPage(offset, filterBasicThirdSysDetailRequest.getLimit());
}
// 分页处理
filterBasicThirdSysDetailRequest.pageDispose();
List<ThrSystemDetailEntity> data = thrSystemDetailDao.filterBasicThirdSysDetail(filterBasicThirdSysDetailRequest);
return data;
}

@ -50,11 +50,8 @@ public class ThrSystemServiceImpl implements ThrSystemService {
if (filterBasicThirdSysRequest == null) {
return Collections.emptyList();
}
if (filterBasicThirdSysRequest.getPage() != null) {
int offset = (filterBasicThirdSysRequest.getPage() - 1) * filterBasicThirdSysRequest.getLimit();
PageHelper.offsetPage(offset, filterBasicThirdSysRequest.getLimit());
}
// 分页处理
filterBasicThirdSysRequest.pageDispose();
List<ThrSystemEntity> data = thrSystemDao.filterBasicThiSys(filterBasicThirdSysRequest);
//查询本系统的授权码
AuthLicense license = authLicenseDao.selectLicenseByName("UDI管理系统");

@ -1,6 +1,8 @@
package com.glxp.api.util.page;
import com.github.pagehelper.PageHelper;
import lombok.Data;
import lombok.Value;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
@ -23,4 +25,11 @@ public class ListPageRequest {
private String orderBy;
private String sort;
public void pageDispose(){
if (this.getPage() != null && this.getLimit() != null) {
int offset = (this.getPage() - 1) * this.getLimit();
PageHelper.offsetPage(offset, this.getLimit());
}
}
}

Loading…
Cancel
Save