fix-导出司机编号
This commit is contained in:
@@ -17,10 +17,14 @@ public class JoinExportResponse implements Serializable {
|
||||
@ApiModelProperty(value = "返佣平台SN")
|
||||
private String platformSn;
|
||||
|
||||
@ExcelProperty("返佣平台名称")
|
||||
@ExcelProperty("返佣平台简称")
|
||||
@ApiModelProperty(value = "返佣平台名称")
|
||||
private String platformName;
|
||||
|
||||
@ExcelProperty("返佣平台全称")
|
||||
@ApiModelProperty(value = "返佣平台名称")
|
||||
private String platformAbbreviation;
|
||||
|
||||
@ExcelProperty("参与时间")
|
||||
@ApiModelProperty(value = "参与时间")
|
||||
private Date participationTime;
|
||||
|
||||
@@ -43,10 +43,14 @@ public class ReturnCommissionPlatformInformationJoinUserExcelResponse implements
|
||||
@ApiModelProperty(value = "滴友ID")
|
||||
private String driverKey;
|
||||
|
||||
@ExcelProperty("注册平台")
|
||||
@ExcelProperty("注册平台简称")
|
||||
@ApiModelProperty(value = "注册平台")
|
||||
private String platformName;
|
||||
|
||||
@ExcelProperty("注册平台全称")
|
||||
@ApiModelProperty(value = "注册平台")
|
||||
private String platformAbbreviation;
|
||||
|
||||
@ExcelProperty("平台司机编号")
|
||||
@ApiModelProperty(value = "平台司机编码")
|
||||
private String driverSn;
|
||||
|
||||
@@ -628,11 +628,11 @@ public class CouponUserServiceImpl extends ServiceImpl<CouponUserDao, CouponUser
|
||||
lqw.eq(CouponUser::getUid, userId);
|
||||
if (type.equals("usable")) {
|
||||
lqw.eq(CouponUser::getStatus, CouponConstants.STORE_COUPON_USER_STATUS_USABLE);
|
||||
lqw.gt(CouponUser::getMoney, money);
|
||||
lqw.lt(CouponUser::getMoney, money);
|
||||
lqw.orderByDesc(CouponUser::getId);
|
||||
}
|
||||
if (type.equals("unusable") || "used".equals(type)) {
|
||||
lqw.and(w -> w.gt(CouponUser::getStatus, CouponConstants.STORE_COUPON_USER_STATUS_USABLE).or().lt(CouponUser::getMoney, money));
|
||||
lqw.and(w -> w.gt(CouponUser::getStatus, CouponConstants.STORE_COUPON_USER_STATUS_USABLE).or().gt(CouponUser::getMoney, money));
|
||||
//lqw.gt(CouponUser::getStatus, CouponConstants.STORE_COUPON_USER_STATUS_USABLE);
|
||||
lqw.last(StrUtil.format(" order by case `status` when {} then {} when {} then {} when {} then {} end", 0, 1, 1, 2, 2, 3));
|
||||
}
|
||||
|
||||
@@ -244,6 +244,7 @@ public class ReturnCommissionPlatformInformationJoinUserServiceImpl extends Serv
|
||||
response.setIdCard(v.getIdCard());
|
||||
response.setPhone(v.getPhone());
|
||||
response.setPlatformName(Optional.ofNullable(mapByplatformIds.get(v.getPlatformId())).map(ReturnCommissionPlatformInformation::getName).orElse(""));
|
||||
response.setPlatformName(Optional.ofNullable(mapByplatformIds.get(v.getPlatformId())).map(ReturnCommissionPlatformInformation::getAbbreviation).orElse(""));
|
||||
User user = uidMapList.get(v.getUid());
|
||||
if (ObjectUtil.isNotNull(user)) {
|
||||
response.setDriverKey(Convert.toStr(user.getUserSn()));
|
||||
@@ -894,7 +895,8 @@ public class ReturnCommissionPlatformInformationJoinUserServiceImpl extends Serv
|
||||
JoinExportResponse resp = new JoinExportResponse();
|
||||
BeanUtils.copyProperties(v, resp);
|
||||
resp.setUserSn(Optional.ofNullable(uidMapList.get(v.getUid())).map(User::getUserSn).orElse(null));
|
||||
resp.setPlatformName(Optional.ofNullable(platform).map(ReturnCommissionPlatformInformation::getAbbreviation).orElse(""));
|
||||
resp.setPlatformName(Optional.ofNullable(platform).map(ReturnCommissionPlatformInformation::getName).orElse(""));
|
||||
resp.setPlatformAbbreviation(Optional.ofNullable(platform).map(ReturnCommissionPlatformInformation::getAbbreviation).orElse(""));
|
||||
resp.setProvince(Optional.ofNullable(platform).map(ReturnCommissionPlatformInformation::getProvince).orElse(""));
|
||||
resp.setCity(Optional.ofNullable(platform).map(ReturnCommissionPlatformInformation::getCity).orElse(""));
|
||||
return resp;
|
||||
|
||||
Reference in New Issue
Block a user