Compare commits

..

No commits in common. "030f6fcfeadae0cd90b535445081f7fea74edeca" and "5af47b43f19c06cb2044e7f33434866cf2a0db8f" have entirely different histories.

3 changed files with 3 additions and 88 deletions

View File

@ -98,47 +98,6 @@ public class OrderExpenseItemsEntity extends BaseEntity {
* }Wu-->ZhiDing-->SuoYou-->
*/
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;
}

View File

@ -7,12 +7,10 @@ import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
*
*
* @author ljw
*/
@Getter
@ -181,47 +179,6 @@ public class OrderTransEntity extends BaseEntity {
*
*/
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;
}

View File

@ -2,7 +2,6 @@ package com.njzscloud.dispose.cst.truck.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
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.PageResult;
import com.njzscloud.common.security.util.SecurityUtil;
@ -51,7 +50,7 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
// 传参customerId与旧数据customerId一致说明是修改自己名下的车辆允许修改
this.updateById(truckEntity);
} else {
throw Exceptions.clierr("无修改权限");
throw new RuntimeException("无修改权限");
}
} else {
this.updateById(truckEntity);
@ -66,12 +65,12 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
Long customerId = userDetail.getCurrentCustomerId();
// id和customerId必传
if (manager == null) {
throw Exceptions.clierr("manager必传");
throw new RuntimeException("manager必传");
}
// 只能删除自己名下车辆
List<TruckEntity> trucks = this.listByIds(ids);
if (!trucks.stream().allMatch(truck -> truck.getCustomerId().equals(customerId))) {
throw Exceptions.clierr("无删除权限");
throw new RuntimeException("无删除权限");
}
if (!manager) {
// 非管理员直接删除即可