diff --git a/doc/设计文档/数据库设计/mes-wm.sql b/doc/设计文档/数据库设计/mes-wm.sql index 8cdf476..6416b5f 100644 --- a/doc/设计文档/数据库设计/mes-wm.sql +++ b/doc/设计文档/数据库设计/mes-wm.sql @@ -391,3 +391,34 @@ create table wm_issue_line ( + + + +-- ---------------------------- +-- 12、条码清单表 +-- ---------------------------- +drop table if exists wm_barcode; +create table wm_barcode ( + barcode_id bigint(20) not null auto_increment comment '条码ID', + barcode_formart varchar(64) not null comment '条码格式', + barcode_type varchar(64) not null comment '条码类型', + barcode_content varchar(255) not null comment '产品物料ID', + url varchar(255) comment '条码地址', + enable_flag char(1) default 'Y' 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 (barcode_id) +) engine=innodb auto_increment=200 comment = '条码清单表'; + + + + + + diff --git a/doc/设计文档/数据库设计/数据库设计.xlsx b/doc/设计文档/数据库设计/数据库设计.xlsx index c470160..2186856 100644 Binary files a/doc/设计文档/数据库设计/数据库设计.xlsx and b/doc/设计文档/数据库设计/数据库设计.xlsx differ diff --git a/ktg-mes/src/main/resources/mapper/wm/WmBarcodeMapper.xml b/ktg-mes/src/main/resources/mapper/wm/WmBarcodeMapper.xml new file mode 100644 index 0000000..e64c747 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/wm/WmBarcodeMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + select barcode_id, barcode_formart, barcode_type, barcode_content, url, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_barcode + + + + + + + + insert into wm_barcode + + barcode_formart, + barcode_type, + barcode_content, + url, + enable_flag, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{barcodeFormart}, + #{barcodeType}, + #{barcodeContent}, + #{url}, + #{enableFlag}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update wm_barcode + + barcode_formart = #{barcodeFormart}, + barcode_type = #{barcodeType}, + barcode_content = #{barcodeContent}, + url = #{url}, + enable_flag = #{enableFlag}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where barcode_id = #{barcodeId} + + + + delete from wm_barcode where barcode_id = #{barcodeId} + + + + delete from wm_barcode where barcode_id in + + #{barcodeId} + + + \ No newline at end of file