package com.glxp.api.service.thrsys; import com.github.pagehelper.PageHelper; import com.glxp.api.entity.thrsys.BasicInsChdrugEntity; import com.glxp.api.req.thrsys.ThrInsChDrugFeeRequest; import com.glxp.api.req.thrsys.ThrInsDrugFeeRequest; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.glxp.api.entity.thrsys.BasicInsDrugEntity; import com.glxp.api.dao.thrsys.BasicInsDrugMapper; import java.util.Collections; import java.util.List; @Service public class BasicInsDrugService extends ServiceImpl { public List filterList(ThrInsDrugFeeRequest thrInsDrugFeeRequest) { if (thrInsDrugFeeRequest == null) { return Collections.emptyList(); } if (thrInsDrugFeeRequest.getPage() != null) { int offset = (thrInsDrugFeeRequest.getPage() - 1) * thrInsDrugFeeRequest.getLimit(); PageHelper.offsetPage(offset, thrInsDrugFeeRequest.getLimit()); } return super.baseMapper.filterList(thrInsDrugFeeRequest); } }