Merge remote-tracking branch 'origin/master'

master
shijie 4 years ago
commit 5e61297902
  1. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/CopyForMeRequest.java
  2. 1
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java

@ -13,7 +13,7 @@ import lombok.Data;
public class CopyForMeRequest { public class CopyForMeRequest {
@ApiModelProperty(value = "当前页码,默认为第一页") @ApiModelProperty(value = "当前页码,默认为第一页")
private Integer page = 0; private Integer page = 1;
@ApiModelProperty(value = "每页记录数,默认显示10条") @ApiModelProperty(value = "每页记录数,默认显示10条")
private Integer size = 10; private Integer size = 10;

@ -77,6 +77,7 @@ public class DgCopyUserServiceImpl extends ServiceImpl<DgCopyUserMapper, DgCopyU
} }
String userId = this.getUserId(); String userId = this.getUserId();
copyForMeRequest.setUserId(Integer.parseInt(userId)); copyForMeRequest.setUserId(Integer.parseInt(userId));
copyForMeRequest.setSize((copyForMeRequest.getPage()-1)*copyForMeRequest.getSize());
List<CopyForMeResponse> copyForMeResponseList = baseMapper.selectCopyForMe(copyForMeRequest); List<CopyForMeResponse> copyForMeResponseList = baseMapper.selectCopyForMe(copyForMeRequest);
if (copyForMeResponseList.size() > 0) { if (copyForMeResponseList.size() > 0) {

Loading…
Cancel
Save