- 新增 GearStock、GearStockBo、GearStockIo、GearStockIoBo、GearStockIoDetail、GearStockIoDetailBo 等实体类 - 新增 GearStockController、GearStockIoController、GearStockIoDetailController 等控制器 - 新增 GearStockIoDetailMapper 及其 XML 文件 - 优化 GearAttendanceSummaryServiceImpl 中的代码格式
65 lines
1.3 KiB
Java
65 lines
1.3 KiB
Java
package com.gear.oa.domain;
|
||
|
||
import com.baomidou.mybatisplus.annotation.TableId;
|
||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
import com.gear.common.core.domain.BaseEntity;
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
|
||
import java.math.BigDecimal;
|
||
|
||
/**
|
||
* 库存:原材料/产品与库区/库位的存放关系对象 gear_stock
|
||
*
|
||
* @author Joshi
|
||
* @date 2025-07-18
|
||
*/
|
||
@Data
|
||
@EqualsAndHashCode(callSuper = true)
|
||
@TableName("gear_stock")
|
||
public class GearStock extends BaseEntity {
|
||
|
||
private static final long serialVersionUID=1L;
|
||
|
||
/**
|
||
* 主键ID
|
||
*/
|
||
@TableId(value = "stock_id")
|
||
private Long stockId;
|
||
/**
|
||
* 仓库/库区/库位ID
|
||
*/
|
||
private Long warehouseId;
|
||
/**
|
||
* 物品类型(raw_material/product)
|
||
*/
|
||
private String itemType;
|
||
/**
|
||
* 物品ID(指向原材料或产品主键)
|
||
*/
|
||
private Long itemId;
|
||
/**
|
||
* 库存数量
|
||
*/
|
||
private BigDecimal quantity;
|
||
/**
|
||
* 单位
|
||
*/
|
||
private String unit;
|
||
/**
|
||
* 批次号(可选)
|
||
*/
|
||
private String batchNo;
|
||
/**
|
||
* 备注
|
||
*/
|
||
private String remark;
|
||
/**
|
||
* 删除标志(0=正常,1=已删除)
|
||
*/
|
||
@TableLogic
|
||
private Integer delFlag;
|
||
|
||
}
|