Authored by LUOXC

fix by zero

... ... @@ -85,7 +85,10 @@ public class DepositServiceImpl implements DepositService {
public PageResp<List<DepositProductBo>> queryUserDoposit(Integer uid, Integer page, Integer limit) {
int count = storageDepositMapper.queryUserDepositProductCount(uid);
if (count == 0) {
return new PageResp<>();
PageResp<List<DepositProductBo>> resp = new PageResp<>();
resp.setPage(page);
resp.setPageSize(limit);
return resp;
}
List<Integer> productIdList = storageDepositMapper.queryUserDepositProductId(uid, (page - 1) * limit, limit);
LOGGER.info("productIdList is {}", productIdList);
... ...