库存盘点相关代码

This commit is contained in:
yinjinlu-pc\尹金路 2023-08-22 20:22:03 +08:00
parent d09046142a
commit 38c38ec849
3 changed files with 46 additions and 0 deletions

View File

@ -155,6 +155,7 @@ create table pro_route_process (
default_suf_time int(11) default 0 comment '等待时间',
color_code char(7) default '#00AEF3' comment '甘特图显示颜色',
key_flag varchar(64) default 'N' comment '关键工序',
is_check char(1) default 'N' comment '是否检验',
remark varchar(500) default '' comment '备注',
attr1 varchar(64) default null comment '预留字段1',
attr2 varchar(255) default null comment '预留字段2',
@ -239,6 +240,8 @@ create table pro_task (
workstation_id bigint(20) not null comment '工作站ID',
workstation_code varchar(64) not null comment '工作站编号',
workstation_name varchar(255) not null comment '工作站名称',
route_id bigint(20) not null comment '工艺ID',
route_code varchar(64) comment '工艺编号',
process_id bigint(20) not null comment '工序ID',
process_code varchar(64) comment '工序编码',
process_name varchar(255) comment '工序名称',
@ -289,6 +292,8 @@ create table pro_feedback (
workorder_id bigint(20) not null comment '生产工单ID',
workorder_code varchar(64) comment '生产工单编号',
workorder_name varchar(255) comment '生产工单名称',
route_id bigint(20) not null comment '工艺流程ID',
route_code varchar(64) comment '工艺流程编号',
process_id bigint(20) not null comment '工序ID',
process_code varchar(64) comment '工序编码',
process_name varchar(255) comment '工序名称',

View File

@ -1184,3 +1184,32 @@ create table wm_stock_taking_line (
update_time datetime comment '更新时间',
primary key (line_id)
) engine=innodb auto_increment=200 comment = '库存盘点明细表';
-- ----------------------------
-- 26、库存盘点结果表
-- ----------------------------
drop table if exists wm_stock_taking_result;
create table wm_stock_taking_result (
result_id bigint(20) not null auto_increment comment '结果ID',
taking_id bigint(20) comment '盘点单ID',
item_id bigint(20) not null comment '产品物料ID',
item_code varchar(64) comment '产品物料编码',
item_name varchar(255) comment '产品物料名称',
specification varchar(500) comment '规格型号',
unit_of_measure varchar(64) comment '单位',
unit_name varchar(64) comment '单位名称',
quantity int(11) not null default 1 comment '数量',
taking_quantity int(11) comment '盘点数量',
taking_status varchar(64) not null default 'LOSS' comment '盘点状态',
remark varchar(500) default '' comment '备注',
attr1 varchar(64) default null comment '预留字段1',
attr2 varchar(255) default null comment '预留字段2',
attr3 int(11) default 0 comment '预留字段3',
attr4 int(11) default 0 comment '预留字段4',
create_by varchar(64) default '' comment '创建者',
create_time datetime comment '创建时间',
update_by varchar(64) default '' comment '更新者',
update_time datetime comment '更新时间',
primary key (result_id)
) engine=innodb auto_increment=200 comment = '库存盘点结果表';

View File

@ -233,4 +233,16 @@ public class UserConstants
public static final String MESSAGE_STATUS_READ = "READ";//已读
public static final String MESSAGE_STATUS_PROCEED = "PROCEED";//已处理
/**
* 库存盘点方式
*/
public static final String WM_STOCK_TAKING_TYPE_BLIND = "BLIND"; //盲盘
public static final String WM_STOCK_TAKING_TYPE_OPEN = "OPEN"; //明盘
/**
* 库存盘点结果
*/
public static final String WM_STOCK_TAKING_STATUS_LOSS = "LOSS";// 盘亏
public static final String WM_STOCK_TAKING_STATUS_PROFIT = "PROFIT"; //盘盈
public static final String WM_STOCK_TAKING_STATUS_NORMAL = "NORMAL"; //正常
}