|
|
@ -19,6 +19,7 @@ import com.yxt.supervise.cyf.api.tankinformation.TankInformation; |
|
|
|
import com.yxt.supervise.cyf.biz.flowmeterinformation.FlowmeterInformationMapper; |
|
|
|
import com.yxt.supervise.cyf.biz.tankinformation.TankInformationMapper; |
|
|
|
import com.yxt.supervise.cyf.biz.tankinformation.TankInformationService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -38,6 +39,12 @@ public class CrudeOilOutboundService extends MybatisBaseService<CrudeOilOutbound |
|
|
|
public PagerVo<CrudeOilOutboundVo> listPageVo(PagerQuery<CrudeOilOutboundQuery> pq) { |
|
|
|
CrudeOilOutboundQuery query = pq.getParams(); |
|
|
|
QueryWrapper<CrudeOilOutbound> qw = new QueryWrapper<>(); |
|
|
|
if (StringUtils.isNotBlank(query.getDate())) { |
|
|
|
qw.eq("STR_TO_DATE(c.deliverDate,'%Y-%m-%d')", query.getDate()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getContractNumber())) { |
|
|
|
qw.like("c.salesContractNumber", query.getContractNumber()); |
|
|
|
} |
|
|
|
IPage<CrudeOilOutbound> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<CrudeOilOutboundVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
PagerVo<CrudeOilOutboundVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|