Authored by min.ling

列表分页

package com.yoho.order.model;
import com.yoho.ufo.service.model.PageRequestBO;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Builder;
... ... @@ -11,7 +12,7 @@ import lombok.experimental.Builder;
@Data
@ToString
@Builder
public class SellerReqBO {
public class SellerReqBO extends PageRequestBO {
private Integer uid;
... ...
... ... @@ -45,6 +45,8 @@
on z.uid = s.uid
where z.valid_status = 1
<include refid="Query_Condition_Sql" />
order by z.id desc
limit #{sellerReqBO.start},#{sellerReqBO.size}
</select>
<sql id="Query_Condition_Sql" >
... ...
... ... @@ -89,6 +89,9 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
.mobile(req.getMobile())
.uid(req.getUid())
.validStatus(req.getValidStatus()).build();
sellerReqBO.setPage(req.getPage());
sellerReqBO.setStart(req.getStart());
sellerReqBO.setSize(req.getSize());
int total = zhimaCertMapper.selectCountByCondition(sellerReqBO);
if(total == 0) {
LOGGER.warn("queryStoredSeller with total is 0, req is {}",req);
... ...