Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/WmsStockIoDetailBo.java
Joshi 5ed6436713 refactor: 移除 WmsStockIoDetailBo 类中 unit 字段的NotBlank注解
移除了 WmsStockIoDetailBo 类中 unit 字段的 @NotBlank 注解,该注解原用于在添加和编辑操作时验证单位字段不能为空。此次修改可能会影响相关业务逻辑的校验逻辑。
2025-08-23 17:07:30 +08:00

86 lines
1.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.bo;
import com.klp.common.core.domain.BaseEntity;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.math.BigDecimal;
/**
* 出入库单明细业务对象 wms_stock_io_detail
*
* @author Joshi
* @date 2025-07-18
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsStockIoDetailBo extends BaseEntity {
/**
* 明细ID
*/
private Long detailId;
/**
* 出入库单ID
*/
@NotNull(message = "出入库单ID不能为空", groups = { AddGroup.class, EditGroup.class })
private Long stockIoId;
/**
* 库区/库位ID
*/
@NotNull(message = "库区/库位ID不能为空", groups = { AddGroup.class, EditGroup.class })
private Long warehouseId;
/**
* 物品类型raw_material/product
*/
@NotBlank(message = "物品类型raw_material/product不能为空", groups = { AddGroup.class, EditGroup.class })
private String itemType;
/**
* 物品ID
*/
@NotNull(message = "物品ID不能为空", groups = { AddGroup.class, EditGroup.class })
private Long itemId;
/**
* 数量
*/
@NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
private BigDecimal quantity;
/**
* 单位
*/
private String unit;
/**
* 批次号
*/
@NotBlank(message = "批次号不能为空", groups = { AddGroup.class, EditGroup.class })
private String batchNo;
/**
* 备注
*/
private String remark;
/**
* 源库位ID移库时使用
*/
private Long fromWarehouseId;
/**
* 记录类型0详情1扫码枪记录
*/
private Integer recordType;
}