耗材报损
This commit is contained in:
@@ -105,6 +105,10 @@ public class ConsStockFlowDTO implements Serializable {
|
||||
* 商品订单id
|
||||
*/
|
||||
private Long orderId;
|
||||
/**
|
||||
* 相关图片urls,json数组
|
||||
*/
|
||||
private String imgUrls;
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ConsStockFlow implements Serializable {
|
||||
*/
|
||||
private String inOutType;
|
||||
/**
|
||||
* 出入库名目 manual-in:手动入库 manual-out:手动出库 win-in:盘盈入库 loss-out:盘亏出库 order-in:订单退款入库 order-out:订单消费出库
|
||||
* 出入库名目 manual-in:手动入库 manual-out:手动出库 win-in:盘盈入库 loss-out:盘亏出库 order-in:订单退款入库 order-out:订单消费出库 damage-out:损耗出库
|
||||
*/
|
||||
private String inOutItem;
|
||||
/**
|
||||
@@ -110,6 +110,10 @@ public class ConsStockFlow implements Serializable {
|
||||
* 商品订单id
|
||||
*/
|
||||
private Long orderId;
|
||||
/**
|
||||
* 相关图片urls,json数组
|
||||
*/
|
||||
private String imgUrls;
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,12 @@ public enum InOutItemEnum {
|
||||
/**
|
||||
* 订单消费出库
|
||||
*/
|
||||
ORDER_OUT("order-out");
|
||||
ORDER_OUT("order-out"),
|
||||
|
||||
/**
|
||||
* 损耗出库
|
||||
*/
|
||||
DAMAGE_OUT("damage-out");
|
||||
|
||||
private String value;
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.czg.product.param;
|
||||
|
||||
import com.czg.validator.group.DefaultGroup;
|
||||
import jakarta.validation.constraints.DecimalMin;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 耗材报损入参
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2025-03-06 18:35
|
||||
*/
|
||||
@Data
|
||||
public class ConsReportDamageParam implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 耗材id
|
||||
*/
|
||||
@NotNull(message = "耗材id不能为空", groups = DefaultGroup.class)
|
||||
private Long conId;
|
||||
|
||||
/**
|
||||
* 报损数量
|
||||
*/
|
||||
@NotNull(message = "报损数量不能为空", groups = DefaultGroup.class)
|
||||
@DecimalMin(value = "0", message = "报损数量不能小于0")
|
||||
private BigDecimal number;
|
||||
|
||||
/**
|
||||
* 报损照片
|
||||
*/
|
||||
private List<String> imgUrls;
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.czg.product.service;
|
||||
import com.czg.product.entity.ConsStockFlow;
|
||||
import com.czg.product.param.ConsCheckStockParam;
|
||||
import com.czg.product.param.ConsInOutStockHeadParam;
|
||||
import com.czg.product.param.ConsReportDamageParam;
|
||||
import com.czg.product.vo.ConsCheckStockRecordVo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
@@ -45,5 +46,12 @@ public interface ConsStockFlowService extends IService<ConsStockFlow> {
|
||||
*/
|
||||
List<ConsCheckStockRecordVo> getCheckStockRecordList(Long conId);
|
||||
|
||||
/**
|
||||
* 耗材报损
|
||||
*
|
||||
* @param param 耗材报损入参
|
||||
*/
|
||||
void reportDamage(ConsReportDamageParam param);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user