Compare commits
2 Commits
5af47b43f1
...
030f6fcfea
| Author | SHA1 | Date |
|---|---|---|
|
|
030f6fcfea | |
|
|
59dd5eaf27 |
|
|
@ -98,6 +98,47 @@ public class OrderExpenseItemsEntity extends BaseEntity {
|
||||||
* },Wu-->无、ZhiDing-->指定、SuoYou-->所有
|
* },Wu-->无、ZhiDing-->指定、SuoYou-->所有
|
||||||
*/
|
*/
|
||||||
private String goodsScope;
|
private String goodsScope;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付状态,MianFei-->免费、WeiZhiFu-->未支付、YiZhiFu-->已支付、YiTuiKuan-->已退款
|
||||||
|
*/
|
||||||
|
private String paymentStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付时间
|
||||||
|
*/
|
||||||
|
private BigDecimal payTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退款时间
|
||||||
|
*/
|
||||||
|
private BigDecimal refundTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总金额;单位:元
|
||||||
|
*/
|
||||||
|
private BigDecimal totalMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠金额;单位:元,有正负
|
||||||
|
*/
|
||||||
|
private BigDecimal discountMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手动修正金额;单位:元,有正负
|
||||||
|
*/
|
||||||
|
private BigDecimal reviseMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算金额;单位:元
|
||||||
|
*/
|
||||||
|
private BigDecimal settleMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付
|
||||||
|
*/
|
||||||
|
private String settlementWay;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,12 @@ import lombok.Setter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运输信息
|
* 运输信息
|
||||||
|
*
|
||||||
* @author ljw
|
* @author ljw
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
|
|
@ -179,6 +181,47 @@ public class OrderTransEntity extends BaseEntity {
|
||||||
* 出场时间
|
* 出场时间
|
||||||
*/
|
*/
|
||||||
private LocalDateTime outTime;
|
private LocalDateTime outTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付状态,MianFei-->免费、WeiZhiFu-->未支付、YiZhiFu-->已支付、YiTuiKuan-->已退款
|
||||||
|
*/
|
||||||
|
private String paymentStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付时间
|
||||||
|
*/
|
||||||
|
private BigDecimal payTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退款时间
|
||||||
|
*/
|
||||||
|
private BigDecimal refundTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总金额;单位:元
|
||||||
|
*/
|
||||||
|
private BigDecimal totalMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠金额;单位:元,有正负
|
||||||
|
*/
|
||||||
|
private BigDecimal discountMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手动修正金额;单位:元,有正负
|
||||||
|
*/
|
||||||
|
private BigDecimal reviseMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算金额;单位:元
|
||||||
|
*/
|
||||||
|
private BigDecimal settleMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付
|
||||||
|
*/
|
||||||
|
private String settlementWay;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.njzscloud.dispose.cst.truck.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.njzscloud.common.core.ex.Exceptions;
|
||||||
import com.njzscloud.common.mp.support.PageParam;
|
import com.njzscloud.common.mp.support.PageParam;
|
||||||
import com.njzscloud.common.mp.support.PageResult;
|
import com.njzscloud.common.mp.support.PageResult;
|
||||||
import com.njzscloud.common.security.util.SecurityUtil;
|
import com.njzscloud.common.security.util.SecurityUtil;
|
||||||
|
|
@ -50,7 +51,7 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
|
||||||
// 传参customerId与旧数据customerId一致,说明是修改自己名下的车辆,允许修改
|
// 传参customerId与旧数据customerId一致,说明是修改自己名下的车辆,允许修改
|
||||||
this.updateById(truckEntity);
|
this.updateById(truckEntity);
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("无修改权限");
|
throw Exceptions.clierr("无修改权限");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.updateById(truckEntity);
|
this.updateById(truckEntity);
|
||||||
|
|
@ -65,12 +66,12 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
|
||||||
Long customerId = userDetail.getCurrentCustomerId();
|
Long customerId = userDetail.getCurrentCustomerId();
|
||||||
// id和customerId必传
|
// id和customerId必传
|
||||||
if (manager == null) {
|
if (manager == null) {
|
||||||
throw new RuntimeException("manager必传");
|
throw Exceptions.clierr("manager必传");
|
||||||
}
|
}
|
||||||
// 只能删除自己名下车辆
|
// 只能删除自己名下车辆
|
||||||
List<TruckEntity> trucks = this.listByIds(ids);
|
List<TruckEntity> trucks = this.listByIds(ids);
|
||||||
if (!trucks.stream().allMatch(truck -> truck.getCustomerId().equals(customerId))) {
|
if (!trucks.stream().allMatch(truck -> truck.getCustomerId().equals(customerId))) {
|
||||||
throw new RuntimeException("无删除权限");
|
throw Exceptions.clierr("无删除权限");
|
||||||
}
|
}
|
||||||
if (!manager) {
|
if (!manager) {
|
||||||
// 非管理员直接删除即可
|
// 非管理员直接删除即可
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue