
360 changed files with 21152 additions and 0 deletions
@ -0,0 +1,326 @@ |
|||
|
|||
|
|||
DROP TABLE IF EXISTS `base_goods_spu`; |
|||
CREATE TABLE `base_goods_spu` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品代码', |
|||
barCode varchar(64) DEFAULT NULL COMMENT '条形码', |
|||
goodsName varchar(200) DEFAULT NULL COMMENT '商品名称', |
|||
goodsPY varchar(64) DEFAULT NULL COMMENT '拼音缩写', |
|||
goodsShortName varchar(64) DEFAULT NULL COMMENT '商品简称', |
|||
externalCode varchar(64) DEFAULT NULL COMMENT '外部编码', |
|||
factoryCode varchar(64) DEFAULT NULL COMMENT '厂家货号', |
|||
typeSid varchar(64) DEFAULT NULL COMMENT '分类sid', |
|||
isListed int DEFAULT NULL COMMENT '是否上架', |
|||
brandSid varchar(64) DEFAULT NULL COMMENT '品牌sid', |
|||
manufacturerSid varchar(64) DEFAULT NULL COMMENT '厂家sid', |
|||
goodsUnitSid varchar(64) DEFAULT NULL COMMENT '商品单位sid', |
|||
goodsModelSid varchar(64) DEFAULT NULL COMMENT '供应商sid', |
|||
taxRate decimal(2,2) DEFAULT NULL COMMENT '税率', |
|||
shelfLife int DEFAULT NULL COMMENT '保质期天', |
|||
nationalStandardCode varchar(64) DEFAULT NULL COMMENT '国标码', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品spu'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_spu_detail`; |
|||
CREATE TABLE `base_goods_spu_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodSpuSid varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
goodsExplain text DEFAULT NULL COMMENT '商品详细说明', |
|||
goodsDescription varchar(64) DEFAULT NULL COMMENT '商品描述', |
|||
length decimal(10,2) DEFAULT NULL COMMENT '长度cm', |
|||
width decimal(10,2) DEFAULT NULL COMMENT '宽度cm', |
|||
height decimal(10,2) DEFAULT NULL COMMENT '高度cm', |
|||
volume decimal(10,2) DEFAULT NULL COMMENT '体积cm3', |
|||
picUrl varchar(500) DEFAULT NULL COMMENT '图片', |
|||
producer varchar(200) DEFAULT NULL COMMENT '产地', |
|||
costPrice decimal(10,2) DEFAULT NULL COMMENT '成本价', |
|||
tagPrice decimal(10,2) DEFAULT NULL COMMENT '吊牌价', |
|||
salesPrice decimal(10,2) DEFAULT NULL COMMENT '销售单价', |
|||
standardPurchasePrice decimal(10,2) DEFAULT NULL COMMENT '标准进价', |
|||
agencyPrice decimal(10,2) DEFAULT NULL COMMENT '代理价', |
|||
discount decimal(10,2) DEFAULT NULL COMMENT '折扣', |
|||
minimumSalesPrice decimal(10,2) DEFAULT NULL COMMENT '最低零售价', |
|||
safetyStockDays int DEFAULT NULL COMMENT '安全库存天数', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品详情'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_sku`; |
|||
CREATE TABLE `base_goods_sku` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodsSkuCode varchar(64) DEFAULT NULL COMMENT '商品Sku代码', |
|||
goodsSkuName varchar(200) DEFAULT NULL COMMENT '商品Sku名称', |
|||
goodsSpuSid varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
externalCode varchar(64) DEFAULT NULL COMMENT '外部编码', |
|||
length decimal(10,2) DEFAULT NULL COMMENT '长度cm', |
|||
width decimal(10,2) DEFAULT NULL COMMENT '宽度cm', |
|||
height decimal(10,2) DEFAULT NULL COMMENT '高度cm', |
|||
volume decimal(10,2) DEFAULT NULL COMMENT '体积cm3', |
|||
colourSid varchar(64) DEFAULT NULL COMMENT '颜色sid', |
|||
sizeSid varchar(64) DEFAULT NULL COMMENT '尺码sid', |
|||
grossWeight decimal(10,2) DEFAULT NULL COMMENT '毛重g', |
|||
netWeight decimal(10,2) DEFAULT NULL COMMENT '净重g', |
|||
finalPurchasePrice decimal(10,2) DEFAULT NULL COMMENT '最后采购价', |
|||
safetyStockDays int DEFAULT NULL COMMENT '安全库存天数', |
|||
isOriginalFactory int DEFAULT NULL COMMENT '是否原厂', |
|||
isInventoryAlert int DEFAULT NULL COMMENT '是否库存警戒', |
|||
InventoryAlertUpperLimit int DEFAULT NULL COMMENT '库存警戒上线', |
|||
InventoryAlertLowerLimit int DEFAULT NULL COMMENT '库存警戒下线', |
|||
costPrice decimal(10,2) DEFAULT NULL COMMENT '成本价', |
|||
tagPrice decimal(10,2) DEFAULT NULL COMMENT '吊牌价', |
|||
salesPrice decimal(10,2) DEFAULT NULL COMMENT '销售单价', |
|||
standardPurchasePrice decimal(10,2) DEFAULT NULL COMMENT '标准进价', |
|||
agencyPrice decimal(10,2) DEFAULT NULL COMMENT '代理价', |
|||
discount decimal(10,2) DEFAULT NULL COMMENT '折扣', |
|||
minimumSalesPrice decimal(10,2) DEFAULT NULL COMMENT '最低零售价', |
|||
isLockingSalesPrice int DEFAULT NULL COMMENT '是否锁定销售价', |
|||
isIntegralExchange int DEFAULT NULL COMMENT '是否可以积分兑换', |
|||
integralAmount int DEFAULT NULL COMMENT '积分数量', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
picUrl varchar(500) DEFAULT NULL COMMENT '图片', |
|||
model varchar(200) DEFAULT NULL COMMENT '型号', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品sku'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_sku_extend`; |
|||
CREATE TABLE `base_goods_sku_extend` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodsSkuCode varchar(64) DEFAULT NULL COMMENT '商品Sku代码', |
|||
component varchar(64) DEFAULT NULL COMMENT '成分', |
|||
pattern varchar(64) DEFAULT NULL COMMENT '花纹', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品sku扩展表'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_type`; |
|||
CREATE TABLE `base_goods_type` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodsTypeName varchar(64) DEFAULT NULL COMMENT '商品类别名称', |
|||
goodsTypeCode varchar(64) DEFAULT NULL COMMENT '类别编码', |
|||
percentageRate int DEFAULT NULL COMMENT '提成比例', |
|||
percentageAmount double(10,2) DEFAULT NULL COMMENT '提成金额', |
|||
pSid varchar(64) DEFAULT NULL COMMENT '父级sid', |
|||
isGoodsID int DEFAULT NULL COMMENT '是否一品一码(goodID),0否,1是', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品类别'; |
|||
|
|||
|
|||
DROP TABLE IF EXISTS `base_brand_info`; |
|||
CREATE TABLE `base_brand_info` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
brandCode varchar(64) DEFAULT NULL COMMENT '品牌代码', |
|||
brandName varchar(64) DEFAULT NULL COMMENT '品牌名称', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品品牌'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_unit`; |
|||
CREATE TABLE `base_goods_unit` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
unitName varchar(64) DEFAULT NULL COMMENT '单位名称', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品单位'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_size`; |
|||
CREATE TABLE `base_goods_size` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
sizeName varchar(64) DEFAULT NULL COMMENT '尺寸名称', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品尺寸'; |
|||
|
|||
DROP TABLE IF EXISTS `base_goods_color`; |
|||
CREATE TABLE `base_goods_color` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
colorName varchar(64) DEFAULT NULL COMMENT '颜色名称', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品颜色'; |
|||
|
|||
|
|||
DROP TABLE IF EXISTS `base_manufacturer`; |
|||
CREATE TABLE `base_manufacturer` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
manufacturerCode varchar(64) DEFAULT NULL COMMENT '厂家名称', |
|||
manufacturerName varchar(64) DEFAULT NULL COMMENT '厂家编码', |
|||
address varchar(64) DEFAULT NULL COMMENT '地址', |
|||
telephone varchar(64) DEFAULT NULL COMMENT '电话', |
|||
contacts varchar(64) DEFAULT NULL COMMENT '联系人', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='厂家'; |
|||
|
|||
DROP TABLE IF EXISTS `base_markuprate_unified`; |
|||
CREATE TABLE `base_markuprate_unified` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
level varchar(64) DEFAULT NULL COMMENT '级别名称(客户)', |
|||
price double(10,2) DEFAULT NULL COMMENT '对应销售价', |
|||
markuprate int DEFAULT NULL COMMENT '加价率', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='统一加价率'; |
|||
|
|||
DROP TABLE IF EXISTS `base_range_markuprate`; |
|||
CREATE TABLE `base_range_markuprate` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
range_start int DEFAULT NULL COMMENT '区间起始', |
|||
range_end int DEFAULT NULL COMMENT '区间截止', |
|||
markupRate1 int DEFAULT NULL COMMENT '加价率1', |
|||
markupRate2 int DEFAULT NULL COMMENT '加价率2', |
|||
markupRate3 int DEFAULT NULL COMMENT '加价率3', |
|||
markupRate4 int DEFAULT NULL COMMENT '加价率4', |
|||
markupRate5 int DEFAULT NULL COMMENT '加价率5', |
|||
sortNo int DEFAULT NULL COMMENT '排序 ', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='区间加价率'; |
|||
|
@ -0,0 +1,213 @@ |
|||
|
|||
DROP TABLE IF EXISTS `wms_purchase_bill`; |
|||
CREATE TABLE `wms_purchase_bill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值 0正常,1作废', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
sourceBillSid varchar(64) DEFAULT NULL COMMENT '来源单sid(工单sid)', |
|||
sourceBillNo varchar(64) DEFAULT NULL COMMENT '来源单编号', |
|||
billNo varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
createDate Varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
purchaseType varchar(64) DEFAULT NULL COMMENT '采购类型(厂家采购、外采)', |
|||
supplierSid varchar(64) DEFAULT NULL COMMENT '供应商sid', |
|||
supplierName varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
supplierPhone varchar(64) DEFAULT NULL COMMENT '供应商联系电话', |
|||
billType varchar(64) DEFAULT NULL COMMENT '票据类型(不含税、增值税、普通税、已含增值税)', |
|||
markupType varchar(64) DEFAULT NULL COMMENT '加价方式(统一加价率、区间加价率、仓库加价率)', |
|||
priceStrategy varchar(64) DEFAULT NULL COMMENT '进价不同时的价格策略(加权平均、分别计价)', |
|||
isInvoicing int DEFAULT NULL COMMENT '是否需要开发票(是1,否0)', |
|||
invoiceCode varchar(64) DEFAULT NULL COMMENT '发票号码', |
|||
tempMarkupRate int DEFAULT NULL COMMENT '临时加价率', |
|||
purchaserSid varchar(64) DEFAULT NULL COMMENT '采购员sid(单选)', |
|||
purchaserName varchar(64) DEFAULT NULL COMMENT '', |
|||
storekeeperSid varchar(64) DEFAULT NULL COMMENT '库管员sid(单选)', |
|||
storekeeperName varchar(64) DEFAULT NULL COMMENT '', |
|||
errorAmount decimal(10,2) DEFAULT NULL COMMENT '误差调整金额', |
|||
freight decimal(10,2) DEFAULT NULL COMMENT '运费', |
|||
discountAmount decimal(10,2) DEFAULT NULL COMMENT '优惠金额', |
|||
payableAmount decimal(10,2) DEFAULT NULL COMMENT '应付金额(=采购金额+运费-优惠金额)', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='采购单'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_purchase_bill_detail`; |
|||
CREATE TABLE `wms_purchase_bill_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
specification varchar(64) DEFAULT NULL COMMENT '规格', |
|||
goodsModel varchar(64) DEFAULT NULL COMMENT '型号', |
|||
currentCount double(10,2) DEFAULT NULL COMMENT '当前库存数量', |
|||
unit varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
position varchar(64) DEFAULT NULL COMMENT '货位', |
|||
cost double(10,2) DEFAULT NULL COMMENT '单位成本(进货价)', |
|||
count double(10,2) DEFAULT NULL COMMENT '采购数量', |
|||
taxAmount double(10,2) DEFAULT NULL COMMENT '税额', |
|||
taxPrice double(10,2) DEFAULT NULL COMMENT '含税价', |
|||
amount double(10,2) DEFAULT NULL COMMENT '采购金额', |
|||
price1 double(10,2) DEFAULT NULL COMMENT '销售价1', |
|||
price2 double(10,2) DEFAULT NULL COMMENT '销售价2', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='采购单据明细'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_purchase_bill_settle`; |
|||
CREATE TABLE `wms_purchase_bill_settle` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '采购单sid', |
|||
payableAmount double(10,2) DEFAULT NULL COMMENT '应付金额', |
|||
prepaymentdeductAmount double(10,2) DEFAULT NULL COMMENT '预付款抵扣', |
|||
settleKey varchar(64) DEFAULT NULL COMMENT '结算方式key', |
|||
settleValue varchar(64) DEFAULT NULL COMMENT '结算方式value', |
|||
settleAmount double(10,2) DEFAULT NULL COMMENT '结算金额', |
|||
otherSettleKey varchar(64) DEFAULT NULL COMMENT '其他结算方式', |
|||
otherSettleValue varchar(64) DEFAULT NULL COMMENT '其他结算金额', |
|||
debts double(10,2) DEFAULT NULL COMMENT '欠款金额', |
|||
settleTime datetime DEFAULT NULL COMMENT '结算时间', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '结算人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '结算人姓名', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='采购单-结算'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_purchaseback_bill`; |
|||
CREATE TABLE `wms_purchaseback_bill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '0正常,1作废', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
sourceBillSid varchar(64) DEFAULT NULL COMMENT '来源单sid(采购单sid)', |
|||
sourceBillNo varchar(64) DEFAULT NULL COMMENT '来源单编号', |
|||
billNo varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
createDate varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
backErrorAmount double(10,2) DEFAULT NULL COMMENT '退误差调整金额', |
|||
backDiscountAmount double(10,2) DEFAULT NULL COMMENT '退优惠金额', |
|||
deductDebts double(10,2) DEFAULT NULL COMMENT '抵扣欠款', |
|||
deductBillNo varchar(64) DEFAULT NULL COMMENT '抵扣单号', |
|||
toPrepayment double(10,2) DEFAULT NULL COMMENT '转入预付款', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='采购退货单据'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_purchaseback_detail`; |
|||
CREATE TABLE `wms_purchaseback_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
goodsStockSid varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
specification varchar(64) DEFAULT NULL COMMENT '规格', |
|||
goodsModel varchar(64) DEFAULT NULL COMMENT '车型', |
|||
currentCount double(10,2) DEFAULT NULL COMMENT '退货后的库存数量', |
|||
unit varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
position varchar(64) DEFAULT NULL COMMENT '货位', |
|||
returnedCount double(10,2) DEFAULT NULL COMMENT '已退数量', |
|||
backCount double(10,2) DEFAULT NULL COMMENT '退货数量', |
|||
maxAmount double(10,2) DEFAULT NULL COMMENT '税额', |
|||
maxPrice double(10,2) DEFAULT NULL COMMENT '含税价', |
|||
backAmount double(10,2) DEFAULT NULL COMMENT '退货金额', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='采购退货单据明细'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_supplier`; |
|||
CREATE TABLE `wms_supplier` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
supplierName varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
supplierCode varchar(64) DEFAULT NULL COMMENT '供应商编码(拼音缩写)', |
|||
contacts varchar(64) DEFAULT NULL COMMENT '联系人', |
|||
mobile varchar(64) DEFAULT NULL COMMENT '联系手机号码', |
|||
contactAddress varchar(100) DEFAULT NULL COMMENT '联系地址', |
|||
taxpayerNo varchar(64) DEFAULT NULL COMMENT '税号', |
|||
bankName varchar(64) DEFAULT NULL COMMENT '开户行', |
|||
bankAccount varchar(64) DEFAULT NULL COMMENT '开户行账号', |
|||
Address varchar(100) DEFAULT NULL COMMENT '地址、电话', |
|||
billType varchar(64) DEFAULT NULL COMMENT '票据类型(不含税、增值税、普通税、已含增值税)', |
|||
sortNo int DEFAULT NULL COMMENT '排序号', |
|||
initDebts decimal(10,2) DEFAULT NULL COMMENT '期初欠款', |
|||
prepayment decimal(10,2) DEFAULT NULL COMMENT '预付款', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='供应商'; |
|||
|
|||
|
@ -0,0 +1,385 @@ |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory`; |
|||
CREATE TABLE `wms_inventory` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
goodsID varchar(64) DEFAULT NULL COMMENT '商品ID(唯一编码,入库时生成)', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
billSid varchar(64) DEFAULT NULL COMMENT '入库单sid', |
|||
billDetailSid varchar(64) DEFAULT NULL COMMENT '入库单明细sid', |
|||
price1 decimal(10,2) DEFAULT NULL COMMENT '销售价格1', |
|||
price2 decimal(10,2) DEFAULT NULL COMMENT '销售价格2', |
|||
price3 decimal(10,2) DEFAULT NULL COMMENT '销售价格3', |
|||
price4 decimal(10,2) DEFAULT NULL COMMENT '销售价格4', |
|||
price5 decimal(10,2) DEFAULT NULL COMMENT '销售价格5', |
|||
unit varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
count decimal(10,2) DEFAULT NULL COMMENT '库存数量', |
|||
minimumPrice decimal(10,2) DEFAULT NULL COMMENT '销售底价', |
|||
freePrice decimal(10,2) DEFAULT NULL COMMENT '三包价格', |
|||
firstMaintainPrice decimal(10,2) DEFAULT NULL COMMENT '首保价格', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
warehouseArea decimal(10,2) DEFAULT NULL COMMENT '货位', |
|||
isShowDiscount int DEFAULT NULL COMMENT '是否显示折扣标志', |
|||
firstInDate timestamp DEFAULT NULL COMMENT '首次入库日期-计算库龄的依据', |
|||
lockCount decimal(10,2) DEFAULT NULL COMMENT '锁定数量,计算字段,出库申请通过,但未实际出库', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='商品库存-台账'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_bill`; |
|||
CREATE TABLE `wms_inventory_bill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值0正常,1作废;申请-审批中-完成-作废', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
sourceBillSid varchar(64) DEFAULT NULL COMMENT '来源单sid', |
|||
billNo varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
billType varchar(64) DEFAULT NULL COMMENT '单据类型(入库、出库)', |
|||
createDate varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
busTypeKey varchar(64) DEFAULT NULL COMMENT '业务类型key(采购入库、维修出入库、销售出入库等)', |
|||
busTypeValue varchar(64) DEFAULT NULL COMMENT '业务类型value(采购入库、维修出入库、销售出入库等)', |
|||
warehouseManagerSid varchar(64) DEFAULT NULL COMMENT '库管操作人sid', |
|||
warehouseManager varchar(64) DEFAULT NULL COMMENT '库管操作人', |
|||
outTime timestamp DEFAULT NULL COMMENT '实际出库时间', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='出入库单据'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_bill_detail`; |
|||
CREATE TABLE `wms_inventory_bill_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
inventorySid varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
specification varchar(64) DEFAULT NULL COMMENT '规格', |
|||
goodsModel varchar(64) DEFAULT NULL COMMENT '型号', |
|||
currentCount decimal(10,2) DEFAULT NULL COMMENT '出入库后的库存量', |
|||
unit varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
warehouseArea varchar(64) DEFAULT NULL COMMENT '货位', |
|||
cost decimal(10,2) DEFAULT NULL COMMENT '单位成本(进货价)', |
|||
count decimal(10,2) DEFAULT NULL COMMENT '数量(出库为负)', |
|||
taxAmount decimal(10,2) DEFAULT NULL COMMENT '税额(出库为负)', |
|||
taxPrice decimal(10,2) DEFAULT NULL COMMENT '含税价(出库为负)', |
|||
amount decimal(10,2) DEFAULT NULL COMMENT '金额(出库为负)', |
|||
price1 decimal(10,2) DEFAULT NULL COMMENT '销售价1', |
|||
price2 decimal(10,2) DEFAULT NULL COMMENT '销售价2', |
|||
subjectSid varchar(64) DEFAULT NULL COMMENT '科目sid(出库时)', |
|||
subject varchar(64) DEFAULT NULL COMMENT '科目(出库时)', |
|||
operTime timestamp DEFAULT NULL COMMENT '操作时间', |
|||
operUserSid varchar(64) DEFAULT NULL COMMENT '操作人', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='单据明细'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_checkbill`; |
|||
CREATE TABLE `wms_inventory_checkbill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billNo varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
createDate varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
checkType varchar(64) DEFAULT NULL COMMENT '盘点类型', |
|||
checkState decimal(10,2) DEFAULT NULL COMMENT '盘点状态(盘点中1,盘点完成2)', |
|||
profitCount decimal(10,2) DEFAULT NULL COMMENT '盘盈数量', |
|||
profitAmount decimal(10,2) DEFAULT NULL COMMENT '盘盈金额', |
|||
lossCount decimal(10,2) DEFAULT NULL COMMENT '盘亏数量', |
|||
lossAmount decimal(10,2) DEFAULT NULL COMMENT '盈亏金额', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='库存盘点'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_checkbill_detail`; |
|||
CREATE TABLE `wms_inventory_checkbill_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值状态(0正常、2盘亏、1盘盈)', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '盘点单sid', |
|||
inventorySid varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
goodsModel varchar(64) DEFAULT NULL COMMENT '型号', |
|||
unit varchar(64) DEFAULT NULL COMMENT '单位', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库', |
|||
warehouseArea varchar(64) DEFAULT NULL COMMENT '货位', |
|||
taxPrice decimal(10,2) DEFAULT NULL COMMENT '含税价', |
|||
bookCount decimal(10,2) DEFAULT NULL COMMENT '账面数量', |
|||
realCount decimal(10,2) DEFAULT NULL COMMENT '实盘数量', |
|||
profitandlossNumber decimal(10,2) DEFAULT NULL COMMENT '盈亏数( |实盘数量-账面数量|)', |
|||
profitandlossAmount decimal(10,2) DEFAULT NULL COMMENT '盈亏金额(盈亏数*含税价)', |
|||
picUrl varchar(1000) DEFAULT NULL COMMENT '现场照片(多张中间用英文逗号分隔)', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='库存盘点-明细'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_allocatebill`; |
|||
CREATE TABLE `wms_inventory_allocatebill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值状态(未完成0、已完成1)', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billNo varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
createDate varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
outOrgSid varchar(64) DEFAULT NULL COMMENT '调出分公司sid', |
|||
inOrgSid varchar(64) DEFAULT NULL COMMENT '调入分公司sid', |
|||
count decimal(10,2) DEFAULT NULL COMMENT '调拨数量', |
|||
amount decimal(10,2) DEFAULT NULL COMMENT '调拨金额', |
|||
confirmSid varchar(64) DEFAULT NULL COMMENT '确认人sid', |
|||
confirmName varchar(64) DEFAULT NULL COMMENT '确认人姓名', |
|||
finishTime timestamp DEFAULT NULL COMMENT '完成时间', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='(调拨单)-调出方操作'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_allocatebill_detail`; |
|||
CREATE TABLE `wms_inventory_allocatebill_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '盘点单sid', |
|||
inventorySid varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
specification varchar(64) DEFAULT NULL COMMENT '规格', |
|||
goodsModel varchar(64) DEFAULT NULL COMMENT '车型', |
|||
unit varchar(64) DEFAULT NULL COMMENT '单位', |
|||
outWarehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
outWarehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
warehouseAreasid varchar(64) DEFAULT NULL COMMENT '货位sid', |
|||
warehouseArea varchar(64) DEFAULT NULL COMMENT '货位名称', |
|||
taxPrice decimal(10,2) DEFAULT NULL COMMENT '含税价', |
|||
stockCount decimal(10,2) DEFAULT NULL COMMENT '库存数量', |
|||
inWarehouseSid varchar(64) DEFAULT NULL COMMENT '调入仓库sid', |
|||
inWarehouseName varchar(64) DEFAULT NULL COMMENT '调入货位', |
|||
count decimal(10,2) DEFAULT NULL COMMENT '调拨数量', |
|||
amount decimal(10,2) DEFAULT NULL COMMENT '调拨金额(调拨数量*含税价)', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='(调拨单-明细)'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_settlebill`; |
|||
CREATE TABLE `wms_inventory_settlebill` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billNo varchar(64) DEFAULT NULL COMMENT '结算单编号', |
|||
createDate varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
createUserSid varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
createByName varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
settleState int DEFAULT NULL COMMENT '库存结算状态(1进行中 2已完成)', |
|||
settleType int DEFAULT NULL COMMENT '库存结算类型(1月结 2年结)', |
|||
settle_startTime timestamp DEFAULT NULL COMMENT '开始时间', |
|||
settle_endTime timestamp DEFAULT NULL COMMENT '结束时间', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='库存结算单'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_inventory_settlebill_detail`; |
|||
CREATE TABLE `wms_inventory_settlebill_detail` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
billSid varchar(64) DEFAULT NULL COMMENT '结算单sid', |
|||
settleType timestamp DEFAULT NULL COMMENT '库存结算类型(1月结 2年结)', |
|||
inventorySid varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
goodsSid varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
goodsCode varchar(64) DEFAULT NULL COMMENT '商品编码', |
|||
goodsName varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
warehouseCode varchar(64) DEFAULT NULL COMMENT '仓库编码', |
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
warehouseAreasid varchar(64) DEFAULT NULL COMMENT '货位sid', |
|||
warehouseAreaCode varchar(64) DEFAULT NULL COMMENT '货位编码', |
|||
warehouseAreaName varchar(64) DEFAULT NULL COMMENT '货位名称', |
|||
preBalance decimal(10,2) DEFAULT NULL COMMENT '上期结存', |
|||
currentBalance decimal(10,2) DEFAULT NULL COMMENT '本期结存', |
|||
currentEnter decimal(10,2) DEFAULT NULL COMMENT '本期入库', |
|||
currentOut decimal(10,2) DEFAULT NULL COMMENT '本期出库', |
|||
currentCheck decimal(10,2) DEFAULT NULL COMMENT '本期盘点', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='库存结算明细'; |
|||
|
|||
|
|||
|
|||
DROP TABLE IF EXISTS `base_warehouse`; |
|||
CREATE TABLE `base_warehouse` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
warehouseName varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
warehouseCode varchar(64) DEFAULT NULL COMMENT '仓库编码', |
|||
addr varchar(255) DEFAULT NULL COMMENT '具体地址', |
|||
manager varchar(64) DEFAULT NULL COMMENT '仓库管理员', |
|||
markupRate1 int DEFAULT NULL COMMENT '加价率1', |
|||
markupRate2 int DEFAULT NULL COMMENT '加价率2', |
|||
markupRate3 int DEFAULT NULL COMMENT '加价率3', |
|||
markupRate4 int DEFAULT NULL COMMENT '加价率4', |
|||
markupRate5 int DEFAULT NULL COMMENT '加价率5', |
|||
warehouseType int DEFAULT NULL COMMENT '仓库类型(0正常库、1旧件库等)', |
|||
sortNo int DEFAULT NULL COMMENT '排序', |
|||
useOrgSid varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
createOrgSid varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='仓库'; |
|||
|
|||
DROP TABLE IF EXISTS `base_warehouse_area`; |
|||
CREATE TABLE `base_warehouse_area` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
areaName varchar(64) DEFAULT NULL COMMENT '库位名称', |
|||
areanCode varchar(64) DEFAULT NULL COMMENT '库位编码', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
volume double(10,2) DEFAULT NULL COMMENT '库位容量', |
|||
unit varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='库区'; |
|||
|
|||
DROP TABLE IF EXISTS `base_warehouse_rack`; |
|||
CREATE TABLE `base_warehouse_rack` ( |
|||
`id` INT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` VARCHAR(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` INT(32) NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` INT(11) NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` INT(32) NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` INT(32) NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` VARCHAR(64) NULL DEFAULT NULL COMMENT '更新者', |
|||
|
|||
rackName varchar(64) DEFAULT NULL COMMENT '货架名称', |
|||
rackCode varchar(64) DEFAULT NULL COMMENT '货架编码', |
|||
warehouseSid varchar(64) DEFAULT NULL COMMENT '仓库sid ', |
|||
locationSid varchar(64) DEFAULT NULL COMMENT '库位sid ', |
|||
|
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB COMMENT='货架'; |
@ -0,0 +1,507 @@ |
|||
DROP TABLE IF EXISTS `wms_inventory`; |
|||
CREATE TABLE `wms_inventory` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '1正常、0作废,申请-审批中-完成-作废', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`batchNumber` varchar(64) DEFAULT NULL COMMENT '批次号', |
|||
`goodsID` varchar(64) DEFAULT NULL COMMENT '商品ID(唯一编码,入库时生成)', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`count` decimal(10, 0) DEFAULT NULL COMMENT '库存数量', |
|||
`allocateCount` decimal(10, 2) DEFAULT NULL COMMENT '分配量', |
|||
`pickCount` decimal(10, 2) DEFAULT NULL COMMENT '拣货量', |
|||
`freezeCount` decimal(10, 2) DEFAULT NULL COMMENT '冻结量', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位sid', |
|||
`warehouseRackCode` varchar(64) DEFAULT NULL COMMENT '库位编码', |
|||
`firstInDate` timestamp null DEFAULT NULL COMMENT '首次入库日期-计算库龄的依据', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='商品库存/台账'; |
|||
|
|||
-- 预期到货通知单 |
|||
DROP TABLE IF EXISTS `wms_ans_bill`; |
|||
CREATE TABLE `wms_ans_bill` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '外部单号(业务单据编号)', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`busTypeKey` varchar(64) DEFAULT NULL COMMENT '业务类型key(采购预约、调拨预约、其他预约)', |
|||
`busTypeValue` varchar(64) DEFAULT NULL COMMENT '业务类型value(采购预约、调拨预约、其他预约)', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`billState` int(32) DEFAULT NULL COMMENT '货物状态(在途、部分收货、已收货、已取消)', |
|||
`reviewStatus` varchar(64) DEFAULT NULL COMMENT '审核状态(待审核、审核通过、审核拒绝)', |
|||
`refuseReason` varchar(64) DEFAULT NULL COMMENT '拒绝原因', |
|||
`contact` varchar(64) DEFAULT NULL COMMENT '联系人', |
|||
`mobile` varchar(64) DEFAULT NULL COMMENT '联系人手机', |
|||
`supplierSid` varchar(64) DEFAULT NULL COMMENT '供应商sid', |
|||
`supplierName` varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
`goodsOwnerSid` varchar(64) DEFAULT NULL COMMENT '货主sid', |
|||
`goodsOwner` varchar(64) DEFAULT NULL COMMENT '货主', |
|||
`deliveryDate` timestamp null DEFAULT NULL COMMENT '预计到货日期', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='预期到货通知单'; |
|||
|
|||
-- 预期到货通知单 货物明细 |
|||
DROP TABLE IF EXISTS `wms_ans_bill_detail`; |
|||
CREATE TABLE `wms_ans_bill_detail` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`cost` decimal(10, 2) DEFAULT NULL COMMENT '单位成本(采购价)', |
|||
`orderCount` decimal(10, 2) DEFAULT NULL COMMENT '预约数量(采购订单数量)', |
|||
`waitInCount` int(32) DEFAULT NULL COMMENT '待入库数量-根据收货单计算', |
|||
`actualInCount` int(32) DEFAULT NULL COMMENT '实际入库数量-根据收货单计算', |
|||
`taxAmount` decimal(10, 2) DEFAULT NULL COMMENT '税额', |
|||
`taxPrice` decimal(10, 2) DEFAULT NULL COMMENT '含税价', |
|||
`amount` decimal(10, 2) DEFAULT NULL COMMENT '金额', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='预期到货通知单-货物明细'; |
|||
|
|||
-- 收货单据 |
|||
DROP TABLE IF EXISTS `wms_receipt_bill`; |
|||
CREATE TABLE `wms_receipt_bill` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid(asn单sid)', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单号(asn单号)', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`busTypeKey` varchar(64) DEFAULT NULL COMMENT '业务类型key(采购入库、销售退库等)', |
|||
`busTypeValue` varchar(64) DEFAULT NULL COMMENT '业务类型value(采购入库、销售退库等)', |
|||
`supplierSid` varchar(64) DEFAULT NULL COMMENT '供应商sid', |
|||
`supplierName` varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
`goodsOwnerSid` varchar(64) DEFAULT NULL COMMENT '货主sid', |
|||
`goodsOwner` varchar(64) DEFAULT NULL COMMENT '货主', |
|||
`deliveryDate` timestamp null DEFAULT NULL COMMENT '到货日期', |
|||
`billState` int(32) DEFAULT NULL COMMENT '待收货/部分收货/已收货(默认)', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='收货单据'; |
|||
|
|||
|
|||
DROP TABLE IF EXISTS `wms_receipt_bill_detail`; |
|||
CREATE TABLE `wms_receipt_bill_detail` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品sku编码', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位sid', |
|||
`warehouseRackName` varchar(64) DEFAULT NULL COMMENT '库位名称', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`orderCount` decimal(10, 2) DEFAULT NULL COMMENT '预约数量', |
|||
`actualInCount` decimal(10, 2) DEFAULT NULL COMMENT '实收数量', |
|||
`rejectCount` decimal(10, 2) DEFAULT NULL COMMENT '拒收数量', |
|||
`rejectReason` varchar(64) DEFAULT NULL COMMENT '拒收原因', |
|||
`receivingGoodsTime` timestamp null DEFAULT NULL COMMENT '收货时间', |
|||
`isQuality` int(32) DEFAULT NULL COMMENT '是否需要质检(不需要0,需要1)', |
|||
`qualityState` int(32) DEFAULT NULL COMMENT '质检状态(合格0,不合格1)', |
|||
`packageRemark` varchar(200) DEFAULT NULL COMMENT '载具说明', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='收货单据-明细'; |
|||
|
|||
-- 批次属性 |
|||
DROP TABLE IF EXISTS `wms_receipt_bill_detail_batch`; |
|||
CREATE TABLE `wms_receipt_bill_detail_batch` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`detailSid` varchar(64) DEFAULT NULL COMMENT '收货明细sid', |
|||
`batchNumber` varchar(64) DEFAULT NULL COMMENT '批次号(收货日期+有效日期,如240320-241009)', |
|||
`batchCount` decimal(10, 0) DEFAULT NULL COMMENT '数量', |
|||
`manufactureDate` timestamp null DEFAULT NULL COMMENT '生产日期', |
|||
`expirationDate` timestamp null DEFAULT NULL COMMENT '有效期(根据spu中有效天数、生产日期计算)', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='批次属性'; |
|||
|
|||
|
|||
-- 上架单 |
|||
DROP TABLE IF EXISTS `wms_shelf_bill`; |
|||
CREATE TABLE `wms_shelf_bill` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid(收货单sid)', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单号(收货单号)', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`billState` int(64) DEFAULT '0' COMMENT '0新建1已完成', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='上架单'; |
|||
|
|||
|
|||
-- 上架单明细 |
|||
DROP TABLE IF EXISTS `wms_shelf_bill_detail`; |
|||
CREATE TABLE `wms_shelf_bill_detail` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`receiptDetailSid` varchar(64) DEFAULT NULL COMMENT '收货单明细sid', |
|||
`batchNumber` varchar(64) DEFAULT NULL COMMENT '批次号(入库日期+有效日期,如240320-241009)', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '库存sid', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位Sid', |
|||
`warehouseRackCode` varchar(64) DEFAULT NULL COMMENT '库位编号', |
|||
`count` decimal(10, 2) DEFAULT NULL COMMENT '上架数量', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='上架单明细'; |
|||
|
|||
-- 出库单据 |
|||
DROP TABLE IF EXISTS `wms_out_bill`; |
|||
CREATE TABLE `wms_out_bill` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单号', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`busTypeKey` varchar(64) DEFAULT NULL COMMENT '业务类型key', |
|||
`busTypeValue` varchar(64) DEFAULT NULL COMMENT '业务类型value((销售出库、采购退货出库等))', |
|||
`goodsOwnerSid` varchar(64) DEFAULT NULL COMMENT '货主sid', |
|||
`goodsOwner` varchar(64) DEFAULT NULL COMMENT '货主', |
|||
`billState` int(32) DEFAULT NULL COMMENT '已完成/已发货', |
|||
`isTogether` int(32) DEFAULT NULL COMMENT '是否一起发货(否0,是1)', |
|||
`isHandUp` int(32) DEFAULT NULL COMMENT '挂起状态(1挂起,0不挂起,2解锁)', |
|||
`priority` int(32) DEFAULT NULL COMMENT '优先级', |
|||
`actualDeliveTime` timestamp null DEFAULT NULL COMMENT '实际发货时间', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='出库单据'; |
|||
|
|||
-- 出库单明细 |
|||
DROP TABLE IF EXISTS `wms_out_bill_detail`; |
|||
CREATE TABLE `wms_out_bill_detail` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品sku编码', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`orderCount` decimal(10, 2) DEFAULT NULL COMMENT '订单数量', |
|||
`remainingCount` decimal(10, 2) DEFAULT NULL COMMENT '未结数量', |
|||
`adjustCount` decimal(10, 2) DEFAULT NULL COMMENT '调整数量', |
|||
`distributeCount` decimal(10, 2) DEFAULT NULL COMMENT '分配数量', |
|||
`deliveryCount` decimal(10, 2) DEFAULT NULL COMMENT '发货数量', |
|||
`billState` int(32) DEFAULT NULL COMMENT '状态(新建/已发货完成、部分分配、全部分配等)', |
|||
`deliveTime` timestamp null DEFAULT NULL COMMENT '发货时间', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='出库单-明细'; |
|||
|
|||
-- 配货单据 |
|||
DROP TABLE IF EXISTS `wms_distribute_bill`; |
|||
CREATE TABLE `wms_distribute_bill` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '出库单sid', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单号(出库单)', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`billState` int(32) DEFAULT NULL COMMENT '配货中/已发货', |
|||
`isHandUp` int(32) DEFAULT NULL COMMENT '挂起状态(1挂起,0不挂起,2解锁)', |
|||
`priority` int(32) DEFAULT NULL COMMENT '优先级', |
|||
`actualDeliveTime` timestamp null DEFAULT NULL COMMENT '实际发货时间', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='配货单据'; |
|||
|
|||
-- 配货单明细 |
|||
DROP TABLE IF EXISTS `wms_distribute_bill_detail`; |
|||
CREATE TABLE `wms_distribute_bill_detail` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`outBillDetailSid` varchar(64) DEFAULT NULL COMMENT '出库单明细sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品sku编码', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '库存sid', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位sid', |
|||
`warehouseRackCode` varchar(64) DEFAULT NULL COMMENT '库位编号', |
|||
`distributeCount` decimal(10, 2) DEFAULT NULL COMMENT '配货数量', |
|||
`deliveryCount` decimal(10, 2) DEFAULT NULL COMMENT '发货数量', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='配货单明细'; |
|||
|
|||
|
|||
-- 出入库记录 |
|||
DROP TABLE IF EXISTS `wms_inventory_record`; |
|||
CREATE TABLE `wms_inventory_record` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '库存sid', |
|||
`goodsID` varchar(64) DEFAULT NULL COMMENT '商品ID', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid(业务单sid)', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '来源单据编号', |
|||
`billType` varchar(64) DEFAULT NULL COMMENT '单据类型(1入库、0出库)', |
|||
`busTypeKey` varchar(64) DEFAULT NULL COMMENT '业务类型key', |
|||
`busTypeValue` varchar(64) DEFAULT NULL COMMENT '业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)', |
|||
`billObjSid` varchar(64) DEFAULT NULL COMMENT '客户/供应商sid,出库是为客户,入库时为供应商', |
|||
`billObjName` varchar(64) DEFAULT NULL COMMENT '客户/供应商名称', |
|||
`batchNumber` varchar(64) DEFAULT NULL COMMENT '批次号', |
|||
`goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', |
|||
`goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位sid', |
|||
`warehouseRackCode` varchar(64) DEFAULT NULL COMMENT '库位编号', |
|||
`currentCount` decimal(10, 2) DEFAULT NULL COMMENT '出入库后的库存量', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`count` decimal(10, 2) DEFAULT NULL COMMENT '数量', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='配货单明细'; |
|||
|
|||
DROP TABLE IF EXISTS `wms_old_register`; |
|||
CREATE TABLE `wms_old_register` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '维修工单编号', |
|||
`billTime` varchar(64) DEFAULT NULL COMMENT '工单创建日期', |
|||
`customerName` varchar(64) DEFAULT NULL COMMENT '客户名称', |
|||
`customerSid` varchar(64) DEFAULT NULL COMMENT '客户sid', |
|||
`vehMark` varchar(64) DEFAULT NULL COMMENT '车牌号', |
|||
`vinNo` varchar(64) DEFAULT NULL COMMENT '车架号', |
|||
`shortss` text DEFAULT NULL COMMENT '旧件回收说明', |
|||
`photos` text DEFAULT NULL COMMENT '旧件照片', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='旧件回收登记'; |
|||
|
|||
|
|||
DROP TABLE IF EXISTS `wms_old_inventory`; |
|||
CREATE TABLE `wms_old_inventory` |
|||
( |
|||
`id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', |
|||
`sid` varchar(64) NOT NULL COMMENT 'sid', |
|||
`lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', |
|||
`createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', |
|||
`isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', |
|||
`state` int(32) DEFAULT '1' COMMENT '状态', |
|||
`isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', |
|||
`goodsID` varchar(64) DEFAULT NULL COMMENT '商品ID', |
|||
`goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品编码', |
|||
`manufacturerName` varchar(64) DEFAULT NULL COMMENT '厂家', |
|||
`goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '单位', |
|||
`count` varchar(64) DEFAULT NULL COMMENT '数量', |
|||
`inCount` varchar(64) DEFAULT NULL COMMENT '已入库数量', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '维修工单编号', |
|||
`customerName` varchar(64) DEFAULT NULL COMMENT '客户名称', |
|||
`vehMark` varchar(64) DEFAULT NULL COMMENT '车牌号', |
|||
`vinNo` varchar(64) DEFAULT NULL COMMENT '车架号', |
|||
`shortss` text DEFAULT NULL COMMENT '旧件回收说明', |
|||
`photos` text DEFAULT NULL COMMENT '旧件照片', |
|||
PRIMARY KEY (`id`), |
|||
KEY `id` (`id`) |
|||
) ENGINE = INNODB |
|||
DEFAULT CHARSET = utf8 COMMENT ='待入库旧件'; |
|||
|
|||
|
@ -0,0 +1,841 @@ |
|||
-- -------------------------------------------------------- |
|||
-- 主机: 39.104.100.138 |
|||
-- 服务器版本: 8.0.30 - MySQL Community Server - GPL |
|||
-- 服务器操作系统: Linux |
|||
-- HeidiSQL 版本: 12.6.0.6765 |
|||
-- -------------------------------------------------------- |
|||
|
|||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|||
/*!40101 SET NAMES utf8 */; |
|||
/*!50503 SET NAMES utf8mb4 */; |
|||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|||
/*!40103 SET TIME_ZONE='+00:00' */; |
|||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|||
|
|||
|
|||
-- 导出 yxt_wms 的数据库结构 |
|||
CREATE DATABASE IF NOT EXISTS `yxt_wms` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; |
|||
USE `yxt_wms`; |
|||
|
|||
-- 导出 表 yxt_wms.wms_goods 结构 |
|||
DROP TABLE IF EXISTS `wms_goods`; |
|||
CREATE TABLE IF NOT EXISTS `wms_goods` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`barCode` varchar(64) DEFAULT NULL COMMENT '条形码', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`goodsPY` varchar(64) DEFAULT NULL COMMENT '拼音缩写', |
|||
`goodsTypeSid` varchar(64) DEFAULT NULL COMMENT '商品分类sid', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`goodsModelSid` varchar(64) DEFAULT NULL COMMENT '商品型号sid', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '商品型号', |
|||
`specification` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`brandSid` varchar(64) DEFAULT NULL COMMENT '品牌sid', |
|||
`brand` varchar(64) DEFAULT NULL COMMENT '品牌', |
|||
`manufacturerSid` varchar(64) DEFAULT NULL COMMENT '厂家sid', |
|||
`manufacturer` varchar(64) DEFAULT NULL COMMENT '厂家', |
|||
`producer` varchar(64) DEFAULT NULL COMMENT '产地', |
|||
`validityDays` int DEFAULT NULL COMMENT '有效期天数', |
|||
`picUrl` varchar(500) DEFAULT NULL COMMENT '图片', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='商品基础信息'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_goods 的数据:~0 rows (大约) |
|||
INSERT INTO `wms_goods` (`id`, `sid`, `lockVersion`, `createTime`, `modifyTime`, `state`, `isEnable`, `isDelete`, `remarks`, `createBySid`, `updateBySid`, `barCode`, `goodsName`, `goodsCode`, `goodsPY`, `goodsTypeSid`, `unit`, `goodsModelSid`, `goodsModel`, `specification`, `brandSid`, `brand`, `manufacturerSid`, `manufacturer`, `producer`, `validityDays`, `picUrl`, `sortNo`) VALUES |
|||
(1, '079c7d2a-fad0-4017-8af3-8be033e6304b', 0, '2024-02-29 06:08:15', '2024-02-29 06:08:15', 1, 1, 0, NULL, NULL, NULL, '8', '表所家', '87', 'elit adipisicing laborum', '11', 'in occaecat voluptate do eu', '61', NULL, 'pariatur fugiat', '70', NULL, '30', NULL, 'fugiat ullamco', 54, '', 1), |
|||
(2, '3c70386e-a726-47f0-ba70-a60665bc8b7f', 0, '2024-02-29 06:22:01', '2024-02-29 06:22:01', 1, 1, 0, NULL, NULL, NULL, '91', '件第后信同往须', '71', 'sit', '42', 'reprehenderit culpa exercitation velit', '32', NULL, 'sit sed consectetur', '13', NULL, '63', NULL, 'commodo labore', 74, '', 1); |
|||
|
|||
-- 导出 表 yxt_wms.wms_goods_brand 结构 |
|||
DROP TABLE IF EXISTS `wms_goods_brand`; |
|||
CREATE TABLE IF NOT EXISTS `wms_goods_brand` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`name` varchar(100) DEFAULT NULL COMMENT '品牌名称', |
|||
`logo` varchar(1024) DEFAULT NULL COMMENT '品牌logo', |
|||
`bigPic` varchar(1024) DEFAULT NULL COMMENT '专区大图', |
|||
`brandStory` text COMMENT '品牌故事', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品品牌'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_goods_brand 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_goods_other 结构 |
|||
DROP TABLE IF EXISTS `wms_goods_other`; |
|||
CREATE TABLE IF NOT EXISTS `wms_goods_other` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`isOriginalLogo` int DEFAULT NULL COMMENT '是否有原厂标志', |
|||
`figure` varchar(64) DEFAULT NULL COMMENT '花纹', |
|||
`materialCode` varchar(64) DEFAULT NULL COMMENT '材料编码', |
|||
`isWarning` int DEFAULT NULL COMMENT '是否库存预警', |
|||
`maximum` int DEFAULT NULL COMMENT '上限数量', |
|||
`minimum` int DEFAULT NULL COMMENT '下限数量', |
|||
`isScore` int DEFAULT NULL COMMENT '是否积分', |
|||
`islockPrice` int DEFAULT NULL COMMENT '是否锁定销售价', |
|||
`useScore` int DEFAULT NULL COMMENT '所需积分', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品其他信息'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_goods_other 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_goods_type 结构 |
|||
DROP TABLE IF EXISTS `wms_goods_type`; |
|||
CREATE TABLE IF NOT EXISTS `wms_goods_type` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`goodsTypeName` varchar(64) DEFAULT NULL COMMENT '商品类别名称', |
|||
`goodsTypeCode` varchar(64) DEFAULT NULL COMMENT '类别编码', |
|||
`percentageRate` int DEFAULT NULL COMMENT '提成比例', |
|||
`percentageAmount` double(10,2) DEFAULT NULL COMMENT '提成金额', |
|||
`pSid` varchar(64) DEFAULT NULL COMMENT '父级sid', |
|||
`isGoodsID` int DEFAULT NULL COMMENT '是否一品一码(goodID),0否,1是', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='商品类别'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_goods_type 的数据:~1 rows (大约) |
|||
INSERT INTO `wms_goods_type` (`id`, `sid`, `lockVersion`, `createTime`, `modifyTime`, `state`, `isEnable`, `isDelete`, `remarks`, `createBySid`, `updateBySid`, `goodsTypeName`, `goodsTypeCode`, `percentageRate`, `percentageAmount`, `pSid`, `isGoodsID`, `sortNo`, `useOrgSid`, `createOrgSid`) VALUES |
|||
(1, '2ca961b0-0d65-4380-952e-569cd80b3eb5', 0, '2024-02-29 06:27:26', '2024-02-29 06:27:26', 1, 1, 0, NULL, NULL, NULL, '清立导白度', '78', 85, 73.07, NULL, 42, 90, '36', '54'); |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`goodsID` varchar(64) DEFAULT NULL COMMENT '商品ID(唯一编码,入库时生成)', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '入库单sid', |
|||
`billDetailSid` varchar(64) DEFAULT NULL COMMENT '入库单明细sid', |
|||
`price1` decimal(10,2) DEFAULT NULL COMMENT '销售价格1', |
|||
`price2` decimal(10,2) DEFAULT NULL COMMENT '销售价格2', |
|||
`price3` decimal(10,2) DEFAULT NULL COMMENT '销售价格3', |
|||
`price4` decimal(10,2) DEFAULT NULL COMMENT '销售价格4', |
|||
`price5` decimal(10,2) DEFAULT NULL COMMENT '销售价格5', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`count` decimal(10,2) DEFAULT NULL COMMENT '库存数量', |
|||
`minimumPrice` decimal(10,2) DEFAULT NULL COMMENT '销售底价', |
|||
`freePrice` decimal(10,2) DEFAULT NULL COMMENT '三包价格', |
|||
`firstMaintainPrice` decimal(10,2) DEFAULT NULL COMMENT '首保价格', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseArea` decimal(10,2) DEFAULT NULL COMMENT '货位', |
|||
`isShowDiscount` int DEFAULT NULL COMMENT '是否显示折扣标志', |
|||
`firstInDate` timestamp NULL DEFAULT NULL COMMENT '首次入库日期-计算库龄的依据', |
|||
`lockCount` decimal(10,2) DEFAULT NULL COMMENT '锁定数量,计算字段,出库申请通过,但未实际出库', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品库存-台账'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_allocatebill 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_allocatebill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_allocatebill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值状态(未完成0、已完成1)', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`outOrgSid` varchar(64) DEFAULT NULL COMMENT '调出分公司sid', |
|||
`inOrgSid` varchar(64) DEFAULT NULL COMMENT '调入分公司sid', |
|||
`count` decimal(10,2) DEFAULT NULL COMMENT '调拨数量', |
|||
`amount` decimal(10,2) DEFAULT NULL COMMENT '调拨金额', |
|||
`confirmSid` varchar(64) DEFAULT NULL COMMENT '确认人sid', |
|||
`confirmName` varchar(64) DEFAULT NULL COMMENT '确认人姓名', |
|||
`finishTime` timestamp NULL DEFAULT NULL COMMENT '完成时间', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='(调拨单)-调出方操作'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_allocatebill 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_allocatebill_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_allocatebill_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_allocatebill_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '盘点单sid', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`specification` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '车型', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '单位', |
|||
`outWarehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`outWarehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseAreasid` varchar(64) DEFAULT NULL COMMENT '货位sid', |
|||
`warehouseArea` varchar(64) DEFAULT NULL COMMENT '货位名称', |
|||
`taxPrice` decimal(10,2) DEFAULT NULL COMMENT '含税价', |
|||
`stockCount` decimal(10,2) DEFAULT NULL COMMENT '库存数量', |
|||
`inWarehouseSid` varchar(64) DEFAULT NULL COMMENT '调入仓库sid', |
|||
`inWarehouseName` varchar(64) DEFAULT NULL COMMENT '调入货位', |
|||
`count` decimal(10,2) DEFAULT NULL COMMENT '调拨数量', |
|||
`amount` decimal(10,2) DEFAULT NULL COMMENT '调拨金额(调拨数量*含税价)', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='(调拨单-明细)'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_allocatebill_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_bill 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_bill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_bill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值0正常,1作废;申请-审批中-完成-作废', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`billType` varchar(64) DEFAULT NULL COMMENT '单据类型(入库、出库)', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`busTypeKey` varchar(64) DEFAULT NULL COMMENT '业务类型key(采购入库、维修出入库、销售出入库等)', |
|||
`busTypeValue` varchar(64) DEFAULT NULL COMMENT '业务类型value(采购入库、维修出入库、销售出入库等)', |
|||
`warehouseManagerSid` varchar(64) DEFAULT NULL COMMENT '库管操作人sid', |
|||
`warehouseManager` varchar(64) DEFAULT NULL COMMENT '库管操作人', |
|||
`outTime` timestamp NULL DEFAULT NULL COMMENT '实际出库时间', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='出入库单据'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_bill 的数据:~0 rows (大约) |
|||
INSERT INTO `wms_inventory_bill` (`id`, `sid`, `lockVersion`, `createTime`, `modifyTime`, `state`, `isEnable`, `isDelete`, `remarks`, `createBySid`, `updateBySid`, `sourceBillSid`, `billNo`, `billType`, `createDate`, `createUserSid`, `createByName`, `busTypeKey`, `busTypeValue`, `warehouseManagerSid`, `warehouseManager`, `outTime`, `useOrgSid`, `createOrgSid`) VALUES |
|||
(1, '1', 0, '2024-02-29 07:26:12', '2024-02-29 07:26:12', 1, 1, 0, NULL, '1', NULL, '1', '1', NULL, '2020', NULL, '1', '1', '1', '1', '1', '2024-02-29 07:26:00', '1', '1'); |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_bill_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_bill_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_bill_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`specification` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '型号', |
|||
`currentCount` decimal(10,2) DEFAULT NULL COMMENT '出入库后的库存量', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseArea` varchar(64) DEFAULT NULL COMMENT '货位', |
|||
`cost` decimal(10,2) DEFAULT NULL COMMENT '单位成本(进货价)', |
|||
`count` decimal(10,2) DEFAULT NULL COMMENT '数量(出库为负)', |
|||
`taxAmount` decimal(10,2) DEFAULT NULL COMMENT '税额(出库为负)', |
|||
`taxPrice` decimal(10,2) DEFAULT NULL COMMENT '含税价(出库为负)', |
|||
`amount` decimal(10,2) DEFAULT NULL COMMENT '金额(出库为负)', |
|||
`price1` decimal(10,2) DEFAULT NULL COMMENT '销售价1', |
|||
`price2` decimal(10,2) DEFAULT NULL COMMENT '销售价2', |
|||
`subjectSid` varchar(64) DEFAULT NULL COMMENT '科目sid(出库时)', |
|||
`subject` varchar(64) DEFAULT NULL COMMENT '科目(出库时)', |
|||
`operTime` timestamp NULL DEFAULT NULL COMMENT '操作时间', |
|||
`operUserSid` varchar(64) DEFAULT NULL COMMENT '操作人', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='单据明细'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_bill_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_checkbill 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_checkbill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_checkbill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`checkType` varchar(64) DEFAULT NULL COMMENT '盘点类型', |
|||
`checkState` decimal(10,2) DEFAULT NULL COMMENT '盘点状态(盘点中1,盘点完成2)', |
|||
`profitCount` decimal(10,2) DEFAULT NULL COMMENT '盘盈数量', |
|||
`profitAmount` decimal(10,2) DEFAULT NULL COMMENT '盘盈金额', |
|||
`lossCount` decimal(10,2) DEFAULT NULL COMMENT '盘亏数量', |
|||
`lossAmount` decimal(10,2) DEFAULT NULL COMMENT '盈亏金额', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='库存盘点'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_checkbill 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_checkbill_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_checkbill_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_checkbill_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值状态(0正常、2盘亏、1盘盈)', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '盘点单sid', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '型号', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '单位', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库', |
|||
`warehouseArea` varchar(64) DEFAULT NULL COMMENT '货位', |
|||
`taxPrice` decimal(10,2) DEFAULT NULL COMMENT '含税价', |
|||
`bookCount` decimal(10,2) DEFAULT NULL COMMENT '账面数量', |
|||
`realCount` decimal(10,2) DEFAULT NULL COMMENT '实盘数量', |
|||
`profitandlossNumber` decimal(10,2) DEFAULT NULL COMMENT '盈亏数( |实盘数量-账面数量|)', |
|||
`profitandlossAmount` decimal(10,2) DEFAULT NULL COMMENT '盈亏金额(盈亏数*含税价)', |
|||
`picUrl` varchar(1000) DEFAULT NULL COMMENT '现场照片(多张中间用英文逗号分隔)', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='库存盘点-明细'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_checkbill_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_settlebill 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_settlebill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_settlebill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '结算单编号', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '制单日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`settleState` int DEFAULT NULL COMMENT '库存结算状态(1进行中 2已完成)', |
|||
`settleType` int DEFAULT NULL COMMENT '库存结算类型(1月结 2年结)', |
|||
`settle_startTime` timestamp NULL DEFAULT NULL COMMENT '开始时间', |
|||
`settle_endTime` timestamp NULL DEFAULT NULL COMMENT '结束时间', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='库存结算单'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_settlebill 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_inventory_settlebill_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_inventory_settlebill_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_inventory_settlebill_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '结算单sid', |
|||
`settleType` timestamp NULL DEFAULT NULL COMMENT '库存结算类型(1月结 2年结)', |
|||
`inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseCode` varchar(64) DEFAULT NULL COMMENT '仓库编码', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseAreasid` varchar(64) DEFAULT NULL COMMENT '货位sid', |
|||
`warehouseAreaCode` varchar(64) DEFAULT NULL COMMENT '货位编码', |
|||
`warehouseAreaName` varchar(64) DEFAULT NULL COMMENT '货位名称', |
|||
`preBalance` decimal(10,2) DEFAULT NULL COMMENT '上期结存', |
|||
`currentBalance` decimal(10,2) DEFAULT NULL COMMENT '本期结存', |
|||
`currentEnter` decimal(10,2) DEFAULT NULL COMMENT '本期入库', |
|||
`currentOut` decimal(10,2) DEFAULT NULL COMMENT '本期出库', |
|||
`currentCheck` decimal(10,2) DEFAULT NULL COMMENT '本期盘点', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='库存结算明细'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_inventory_settlebill_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_manufacturer 结构 |
|||
DROP TABLE IF EXISTS `wms_manufacturer`; |
|||
CREATE TABLE IF NOT EXISTS `wms_manufacturer` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`manufacturerCode` varchar(64) DEFAULT NULL COMMENT '厂家名称', |
|||
`manufacturerName` varchar(64) DEFAULT NULL COMMENT '厂家编码', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='厂家'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_manufacturer 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_markuprate_unified 结构 |
|||
DROP TABLE IF EXISTS `wms_markuprate_unified`; |
|||
CREATE TABLE IF NOT EXISTS `wms_markuprate_unified` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`level` varchar(64) DEFAULT NULL COMMENT '级别名称(客户)', |
|||
`price` double(10,2) DEFAULT NULL COMMENT '对应销售价', |
|||
`markuprate` int DEFAULT NULL COMMENT '加价率', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='统一加价率'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_markuprate_unified 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_purchaseback_bill 结构 |
|||
DROP TABLE IF EXISTS `wms_purchaseback_bill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_purchaseback_bill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '0正常,1作废', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid(采购单sid)', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单编号', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`backErrorAmount` double(10,2) DEFAULT NULL COMMENT '退误差调整金额', |
|||
`backDiscountAmount` double(10,2) DEFAULT NULL COMMENT '退优惠金额', |
|||
`deductDebts` double(10,2) DEFAULT NULL COMMENT '抵扣欠款', |
|||
`deductBillNo` varchar(64) DEFAULT NULL COMMENT '抵扣单号', |
|||
`toPrepayment` double(10,2) DEFAULT NULL COMMENT '转入预付款', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='采购退货单据'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_purchaseback_bill 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_purchaseback_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_purchaseback_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_purchaseback_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodsStockSid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`specification` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '车型', |
|||
`currentCount` double(10,2) DEFAULT NULL COMMENT '退货后的库存数量', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`position` varchar(64) DEFAULT NULL COMMENT '货位', |
|||
`returnedCount` double(10,2) DEFAULT NULL COMMENT '已退数量', |
|||
`backCount` double(10,2) DEFAULT NULL COMMENT '退货数量', |
|||
`maxAmount` double(10,2) DEFAULT NULL COMMENT '税额', |
|||
`maxPrice` double(10,2) DEFAULT NULL COMMENT '含税价', |
|||
`backAmount` double(10,2) DEFAULT NULL COMMENT '退货金额', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='采购退货单据明细'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_purchaseback_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_purchase_bill 结构 |
|||
DROP TABLE IF EXISTS `wms_purchase_bill`; |
|||
CREATE TABLE IF NOT EXISTS `wms_purchase_bill` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值 0正常,1作废', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`sourceBillSid` varchar(64) DEFAULT NULL COMMENT '来源单sid(工单sid)', |
|||
`sourceBillNo` varchar(64) DEFAULT NULL COMMENT '来源单编号', |
|||
`billNo` varchar(64) DEFAULT NULL COMMENT '单据编号', |
|||
`createDate` varchar(64) DEFAULT NULL COMMENT '单据日期', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '制单人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '制单人姓名', |
|||
`purchaseType` varchar(64) DEFAULT NULL COMMENT '采购类型(厂家采购、外采)', |
|||
`supplierSid` varchar(64) DEFAULT NULL COMMENT '供应商sid', |
|||
`supplierName` varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
`supplierPhone` varchar(64) DEFAULT NULL COMMENT '供应商联系电话', |
|||
`billType` varchar(64) DEFAULT NULL COMMENT '票据类型(不含税、增值税、普通税、已含增值税)', |
|||
`markupType` varchar(64) DEFAULT NULL COMMENT '加价方式(统一加价率、区间加价率、仓库加价率)', |
|||
`priceStrategy` varchar(64) DEFAULT NULL COMMENT '进价不同时的价格策略(加权平均、分别计价)', |
|||
`isInvoicing` int DEFAULT NULL COMMENT '是否需要开发票(是1,否0)', |
|||
`invoiceCode` varchar(64) DEFAULT NULL COMMENT '发票号码', |
|||
`tempMarkupRate` int DEFAULT NULL COMMENT '临时加价率', |
|||
`purchaserSid` varchar(64) DEFAULT NULL COMMENT '采购员sid(单选)', |
|||
`purchaserName` varchar(64) DEFAULT NULL, |
|||
`storekeeperSid` varchar(64) DEFAULT NULL COMMENT '库管员sid(单选)', |
|||
`storekeeperName` varchar(64) DEFAULT NULL, |
|||
`errorAmount` decimal(10,2) DEFAULT NULL COMMENT '误差调整金额', |
|||
`freight` decimal(10,2) DEFAULT NULL COMMENT '运费', |
|||
`discountAmount` decimal(10,2) DEFAULT NULL COMMENT '优惠金额', |
|||
`payableAmount` decimal(10,2) DEFAULT NULL COMMENT '应付金额(=采购金额+运费-优惠金额)', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='采购单'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_purchase_bill 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_purchase_bill_detail 结构 |
|||
DROP TABLE IF EXISTS `wms_purchase_bill_detail`; |
|||
CREATE TABLE IF NOT EXISTS `wms_purchase_bill_detail` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', |
|||
`goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', |
|||
`goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', |
|||
`goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', |
|||
`specification` varchar(64) DEFAULT NULL COMMENT '规格', |
|||
`goodsModel` varchar(64) DEFAULT NULL COMMENT '型号', |
|||
`currentCount` double(10,2) DEFAULT NULL COMMENT '当前库存数量', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`position` varchar(64) DEFAULT NULL COMMENT '货位', |
|||
`cost` double(10,2) DEFAULT NULL COMMENT '单位成本(进货价)', |
|||
`count` double(10,2) DEFAULT NULL COMMENT '采购数量', |
|||
`taxAmount` double(10,2) DEFAULT NULL COMMENT '税额', |
|||
`taxPrice` double(10,2) DEFAULT NULL COMMENT '含税价', |
|||
`amount` double(10,2) DEFAULT NULL COMMENT '采购金额', |
|||
`price1` double(10,2) DEFAULT NULL COMMENT '销售价1', |
|||
`price2` double(10,2) DEFAULT NULL COMMENT '销售价2', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='采购单据明细'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_purchase_bill_detail 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_purchase_bill_settle 结构 |
|||
DROP TABLE IF EXISTS `wms_purchase_bill_settle`; |
|||
CREATE TABLE IF NOT EXISTS `wms_purchase_bill_settle` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`billSid` varchar(64) DEFAULT NULL COMMENT '采购单sid', |
|||
`payableAmount` double(10,2) DEFAULT NULL COMMENT '应付金额', |
|||
`prepaymentdeductAmount` double(10,2) DEFAULT NULL COMMENT '预付款抵扣', |
|||
`settleKey` varchar(64) DEFAULT NULL COMMENT '结算方式key', |
|||
`settleValue` varchar(64) DEFAULT NULL COMMENT '结算方式value', |
|||
`settleAmount` double(10,2) DEFAULT NULL COMMENT '结算金额', |
|||
`otherSettleKey` varchar(64) DEFAULT NULL COMMENT '其他结算方式', |
|||
`otherSettleValue` varchar(64) DEFAULT NULL COMMENT '其他结算金额', |
|||
`debts` double(10,2) DEFAULT NULL COMMENT '欠款金额', |
|||
`settleTime` datetime DEFAULT NULL COMMENT '结算时间', |
|||
`createUserSid` varchar(64) DEFAULT NULL COMMENT '结算人sid', |
|||
`createByName` varchar(64) DEFAULT NULL COMMENT '结算人姓名', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='采购单-结算'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_purchase_bill_settle 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_range_markuprate 结构 |
|||
DROP TABLE IF EXISTS `wms_range_markuprate`; |
|||
CREATE TABLE IF NOT EXISTS `wms_range_markuprate` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`range_start` int DEFAULT NULL COMMENT '区间起始', |
|||
`range_end` int DEFAULT NULL COMMENT '区间截止', |
|||
`markupRate1` int DEFAULT NULL COMMENT '加价率1', |
|||
`markupRate2` int DEFAULT NULL COMMENT '加价率2', |
|||
`markupRate3` int DEFAULT NULL COMMENT '加价率3', |
|||
`markupRate4` int DEFAULT NULL COMMENT '加价率4', |
|||
`markupRate5` int DEFAULT NULL COMMENT '加价率5', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序 ', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区间加价率'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_range_markuprate 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_supplier 结构 |
|||
DROP TABLE IF EXISTS `wms_supplier`; |
|||
CREATE TABLE IF NOT EXISTS `wms_supplier` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`supplierName` varchar(64) DEFAULT NULL COMMENT '供应商名称', |
|||
`supplierCode` varchar(64) DEFAULT NULL COMMENT '供应商编码(拼音缩写)', |
|||
`contacts` varchar(64) DEFAULT NULL COMMENT '联系人', |
|||
`mobile` varchar(64) DEFAULT NULL COMMENT '联系手机号码', |
|||
`contactAddress` varchar(100) DEFAULT NULL COMMENT '联系地址', |
|||
`taxpayerNo` varchar(64) DEFAULT NULL COMMENT '税号', |
|||
`bankName` varchar(64) DEFAULT NULL COMMENT '开户行', |
|||
`bankAccount` varchar(64) DEFAULT NULL COMMENT '开户行账号', |
|||
`Address` varchar(100) DEFAULT NULL COMMENT '地址、电话', |
|||
`billType` varchar(64) DEFAULT NULL COMMENT '票据类型(不含税、增值税、普通税、已含增值税)', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序号', |
|||
`initDebts` decimal(10,2) DEFAULT NULL COMMENT '期初欠款', |
|||
`prepayment` decimal(10,2) DEFAULT NULL COMMENT '预付款', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_supplier 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_warehouse 结构 |
|||
DROP TABLE IF EXISTS `wms_warehouse`; |
|||
CREATE TABLE IF NOT EXISTS `wms_warehouse` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', |
|||
`warehouseCode` varchar(64) DEFAULT NULL COMMENT '仓库编码', |
|||
`addr` varchar(255) DEFAULT NULL COMMENT '具体地址', |
|||
`manager` varchar(64) DEFAULT NULL COMMENT '仓库管理员', |
|||
`markupRate1` int DEFAULT NULL COMMENT '加价率1', |
|||
`markupRate2` int DEFAULT NULL COMMENT '加价率2', |
|||
`markupRate3` int DEFAULT NULL COMMENT '加价率3', |
|||
`markupRate4` int DEFAULT NULL COMMENT '加价率4', |
|||
`markupRate5` int DEFAULT NULL COMMENT '加价率5', |
|||
`warehouseType` int DEFAULT NULL COMMENT '仓库类型(0正常库、1旧件库等)', |
|||
`sortNo` int DEFAULT NULL COMMENT '排序', |
|||
`useOrgSid` varchar(64) DEFAULT NULL COMMENT '使用组织sid', |
|||
`createOrgSid` varchar(64) DEFAULT NULL COMMENT '创建组织sid', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='仓库'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_warehouse 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_warehouse_area 结构 |
|||
DROP TABLE IF EXISTS `wms_warehouse_area`; |
|||
CREATE TABLE IF NOT EXISTS `wms_warehouse_area` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`areaName` varchar(64) DEFAULT NULL COMMENT '库位名称', |
|||
`areanCode` varchar(64) DEFAULT NULL COMMENT '库位编码', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', |
|||
`volume` double(10,2) DEFAULT NULL COMMENT '库位容量', |
|||
`unit` varchar(64) DEFAULT NULL COMMENT '计量单位', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='库区'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_warehouse_area 的数据:~0 rows (大约) |
|||
|
|||
-- 导出 表 yxt_wms.wms_warehouse_rack 结构 |
|||
DROP TABLE IF EXISTS `wms_warehouse_rack`; |
|||
CREATE TABLE IF NOT EXISTS `wms_warehouse_rack` ( |
|||
`id` int NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号', |
|||
`sid` varchar(64) NOT NULL DEFAULT '0' COMMENT '字符型编号', |
|||
`lockVersion` int NOT NULL DEFAULT '0' COMMENT '记录版本,锁', |
|||
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间', |
|||
`modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录最后修改时间', |
|||
`state` int NOT NULL DEFAULT '1' COMMENT '记录状态值', |
|||
`isEnable` int NOT NULL DEFAULT '1' COMMENT '记录是否可用,1:可用,0:不可用', |
|||
`isDelete` int NOT NULL DEFAULT '0' COMMENT '记录是否被删除,0:未删除,1:已经删除', |
|||
`remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', |
|||
`createBySid` varchar(64) DEFAULT NULL COMMENT '创建者', |
|||
`updateBySid` varchar(64) DEFAULT NULL COMMENT '更新者', |
|||
`rackName` varchar(64) DEFAULT NULL COMMENT '货架名称', |
|||
`rackCode` varchar(64) DEFAULT NULL COMMENT '货架编码', |
|||
`warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid ', |
|||
`locationSid` varchar(64) DEFAULT NULL COMMENT '库位sid ', |
|||
PRIMARY KEY (`id`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='货架'; |
|||
|
|||
-- 正在导出表 yxt_wms.wms_warehouse_rack 的数据:~0 rows (大约) |
|||
|
|||
/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */; |
|||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; |
|||
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; |
|||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|||
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,16 @@ |
|||
http://39.104.100.138/warehouse/ |
|||
admin/111111 |
|||
这个是喜相随的库存管理,可以出、入库操作。 |
|||
|
|||
|
|||
|
|||
https://modao.cc/proto/CplNgUscs94yg8rssHbhjw/sharing?view_mode=read_only |
|||
|
|||
|
|||
|
|||
|
|||
功能考虑在最外层加上使用者,每个使用者都拥有自己一套独立的仓储系统。 |
|||
未来实现: |
|||
1.仓库产权方可以在平台仓库。 |
|||
2.使用者选择仓库,并可申请开通云仓系统服务。 |
|||
2.根据使用者所使用的功能设置云仓年服务费。 |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
@ -0,0 +1,9 @@ |
|||
1. PC端功能权限设计 |
|||
(1) 添加功能 |
|||
先选择PC端,然后选择模块,选择菜单,录入按钮ID。需要把控制权限的按钮录入,不需要控制权限的不用录入。 |
|||
(2) 功能授权 |
|||
角色授权时,功能列表要分级显示(模块/菜单/功能),只显示当前角色已经授权菜单下的功能。 |
|||
(3)前端功能权限控制 |
|||
前端页面功能按钮默认都为显示。前端页面中根据userSid、菜单路由调用后台接口,后台返回当前用户、当前菜单没有授权的功能列表。前端根据功能列表设置功能按钮的隐藏。 |
|||
|
|||
2. 移动端功能权限设计 |
Binary file not shown.
@ -0,0 +1,119 @@ |
|||
宇信通前端页面开发规范 |
|||
1.样式表规范 |
|||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; |
|||
字号:14px。 |
|||
|
|||
菜单:行高28px/30px,菜单前需要显示图标。 |
|||
页面标题:左右边距 0px 上边距 5px 行高50px 字号 20px 加粗 中按钮(带图标) |
|||
查询条件:行高42px 字号 16px 控件高32px 中按钮(带图标) |
|||
列表: |
|||
列表标题:行高 42px 字号 16px 加粗 |
|||
列表标题行:行高40px 字号14px 加粗 |
|||
列表内容行:行高40px 字号14px 小按钮(不带图标) |
|||
列表整体左右边距:20px |
|||
表单: |
|||
表单标题:上下边距30px 字号28px 加粗 |
|||
表单内容:行高42px 字号16px 控件高36px |
|||
标题右对齐,右边距8px;控件左对齐,左边距8px |
|||
必填项红*放在标题左侧2px。 |
|||
表单整体左右边距:40px |
|||
|
|||
分隔条:行高42px 字号16px 加粗 |
|||
列表与表单中其它功能按钮:中按钮(带图标) |
|||
|
|||
2.页面规范 |
|||
2.1页面标题 |
|||
列表页面:若有管理功能,则命名为:XXXX管理;若只是查询功能,则命名为:XXXX。如单位信息管理或单位信息。 |
|||
新增/编辑页面:新增XXX信息/编辑XXXX信息。 |
|||
详情页面:XXXX详细信息。 |
|||
其余类型页面以菜单名或功能名来命名,如XXX导出;XXX打印等。 |
|||
2.2页面操作工具条 |
|||
各页面(包括列表、添加、编辑、删除等页面)顶部应该有独立成行的"操作工具条",背景为灰色,固定不动(不随页面滚动条滚动)。 |
|||
操作工具条中放置操作按钮,如新增、编辑、删除、导出、导入、返回、关闭、下载、打印等。 |
|||
不需要勾选列表记录的放在右侧、需要勾选在左侧。(可选) |
|||
按钮规范: |
|||
名称、尺寸和颜色要统一。 |
|||
|
|||
整体效果如下: |
|||
|
|||
|
|||
3.列表布局及功能规范 |
|||
3.1列表查询条件 |
|||
列表上面都应该有一个"查询"区域。从上到下分为三部分,每部分都独立成行。 |
|||
第一部分:"隐藏/显示查询条件"的按钮,控制查询条件区域的显示和隐藏。 |
|||
第二部分:查询条件区域,分为上下两块,上面为可用的查询条件,下面为"查询"、"重置"、"更多查询"按钮。此区域默认为隐藏。 |
|||
|
|||
|
|||
3.2列表标题设置 |
|||
每个列表中需要有列表标题,如XXX列表。同时显示分页要素。 |
|||
|
|||
3.3列表列头、列宽及内容 |
|||
(1)列表列头加粗,居中。列头整体有灰色背景。 |
|||
(2)列表的列宽,根据实际显示的内容,设置列宽,该宽的宽,该窄的窄。如果内容太长可以考虑换行(如果内容换行则内容的行高要尽量小)。可考虑列宽可以自由拖动。 |
|||
(3)列表中内容对齐原则是,如果内容是固定长度的,如身份证号码、手机号码、姓名等,则居中对齐。若是不定长度的,则左对齐。列表中的内容不加粗。鼠标划过时,对应行背景要变色。 |
|||
(4)如果需要有编辑、删除等管理功能,则列表的首列应该为多选框,可以全选,也可以单条选择记录。 |
|||
3.4列表分页要素 |
|||
列表最底端要有分页要素要齐全。 |
|||
|
|||
3.5列表具备的功能 |
|||
(1)自由设置列显示隐藏(各用户配置存入数据库)。(可选) |
|||
(2)自由拖动列的位置。(可选) |
|||
(3)点击列头进行排序。 |
|||
(4)冻结列头前N列(至少包含选择列、序号列、操作列,其它可根据要求设置),列表内容滚动。 |
|||
(5)列宽可以拖动。(可选) |
|||
(6)列表如需要则应具备"导入"、"导出"功能。 |
|||
4.表单规范 |
|||
控件的长度,根据实际内容,该长的长,该窄的窄。 |
|||
表单标题列如果带表格边框线则无冒号,如果不带边框线则有冒号 |
|||
|
|||
页面表单设计为顶部为固定的操作按钮工具条,下面为表单主要内容,表单设计参考word A4纸的展现方式。如表单内容比较多,需要展示滚动条时,只能滚动表单内容,工具条不能滚动。 |
|||
|
|||
5.控件使用规范 |
|||
选择型控件: |
|||
可选择内容数量少时(一般在6个以内),可用单选按钮和多选按钮。如性别等。 |
|||
可选内容数量较多时,需要使用下拉框,同时下拉宽应具备模糊搜索功能。根据实际需要还应具备多选功能。 |
|||
时间和日期控件: |
|||
如果为时间则带时分秒,如果为日期则不带。若为类似开始、截止等时间成对出现,则需要控制后面的时间不能早于前面的时间。日期类型为yyyy-MM-dd,时间类型为:yyyy-MM-dd hh:mm:ss。 |
|||
数字类型的控件: |
|||
需要进行数据类型的校验。 |
|||
特定格式内容的控件: |
|||
需要进行正则表达式的校验。 |
|||
列表控件: |
|||
统一使用table控件。 |
|||
新增/编辑/详情页的表单: |
|||
统一使用form控件。 |
|||
其他类型控件: |
|||
必填项需要进行非空校验。 |
|||
注:所有的控件中的内容与格式,都要经过前端和后端的双重校验。 |
|||
控件的样式规范: |
|||
待补充。 |
|||
6.前端框架规范 |
|||
Vue-element-admin |
|||
要求组件化开发,避免简单的复制粘贴。如列表部分应作为一个独立的组件开发。 |
|||
VUE的语法规范:ES6。代码格式要严格按照ES6的规范,该空格的地方空格,不需要分号的地方不要分号,各个标签一定要对齐,至少看着要一行行的代码是工整的。代码编译运行起来,不能在控制台里有错误和警告的提示,如果是连接不到接口服务这类的警告提示可以暂时不考虑,但如果是代码规范上的提示,一定要处理掉。 |
|||
样式:less和scss。 |
|||
7.功能规范 |
|||
(1)修改保存数据的提交按钮,必须要加上防止重复提交 |
|||
前端点击按钮后将按钮设置为不可用状态,等后台响应后或有异常再把这个按钮设置为可用。 |
|||
后台也有控制。 |
|||
(2)删除按钮 |
|||
删除时需要二次确认提示。 |
|||
其他待完善。 |
|||
8.页面设计规范 |
|||
1.前端项目需要使用代码生成器生成。 |
|||
2.列表页顶部工具栏为通用组件,负责动态显示操作按钮权限。 |
|||
3.列表、添加/修改、详情要分成3个vue文件。 |
|||
4.列表vue文件中import 其他2个文件。添加/修改、详情页面中各自包含操作按钮与事件,不能写在列表文件中。 |
|||
5. 添加/修改、详情页面打开时,以显示和隐藏的组件的方式展示(使用了一个viewstate属性控制组件隐藏和显示),导航栏中不能有页签。只有列表才能有页签。 |
|||
9.参数规范 |
|||
1.token参数的职责只有2个,一是作为网关有效性验证参数使用;二是单点登录首次跳转业务模块(子系统)时前端获取用户信息时使用(前端需缓存用户信息),不能代替业务接口的业务参数使用(如userSid等)。 |
|||
2.除了网关外,其他业务接口中不允许直接使用token。 |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,9 @@ |
|||
1. 客户管理规则 |
|||
潜在客户:同一部门中业务人员的客户不能重复,谁先录入手机号码是谁的客户。不同部门客户允许重复。 |
|||
潜在客户门店销售部经理可以调配所属的业务专员。业务专员之间也可以自行调配。 |
|||
成交客户:整个集团内唯一。 |
|||
2. 录入规则 |
|||
客户名称、手机号码为必填项,两个条件满足才能录入到系统中。修改客户信息时,客户名称、手机号码不允许修改。不同的客户名称或手机号码视为不同的客户。 |
|||
|
|||
具体业务逻辑看流程图: |
|||
|
@ -0,0 +1,20 @@ |
|||
数据权限设计: |
|||
1.主要思路 |
|||
角色授权菜单时,需要同步授权该菜单的数据权限,设计角色与菜单关联表中增加数据权限ID的字段。数据权限主要分为5个层级:1集团、2事业部、3分公司、4部门、5个人。后续可以考虑增加数据规则,确定数据查询字段及范围。 |
|||
以用户最高层级角色对应的数据权限。 |
|||
|
|||
2.实现过程 |
|||
新创建一个接口,参数为机构管理层级,菜单sid,返回为数据权限ID。 |
|||
(1)根据用户sid获取切换的机构的管理层级,查找层级对应的角色,角色可能为列表,按照角色层级升序排序。 |
|||
(2)遍历角色列表,根据角色sid和菜单sid从角色与菜单关联表中查询数据权限ID,如数据权限ID不为空,则返回数据权限ID。 |
|||
(3)页面中根据数据权限ID和业务条件进行查询。需要注意1-4层级根据orgSidPath查询,个人5的需要根据createBySid查询。 |
|||
|
|||
|
|||
|
|||
|
|||
组织的管理层级 (集团1、事业部2、分公司3、部门4),根据层级确定数据查询的范围。 |
|||
根据用户切换的机构路径,根据数据规则ID截取管理层级的机构路径后作为查询条件进行数据查询。 |
|||
|
|||
|
|||
特殊情况说明: |
|||
1.分公司副总为部门级角色,由于有些分公司实际情况要求只能查看主管部门的数据,因此,分公司副总角色的数据规则只能设置为部门4。查询数据是只能切换机构去看。此时总经办的查不到数据。 |
After Width: | Height: | Size: 55 KiB |
@ -0,0 +1,134 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
|
|||
<parent> |
|||
<groupId>com.yxt</groupId> |
|||
<artifactId>yxt-parent</artifactId> |
|||
<version>0.0.1</version> |
|||
<relativePath/> |
|||
</parent> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<artifactId>yxt-wms-biz</artifactId> |
|||
<groupId>com.yxt.wms</groupId> |
|||
<version>2.0.1</version> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>com.yxt</groupId> |
|||
<artifactId>yxt-common-base</artifactId> |
|||
<version>0.0.1</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>com.alibaba.cloud</groupId> |
|||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.cloud</groupId> |
|||
<artifactId>spring-cloud-starter-openfeign</artifactId> |
|||
</dependency> |
|||
|
|||
<!--mysql--> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
<scope>runtime</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>com.baomidou</groupId> |
|||
<artifactId>mybatis-plus-boot-starter</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.baomidou</groupId> |
|||
<artifactId>mybatis-plus-annotation</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<scope>compile</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
<version>1.18.26</version> |
|||
<optional>true</optional> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc --> |
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-spring-boot-starter</artifactId> |
|||
<version>1.37.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.hutool</groupId> |
|||
<artifactId>hutool-all</artifactId> |
|||
<version>5.8.23</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.hutool</groupId> |
|||
<artifactId>hutool-core</artifactId> |
|||
<version>5.8.23</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.google.zxing</groupId> |
|||
<artifactId>core</artifactId> |
|||
<version>3.5.2</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.alibaba</groupId> |
|||
<artifactId>easyexcel</artifactId> |
|||
<version>3.3.2</version> |
|||
</dependency> |
|||
|
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
<version>2.5.6</version> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
</plugins> |
|||
<resources> |
|||
<resource> |
|||
<directory>src/main/java</directory> |
|||
<includes> |
|||
<include>**/*Mapper.xml</include> |
|||
</includes> |
|||
</resource> |
|||
<resource> |
|||
<directory>src/main/resources</directory> |
|||
<includes> |
|||
<include>**/*.*</include> |
|||
</includes> |
|||
<filtering>false</filtering> |
|||
</resource> |
|||
</resources> |
|||
</build> |
|||
|
|||
</project> |
@ -0,0 +1,24 @@ |
|||
package com.yxt.wms; |
|||
|
|||
|
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
import org.springframework.cloud.openfeign.EnableFeignClients; |
|||
import org.springframework.scheduling.annotation.EnableScheduling; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
*/ |
|||
@SpringBootApplication(scanBasePackages = { |
|||
"com.yxt.wms.config", |
|||
"com.yxt.common.base.config", |
|||
"com.yxt.wms" |
|||
}) |
|||
// 启用自带定时任务
|
|||
@EnableScheduling |
|||
@EnableFeignClients(basePackages = {"com.yxt.*.*"}) |
|||
public class YxtWmsApplication { |
|||
public static void main(String[] args) { |
|||
SpringApplication.run(YxtWmsApplication.class, args); |
|||
} |
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.yxt.wms.apiadmin; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
@RestController("com.yxt.wms.apiadmin.AdminHomeRest") |
|||
@RequestMapping("/apiadmin/home") |
|||
public class AdminHomeRest { |
|||
|
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.yxt.wms.apiadmin.base; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehousearea.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:53 |
|||
*/ |
|||
@Api(tags = "库区信息") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/base/wmswarehousearea") |
|||
public class WmsWarehouseAreaRest { |
|||
|
|||
@Autowired |
|||
WmsWarehouseAreaService wmsWarehouseAreaService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsWarehouseAreaVo>> listPage(@RequestBody PagerQuery<WmsWarehouseAreaQuery> pq) { |
|||
return wmsWarehouseAreaService.listPage(pq); |
|||
} |
|||
@ApiOperation("查询所有的库区") |
|||
@GetMapping("/listAll") |
|||
public ResultBean<WmsWarehouseAreaVo> listAll() { |
|||
return wmsWarehouseAreaService.getAllType(); |
|||
} |
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WmsWarehouseAreaDto dto) { |
|||
return wmsWarehouseAreaService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WmsWarehouseAreaVo> initialization(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseAreaService.initialization(sid); |
|||
} |
|||
|
|||
@ApiOperation("删除") |
|||
@DeleteMapping("/delete/{sid}") |
|||
public ResultBean delete(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseAreaService.delete(sid); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateIsEnable/{sid}/{isEnable}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("isEnable")String isEnable) { |
|||
return wmsWarehouseAreaService.updateIsEnable(sid,isEnable); |
|||
} |
|||
|
|||
@ApiOperation("根据仓库sid查询所有库位") |
|||
@GetMapping("/selectAll") |
|||
public ResultBean<List<WmsWarehouseAreaAllVo>> selectAll(@RequestParam("ckSid") String ckSid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseAreaAllVo> vo = wmsWarehouseAreaService.selectAll(ckSid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.yxt.wms.apiadmin.base; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeDto; |
|||
import com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeQuery; |
|||
import com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeService; |
|||
import com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/18 14:57 |
|||
*/ |
|||
@Api(tags = "库区类型信息") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/base/wmswarehouseareatype") |
|||
public class WmsWarehouseAreaTypeRest { |
|||
|
|||
@Autowired |
|||
WmsWarehouseAreaTypeService wmsWarehouseAreaTypeService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsWarehouseAreaTypeVo>> listPage(@RequestBody PagerQuery<WmsWarehouseAreaTypeQuery> pq) { |
|||
return wmsWarehouseAreaTypeService.listPage(pq); |
|||
} |
|||
@ApiOperation("查询所有的") |
|||
@GetMapping("/listAll") |
|||
public ResultBean<WmsWarehouseAreaTypeVo> listAll() { |
|||
return wmsWarehouseAreaTypeService.listAll(); |
|||
} |
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WmsWarehouseAreaTypeDto dto) { |
|||
return wmsWarehouseAreaTypeService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WmsWarehouseAreaTypeVo> initialization(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseAreaTypeService.initialization(sid); |
|||
} |
|||
|
|||
@ApiOperation("删除") |
|||
@DeleteMapping("/delete/{sid}") |
|||
public ResultBean delete(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseAreaTypeService.delete(sid); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateIsEnable/{sid}/{isEnable}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("isEnable")String isEnable) { |
|||
return wmsWarehouseAreaTypeService.updateIsEnable(sid,isEnable); |
|||
} |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.yxt.wms.apiadmin.base; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendDto; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendQuery; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendService; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendVo; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/18 10:52 |
|||
*/ |
|||
public class WmsWarehouseExtendRest { |
|||
|
|||
@Autowired |
|||
WmsWarehouseExtendService wmsWarehouseExtendService; |
|||
|
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WmsWarehouseExtendDto dto) { |
|||
return wmsWarehouseExtendService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WmsWarehouseExtendVo> initialization(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseExtendService.initialization(sid); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.yxt.wms.apiadmin.base; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaAllVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseinfo.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/27 16:14 |
|||
*/ |
|||
@Api(tags = "仓库信息") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/base/wmswarehouseinfo") |
|||
public class WmsWarehouseInfoRest { |
|||
|
|||
@Autowired |
|||
WmsWarehouseInfoService wmsWarehouseService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsWarehouseInfoVo>> listPage(@RequestBody PagerQuery<WmsWarehouseInfoQuery> pq) { |
|||
return wmsWarehouseService.listPage(pq); |
|||
} |
|||
@ApiOperation("查询所有的仓库") |
|||
@GetMapping("/listAll") |
|||
public ResultBean<WmsWarehouseInfoVo> listAll() { |
|||
return wmsWarehouseService.listAll(); |
|||
} |
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WmsWarehouseInfoDto dto) { |
|||
return wmsWarehouseService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WmsWarehouseInfoVo> initialization(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseService.initialization(sid); |
|||
} |
|||
|
|||
@ApiOperation("删除") |
|||
@DeleteMapping("/delete/{sid}") |
|||
public ResultBean delete(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseService.delete(sid); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateStatus/{sid}/{state}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("state")String state) { |
|||
return wmsWarehouseService.updateIsEnable(sid,state); |
|||
} |
|||
|
|||
@ApiOperation("查询所有仓库") |
|||
@GetMapping("/selectAll") |
|||
public ResultBean<List<WmsWarehouseInfoAllVo>> selectAll(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseAreaAllVo> wmsWarehouseAreaAllVos = wmsWarehouseService.selectAll(); |
|||
return rb.success().setData(wmsWarehouseAreaAllVos); |
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.yxt.wms.apiadmin.base; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackDto; |
|||
import com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackQuery; |
|||
import com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackService; |
|||
import com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:59 |
|||
*/ |
|||
@Api(tags = "货架信息") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/base/wmswarehouserack") |
|||
public class WmsWarehouseRackRest { |
|||
|
|||
@Autowired |
|||
WmsWarehouseRackService wmsWarehouseRackService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsWarehouseRackVo>> listPage(@RequestBody PagerQuery<WmsWarehouseRackQuery> pq) { |
|||
return wmsWarehouseRackService.listPage(pq); |
|||
} |
|||
@ApiOperation("查询所有的库区") |
|||
@GetMapping("/getAllType") |
|||
public ResultBean<WmsWarehouseRackVo> getAllType() { |
|||
return wmsWarehouseRackService.getAllType(); |
|||
} |
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WmsWarehouseRackDto dto) { |
|||
return wmsWarehouseRackService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WmsWarehouseRackVo> initialization(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseRackService.initialization(sid); |
|||
} |
|||
|
|||
@ApiOperation("删除") |
|||
@DeleteMapping("/delete/{sid}") |
|||
public ResultBean delete(@PathVariable("sid") String sid) { |
|||
return wmsWarehouseRackService.delete(sid); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateIsEnable/{sid}/{isEnable}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("isEnable")String isEnable) { |
|||
return wmsWarehouseRackService.updateIsEnable(sid,isEnable); |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationDto; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationQuery; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationService; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationVo; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailDto; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailQuery; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailService; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/27 14:38 |
|||
*/ |
|||
@Api(tags = "预约入库明细表") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/warereservadetail") |
|||
public class WarehousingReservationDetailRest { |
|||
@Autowired |
|||
WarehousingReservationDetailService warehousingReservationDetailService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WarehousingReservationDetailVo>> listPage(@RequestBody PagerQuery<WarehousingReservationDetailQuery> pq) { |
|||
return warehousingReservationDetailService.listPage(pq); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WarehousingReservationDetailDto dto) { |
|||
return warehousingReservationDetailService.saveOrUpdate(dto); |
|||
} |
|||
|
|||
@ApiOperation("根据预约sid查询明细") |
|||
@GetMapping("/selByReservationSid/{sid}") |
|||
public ResultBean<List<WarehousingReservationDetailVo>> selByReservationSid(@PathVariable("sid") String sid) { |
|||
return warehousingReservationDetailService.selByReservationSid(sid); |
|||
} |
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateStatus/{sid}/{state}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("state")String state) { |
|||
return warehousingReservationDetailService.updateIsEnable(sid,state); |
|||
} |
|||
} |
@ -0,0 +1,55 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationDto; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationQuery; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationService; |
|||
import com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/27 16:14 |
|||
*/ |
|||
@Api(tags = "预约入库") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/warereservation") |
|||
public class WarehousingReservationRest { |
|||
|
|||
@Autowired |
|||
WarehousingReservationService warehouseReservationService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WarehousingReservationVo>> listPage(@RequestBody PagerQuery<WarehousingReservationQuery> pq) { |
|||
return warehouseReservationService.listPage(pq); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("保存修改") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean<String> saveOrUpdate(@RequestBody WarehousingReservationDto dto) { |
|||
return warehouseReservationService.saveOrUpdate(dto); |
|||
} |
|||
@ApiOperation("保存") |
|||
@PostMapping("/save") |
|||
public ResultBean<String> save(@RequestBody WarehousingReservationDto dto) { |
|||
return warehouseReservationService.save(dto); |
|||
} |
|||
@ApiOperation("初始化") |
|||
@GetMapping("/initialization/{sid}") |
|||
public ResultBean<WarehousingReservationVo> initialization(@PathVariable("sid") String sid) { |
|||
return warehouseReservationService.initialization(sid); |
|||
} |
|||
|
|||
@ApiOperation("更改可用状态") |
|||
@GetMapping("/updateStatus/{sid}/{state}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid,@PathVariable("state")String state) { |
|||
return warehouseReservationService.updateIsEnable(sid,state); |
|||
} |
|||
} |
@ -0,0 +1,55 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsansbill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/9 |
|||
**/ |
|||
@Api(tags = "预期到货通知单") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsAnsBill") |
|||
public class WmsAnsBillRest { |
|||
|
|||
@Autowired |
|||
private WmsAnsBillService wmsAnsBillService; |
|||
|
|||
|
|||
@PostMapping("saveOrUpdate") |
|||
@ApiOperation("新增修改保存") |
|||
ResultBean<String> saveOrUpdate(@RequestBody WmsAnsBillDto dto) { |
|||
return wmsAnsBillService.saveOrUpdateBill(dto); |
|||
} |
|||
|
|||
/* @PostMapping("pageList") |
|||
@ApiOperation("收货单据选择") |
|||
ResultBean<PagerVo<WmsAnsBillDetailVo>> pageList(@RequestBody PagerQuery<WmsAnsBillDetailQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsAnsBillDetailVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsAnsBillDetailVo> pv = wmsAnsBillService.listPage(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
}*/ |
|||
|
|||
@PostMapping("listPage") |
|||
@ApiOperation("分页列表") |
|||
ResultBean<PagerVo<WmsAnsBillVo>> listPage(@RequestBody PagerQuery<WmsAnsBillQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsAnsBillVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsAnsBillVo> pv = wmsAnsBillService.listPages(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@GetMapping("details") |
|||
@ApiOperation("详情") |
|||
ResultBean<WmsAnsDetailsVo> details(@RequestParam("sid") String sid) { |
|||
return wmsAnsBillService.details(sid); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsdistributebill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/24 |
|||
**/ |
|||
@Api(tags = "配货单据") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsDistributeBill") |
|||
public class WmsDistributeBillRest { |
|||
|
|||
@Autowired |
|||
private WmsDistributeBillService wmsDistributeBillService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
ResultBean<PagerVo<WmsDistributeBillVo>> listPage(@RequestBody PagerQuery<WmsDistributeBillQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsDistributeBillVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsDistributeBillVo> pv = wmsDistributeBillService.listPage(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("从出库新增配货单") |
|||
@GetMapping("/getInit") |
|||
ResultBean<WmsDistributeBillInitVo> getInit(@RequestParam("sid") String sid) { |
|||
return wmsDistributeBillService.getInit(sid); |
|||
} |
|||
|
|||
@ApiOperation("详情/编辑初始化") |
|||
@GetMapping("/details") |
|||
ResultBean<WmsDistributeBillInitVo> details(@RequestParam("sid") String sid) { |
|||
return wmsDistributeBillService.details(sid); |
|||
} |
|||
|
|||
@ApiOperation("新增修改保存") |
|||
@PostMapping("/saveOrUpdateBill") |
|||
ResultBean<String> saveOrUpdateBill(@RequestBody WmsDistributeBillDto dto) { |
|||
return wmsDistributeBillService.saveOrUpdateBill(dto); |
|||
} |
|||
|
|||
@ApiOperation("确认") |
|||
@PostMapping("/confirm") |
|||
ResultBean<String> confirm(@RequestBody WmsDistributeBillDto dto) { |
|||
return wmsDistributeBillService.confirm(dto); |
|||
} |
|||
} |
@ -0,0 +1,49 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: yxt-wms(调拨单) <br/> |
|||
* File: WmsInventoryAllocatebillDetailFeignFallback.java <br/> |
|||
* Class: com.yxt.wms.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailRest <br/> |
|||
* Description: (调拨单-明细). <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-25 16:04:08 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "(调拨单-明细)") |
|||
@RestController |
|||
@RequestMapping("v1/wmsinventoryallocatebilldetail") |
|||
public class WmsInventoryAllocatebillDetailRest { |
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventoryallocatebill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: yxt-wms(调拨单) <br/> |
|||
* File: WmsInventoryAllocatebillFeignFallback.java <br/> |
|||
* Class: com.yxt.wms.biz.wmsinventoryallocatebill.WmsInventoryAllocatebillRest <br/> |
|||
* Description: (调拨单)-调出方操作. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-25 16:04:08 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "(调拨单)-调出方操作") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventoryallocatebill") |
|||
public class WmsInventoryAllocatebillRest { |
|||
|
|||
@Autowired |
|||
private WmsInventoryAllocateBillService wmsInventoryAllocateBillService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryAllocateBillVoNew>> listPage(@RequestBody PagerQuery<WmsInventoryAllocateBillQueryNew> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryAllocateBillVoNew> pv = wmsInventoryAllocateBillService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventoryAllocateBillDtoNew dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryAllocateBillService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryAllocateBillService.delAll(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventoryAllocateBillDetailsVoNew> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryAllocateBillDetailsVoNew vo = wmsInventoryAllocateBillService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("调拨") |
|||
@PostMapping("/allocation") |
|||
public ResultBean allocation(@RequestBody WmsInventoryAllocateBillDtoNew dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryAllocateBillService.allocation(dto); |
|||
return rb.success(); |
|||
} |
|||
} |
@ -0,0 +1,89 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorybatch.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: yxt-wms(库存) <br/> |
|||
* File: WmsInventoryBatchFeignFallback.java <br/> |
|||
* Class: com.yxt.wms.biz.wmsinventorybatch.WmsInventoryBatchRest <br/> |
|||
* Description: 商品库存-批次属性. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-30 14:05:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "商品库存-批次属性") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorybatch") |
|||
public class WmsInventoryBatchRest { |
|||
|
|||
@Autowired |
|||
private WmsInventoryBatchService wmsInventoryBatchService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryBatchVo>> listPage(@RequestBody PagerQuery<WmsInventoryBatchQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryBatchVo> pv = wmsInventoryBatchService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventoryBatchDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryBatchService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryBatchService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventoryBatchDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryBatchDetailsVo vo = wmsInventoryBatchService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/1 10:34 |
|||
*/ |
|||
@Api(tags = "出入库单明细") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorybilldetail") |
|||
public class WmsInventoryBillDetailRest { |
|||
|
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorybill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/29 11:17 |
|||
*/ |
|||
@Api(tags = "出入库单据") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorybill") |
|||
public class WmsInventoryBillRest { |
|||
|
|||
@Autowired |
|||
WmsInventoryBillService wmsInventoryBillService; |
|||
@Autowired |
|||
HttpServletResponse response; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryBillVo>> listPage(@RequestBody PagerQuery<WmsInventoryBillQuery> pq) { |
|||
ResultBean<PagerVo<WmsInventoryBillVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryBillVo> pv = wmsInventoryBillService.listPage(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("入库单") |
|||
@PostMapping("/inStorage") |
|||
public ResultBean inStorage(@RequestBody WmsInventoryBillInDto dto) { |
|||
return wmsInventoryBillService.inStorage(dto); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("出库单") |
|||
@PostMapping("/outStorage") |
|||
public ResultBean outStorage(@RequestBody WmsInventoryBillOutDto dto) { |
|||
return wmsInventoryBillService.outStorage(dto); |
|||
} |
|||
|
|||
@ApiOperation("入库单详情") |
|||
@GetMapping("/details") |
|||
ResultBean<InStorageDetailsVo> inDetails(@SpringQueryMap InStorageDetailsQuery inStorageDetailsQuery) { |
|||
return wmsInventoryBillService.inDetails(inStorageDetailsQuery); |
|||
} |
|||
|
|||
// @ApiOperation("出库单详情")
|
|||
// @GetMapping("/outDetails")
|
|||
ResultBean<OutStorageDetailsVo> outDetails(@SpringQueryMap OutStorageDetailsQuery outStorageDetailsQuery) { |
|||
return wmsInventoryBillService.outDetails(outStorageDetailsQuery); |
|||
} |
|||
|
|||
@PostMapping("/exportExcel") |
|||
@ApiOperation(value = "导出") |
|||
public void exportExcel(@RequestBody WmsInventoryBillQuery query) { |
|||
//得到所有要导出的数据
|
|||
List<WmsInventoryBillExcelVo> exportVoList = wmsInventoryBillService.listExcel(query); |
|||
//定义导出的excel名字
|
|||
String excelName = "出入库查询"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventoryBillExcelVo.class, response); |
|||
|
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,89 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓储) <br/> |
|||
* File: WmsInventoryCheckbillDetailFeignFallback.java <br/> |
|||
* Class: com.yxt.wms.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailRest <br/> |
|||
* Description: 库存盘点-明细. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-22 09:25:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "库存盘点-明细") |
|||
@RestController |
|||
@RequestMapping("wmsinventorycheckbilldetail") |
|||
public class WmsInventoryCheckbillDetailRest { |
|||
|
|||
@Autowired |
|||
private WmsInventoryCheckbillDetailService wmsInventoryCheckbillDetailService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillDetailVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillDetailQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryCheckbillDetailVo> pv = wmsInventoryCheckbillDetailService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventoryCheckbillDetailDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryCheckbillDetailService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryCheckbillDetailService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventoryCheckbillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryCheckbillDetailDetailsVo vo = wmsInventoryCheckbillDetailService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorycheckbill.*; |
|||
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓储) <br/> |
|||
* File: WmsInventoryCheckbillFeignFallback.java <br/> |
|||
* Class: com.yxt.wms.biz.wmsinventorycheckbill.WmsInventoryCheckbillRest <br/> |
|||
* Description: 库存盘点. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-22 09:25:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "库存盘点") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorycheckbill") |
|||
public class WmsInventoryCheckbillRest { |
|||
|
|||
@Autowired |
|||
private WmsInventoryCheckbillService wmsInventoryCheckbillService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryCheckbillVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryCheckbillVo> pv = wmsInventoryCheckbillService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventoryCheckbillDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryCheckbillService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryCheckbillService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventoryCheckbillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryCheckbillDetailsVo vo = wmsInventoryCheckbillService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("盘点") |
|||
@PostMapping("/inven") |
|||
public ResultBean inven(@RequestBody WmsInventoryCheckbillDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryCheckbillService.inven(dto); |
|||
return rb.success(); |
|||
} |
|||
} |
@ -0,0 +1,168 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryQuery; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryVoExcelVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventoryrecord.*; |
|||
import com.yxt.wms.biz.inventory.wmsinventoryrecord.report.*; |
|||
import com.yxt.wms.biz.inventory.wmsoutbill.WmsOutBillVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: wms(yxt) <br/> |
|||
* File: WmsInventoryRecordFeignFallback.java <br/> |
|||
* Class: inventroy.biz.wmsinventoryrecord.WmsInventoryRecordRest <br/> |
|||
* Description: 库存出入库记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-08 17:27:39 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "库存出入库记录") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventoryrecord") |
|||
public class WmsInventoryRecordRest { |
|||
|
|||
@Autowired |
|||
private WmsInventoryRecordService wmsInventoryRecordService; |
|||
|
|||
@Autowired |
|||
HttpServletResponse response; |
|||
|
|||
@ApiOperation("收发存明细报表") |
|||
@PostMapping("/inventoryDetailsRecord") |
|||
public ResultBean<PagerVo<WmsInventoryDetailsRecordVo>> inventoryDetailsRecord(@RequestBody PagerQuery<WmsInventoryDetailsRecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryDetailsRecordVo> pv = wmsInventoryRecordService.inventoryDetailsRecord(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("库存统计报表") |
|||
@PostMapping("/inventoryStats") |
|||
public ResultBean<WmsInventoryCountReportVo> inventoryStats(@RequestBody PagerQuery<WmsInventoryCountReportQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryCountReportVo vo = wmsInventoryRecordService.inventoryStats(pq); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("入库统计报表详情") |
|||
@PostMapping("/inventoryInboundStats") |
|||
public ResultBean<PagerVo<WmsInventoryCountDetailsVo>> inventoryInboundStats(@RequestBody PagerQuery<WmsInventoryCountReportQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryCountDetailsVo> pv = wmsInventoryRecordService.inventoryInboundStats(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("出库统计报表详情") |
|||
@PostMapping("/inventoryOutboundStats") |
|||
public ResultBean<PagerVo<WmsInventoryCountDetailsVo>> inventoryOutboundStats(@RequestBody PagerQuery<WmsInventoryCountReportQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryCountDetailsVo> pv = wmsInventoryRecordService.inventoryOutboundStats(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryRecordVo>> listPage(@RequestBody PagerQuery<WmsInventoryRecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryRecordVo> pv = wmsInventoryRecordService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventoryRecordDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryRecordService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventoryRecordService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventoryRecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventoryRecordDetailsVo vo = wmsInventoryRecordService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("库存出入库记录") |
|||
@GetMapping("/getWmsInventoryRecordList") |
|||
ResultBean<List<WmsInventoryRecordListVo>> getWmsInventoryRecordList(@RequestParam("sid")String sid){ |
|||
return wmsInventoryRecordService.getWmsInventoryRecordList(sid); |
|||
} |
|||
|
|||
@ApiOperation("出入库查询") |
|||
@PostMapping("/pageList") |
|||
ResultBean<PagerVo<WmsInventoryRecordsVo>> pageList(@RequestBody PagerQuery<WmsInventoryRecordsQuery> pagerQuery){ |
|||
ResultBean<PagerVo<WmsInventoryRecordsVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryRecordsVo> pv = wmsInventoryRecordService.listPage(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@PostMapping("/exportExcel") |
|||
@ApiOperation(value = "导出") |
|||
public void exportExcel(@RequestBody WmsInventoryRecordsQuery query) { |
|||
//得到所有要导出的数据
|
|||
List<WmsInventoryRecordsExcelVo> exportVoList = wmsInventoryRecordService.listExcel(query); |
|||
//定义导出的excel名字
|
|||
String excelName = "出入库查询"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventoryRecordsExcelVo.class, response); |
|||
|
|||
} |
|||
} |
@ -0,0 +1,191 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.*; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryDto; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryQuery; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryService; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 10:51 |
|||
*/ |
|||
@Api(tags = "库存信息") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventory") |
|||
public class WmsInventoryRest { |
|||
|
|||
@Autowired |
|||
WmsInventoryService wmsInventoryService; |
|||
@Autowired |
|||
HttpServletResponse response; |
|||
|
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventoryVo>> listPage(@RequestBody PagerQuery<WmsInventoryQuery> pq) { |
|||
ResultBean<PagerVo<WmsInventoryVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryVo> pv = wmsInventoryService.listPage(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("删除/批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
ResultBean delBySids(@RequestBody String[] sids) { |
|||
return wmsInventoryService.delAllBySids(sids); |
|||
} |
|||
|
|||
// @ApiOperation("入库")
|
|||
// @GetMapping("/warehousing")
|
|||
public ResultBean warehousing(WmsInventoryDto dto) { |
|||
return wmsInventoryService.warehousing(dto); |
|||
} |
|||
|
|||
/* @ApiOperation("编辑") |
|||
@PostMapping("/updateWmsInventory") |
|||
ResultBean updateWmsInventory(@RequestBody WmsInventoryUpdateDto dto) { |
|||
return wmsInventoryService.updateWmsInventory(dto); |
|||
} |
|||
|
|||
@ApiOperation("新增") |
|||
@PostMapping("/saveWmsInventory") |
|||
ResultBean<String> saveWmsInventory(@RequestBody WmsInventorySaveDto dto) { |
|||
return wmsInventoryService.saveWmsInventory(dto); |
|||
}*/ |
|||
|
|||
|
|||
|
|||
/*@ApiOperation("初始化") |
|||
@PostMapping("/init") |
|||
ResultBean<WmsInventoryInitVo> init(@RequestParam("sid") String sid) { |
|||
return wmsInventoryService.init(sid); |
|||
}*/ |
|||
|
|||
/* @ApiOperation("批量修改销售价") |
|||
@PostMapping("/updatePrice") |
|||
ResultBean updatePrice(@RequestBody WmsInventoryUpdatePrice wmsInventoryUpdatePrice) { |
|||
return wmsInventoryService.updatePrice(wmsInventoryUpdatePrice); |
|||
}*/ |
|||
|
|||
/* @ApiOperation("收发存") |
|||
@PostMapping("/getBillList") |
|||
ResultBean<PagerVo<WmsInventoryBillListVo>> getBillList(@RequestBody PagerQuery<WmsInventoryBillListQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsInventoryBillListVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryBillListVo> pv = wmsInventoryService.getBillList(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
}*/ |
|||
|
|||
@PostMapping("/exportExcel") |
|||
@ApiOperation(value = "导出") |
|||
public void exportExcel(@RequestBody WmsInventoryQuery query) { |
|||
//得到所有要导出的数据
|
|||
List<WmsInventoryVoExcelVo> exportVoList = wmsInventoryService.listExcel(query); |
|||
//定义导出的excel名字
|
|||
String excelName = "库存列表"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventoryVoExcelVo.class, response); |
|||
|
|||
} |
|||
|
|||
@ApiOperation("修改库存数量") |
|||
@PostMapping("/updateInventoryCount") |
|||
ResultBean updateInventoryCount(@RequestBody WmsUpdateCountQuery query) { |
|||
return wmsInventoryService.updateInventoryCount(query); |
|||
} |
|||
|
|||
@ApiOperation("销售开单选择商品分页列表") |
|||
@PostMapping("/listPageSales") |
|||
public ResultBean<PagerVo<WmsInventorySalesVo>> listPageSales(@RequestBody PagerQuery<WmsInventorySalesQuery> pq) { |
|||
ResultBean<PagerVo<WmsInventorySalesVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventorySalesVo> pv = wmsInventoryService.listPageSales(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("查询分公司下所有的商品信息") |
|||
@PostMapping("/getPackageGoodsVo") |
|||
public ResultBean<PagerVo<WmsInventoryPackageVo>> getPackageGoodsVo(@RequestBody PagerQuery<WmsInventoryPackageQuery> pq) { |
|||
return wmsInventoryService.getPackageGoodsVo(pq); |
|||
} |
|||
|
|||
@ApiOperation("库龄查询") |
|||
@PostMapping("/inventoryAgeList") |
|||
public ResultBean<PagerVo<WmsInventoryAgeVo>> inventoryAgeList(@RequestBody PagerQuery<WmsInventoryAgeQuery> pq) { |
|||
ResultBean<PagerVo<WmsInventoryAgeVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventoryAgeVo> pv = wmsInventoryService.inventoryAgeList(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@PostMapping("/ageExportExcel") |
|||
@ApiOperation(value = "库龄查询导出") |
|||
public void ageExportExcel(@RequestBody WmsInventoryAgeQuery query) { |
|||
//得到所有要导出的数据
|
|||
List<WmsInventoryAgeExportVo> exportVoList = wmsInventoryService.ageExportExcel(query); |
|||
//定义导出的excel名字
|
|||
String excelName = "库领查询列表"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventoryAgeExportVo.class, response); |
|||
|
|||
} |
|||
|
|||
@ApiOperation("根据商品sid查询库存信息") |
|||
@PostMapping("/selectInvenBySkuSid") |
|||
public ResultBean<WmsGoodsInventoryVo> selectInvenBySkuSid(@RequestParam("skuSid") String skuSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsGoodsInventoryVo wmsGoodsInventoryVo = wmsInventoryService.selectInvenBySkuSid(skuSid); |
|||
return rb.success().setData(wmsGoodsInventoryVo); |
|||
} |
|||
|
|||
@ApiOperation("盘库商品分页列表") |
|||
@PostMapping("/invenGoodsListPage") |
|||
public ResultBean<PagerVo<WmsInventoryInvenSelectList>> invenGoodsListPage(@RequestBody PagerQuery<WmsInventoryInvenSelectQuery> pq) { |
|||
return wmsInventoryService.invenGoodsListPage(pq); |
|||
} |
|||
|
|||
@ApiOperation("调拨商品分页列表") |
|||
@PostMapping("/alloGoodsListPage") |
|||
public ResultBean<PagerVo<WmsInventoryAlloSelectList>> alloGoodsListPage(@RequestBody PagerQuery<WmsInventoryAlloSelectQuery> pq) { |
|||
return wmsInventoryService.alloGoodsListPage(pq); |
|||
} |
|||
|
|||
@ApiOperation("旧件返厂商品分页列表") |
|||
@PostMapping("/returnGoodsListPage") |
|||
public ResultBean<PagerVo<WmsInventoryReturnSelectList>> returnGoodsListPage(@RequestBody PagerQuery<WmsInventoryReturnSelectQuery> pq) { |
|||
return wmsInventoryService.returnGoodsListPage(pq); |
|||
} |
|||
|
|||
@ApiOperation("旧件处理商品分页列表") |
|||
@PostMapping("/handleGoodsListPage") |
|||
public ResultBean<PagerVo<WmsInventoryHandleSelectList>> handleGoodsListPage(@RequestBody PagerQuery<WmsInventoryHandleSelectQuery> pq) { |
|||
return wmsInventoryService.handleGoodsListPage(pq); |
|||
} |
|||
|
|||
@ApiOperation("根据Sid获取库存实体") |
|||
@PostMapping("/fetchEntityBySid") |
|||
ResultBean<WmsInventory> fetchEntityBySid(@RequestParam("sid") String sid) { |
|||
return wmsInventoryService.fetchEntityBySid(sid); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,119 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryQuery; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryVoExcelVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorysettlebilldetail.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-wms(yxt-wms) <br/> |
|||
* File: WmsInventorySettlebillDetailFeignFallback.java <br/> |
|||
* Class: wms.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailRest <br/> |
|||
* Description: 库存结算明细. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 14:22:38 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "库存结算明细") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorysettlebilldetail") |
|||
public class WmsInventorySettlebillDetailRest{ |
|||
|
|||
@Autowired |
|||
private WmsInventorySettlebillDetailService wmsInventorySettlebillDetailService; |
|||
@Autowired |
|||
HttpServletResponse response; |
|||
|
|||
@PostMapping("/exportExcel") |
|||
@ApiOperation(value = "导出") |
|||
public void exportExcel(@RequestBody WmsInventorySettlebillDetailQuery query) { |
|||
//得到所有要导出的数据
|
|||
List<WmsInventorySettlebillExportVo> exportVoList = wmsInventorySettlebillDetailService.listExcel(query); |
|||
//定义导出的excel名字
|
|||
String excelName = "结转库存列表"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventorySettlebillExportVo.class, response); |
|||
|
|||
} |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventorySettlebillDetailVo>> listPage(@RequestBody PagerQuery<WmsInventorySettlebillDetailQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventorySettlebillDetailVo> pv = wmsInventorySettlebillDetailService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventorySettlebillDetailDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventorySettlebillDetailService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventorySettlebillDetailService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventorySettlebillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventorySettlebillDetailDetailsVo vo = wmsInventorySettlebillDetailService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,124 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryQuery; |
|||
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryVoExcelVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorysettlebill.*; |
|||
import com.yxt.wms.biz.inventory.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-wms(yxt-wms) <br/> |
|||
* File: WmsInventorySettlebillFeignFallback.java <br/> |
|||
* Class: wms.biz.wmsinventorysettlebill.WmsInventorySettlebillRest <br/> |
|||
* Description: 库存结算单. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 14:22:38 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "库存结算单") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/wmsinventorysettlebill") |
|||
public class WmsInventorySettlebillRest { |
|||
|
|||
@Autowired |
|||
private WmsInventorySettlebillService wmsInventorySettlebillService; |
|||
@Autowired |
|||
private WmsInventorySettlebillDetailService wmsInventorySettlebillDetailService; |
|||
|
|||
@ApiOperation("库存结转") |
|||
@PostMapping("/saveSettlebill") |
|||
public ResultBean saveSettlebill(@RequestBody WmsInventorySettlebillDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventorySettlebillService.saveSettlebill(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("结转记录查询") |
|||
@PostMapping("/carryForwardList") |
|||
public ResultBean<PagerVo<WmsInventorySettleRecordVo>> carryForwardList(@RequestBody PagerQuery<WmsInventorySettleRecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventorySettleRecordVo> pv = wmsInventorySettlebillService.carryForwardList(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsInventorySettlebillVo>> listPage(@RequestBody PagerQuery<WmsInventorySettlebillQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<WmsInventorySettlebillVo> pv = wmsInventorySettlebillService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody WmsInventorySettlebillDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventorySettlebillService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
wmsInventorySettlebillService.delBySids(sids); |
|||
for (String sid : sids) { |
|||
wmsInventorySettlebillDetailService.delByMainSid(sid); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<WmsInventorySettlebillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsInventorySettlebillDetailsVo vo = wmsInventorySettlebillService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.base.utils.ExportExcelUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsoldinventory.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/28 |
|||
**/ |
|||
@Api(tags = "旧件") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsOldInventory") |
|||
public class WmsOldInventoryRest { |
|||
|
|||
@Autowired |
|||
private WmsOldInventoryService wmsOldInventoryService; |
|||
@Autowired |
|||
HttpServletResponse response; |
|||
|
|||
@ApiOperation("待入库旧件列表") |
|||
@PostMapping("/listPage") |
|||
ResultBean<PagerVo<WmsOldInventoryVo>> listPage(@RequestBody PagerQuery<WmsOldInventoryQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsOldInventoryVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsOldInventoryVo> pv = wmsOldInventoryService.listPage(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("旧件入库初始化") |
|||
@GetMapping("/getInit") |
|||
ResultBean<WmsOldInventoryInitVo> getInit(@RequestParam("sid") String sid) { |
|||
return wmsOldInventoryService.getInit(sid); |
|||
} |
|||
|
|||
@ApiOperation("旧件入库保存") |
|||
@PostMapping("/saveInventory") |
|||
ResultBean saveInventory(@RequestBody WmsOldInventoryDto dto) { |
|||
return wmsOldInventoryService.saveInventory(dto); |
|||
} |
|||
|
|||
@ApiOperation("旧件库存查询") |
|||
@PostMapping("/oldPageList") |
|||
ResultBean<PagerVo<WmsOldInventoryPageListVo>> oldPageList(@RequestBody PagerQuery<WmsOldInventoryPageListQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsOldInventoryPageListVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsOldInventoryPageListVo> pv = wmsOldInventoryService.oldPageList(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("删除/批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
ResultBean delBySids(@RequestBody String[] sids) { |
|||
return wmsOldInventoryService.delAllBySids(sids); |
|||
} |
|||
|
|||
@ApiOperation("导出") |
|||
@PostMapping("/excelList") |
|||
public void excelList(@RequestBody WmsOldInventoryPageListQuery wmsOldInventoryPageListQuery) { |
|||
//得到所有要导出的数据
|
|||
List<WmsOldInventoryExcelVo> exportVoList = wmsOldInventoryService.listExcel(wmsOldInventoryPageListQuery); |
|||
//定义导出的excel名字
|
|||
String excelName = "旧件库存列表"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsOldInventoryExcelVo.class, response); |
|||
} |
|||
|
|||
@ApiOperation("库存出入库记录") |
|||
@GetMapping("/getDetailsList") |
|||
ResultBean<WmsOldInventoryDetailsVo> getDetailsList(@RequestParam("sid") String sid) { |
|||
return wmsOldInventoryService.getDetailsList(sid); |
|||
} |
|||
|
|||
@ApiOperation("旧件出入库记录") |
|||
@PostMapping("/recordList") |
|||
ResultBean<PagerVo<WmsOldInventoryRecordList>> recordList(@RequestBody PagerQuery<WmsOldInventoryRecordListQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsOldInventoryRecordList>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsOldInventoryRecordList> pv = wmsOldInventoryService.recordList(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("导出") |
|||
@PostMapping("/excelRecordList") |
|||
public void excelRecordList(@RequestBody WmsOldInventoryRecordListQuery wmsOldInventoryRecordListQuery) { |
|||
//得到所有要导出的数据
|
|||
List<WmsOldInventoryRecordListExcelVo> exportVoList = wmsOldInventoryService.excelRecordList(wmsOldInventoryRecordListQuery); |
|||
//定义导出的excel名字
|
|||
String excelName = "旧件出入库记录列表"; |
|||
String fileNameURL = ""; |
|||
try { |
|||
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
|||
} catch (UnsupportedEncodingException e) { |
|||
e.printStackTrace(); |
|||
} |
|||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsOldInventoryRecordListExcelVo.class, response); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsoldregister.WmsOldRegisterDto; |
|||
import com.yxt.wms.biz.inventory.wmsoldregister.WmsOldRegisterQuery; |
|||
import com.yxt.wms.biz.inventory.wmsoldregister.WmsOldRegisterService; |
|||
import com.yxt.wms.biz.inventory.wmsoldregister.WmsOldRegisterVo; |
|||
import com.yxt.wms.biz.inventory.wmsoutbill.WmsOutBillVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/26 |
|||
**/ |
|||
@Api(tags = "旧件回收登记") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsOldRegister") |
|||
public class WmsOldRegisterRest { |
|||
|
|||
@Autowired |
|||
private WmsOldRegisterService wmsOldRegisterService; |
|||
|
|||
@ApiOperation("新增修改保存") |
|||
@PostMapping("/saveorUpdateOldRegister") |
|||
ResultBean saveorUpdateOldRegister(@RequestBody WmsOldRegisterDto dto) { |
|||
return wmsOldRegisterService.saveorUpdateOldRegister(dto); |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsoutbill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/24 |
|||
**/ |
|||
@Api(tags = "出库单据") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsOutBill") |
|||
public class WmsOutBillRest { |
|||
|
|||
@Autowired |
|||
private WmsOutBillService wmsOutBillService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
ResultBean<PagerVo<WmsOutBillVo>> pageList(@RequestBody PagerQuery<WmsOutBillQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsOutBillVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsOutBillVo> pv = wmsOutBillService.listPage(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("出库保存修改") |
|||
@PostMapping("/saveOrUpdateOutBill") |
|||
ResultBean<String> saveOrUpdateOutBill(@RequestBody WmsOutBillDto dto) { |
|||
return wmsOutBillService.saveOrUpdateOutBill(dto); |
|||
} |
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/details") |
|||
ResultBean<WmsOutBillDetailsVo> details(@RequestParam("sid") String sid) { |
|||
return wmsOutBillService.details(sid); |
|||
} |
|||
|
|||
@ApiOperation("选择商品分页列表") |
|||
@PostMapping("/getInventoryList") |
|||
ResultBean<PagerVo<WmsOutBillInventoryVo>> getInventoryList(@RequestBody PagerQuery<WmsOutBillInventoryQuery> pagerQuery) { |
|||
ResultBean<PagerVo<WmsOutBillInventoryVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsOutBillInventoryVo> pv = wmsOutBillService.getInventoryList(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("确认") |
|||
@PostMapping("/confirm") |
|||
ResultBean confirm(@RequestBody WmsOutBillDto dto) { |
|||
return wmsOutBillService.confirm(dto); |
|||
} |
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsinventorybill.WmsInventoryBillQuery; |
|||
import com.yxt.wms.biz.inventory.wmsinventorybill.WmsInventoryBillVo; |
|||
import com.yxt.wms.biz.inventory.wmsreceiptbill.*; |
|||
import com.yxt.wms.biz.inventory.wmsreceiptbilldetail.WmsReceiptBillDetail; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/3 |
|||
**/ |
|||
@Api(tags = "收货单据") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/inventory/WmsReceiptBill") |
|||
public class WmsReceiptBillRest { |
|||
|
|||
@Autowired |
|||
private WmsReceiptBillService wmsReceiptBillService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsReceiptBillPageVo>> listPage(@RequestBody PagerQuery<WmsReceiptBillQuery> pq) { |
|||
ResultBean<PagerVo<WmsReceiptBillPageVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsReceiptBillPageVo> pv = wmsReceiptBillService.listPage(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
/* @ApiOperation("新增修改保存") |
|||
@PostMapping("/saveOrUpdate2") |
|||
ResultBean<String> saveOrUpdate2(@RequestBody WmsReceiptBillDto dto) { |
|||
return wmsReceiptBillService.saveOrUpdateBill(dto); |
|||
} |
|||
*/ |
|||
@ApiOperation("新增修改保存") |
|||
@PostMapping("/saveOrUpdate") |
|||
ResultBean<String> saveOrUpdate(@RequestBody WmsReceiptBillDto2 dto) { |
|||
return wmsReceiptBillService.saveOrUpdateBill2(dto); |
|||
} |
|||
|
|||
@ApiOperation("通知单收货单初始化") |
|||
@GetMapping("/getInitDetails") |
|||
ResultBean<WmsReceiptBillVo> getInitDetails(@RequestParam("sourceSid") String sourceSid) { |
|||
return wmsReceiptBillService.getInitDetails(sourceSid); |
|||
} |
|||
|
|||
@ApiOperation("收货单据编辑初始化/详情") |
|||
@GetMapping("/getDetailsInit") |
|||
ResultBean<WmsReceiptBillInitVo> getDetailsInit(@RequestParam("sid") String sid) { |
|||
return wmsReceiptBillService.getDetailsInit(sid); |
|||
} |
|||
|
|||
@ApiOperation("确认") |
|||
@PostMapping("/confirm") |
|||
ResultBean<String> confirm(@RequestBody WmsReceiptBillDto2 dto) { |
|||
return wmsReceiptBillService.confirm(dto); |
|||
} |
|||
|
|||
@ApiOperation("删除/批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
ResultBean delBySids(@RequestBody String[] sids) { |
|||
return wmsReceiptBillService.delAllBySids(sids); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.yxt.wms.apiadmin.inventroy; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.inventory.wmsreceiptbill.WmsReceiptBillDto2; |
|||
import com.yxt.wms.biz.inventory.wmsreceiptbill.WmsReceiptBillPageVo; |
|||
import com.yxt.wms.biz.inventory.wmsreceiptbill.WmsReceiptBillQuery; |
|||
import com.yxt.wms.biz.inventory.wmsshelfbill.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/4/11 |
|||
**/ |
|||
@Api(tags = "上货架") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/WmsShelfBill") |
|||
public class WmsShelfBillRest { |
|||
|
|||
@Autowired |
|||
private WmsShelfBillService wmsShelfBillService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WmsShelfBillVo>> listPage(@RequestBody PagerQuery<WmsShelfBillQuery> pq) { |
|||
ResultBean<PagerVo<WmsShelfBillVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<WmsShelfBillVo> pv = wmsShelfBillService.listPage(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增修改保存") |
|||
@PostMapping("/saveOrUpdate") |
|||
ResultBean saveOrUpdate(@RequestBody WmsShelfBillDto dto) { |
|||
return wmsShelfBillService.saveOrUpdateShelf(dto); |
|||
} |
|||
|
|||
@ApiOperation("删除/批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
ResultBean delBySids(@RequestBody String[] sids) { |
|||
return wmsShelfBillService.delAllBySids(sids); |
|||
} |
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/details") |
|||
ResultBean<ShelfDetailsVo> details(@RequestParam("sid") String sid) { |
|||
return wmsShelfBillService.details(sid); |
|||
} |
|||
|
|||
/** |
|||
* 新增初始化 |
|||
* |
|||
* @param sid 收货单据sid |
|||
* @return |
|||
*/ |
|||
@ApiOperation("新增初始化") |
|||
@GetMapping("/getInit") |
|||
ResultBean<ShelfInitVo> getInit(@RequestParam("sid") String sid,@RequestParam("orgPath")String orgPath,@RequestParam("userSid")String userSid) { |
|||
return wmsShelfBillService.getInit(sid,orgPath,userSid); |
|||
} |
|||
|
|||
@ApiOperation("确认") |
|||
@PostMapping("/confirm") |
|||
ResultBean<String> confirm(@RequestBody WmsShelfBillDto dto) { |
|||
return wmsShelfBillService.confirm(dto); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.yxt.wms.apiwx; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
@RestController("com.yxt.wms.apiwx.WxHomeRest") |
|||
@RequestMapping("/apiwx/home") |
|||
public class WxHomeRest { |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.UUID; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseArea extends BaseEntity { |
|||
// private String id;
|
|||
// private String sid= UUID.randomUUID().toString();
|
|||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|||
// private Date createTime;
|
|||
// private String remarks;
|
|||
// private String isEnable;
|
|||
private String areaName;//库位名称
|
|||
private String areaCode;//库位编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String volume;//库位容量
|
|||
private String unit;//计量单位
|
|||
private String areaTypeSid;//货区类型
|
|||
} |
@ -0,0 +1,56 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓库) <br/> |
|||
* File: WmsWarehouseAreaVo.java <br/> |
|||
* Class: com.yxt.wms.api.wmswarehousearea.WmsWarehouseAreaVo <br/> |
|||
* Description: 库区 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-09 14:35:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "库区 视图数据详情", description = "库区 视图数据详情") |
|||
public class WmsWarehouseAreaAllVo implements Vo { |
|||
|
|||
private String sid; |
|||
@ApiModelProperty("库位名称") |
|||
private String areaName; |
|||
@ApiModelProperty("库位编码") |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String areaName;//库位名称
|
|||
private String areaCode;//库位编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String volume;//库位容量
|
|||
private String unit;//计量单位
|
|||
private String areaTypeSid;//货区类型
|
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WmsWarehouseAreaMapper extends BaseMapper<WmsWarehouseArea> { |
|||
IPage<WmsWarehouseAreaVo> listPage(IPage<WmsWarehouseArea> page, @Param(Constants.WRAPPER) QueryWrapper<WmsWarehouseArea> qw); |
|||
WmsWarehouseAreaVo initialization (@Param("sid") String sid); |
|||
|
|||
@Select("select * from wms_warehouse_area where warehouseSid = #{ckSid}") |
|||
List<WmsWarehouseAreaAllVo> selectAll(String ckSid); |
|||
} |
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaVo"> |
|||
select |
|||
a.*,b.warehouseName as warehouseName,c.warehouseAreaTypeName as areaTypeName |
|||
from wms_warehouse_area a |
|||
left join wms_warehouse_info b on b.sid=a.warehouseSid |
|||
left join wms_warehouse_area_type c on c.sid =a.areaTypeSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
<select id="initialization" resultType="com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaVo"> |
|||
select |
|||
a.*,b.warehouseName as warehouseName,c.warehouseAreaTypeName as areaTypeName |
|||
from wms_warehouse_area a |
|||
left join wms_warehouse_info b on b.sid=a.warehouseSid |
|||
left join wms_warehouse_area_type c on c.sid =a.areaTypeSid |
|||
|
|||
where a.sid =#{sid} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaQuery implements Query { |
|||
private String name; |
|||
} |
@ -0,0 +1,93 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WmsWarehouseAreaService extends MybatisBaseService<WmsWarehouseAreaMapper, WmsWarehouseArea> { |
|||
|
|||
|
|||
public ResultBean<PagerVo<WmsWarehouseAreaVo>> listPage(PagerQuery<WmsWarehouseAreaQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaQuery query = pq.getParams(); |
|||
QueryWrapper<WmsWarehouseArea> qw = new QueryWrapper<>(); |
|||
if(StringUtils.isNotBlank(query.getName())){ |
|||
qw.like("areaName",query.getName()); |
|||
} |
|||
|
|||
IPage<WmsWarehouseArea> page = PagerUtil.queryToPage(pq); |
|||
IPage<WmsWarehouseAreaVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WmsWarehouseAreaVo> p = PagerUtil.pageToVo(pagging, null); |
|||
List<WmsWarehouseAreaVo> records = pagging.getRecords(); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<WmsWarehouseAreaVo> getAllType() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseArea> pagging = baseMapper.selectList(new QueryWrapper<WmsWarehouseArea>().eq("isEnable",1)); |
|||
return rb.success().setData(pagging); |
|||
} |
|||
|
|||
public ResultBean<String> saveOrUpdate(WmsWarehouseAreaDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WmsWarehouseArea wmsWarehouseArea = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseArea, "id", "sid"); |
|||
wmsWarehouseArea.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouseArea); |
|||
} else { |
|||
WmsWarehouseArea wmsWarehouseArea = new WmsWarehouseArea(); |
|||
sid = wmsWarehouseArea.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseArea, "id", "sid"); |
|||
wmsWarehouseArea.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouseArea); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public ResultBean<WmsWarehouseAreaVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaVo vo = baseMapper.initialization(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean delete(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseArea wmsWarehouseArea = fetchBySid(sid); |
|||
if (null != wmsWarehouseArea) { |
|||
baseMapper.deleteById(wmsWarehouseArea.getId()); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseArea wmsWarehouseArea = fetchBySid(sid); |
|||
if (null != wmsWarehouseArea) { |
|||
wmsWarehouseArea.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouseArea); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public List<WmsWarehouseAreaAllVo> selectAll(String ckSid) { |
|||
return baseMapper.selectAll(ckSid); |
|||
} |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.wms.biz.base.wmswarehousearea; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String areaName;//库位名称
|
|||
private String areaCode;//库位编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String volume;//库位容量
|
|||
private String unit;//计量单位
|
|||
private String areaTypeSid;//货区类型
|
|||
private String warehouseName;//仓库名称
|
|||
private String areaTypeName;//货区类型名称
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaType extends BaseEntity { |
|||
|
|||
private String warehouseAreaTypeName;//库位类型名称
|
|||
private String useOrgSid;//使用组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaTypeDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String warehouseAreaTypeName;//库位类型名称
|
|||
private String useOrgSid;//使用组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WmsWarehouseAreaTypeMapper extends BaseMapper<WmsWarehouseAreaType> { |
|||
IPage<WmsWarehouseAreaTypeVo> listPage(IPage<WmsWarehouseAreaType> page, @Param(Constants.WRAPPER) QueryWrapper<WmsWarehouseAreaType> qw); |
|||
WmsWarehouseAreaTypeVo initialization (@Param("sid") String sid); |
|||
} |
@ -0,0 +1,22 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeVo"> |
|||
select |
|||
a.* |
|||
from wms_warehouse_area_type a |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
<select id="initialization" resultType="com.yxt.wms.biz.base.wmswarehouseareatype.WmsWarehouseAreaTypeVo"> |
|||
select |
|||
a.* |
|||
from wms_warehouse_area_type a |
|||
where a.sid =#{sid} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaTypeQuery implements Query { |
|||
private String name; |
|||
} |
@ -0,0 +1,89 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WmsWarehouseAreaTypeService extends MybatisBaseService<WmsWarehouseAreaTypeMapper, WmsWarehouseAreaType> { |
|||
|
|||
|
|||
public ResultBean<PagerVo<WmsWarehouseAreaTypeVo>> listPage(PagerQuery<WmsWarehouseAreaTypeQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaTypeQuery query = pq.getParams(); |
|||
QueryWrapper<WmsWarehouseAreaType> qw = new QueryWrapper<>(); |
|||
if(StringUtils.isNotBlank(query.getName())){ |
|||
qw.like("areaName",query.getName()); |
|||
} |
|||
|
|||
IPage<WmsWarehouseAreaType> page = PagerUtil.queryToPage(pq); |
|||
IPage<WmsWarehouseAreaTypeVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WmsWarehouseAreaTypeVo> p = PagerUtil.pageToVo(pagging, null); |
|||
List<WmsWarehouseAreaTypeVo> records = pagging.getRecords(); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<WmsWarehouseAreaTypeVo> listAll() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseAreaType> pagging = baseMapper.selectList(new QueryWrapper<WmsWarehouseAreaType>().eq("isEnable",1)); |
|||
return rb.success().setData(pagging); |
|||
} |
|||
|
|||
public ResultBean<String> saveOrUpdate(WmsWarehouseAreaTypeDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WmsWarehouseAreaType wmsWarehouseArea = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseArea, "id", "sid"); |
|||
wmsWarehouseArea.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouseArea); |
|||
} else { |
|||
WmsWarehouseAreaType wmsWarehouseArea = new WmsWarehouseAreaType(); |
|||
sid = wmsWarehouseArea.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseArea, "id", "sid"); |
|||
wmsWarehouseArea.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouseArea); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public ResultBean<WmsWarehouseAreaTypeVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaTypeVo vo = baseMapper.initialization(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean delete(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaType wmsWarehouseArea = fetchBySid(sid); |
|||
if (null != wmsWarehouseArea) { |
|||
baseMapper.deleteById(wmsWarehouseArea.getId()); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseAreaType wmsWarehouseArea = fetchBySid(sid); |
|||
if (null != wmsWarehouseArea) { |
|||
wmsWarehouseArea.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouseArea); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseareatype; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseAreaTypeVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String warehouseAreaTypeName;//库位类型名称
|
|||
private String useOrgSid;//使用组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:36 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseExtend extends BaseEntity { |
|||
|
|||
private String warehouseName;//仓库名称
|
|||
private String warehouseCode;//仓库编码
|
|||
private String contacts;//联系人
|
|||
private String mob;//手机
|
|||
private String telephone;//联系电话
|
|||
private String manager;//主管
|
|||
private String areaSid;//地区sid
|
|||
private String address;//地址
|
|||
private String longitude;//经度
|
|||
private String latitude;//纬度
|
|||
private String warehouseTypeKey;//仓库类型Key
|
|||
private String warehouseTypeValue;//仓库类型value
|
|||
private String usageStatus;//使用状态,0停用 1正常
|
|||
private String squareMeter;//平方米
|
|||
private String sortNo;//创建组织sid
|
|||
private String useOrgSid;//创建组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseExtendDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String warehouseSid;//仓库sid
|
|||
private String markupRate1;//加价率1
|
|||
private String markupRate2;//加价率2
|
|||
private String markupRate3;//加价率3
|
|||
private String markupRate4;//加价率4
|
|||
private String markupRate5;//加价率5
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WmsWarehouseExtendMapper extends BaseMapper<WmsWarehouseExtend> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendVo"> |
|||
select |
|||
* |
|||
from wms_warehouse_extend |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseExtendQuery implements Query { |
|||
private String name; |
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.text.SimpleDateFormat; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WmsWarehouseExtendService extends MybatisBaseService<WmsWarehouseExtendMapper, WmsWarehouseExtend> { |
|||
|
|||
|
|||
public ResultBean<String> saveOrUpdate(WmsWarehouseExtendDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
// for (WmsWarehouseExtendDto dto : dtos) {
|
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WmsWarehouseExtend wmsWarehouse = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} else { |
|||
WmsWarehouseExtend wmsWarehouse = new WmsWarehouseExtend(); |
|||
sid = wmsWarehouse.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
} |
|||
// }
|
|||
|
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public ResultBean<WmsWarehouseExtendVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseExtendVo vo = new WmsWarehouseExtendVo(); |
|||
WmsWarehouseExtend wmsWarehouse = fetchBySid(sid); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
if (null != wmsWarehouse) { |
|||
BeanUtil.copyProperties(wmsWarehouse, vo); |
|||
// if (StringUtils.isNotBlank(wmsGoods.getPicUrl())) {
|
|||
// vo.setPicUrl(fileUploadComponent.getUrlPrefix() + wmsGoods.getPicUrl());
|
|||
// }
|
|||
// vo.setCreateTime(sdf.format(lpkGoods.getCreateTime()));
|
|||
} |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseextend; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseExtendVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String warehouseName;//仓库名称
|
|||
private String warehouseCode;//仓库编码
|
|||
private String contacts;//联系人
|
|||
private String mob;//手机
|
|||
private String telephone;//联系电话
|
|||
private String manager;//主管
|
|||
private String areaSid;//地区sid
|
|||
private String address;//地址
|
|||
private String longitude;//经度
|
|||
private String latitude;//纬度
|
|||
private String warehouseTypeKey;//仓库类型Key
|
|||
private String warehouseTypeValue;//仓库类型value
|
|||
private String usageStatus;//使用状态,0停用 1正常
|
|||
private String squareMeter;//平方米
|
|||
private String sortNo;//创建组织sid
|
|||
private String useOrgSid;//创建组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:36 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseInfo extends BaseEntity { |
|||
|
|||
private String warehouseName;//仓库名称
|
|||
private String warehouseCode;//仓库编码
|
|||
private String contacts;//联系人
|
|||
private String mob;//手机
|
|||
private String telephone;//联系电话
|
|||
private String manager;//主管
|
|||
private String areaSid;//地区sid
|
|||
private String address;//地址
|
|||
private String longitude;//经度
|
|||
private String latitude;//纬度
|
|||
private String warehouseTypeKey;//仓库类型Key
|
|||
private String warehouseTypeValue;//仓库类型value
|
|||
private String usageStatus;//使用状态,0停用 1正常
|
|||
private String squareMeter;//平方米
|
|||
private String sortNo;//创建组织sid
|
|||
private String useOrgSid;//创建组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,54 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-wms(仓库) <br/> |
|||
* File: WmsWarehouseInfoVo.java <br/> |
|||
* Class: com.yxt.wms.api.wmswarehouseinfo.WmsWarehouseInfoVo <br/> |
|||
* Description: 仓库 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-09 14:35:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "仓库 视图数据详情", description = "仓库 视图数据详情") |
|||
public class WmsWarehouseInfoAllVo implements Vo { |
|||
|
|||
private String sid; |
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendDto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseInfoDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String warehouseName;//仓库名称
|
|||
private String warehouseCode;//仓库编码
|
|||
private String contacts;//联系人
|
|||
private String mob;//手机
|
|||
private String telephone;//联系电话
|
|||
private String manager;//主管
|
|||
private String areaSid;//地区sid
|
|||
private String address;//地址
|
|||
private String longitude;//经度
|
|||
private String latitude;//纬度
|
|||
private String warehouseTypeKey;//仓库类型Key
|
|||
private String warehouseTypeValue;//仓库类型value
|
|||
private String usageStatus;//使用状态,0停用 1正常
|
|||
private String squareMeter;//平方米
|
|||
private String sortNo;//创建组织sid
|
|||
private String useOrgSid;//创建组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
// private List<WmsWarehouseExtendDto> wmsWarehouseExtendDtos;
|
|||
private WmsWarehouseExtendDto wmsWarehouseExtendDto; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaAllVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WmsWarehouseInfoMapper extends BaseMapper<WmsWarehouseInfo> { |
|||
IPage<WmsWarehouseInfoVo> listPage(IPage<WmsWarehouseInfo> page, @Param(Constants.WRAPPER) QueryWrapper<WmsWarehouseInfo> qw); |
|||
|
|||
@Select("select * from wms_warehouse_info") |
|||
List<WmsWarehouseAreaAllVo> selectAll(); |
|||
} |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.base.wmswarehouseinfo.WmsWarehouseInfoMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.base.wmswarehouseinfo.WmsWarehouseInfoVo"> |
|||
select |
|||
* |
|||
from wms_warehouse_info |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseInfoQuery implements Query { |
|||
private String name; |
|||
} |
@ -0,0 +1,125 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaAllVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtend; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendService; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WmsWarehouseInfoService extends MybatisBaseService<WmsWarehouseInfoMapper, WmsWarehouseInfo> { |
|||
|
|||
@Autowired |
|||
WmsWarehouseExtendService wmsWarehouseExtendService; |
|||
|
|||
public ResultBean<PagerVo<WmsWarehouseInfoVo>> listPage(PagerQuery<WmsWarehouseInfoQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseInfoQuery query = pq.getParams(); |
|||
QueryWrapper<WmsWarehouseInfo> qw = new QueryWrapper<>(); |
|||
if(StringUtils.isNotBlank(query.getName())){ |
|||
qw.like("warehouseName",query.getName()); |
|||
} |
|||
|
|||
IPage<WmsWarehouseInfo> page = PagerUtil.queryToPage(pq); |
|||
IPage<WmsWarehouseInfoVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WmsWarehouseInfoVo> p = PagerUtil.pageToVo(pagging, null); |
|||
List<WmsWarehouseInfoVo> records = pagging.getRecords(); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<WmsWarehouseInfoVo> listAll() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseInfo> pagging = baseMapper.selectList(new QueryWrapper<WmsWarehouseInfo>().eq("isEnable",1)); |
|||
return rb.success().setData(pagging); |
|||
} |
|||
|
|||
public ResultBean<String> saveOrUpdate(WmsWarehouseInfoDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WmsWarehouseInfo wmsWarehouse = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
// for (WmsWarehouseExtendDto wmsWarehouseExtendDto : dto.getWmsWarehouseExtendDtos()) {
|
|||
// wmsWarehouseExtendDto.setWarehouseSid(wmsWarehouse.getSid());
|
|||
// }
|
|||
dto.getWmsWarehouseExtendDto().setWarehouseSid(wmsWarehouse.getSid()); |
|||
wmsWarehouseExtendService.saveOrUpdate(dto.getWmsWarehouseExtendDto()); |
|||
} else { |
|||
WmsWarehouseInfo wmsWarehouse = new WmsWarehouseInfo(); |
|||
sid = wmsWarehouse.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
// for (WmsWarehouseExtendDto wmsWarehouseExtendDto : dto.getWmsWarehouseExtendDtos()) {
|
|||
// wmsWarehouseExtendDto.setWarehouseSid(wmsWarehouse.getSid());
|
|||
// }
|
|||
dto.getWmsWarehouseExtendDto().setWarehouseSid(wmsWarehouse.getSid()); |
|||
wmsWarehouseExtendService.saveOrUpdate(dto.getWmsWarehouseExtendDto()); |
|||
} |
|||
|
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public ResultBean<WmsWarehouseInfoVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseInfoVo vo = new WmsWarehouseInfoVo(); |
|||
WmsWarehouseInfo wmsWarehouse = fetchBySid(sid); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
BeanUtil.copyProperties(wmsWarehouse, vo); |
|||
List<WmsWarehouseExtend> list=wmsWarehouseExtendService.list(new QueryWrapper<WmsWarehouseExtend>().eq("warehouseSid",vo.getSid())); |
|||
List<WmsWarehouseExtendVo> list1=new ArrayList<>(); |
|||
for (WmsWarehouseExtend wmsWarehouseExtend : list) { |
|||
WmsWarehouseExtendVo vo1= new WmsWarehouseExtendVo(); |
|||
BeanUtil.copyProperties(wmsWarehouseExtend, vo1); |
|||
list1.add(vo1); |
|||
} |
|||
vo.setWmsWarehouseExtendVos(list1); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
|
|||
public ResultBean delete(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseInfo wmsWarehouse = fetchBySid(sid); |
|||
if (null != wmsWarehouse) { |
|||
baseMapper.deleteById(wmsWarehouse.getId()); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseInfo wmsWarehouse = fetchBySid(sid); |
|||
if (null != wmsWarehouse) { |
|||
wmsWarehouse.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public List<WmsWarehouseAreaAllVo> selectAll() { |
|||
return baseMapper.selectAll(); |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouseinfo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendDto; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendVo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseInfoVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String warehouseName;//仓库名称
|
|||
private String warehouseCode;//仓库编码
|
|||
private String contacts;//联系人
|
|||
private String mob;//手机
|
|||
private String telephone;//联系电话
|
|||
private String manager;//主管
|
|||
private String areaSid;//地区sid
|
|||
private String address;//地址
|
|||
private String longitude;//经度
|
|||
private String latitude;//纬度
|
|||
private String warehouseTypeKey;//仓库类型Key
|
|||
private String warehouseTypeValue;//仓库类型value
|
|||
private String usageStatus;//使用状态,0停用 1正常
|
|||
private String squareMeter;//平方米
|
|||
private String sortNo;//创建组织sid
|
|||
private String useOrgSid;//创建组织sid
|
|||
private String createOrgSid;//创建组织sid
|
|||
private List<WmsWarehouseExtendVo> wmsWarehouseExtendVos; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.UUID; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseRack extends BaseEntity { |
|||
// private String id;
|
|||
// private String sid= UUID.randomUUID().toString();
|
|||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|||
// private Date createTime;
|
|||
// private String remarks;
|
|||
// private String isEnable;
|
|||
private String rackName;//货架名称
|
|||
private String rackCode;//货架编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String locationSid;//库位sid
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseRackDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String rackName;//货架名称
|
|||
private String rackCode;//货架编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String locationSid;//库位sid
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WmsWarehouseRackMapper extends BaseMapper<WmsWarehouseRack> { |
|||
IPage<WmsWarehouseRackVo> listPage(IPage<WmsWarehouseRack> page, @Param(Constants.WRAPPER) QueryWrapper<WmsWarehouseRack> qw); |
|||
WmsWarehouseRackVo initialization (@Param("sid") String sid); |
|||
} |
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackVo"> |
|||
select |
|||
a.*,b.areaName as locationName ,c.warehouseName as warehouseName |
|||
from wms_warehouse_rack a |
|||
left join wms_warehouse_area b on b.sid =a.locationSid |
|||
left join wms_warehouse_info c on c.sid = a.warehouseSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
<select id="initialization" resultType="com.yxt.wms.biz.base.wmswarehouserack.WmsWarehouseRackVo"> |
|||
select |
|||
a.*,b.areaName as locationName ,c.warehouseName as warehouseName |
|||
from wms_warehouse_rack a |
|||
left join wms_warehouse_area b on b.sid =a.locationSid |
|||
left join wms_warehouse_info c on c.sid = a.warehouseSid |
|||
where a.sid =#{sid} |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseRackQuery implements Query { |
|||
private String name; |
|||
} |
@ -0,0 +1,90 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.text.SimpleDateFormat; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WmsWarehouseRackService extends MybatisBaseService<WmsWarehouseRackMapper, WmsWarehouseRack> { |
|||
|
|||
|
|||
public ResultBean<PagerVo<WmsWarehouseRackVo>> listPage(PagerQuery<WmsWarehouseRackQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseRackQuery query = pq.getParams(); |
|||
QueryWrapper<WmsWarehouseRack> qw = new QueryWrapper<>(); |
|||
if(StringUtils.isNotBlank(query.getName())){ |
|||
qw.like("rackName",query.getName()); |
|||
} |
|||
|
|||
IPage<WmsWarehouseRack> page = PagerUtil.queryToPage(pq); |
|||
IPage<WmsWarehouseRackVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WmsWarehouseRackVo> p = PagerUtil.pageToVo(pagging, null); |
|||
List<WmsWarehouseRackVo> records = pagging.getRecords(); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<WmsWarehouseRackVo> getAllType() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<WmsWarehouseRack> pagging = baseMapper.selectList(new QueryWrapper<WmsWarehouseRack>().eq("isEnable",1)); |
|||
return rb.success().setData(pagging); |
|||
} |
|||
|
|||
public ResultBean<String> saveOrUpdate(WmsWarehouseRackDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WmsWarehouseRack wmsWarehouseRack = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid"); |
|||
wmsWarehouseRack.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouseRack); |
|||
} else { |
|||
WmsWarehouseRack wmsWarehouseRack = new WmsWarehouseRack(); |
|||
sid = wmsWarehouseRack.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid"); |
|||
wmsWarehouseRack.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouseRack); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
public ResultBean<WmsWarehouseRackVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseRackVo vo = baseMapper.initialization(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean delete(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseRack wmsWarehouseRack = fetchBySid(sid); |
|||
if (null != wmsWarehouseRack) { |
|||
baseMapper.deleteById(wmsWarehouseRack.getId()); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WmsWarehouseRack wmsWarehouseRack = fetchBySid(sid); |
|||
if (null != wmsWarehouseRack) { |
|||
wmsWarehouseRack.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouseRack); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.yxt.wms.biz.base.wmswarehouserack; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WmsWarehouseRackVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String rackName;//货架名称
|
|||
private String rackCode;//货架编码
|
|||
private String warehouseSid;//仓库sid
|
|||
private String locationSid;//库位sid
|
|||
private String warehouseName;//仓库名称
|
|||
private String locationName;//库位名称
|
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservation extends BaseEntity { |
|||
|
|||
private String applyDate;//申请时间
|
|||
private String externalCode;//外部编码
|
|||
private String documentCode;//单据编码
|
|||
private String documentType;//单据类型
|
|||
private String handoverStatus;//交接状态
|
|||
private String handoverTime;//交接时间
|
|||
private String warehouseSid;//仓库sid
|
|||
private String warehouseAreaSid;//货位sid
|
|||
private String supplierSid;//供应商sid
|
|||
private String supplierName;//供应商名称
|
|||
private String waybillNumber;//运单号
|
|||
private String applicant;//申请人
|
|||
private String reservationDate;//预约时间
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailDto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String applyDate;//申请时间
|
|||
private String externalCode;//外部编码
|
|||
private String documentCode;//单据编码
|
|||
private String documentType;//单据类型
|
|||
private String handoverStatus;//交接状态
|
|||
private String handoverTime;//交接时间
|
|||
private String warehouseSid;//仓库sid
|
|||
private String warehouseAreaSid;//货位sid
|
|||
private String supplierSid;//供应商sid
|
|||
private String waybillNumber;//运单号
|
|||
private String applicant;//申请人
|
|||
private String reservationDate;//预约时间
|
|||
private List<WarehousingReservationDetailDto> warehousingReservationDetails;//明细
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Mapper |
|||
public interface WarehousingReservationMapper extends BaseMapper<WarehousingReservation> { |
|||
IPage<WarehousingReservationVo> listPage(IPage<WarehousingReservation> page, @Param(Constants.WRAPPER) QueryWrapper<WarehousingReservation> qw); |
|||
} |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.inventory.warehousingreservation.WarehousingReservationVo"> |
|||
select |
|||
* |
|||
from warehousing_reservation a |
|||
left join wms_warehouse_info b on b.sid=a.warehouseSid |
|||
left join wms_warehouse_area c on c.sid=a.warehouseAreaSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,25 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationQuery implements Query { |
|||
private String goodsName; |
|||
private String documentType;//入库类型 1 采购入库 2调拨入库 3其他入库
|
|||
private String handoverStatus;//入库状态 1在途 2部分收货 3收货完成 4关闭
|
|||
private String supplierName;//供应商名称
|
|||
private String externalCode;//外部编码
|
|||
private String documentCode;//单据编码
|
|||
private String waybillNumber;//运单号
|
|||
private String areaName;//库位
|
|||
private String interval; //单据时间间隔 0 今天 1近7天 2 近30天 3 三个月前
|
|||
private String type;//类型
|
|||
private String startDate;//开始时间
|
|||
private String endDate;//结束时间
|
|||
// private String
|
|||
} |
@ -0,0 +1,175 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtend; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendService; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendVo; |
|||
import com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailService; |
|||
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoDetailsVo; |
|||
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoFeign; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
import java.util.concurrent.atomic.AtomicInteger; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Service |
|||
public class WarehousingReservationService extends MybatisBaseService<WarehousingReservationMapper, WarehousingReservation> { |
|||
|
|||
@Autowired |
|||
WmsWarehouseExtendService wmsWarehouseExtendService; |
|||
@Resource |
|||
BaseSupplierInfoFeign baseSupplierInfoFeign; |
|||
@Autowired |
|||
WarehousingReservationDetailService warehousingReservationDetailService; |
|||
private QueryWrapper<WarehousingReservation> createQueryWrapper(WarehousingReservationQuery query) { |
|||
|
|||
QueryWrapper<WarehousingReservation> qw = new QueryWrapper<>(); |
|||
if(StringUtils.isNotBlank(query.getDocumentType())){ |
|||
qw.like("a.documentType",query.getDocumentType()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getHandoverStatus())){ |
|||
qw.eq("a.handoverStatus",query.getHandoverStatus()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getExternalCode())){ |
|||
qw.like("a.externalCode",query.getExternalCode()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getSupplierName())){ |
|||
qw.like("a.supplierName",query.getSupplierName()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getDocumentCode())){ |
|||
qw.like("a.documentCode",query.getDocumentCode()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getWaybillNumber())){ |
|||
qw.like("a.waybillNumber",query.getWaybillNumber()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getGoodsName())){ |
|||
qw.like("goodsName",query.getGoodsName()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getAreaName())){ |
|||
qw.like("a.areaName",query.getAreaName()); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getStartDate())|| StringUtils.isNotBlank(query.getEndDate())){ |
|||
if(StringUtils.isNotBlank(query.getStartDate())){ |
|||
qw.apply( "date_format (a.applyDate,'%Y-%m-%d') >= date_format('" + query.getStartDate() + "','%Y-%m-%d')"); |
|||
} |
|||
if(StringUtils.isNotBlank(query.getEndDate())){ |
|||
qw.apply("date_format (r.applyDate,'%Y-%m-%d') <= date_format('" + query.getEndDate() + "','%Y-%m-%d')"); |
|||
} |
|||
}else{ |
|||
if(StringUtils.isNotBlank(query.getInterval())){ |
|||
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); |
|||
if(query.getInterval().equals("0")){ |
|||
qw.apply("date_format (a.applyDate,'%Y-%m-%d') >= date_format('" + sdf.format(new Date()) + "','%Y-%m-%d')"); |
|||
}else if(query.getInterval().equals("1")){ |
|||
Date ac =DateUtil.offsetDay(new Date(),-7); |
|||
qw.apply("date_format (a.applyDate,'%Y-%m-%d') >= date_format('" + sdf.format(ac) + "','%Y-%m-%d')"); |
|||
}else if(query.getInterval().equals("2")){ |
|||
Date ac=DateUtil.offsetMonth(new Date(),-1); |
|||
qw.apply("date_format (a.applyDate,'%Y-%m-%d') >= date_format('" + sdf.format(ac) + "','%Y-%m-%d')"); |
|||
}else if(query.getInterval().equals("3")){ |
|||
Date ac =DateUtil.offsetMonth(new Date(),-3); |
|||
qw.apply("date_format (a.applyDate,'%Y-%m-%d') >= date_format('" + sdf.format(ac) + "','%Y-%m-%d')"); |
|||
} |
|||
} |
|||
} |
|||
return qw; |
|||
} |
|||
public ResultBean<PagerVo<WarehousingReservationVo>> listPage(PagerQuery<WarehousingReservationQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservationQuery query = pq.getParams(); |
|||
QueryWrapper<WarehousingReservation> qw = createQueryWrapper(query); |
|||
IPage<WarehousingReservation> page = PagerUtil.queryToPage(pq); |
|||
IPage<WarehousingReservationVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WarehousingReservationVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<String> saveOrUpdate(WarehousingReservationDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WarehousingReservation wmsWarehouse = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} else { |
|||
WarehousingReservation wmsWarehouse = new WarehousingReservation(); |
|||
sid = wmsWarehouse.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
} |
|||
|
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
public ResultBean<String> save(WarehousingReservationDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd"); |
|||
WarehousingReservation wmsWarehouse = new WarehousingReservation(); |
|||
String code="YYRK"+sdf.format(new Date()); |
|||
WarehousingReservation warehousingReservation= baseMapper.selectOne(new QueryWrapper<WarehousingReservation>() |
|||
.like("documentCode",code).orderByDesc("documentCode").apply("limit 1")); |
|||
if(warehousingReservation!=null){ |
|||
wmsWarehouse.setDocumentCode(code+getNext(warehousingReservation.getDocumentCode())); |
|||
}else{ |
|||
wmsWarehouse.setDocumentCode(code+"0001"); |
|||
} |
|||
BaseSupplierInfoDetailsVo supplierInfoDetailsVo= baseSupplierInfoFeign.fetchDetailsBySid(dto.getSupplierSid()).getData(); |
|||
wmsWarehouse.setSupplierName(supplierInfoDetailsVo.getSupplierName()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
warehousingReservationDetailService.save(dto.getWarehousingReservationDetails()); |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
|
|||
public static String getNext(String code) { |
|||
String newC=code.substring(code.length()-4); |
|||
int startValue=Integer.parseInt(newC); |
|||
AtomicInteger val = new AtomicInteger(startValue); |
|||
int nextVal = val.incrementAndGet(); |
|||
return String.format("%04d", nextVal); |
|||
} |
|||
public ResultBean<WarehousingReservationVo> initialization(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservationVo vo = new WarehousingReservationVo(); |
|||
WarehousingReservation wmsWarehouse = fetchBySid(sid); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
BeanUtil.copyProperties(wmsWarehouse, vo); |
|||
// vo.setWmsWarehoseExtendVos(list1);
|
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservation wmsWarehouse = fetchBySid(sid); |
|||
if (null != wmsWarehouse) { |
|||
wmsWarehouse.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservation; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationVo implements Vo { |
|||
private String id; |
|||
private String sid; |
|||
private String lockVersion; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date modifyTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String state; |
|||
private String isDelete; |
|||
private String applyDate;//申请时间
|
|||
private String externalCode;//外部编码
|
|||
private String documentCode;//单据编码
|
|||
private String documentType;//单据类型
|
|||
private String documentValue;//单据类型vaule
|
|||
private String handoverStatus;//交接状态
|
|||
private String handoverValue;//交接状态value
|
|||
private String handoverTime;//交接时间
|
|||
private String warehouseSid;//仓库sid
|
|||
private String warehouseName;//仓库名
|
|||
private String warehouseAreaSid;//货位sid
|
|||
private String warehouseAreaName;//货位sid
|
|||
private String supplierSid;//供应商sid
|
|||
private String supplierName;//供应商名
|
|||
private String waybillNumber;//运单号
|
|||
private String applicant;//申请人
|
|||
private String reservationDate;//预约时间
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservationdetail; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationDetail extends BaseEntity { |
|||
|
|||
private String goodsSid;//商品sid
|
|||
private String goodsName;//商品名称
|
|||
private String goodsCode;//商品code
|
|||
private String unit;//单位
|
|||
private String barCode;//条码
|
|||
private String skuCode;//商品规格code
|
|||
private String appointmentQuantity;//预约数量
|
|||
private String actualQuantity;//实际数量
|
|||
private String price;//单价
|
|||
private String appointmentAmount;//v预约金额
|
|||
private String actualAmount;//实际金额
|
|||
private String freight;//运费
|
|||
private String orderSid;//预约sid
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservationdetail; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationDetailDto implements Dto { |
|||
private String id; |
|||
private String sid; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createTime; |
|||
private String remarks; |
|||
private String isEnable; |
|||
private String goodsSid;//商品sid
|
|||
private String goodsName;//商品名称
|
|||
private String goodsCode;//商品code
|
|||
private String unit;//单位
|
|||
private String barCode;//条码
|
|||
private String skuCode;//商品规格code
|
|||
private String skuSid;//规格sid
|
|||
private String appointmentQuantity;//预约数量
|
|||
private String actualQuantity;//实际数量
|
|||
private String price;//单价
|
|||
private String appointmentAmount;//v预约金额
|
|||
private String actualAmount;//实际金额
|
|||
private String freight;//运费
|
|||
private String orderSid;//预约sid
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservationdetail; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Mapper |
|||
public interface WarehousingReservationDetailMapper extends BaseMapper<WarehousingReservationDetail> { |
|||
IPage<WarehousingReservationDetailVo> listPage(IPage<WarehousingReservationDetail> page, @Param(Constants.WRAPPER) QueryWrapper<WarehousingReservationDetail> qw); |
|||
} |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="listPage" resultType="com.yxt.wms.biz.inventory.warehousingreservationdetail.WarehousingReservationDetailVo"> |
|||
select |
|||
* |
|||
from warehousing_reservation_detail a |
|||
left join wms_warehouse_info b on b.sid=a.warehouseSid |
|||
left join wms_warehouse_area c on c.sid=a.warehouseAreaSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,25 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservationdetail; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Data |
|||
public class WarehousingReservationDetailQuery implements Query { |
|||
private String goodsName; |
|||
private String documentType;//入库类型 1 采购入库 2调拨入库 3其他入库
|
|||
private String handoverStatus;//入库状态 1在途 2部分收货 3收货完成 4关闭
|
|||
private String supplierName;//供应商名称
|
|||
private String externalCode;//外部编码
|
|||
private String documentCode;//单据编码
|
|||
private String waybillNumber;//运单号
|
|||
private String areaName;//库位
|
|||
private String interval; //单据时间间隔 0 今天 1近7天 2 近30天 3 三个月前
|
|||
private String type; |
|||
private String startDate; |
|||
private String endDate; |
|||
// private String
|
|||
} |
@ -0,0 +1,107 @@ |
|||
package com.yxt.wms.biz.inventory.warehousingreservationdetail; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateTime; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.base.wmswarehouseextend.WmsWarehouseExtendService; |
|||
import com.yxt.wms.feign.base.basegoodssku.BaseGoodsSkuDetailsVo; |
|||
import com.yxt.wms.feign.base.basegoodssku.BaseGoodsSkuFeign; |
|||
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoDetailsVo; |
|||
import com.yxt.wms.feign.base.basesupplierinfo.BaseSupplierInfoFeign; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
import java.util.concurrent.atomic.AtomicInteger; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/3/26 16:36 |
|||
*/ |
|||
@Service |
|||
public class WarehousingReservationDetailService extends MybatisBaseService<WarehousingReservationDetailMapper, WarehousingReservationDetail> { |
|||
|
|||
@Autowired |
|||
WmsWarehouseExtendService wmsWarehouseExtendService; |
|||
@Resource |
|||
private BaseGoodsSkuFeign baseGoodsSkuFeign; |
|||
|
|||
|
|||
public ResultBean<PagerVo<WarehousingReservationDetailVo>> listPage(PagerQuery<WarehousingReservationDetailQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservationDetailQuery query = pq.getParams(); |
|||
QueryWrapper<WarehousingReservationDetail> qw = new QueryWrapper<>(); |
|||
IPage<WarehousingReservationDetail> page = PagerUtil.queryToPage(pq); |
|||
IPage<WarehousingReservationDetailVo> pagging = baseMapper.listPage(page, qw); |
|||
PagerVo<WarehousingReservationDetailVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return rb.success().setData(p); |
|||
} |
|||
public ResultBean<String> saveOrUpdate(WarehousingReservationDetailDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = ""; |
|||
if (StringUtils.isNotBlank(dto.getSid())) { |
|||
sid = dto.getSid(); |
|||
WarehousingReservationDetail wmsWarehouse = fetchBySid(dto.getSid()); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setModifyTime(new Date()); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} else { |
|||
WarehousingReservationDetail wmsWarehouse = new WarehousingReservationDetail(); |
|||
sid = wmsWarehouse.getSid(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
} |
|||
|
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
public ResultBean<String> save(List<WarehousingReservationDetailDto> dtos) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
for (WarehousingReservationDetailDto dto : dtos) { |
|||
WarehousingReservationDetail wmsWarehouse = new WarehousingReservationDetail(); |
|||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid"); |
|||
wmsWarehouse.setCreateTime(new DateTime()); |
|||
BaseGoodsSkuDetailsVo vo=baseGoodsSkuFeign.getDetails(dto.getSkuSid()).getData(); |
|||
wmsWarehouse.setGoodsName(vo.getGoodsName()); |
|||
wmsWarehouse.setUnit(vo.getGoodsUnitName()); |
|||
wmsWarehouse.setGoodsCode(vo.getGoodsCode()); |
|||
wmsWarehouse.setBarCode(vo.getBarCode()); |
|||
wmsWarehouse.setSkuCode(vo.getGoodsSkuCode()); |
|||
baseMapper.insert(wmsWarehouse); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
|
|||
|
|||
|
|||
public ResultBean<List<WarehousingReservationDetailVo>> selByReservationSid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservationDetailVo vo = new WarehousingReservationDetailVo(); |
|||
WarehousingReservationDetail wmsWarehouse = fetchBySid(sid); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
BeanUtil.copyProperties(wmsWarehouse, vo); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
|
|||
public ResultBean updateIsEnable(String sid,String isEnable) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
WarehousingReservationDetail wmsWarehouse = fetchBySid(sid); |
|||
if (null != wmsWarehouse) { |
|||
wmsWarehouse.setIsEnable(Integer.parseInt(isEnable)); |
|||
baseMapper.updateById(wmsWarehouse); |
|||
} |
|||
return rb.success().setMsg("成功"); |
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue