Compare commits

...

2 Commits

Author SHA1 Message Date
ljw 030f6fcfea Merge branch 'master' of https://git.njzscloud.com/lzq/njzscloud-dispose 2025-12-20 11:59:37 +08:00
ljw 59dd5eaf27 1 2025-12-20 11:59:29 +08:00
3 changed files with 88 additions and 3 deletions

View File

@ -98,6 +98,47 @@ 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,10 +7,12 @@ import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
*
*
* @author ljw
*/
@Getter
@ -179,6 +181,47 @@ 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,6 +2,7 @@ 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;
@ -50,7 +51,7 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
// 传参customerId与旧数据customerId一致说明是修改自己名下的车辆允许修改
this.updateById(truckEntity);
} else {
throw new RuntimeException("无修改权限");
throw Exceptions.clierr("无修改权限");
}
} else {
this.updateById(truckEntity);
@ -65,12 +66,12 @@ public class TruckServiceImpl extends ServiceImpl<TruckMapper, TruckEntity> impl
Long customerId = userDetail.getCurrentCustomerId();
// id和customerId必传
if (manager == null) {
throw new RuntimeException("manager必传");
throw Exceptions.clierr("manager必传");
}
// 只能删除自己名下车辆
List<TruckEntity> trucks = this.listByIds(ids);
if (!trucks.stream().allMatch(truck -> truck.getCustomerId().equals(customerId))) {
throw new RuntimeException("无删除权限");
throw Exceptions.clierr("无删除权限");
}
if (!manager) {
// 非管理员直接删除即可