diff --git a/docs/jsh_erp.sql b/docs/jsh_erp.sql deleted file mode 100644 index 69923089..00000000 --- a/docs/jsh_erp.sql +++ /dev/null @@ -1,1829 +0,0 @@ -/* -Navicat MySQL Data Transfer - -Source Server : localhost -Source Server Version : 50704 -Source Host : 127.0.0.1:3306 -Source Database : jsh_erp - -Target Server Type : MYSQL -Target Server Version : 50704 -File Encoding : 65001 - -Date: 2019-06-23 18:27:53 -*/ - -SET FOREIGN_KEY_CHECKS=0; - --- ---------------------------- --- Table structure for jsh_account --- ---------------------------- -DROP TABLE IF EXISTS `jsh_account`; -CREATE TABLE `jsh_account` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `SerialNo` varchar(50) DEFAULT NULL COMMENT '编号', - `InitialAmount` decimal(24,6) DEFAULT NULL COMMENT '期初金额', - `CurrentAmount` decimal(24,6) DEFAULT NULL COMMENT '当前余额', - `Remark` varchar(100) DEFAULT NULL COMMENT '备注', - `IsDefault` bit(1) DEFAULT NULL COMMENT '是否默认', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='账户信息'; - --- ---------------------------- --- Records of jsh_account --- ---------------------------- -INSERT INTO `jsh_account` VALUES ('4', '南通建行', '652346523465234623', '1200.000000', '215.000000', '建行账户', '\0', null, '0'); -INSERT INTO `jsh_account` VALUES ('9', '流动总账', '65234624523452364', '2000.000000', '393.000000', '现在账户', '', null, '0'); -INSERT INTO `jsh_account` VALUES ('10', '支付宝', '123456789@qq.com', '10000.000000', null, '', '\0', null, '0'); -INSERT INTO `jsh_account` VALUES ('11', '微信', '13000000000', '10000.000000', null, '', '\0', null, '0'); -INSERT INTO `jsh_account` VALUES ('12', '上海农行', '65324345234523211', '10000.000000', '0.000000', '', '\0', null, '0'); -INSERT INTO `jsh_account` VALUES ('13', '账户1', 'abcd123', '0.000000', null, '', '', '1', '0'); -INSERT INTO `jsh_account` VALUES ('14', '账户1', 'zhanghu1', '0.000000', null, '', '', '117', '0'); -INSERT INTO `jsh_account` VALUES ('15', '账户2222', 'zh2222', '0.000000', null, '', '\0', '117', '0'); -INSERT INTO `jsh_account` VALUES ('16', '账户1', '1231241244', '0.000000', null, '', '', '115', '0'); -INSERT INTO `jsh_account` VALUES ('17', '账户1', 'zzz111', '0.000000', null, '', '', '63', '0'); -INSERT INTO `jsh_account` VALUES ('18', '账户2', '1234131324', '0.000000', null, '', '\0', '63', '0'); - --- ---------------------------- --- Table structure for jsh_accounthead --- ---------------------------- -DROP TABLE IF EXISTS `jsh_accounthead`; -CREATE TABLE `jsh_accounthead` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Type` varchar(50) DEFAULT NULL COMMENT '类型(支出/收入/收款/付款/转账)', - `OrganId` bigint(20) DEFAULT NULL COMMENT '单位Id(收款/付款单位)', - `HandsPersonId` bigint(20) DEFAULT NULL COMMENT '经手人Id', - `ChangeAmount` decimal(24,6) DEFAULT NULL COMMENT '变动金额(优惠/收款/付款/实付)', - `TotalPrice` decimal(24,6) DEFAULT NULL COMMENT '合计金额', - `AccountId` bigint(20) DEFAULT NULL COMMENT '账户(收款/付款)', - `BillNo` varchar(50) DEFAULT NULL COMMENT '单据编号', - `BillTime` datetime DEFAULT NULL COMMENT '单据日期', - `Remark` varchar(100) DEFAULT NULL COMMENT '备注', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`), - KEY `FK9F4C0D8DB610FC06` (`OrganId`), - KEY `FK9F4C0D8DAAE50527` (`AccountId`), - KEY `FK9F4C0D8DC4170B37` (`HandsPersonId`) -) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COMMENT='财务主表'; - --- ---------------------------- --- Records of jsh_accounthead --- ---------------------------- -INSERT INTO `jsh_accounthead` VALUES ('57', '收预付款', '8', '3', null, '1000.000000', null, '2342134', '2017-06-27 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('61', '收预付款', '9', '3', null, '33.000000', null, 'SYF2017062901721', '2017-06-29 00:00:00', 'aaaaaa', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('67', '收预付款', '10', '4', null, '2100.000000', null, 'SYF2017070222414', '2017-07-02 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('70', '支出', '4', '3', '-60.000000', '-60.000000', '4', 'ZC20170703233735', '2017-07-03 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('74', '转账', null, '3', '-100.000000', '-100.000000', '4', 'ZZ2017070323489', '2017-07-03 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('77', '收入', '2', '3', '40.000000', '40.000000', '4', 'SR20170704222634', '2017-07-04 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('78', '收预付款', '9', '3', null, '200.000000', null, 'SYF201707050257', '2017-07-05 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('79', '收预付款', '9', '3', null, '100.000000', null, 'SYF20170705076', '2017-07-05 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('82', '收款', '2', '3', '0.000000', '2.600000', null, 'SK20171008191440', '2017-10-09 00:08:11', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('83', '付款', '1', '4', '0.000000', '-20.000000', null, 'FK20171008232825', '2017-10-08 00:00:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('84', '收入', '2', '4', '0.000000', '21.000000', '10', 'SR20171009000300', '2017-10-09 00:03:00', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('85', '收入', '2', '3', '22.000000', '22.000000', '11', 'SR20171009000637', '2017-10-09 00:06:37', '备注123 备注123 备注123', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('86', '转账', null, '4', '-22.000000', '-22.000000', '10', 'ZZ20171009000719', '2017-10-09 00:07:19', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('87', '付款', '4', '4', '10.000000', '-33.000000', null, 'FK20171009000747', '2017-10-09 00:07:47', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('88', '收款', '2', '4', '0.000000', '2.800000', null, 'SK20171024220754', '2017-10-24 22:07:54', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('89', '收款', '2', '4', '0.000000', '11.000000', null, 'SK20171030232535', '2017-10-30 23:25:35', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('90', '收款', '2', '4', '0.000000', '10.000000', null, 'SK20171119231440', '2017-11-19 23:14:40', '', null, '0'); -INSERT INTO `jsh_accounthead` VALUES ('91', '收入', '48', '9', '66.000000', '6.000000', '13', 'SR20190319221438', '2019-03-19 22:14:38', '', '1', '0'); -INSERT INTO `jsh_accounthead` VALUES ('92', '支出', '50', '9', '-33.000000', '-33.000000', '13', 'ZC20190319221454', '2019-03-19 22:14:54', '', '1', '0'); -INSERT INTO `jsh_accounthead` VALUES ('93', '收款', '48', '9', null, '44.000000', null, 'SK20190319221513', '2019-03-19 22:15:13', '', '1', '0'); -INSERT INTO `jsh_accounthead` VALUES ('94', '付款', '50', '9', null, '-66.000000', null, 'FK20190319221525', '2019-03-19 22:15:25', '', '1', '0'); -INSERT INTO `jsh_accounthead` VALUES ('95', '收预付款', '49', '9', null, '6.000000', null, 'SYF20190319221556', '2019-03-19 22:15:56', '', '1', '0'); -INSERT INTO `jsh_accounthead` VALUES ('96', '收入', '5', '4', '22.000000', '22.000000', '12', 'SR20190321235925', '2019-03-21 23:59:25', '', null, '0'); - --- ---------------------------- --- Table structure for jsh_accountitem --- ---------------------------- -DROP TABLE IF EXISTS `jsh_accountitem`; -CREATE TABLE `jsh_accountitem` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `HeaderId` bigint(20) NOT NULL COMMENT '表头Id', - `AccountId` bigint(20) DEFAULT NULL COMMENT '账户Id', - `InOutItemId` bigint(20) DEFAULT NULL COMMENT '收支项目Id', - `EachAmount` decimal(24,6) DEFAULT NULL COMMENT '单项金额', - `Remark` varchar(100) DEFAULT NULL COMMENT '单据备注', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`), - KEY `FK9F4CBAC0AAE50527` (`AccountId`), - KEY `FK9F4CBAC0C5FE6007` (`HeaderId`), - KEY `FK9F4CBAC0D203EDC5` (`InOutItemId`) -) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8 COMMENT='财务子表'; - --- ---------------------------- --- Records of jsh_accountitem --- ---------------------------- -INSERT INTO `jsh_accountitem` VALUES ('58', '57', '9', null, '1000.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('62', '61', '4', null, '33.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('68', '67', '4', null, '2100.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('71', '70', null, '11', '60.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('75', '74', '9', null, '100.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('78', '77', null, '14', '40.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('79', '78', '9', null, '200.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('80', '79', '9', null, '100.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('83', '82', '10', null, '2.600000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('84', '83', '10', null, '-20.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('85', '84', null, '13', '21.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('86', '85', null, '12', '22.000000', '44', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('87', '86', '11', null, '22.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('88', '87', '10', null, '-33.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('89', '88', '10', null, '2.800000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('90', '89', '11', null, '11.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('91', '90', '12', null, '10.000000', '', null, '0'); -INSERT INTO `jsh_accountitem` VALUES ('92', '91', null, '16', '66.000000', '', '1', '0'); -INSERT INTO `jsh_accountitem` VALUES ('93', '92', null, '17', '33.000000', '', '1', '0'); -INSERT INTO `jsh_accountitem` VALUES ('94', '93', '13', null, '44.000000', '', '1', '0'); -INSERT INTO `jsh_accountitem` VALUES ('95', '94', '13', null, '-66.000000', '', '1', '0'); -INSERT INTO `jsh_accountitem` VALUES ('96', '95', '13', null, '6.000000', '', '1', '0'); -INSERT INTO `jsh_accountitem` VALUES ('97', '96', null, '14', '22.000000', '', null, '0'); - --- ---------------------------- --- Table structure for jsh_depot --- ---------------------------- -DROP TABLE IF EXISTS `jsh_depot`; -CREATE TABLE `jsh_depot` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `name` varchar(20) DEFAULT NULL COMMENT '仓库名称', - `address` varchar(50) DEFAULT NULL COMMENT '仓库地址', - `warehousing` decimal(24,6) DEFAULT NULL COMMENT '仓储费', - `truckage` decimal(24,6) DEFAULT NULL COMMENT '搬运费', - `type` int(10) DEFAULT NULL COMMENT '类型', - `sort` varchar(10) DEFAULT NULL COMMENT '排序', - `remark` varchar(100) DEFAULT NULL COMMENT '描述', - `principal` bigint(20) DEFAULT NULL COMMENT '负责人', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - `is_default` bit(1) DEFAULT NULL COMMENT '是否默认', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='仓库表'; - --- ---------------------------- --- Records of jsh_depot --- ---------------------------- -INSERT INTO `jsh_depot` VALUES ('1', '叠石桥店', '地址222', '33.000000', '22.000000', '0', '2', '上海33', '95', null, '0', null); -INSERT INTO `jsh_depot` VALUES ('2', '公司总部', '地址12355', '44.000000', '22.220000', '0', '1', '总部', '64', null, '0', null); -INSERT INTO `jsh_depot` VALUES ('3', '金沙店', '地址666', '31.000000', '4.000000', '0', '3', '苏州', '64', null, '0', null); -INSERT INTO `jsh_depot` VALUES ('4', '1268200294', '', null, null, '1', '1', '', null, null, '0', null); -INSERT INTO `jsh_depot` VALUES ('5', '1268787965', null, null, null, '1', '3', '', null, null, '0', null); -INSERT INTO `jsh_depot` VALUES ('6', '1269520625', null, null, null, '1', '2', '', null, null, '0', null); -INSERT INTO `jsh_depot` VALUES ('7', '仓库1', '', null, null, '0', '', '', null, '1', '0', null); -INSERT INTO `jsh_depot` VALUES ('8', '仓库1111', '', null, null, '0', '', '', '117', '117', '0', null); -INSERT INTO `jsh_depot` VALUES ('9', '仓库567', '', null, null, '0', '', '', '117', '117', '0', null); -INSERT INTO `jsh_depot` VALUES ('10', '仓库321342', '', null, null, '0', '', '', null, '117', '0', null); -INSERT INTO `jsh_depot` VALUES ('11', '仓库321321', '', null, null, '0', '', '', null, '117', '0', null); -INSERT INTO `jsh_depot` VALUES ('12', '仓库111222', '', null, null, '0', '', '', null, '117', '0', null); -INSERT INTO `jsh_depot` VALUES ('13', '仓库1', '', null, null, '0', '', '', null, '115', '0', null); -INSERT INTO `jsh_depot` VALUES ('14', '仓库1', '', null, null, '0', '', '', null, '63', '0', ''); -INSERT INTO `jsh_depot` VALUES ('15', '仓库2', '', null, null, '0', '', '', null, '63', '0', '\0'); - --- ---------------------------- --- Table structure for jsh_depothead --- ---------------------------- -DROP TABLE IF EXISTS `jsh_depothead`; -CREATE TABLE `jsh_depothead` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Type` varchar(50) DEFAULT NULL COMMENT '类型(出库/入库)', - `SubType` varchar(50) DEFAULT NULL COMMENT '出入库分类', - `ProjectId` bigint(20) DEFAULT NULL COMMENT '项目Id', - `DefaultNumber` varchar(50) DEFAULT NULL COMMENT '初始票据号', - `Number` varchar(50) DEFAULT NULL COMMENT '票据号', - `OperPersonName` varchar(50) DEFAULT NULL COMMENT '操作员名字', - `CreateTime` datetime DEFAULT NULL COMMENT '创建时间', - `OperTime` datetime DEFAULT NULL COMMENT '出入库时间', - `OrganId` bigint(20) DEFAULT NULL COMMENT '供应商Id', - `HandsPersonId` bigint(20) DEFAULT NULL COMMENT '采购/领料-经手人Id', - `AccountId` bigint(20) DEFAULT NULL COMMENT '账户Id', - `ChangeAmount` decimal(24,6) DEFAULT NULL COMMENT '变动金额(收款/付款)', - `AllocationProjectId` bigint(20) DEFAULT NULL COMMENT '调拨时,对方项目Id', - `TotalPrice` decimal(24,6) DEFAULT NULL COMMENT '合计金额', - `PayType` varchar(50) DEFAULT NULL COMMENT '付款类型(现金、记账等)', - `Remark` varchar(1000) DEFAULT NULL COMMENT '备注', - `Salesman` varchar(50) DEFAULT NULL COMMENT '业务员(可以多个)', - `AccountIdList` varchar(50) DEFAULT NULL COMMENT '多账户ID列表', - `AccountMoneyList` varchar(200) DEFAULT '' COMMENT '多账户金额列表', - `Discount` decimal(24,6) DEFAULT NULL COMMENT '优惠率', - `DiscountMoney` decimal(24,6) DEFAULT NULL COMMENT '优惠金额', - `DiscountLastMoney` decimal(24,6) DEFAULT NULL COMMENT '优惠后金额', - `OtherMoney` decimal(24,6) DEFAULT NULL COMMENT '销售或采购费用合计', - `OtherMoneyList` varchar(200) DEFAULT NULL COMMENT '销售或采购费用涉及项目Id数组(包括快递、招待等)', - `OtherMoneyItem` varchar(200) DEFAULT NULL COMMENT '销售或采购费用涉及项目(包括快递、招待等)', - `AccountDay` int(10) DEFAULT NULL COMMENT '结算天数', - `Status` varchar(1) DEFAULT '0' COMMENT '状态,0未审核、1已审核、2已转采购|销售', - `LinkNumber` varchar(50) DEFAULT NULL COMMENT '关联订单号', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`), - KEY `FK2A80F214CA633ABA` (`AllocationProjectId`), - KEY `FK2A80F214C4170B37` (`HandsPersonId`), - KEY `FK2A80F214B610FC06` (`OrganId`), - KEY `FK2A80F2142888F9A` (`ProjectId`), - KEY `FK2A80F214AAE50527` (`AccountId`) -) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=utf8 COMMENT='单据主表'; - --- ---------------------------- --- Records of jsh_depothead --- ---------------------------- -INSERT INTO `jsh_depothead` VALUES ('7', '入库', '采购', null, 'GHDD201708120002', 'GHDD201708120002', '季圣华', '2017-08-12 12:04:07', '2017-08-12 12:03:23', '1', null, '12', '-30.000000', null, '-36.000000', '现付', 'abcdefg', '', null, null, '10.000000', '3.600000', '32.400000', '30.000000', '[\"10\",\"9\"]', '[\"10\",\"20\"]', '45', '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('8', '出库', '销售', null, 'XHDD201708120001', 'XHDD201708120001', '季圣华', '2017-08-12 18:10:14', '2017-08-12 18:09:45', '2', null, '11', '17.000000', null, '24.000000', '现付', '', '<7>,<6>', null, null, '22.000000', '5.280000', '18.720000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('9', '入库', '采购', null, 'GHDD201708120003', 'GHDD201708120003', '季圣华', '2017-08-12 21:01:09', '2017-08-12 21:00:36', '1', null, '11', '-100.000000', null, '-120.000000', '现付', '', '', null, null, '10.000000', '12.000000', '108.000000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('10', '入库', '采购', null, 'GHDD201708120004', 'GHDD201708120004', '季圣华', '2017-08-12 21:10:42', '2017-08-12 21:10:16', '1', null, '4', '-10.000000', null, '-12.000000', '现付', '', '', null, null, '10.000000', '1.200000', '10.800000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('11', '入库', '采购', null, 'GHDD201708120005', 'jshenghua001', '季圣华', '2017-08-12 22:07:44', '2017-08-12 22:06:37', '1', null, '12', '-20.000000', null, '-24.000000', '现付', '', '', null, null, '10.000000', '2.400000', '21.600000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('12', '入库', '采购', null, 'GHDD201708120006', 'GHDD201708120006', '季圣华', '2017-08-12 22:17:11', '2017-08-12 22:16:35', '1', null, '11', '-10.000000', null, '-12.000000', '现付', '', '', null, null, '10.000000', '1.200000', '10.800000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('13', '入库', '采购', null, 'GHDD201708120007', 'jishenghua3', '季圣华', '2017-08-12 22:17:52', '2017-08-12 22:17:14', '1', null, '4', '-20.000000', null, '-24.000000', '现付', '', '', null, null, '10.000000', '2.400000', '21.600000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('14', '入库', '采购', null, 'GHDD201708120008', 'jishenghua004', '季圣华', '2017-08-12 22:19:37', '2017-08-12 22:19:07', '1', null, '11', '-30.000000', null, '-36.000000', '现付', '', '', null, null, '10.000000', '3.600000', '32.400000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('16', '入库', '采购', null, 'GHDD201708120009', 'jishenghua005', '季圣华', '2017-08-12 22:26:23', '2017-08-12 22:25:14', '1', null, '10', '-20.000000', null, '-24.000000', '现付', '', '', null, null, '10.000000', '2.400000', '21.600000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('17', '入库', '采购', null, 'GHDD201708120010', 'GHDD201708120010', '季圣华', '2017-08-12 22:28:20', '2017-08-12 22:28:02', '1', null, '9', '-30.000000', null, '-36.000000', '现付', '', '', null, null, '10.000000', '3.600000', '32.400000', null, '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('18', '入库', '采购', null, 'GHDD201708120011', 'GHDD201708120011', '季圣华', '2017-08-12 22:30:08', '2017-08-12 22:29:48', '1', null, '4', '-20.000000', null, '-24.000000', '现付', '', '', null, null, '10.000000', '2.400000', '21.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('19', '入库', '采购', null, 'GHDD201708120012', 'GHDD201708120012', '季圣华', '2017-08-12 22:30:57', '2017-08-12 22:29:32', '1', null, null, '-10.000000', null, '-26.400000', '现付', '', '', '[\"4\"]', '[\"-10\"]', '10.000000', '2.640000', '23.760000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('20', '入库', '采购', null, 'GHDD201708120013', 'GHDD201708120013', '季圣华', '2017-08-12 22:46:43', '2017-08-12 22:45:55', '1', null, '10', '-23.000000', null, '-36.000000', '现付', '', '', null, null, '20.000000', '7.200000', '28.800000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('21', '入库', '采购', null, 'GHDD201708120014', 'GHDD201708120014', '季圣华', '2017-08-12 22:46:52', '2017-08-12 22:45:59', '1', null, '11', '-20.000000', null, '-26.400000', '现付', '', '', null, null, '10.000000', '2.640000', '23.760000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('22', '入库', '采购', null, 'GHDD201708120015', 'GHDD201708120015', '季圣华', '2017-08-12 23:49:32', '2017-08-12 23:48:24', '1', null, '11', '-20.000000', null, '-24.000000', '现付', '', '', null, null, '10.000000', '2.400000', '21.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('23', '入库', '采购', null, 'GHDD201708140001', 'GHDD201708140001', '季圣华', '2017-08-14 20:41:54', '2017-08-14 20:40:49', '1', null, '4', '-300.000000', null, '-360.000000', '现付', '', '', null, null, '10.000000', '36.000000', '324.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('24', '入库', '采购', null, 'GHDD201708150001', 'GHDD201708150001', '季圣华', '2017-08-15 21:36:25', '2017-08-15 21:35:38', '1', null, '11', '-675.000000', null, '-750.000000', '现付', '', '', null, null, '10.000000', '75.000000', '675.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('25', '入库', '采购', null, 'GHDD201708150002', 'GHDD201708150002', '季圣华', '2017-08-15 22:31:46', '2017-08-15 22:29:47', '1', null, null, '-33.000000', null, '-75.000000', '现付', 'ababab', '', '[\"9\",\"10\"]', '[\"-22\",\"-11\"]', '10.000000', '7.500000', '67.500000', '22.000000', '[\"10\",\"8\"]', '[\"11\",\"11\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('26', '入库', '采购', null, 'GHDD201708160001', 'GHDD201708160001', '季圣华', '2017-08-16 23:50:35', '2017-08-16 23:47:42', '4', null, '9', '-162.000000', null, '-150.000000', '现付', '', '', null, null, '10.000000', '18.000000', '162.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('27', '入库', '采购', null, 'GHDD201708180001', 'GHDD201708180001', '季圣华', '2017-08-18 00:25:58', '2017-08-18 00:25:43', '1', null, '11', '-74.250000', null, '-75.000000', '现付', '', '', null, null, '10.000000', '8.250000', '74.250000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('28', '入库', '采购', null, 'GHDD201708270001', 'GHDD201708270001', '季圣华', '2017-08-27 23:10:44', '2017-08-27 23:06:05', '46', null, '10', '-64.800000', null, '-72.000000', '现付', '', '', null, null, '10.000000', '7.200000', '64.800000', '10.000000', '[\"10\"]', '[\"10\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('29', '出库', '销售', null, 'XSCK201708280001', 'XSCK201708280001', '季圣华', '2017-08-28 23:06:40', '2017-08-28 23:05:11', '2', null, '11', '120.850000', null, '130.000000', '现付', '', '<7>', null, null, '10.000000', '13.650000', '122.850000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('30', '入库', '销售退货', null, 'XSTH201708280001', 'XSTH201708280001', '季圣华', '2017-08-28 23:13:08', '2017-08-28 23:12:48', '2', null, '10', '-48.000000', null, '-48.000000', '现付', '', '<5>,<6>', null, null, '0.000000', '0.000000', '48.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('31', '出库', '采购退货', null, 'CGTH201708280001', 'CGTH201708280001', '季圣华', '2017-08-28 23:15:45', '2017-08-28 23:15:21', '1', null, '10', '28.600000', null, '26.000000', '现付', '', '', null, null, '0.000000', '0.000000', '28.600000', '12.000000', '[\"10\"]', '[\"12\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('32', '入库', '其它', null, 'QTRK201708280001', 'QTRK201708280001', '季圣华', '2017-08-28 23:17:55', '2017-08-28 23:17:33', '1', null, null, null, null, '12.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('33', '出库', '其它', null, 'QTCK201708280001', 'QTCK201708280001', '季圣华', '2017-08-28 23:21:14', '2017-08-28 23:20:36', '2', null, null, null, null, '65.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('37', '出库', '调拨', null, 'DBCK201708280002', 'DBCK201708280002', '季圣华', '2017-08-28 23:56:34', '2017-08-28 23:56:10', null, null, null, null, null, '1.300000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('38', '出库', '调拨', null, 'DBCK201708290001', 'DBCK201708290001', '季圣华', '2017-08-29 00:20:11', '2017-08-29 00:19:58', null, null, null, null, null, '2.600000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('41', '出库', '零售', null, 'LSCK201708290002', 'LSCK201708290002', '季圣华', '2017-08-29 23:29:39', '2017-08-29 23:29:06', '7', null, '10', '42.000000', null, '42.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('42', '出库', '零售', null, 'LSCK201708290003', 'LSCK201708290003', '季圣华', '2017-08-29 23:35:12', '2017-08-29 23:33:21', '7', null, '11', '11.000000', null, '11.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('43', '出库', '零售', null, 'LSCK201708290004', 'LSCK201708290004', '季圣华', '2017-08-29 23:39:44', '2017-08-29 23:39:28', '7', null, '9', '12.100000', null, '12.100000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('44', '入库', '零售退货', null, 'LSTH201708290001', 'LSTH201708290001', '季圣华', '2017-08-29 23:48:43', '2017-08-29 23:46:35', '7', null, '10', '-2.200000', null, '-2.200000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('45', '入库', '零售退货', null, 'LSTH201708290002', 'LSTH201708290002', '季圣华', '2017-08-29 23:51:55', '2017-08-29 23:51:31', '7', null, '12', '-3.300000', null, '-3.300000', '现付', '', '', null, null, null, null, null, null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('48', '出库', '零售', null, 'LSCK201708310001', 'LSCK201708310001', '季圣华', '2017-08-31 00:30:31', '2017-08-31 00:29:10', '7', null, null, '12.000000', null, '12.000000', '现付', '', '', '[\"10\",\"11\"]', '[\"15\",\"20\"]', null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('49', '出库', '零售', null, 'LSCK201708310002', 'LSCK201708310002', '季圣华', '2017-08-31 00:57:40', '2017-08-31 00:57:08', '7', null, null, '12.000000', null, '12.000000', '现付', '', '', '[\"9\",\"11\"]', '[\"22\",\"11\"]', null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('50', '出库', '零售', null, 'LSCK201709030001', 'LSCK201709030001', '季圣华', '2017-09-03 12:51:50', '2017-09-03 12:51:21', '10', null, '10', '22.000000', null, '22.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('52', '出库', '零售', null, 'LSCK201709040001', 'LSCK201709040001', '季圣华', '2017-09-04 21:32:49', '2017-09-04 21:31:24', '7', null, '11', '24.200000', null, '24.200000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('53', '出库', '零售', null, 'LSCK201709040002', 'LSCK201709040002', '季圣华', '2017-09-04 21:34:02', '2017-09-04 21:33:30', '7', null, '9', '36.300000', null, '36.300000', '现付', '', '', null, null, null, null, null, null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('54', '入库', '采购', null, 'CGRK201709040001', 'CGRK201709040001', '季圣华', '2017-09-04 22:20:12', '2017-09-04 22:13:00', '1', null, '10', '-10.800000', null, '-12.000000', '现付', '', '', null, null, '10.000000', '1.200000', '10.800000', '12.000000', '[\"9\"]', '[\"12\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('57', '入库', '采购', null, 'CGRK201709050001', 'CGRK201709050001', '季圣华', '2017-09-05 22:37:54', '2017-09-05 22:37:31', '1', null, '11', '-182.520000', null, '-182.400000', '现付', '', '', null, null, '0.000000', '0.000000', '182.520000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('63', '入库', '采购', null, 'CGRK201709170001', 'CGRK201709170001', '季圣华', '2017-09-17 21:45:14', '2017-09-17 21:44:50', '1', null, '10', '-13.200000', null, '-12.000000', '现付', '', '', null, null, '0.000000', '0.000000', '13.200000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('65', '入库', '采购', null, 'CGRK201709170002', 'CGRK201709170002', '季圣华', '2017-09-17 21:47:07', '2017-09-17 20:45:55', '1', null, null, '-42.000000', null, '-39.000000', '现付', '', '', '[\"12\",\"9\"]', '[\"-20\",\"-22\"]', '0.000000', '0.000000', '42.900000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('68', '其它', '组装单', null, 'ZZD2017092000001', 'ZZD2017092000001', '季圣华', '2017-09-20 23:29:28', '2017-09-20 23:29:13', null, null, null, null, null, '7.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('69', '其它', '拆卸单', null, 'CXD2017092000001', 'CXD2017092000001', '季圣华', '2017-09-20 23:40:55', '2017-09-20 23:40:41', null, null, null, null, null, '0.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('70', '入库', '采购', null, 'CGRK201709210001', 'CGRK201709210001', '季圣华', '2017-09-21 22:37:20', '2017-09-21 22:36:37', '1', null, null, '-50.000000', null, '-50.000000', '现付', '', '', '[\"4\",\"9\"]', '[\"-10\",\"-40\"]', '0.000000', '0.000000', '50.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('71', '入库', '销售退货', null, 'XSTH201709210001', 'XSTH201709210001', '季圣华', '2017-09-21 22:39:00', '2017-09-21 22:38:37', '2', null, '11', '-48.000000', null, '-48.000000', '现付', '', '<6>,<7>', null, null, '0.000000', '0.000000', '48.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('72', '入库', '其它', null, 'QTRK201709210001', 'QTRK201709210001', '季圣华', '2017-09-21 22:39:26', '2017-09-21 22:39:14', '4', null, null, null, null, '24.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('73', '出库', '销售', null, 'XSCK201709210001', 'XSCK201709210001', '季圣华', '2017-09-21 22:40:01', '2017-09-21 22:39:44', '2', null, '11', '10.000000', null, '10.000000', '现付', '', '<6>', null, null, '0.000000', '0.000000', '10.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('74', '出库', '采购退货', null, 'CGTH201709210001', 'CGTH201709210001', '季圣华', '2017-09-21 22:40:57', '2017-09-21 22:40:38', '4', null, '4', '5.000000', null, '5.000000', '现付', '', '', null, null, '0.000000', '0.000000', '5.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('75', '出库', '其它', null, 'QTCK201709210001', 'QTCK201709210001', '季圣华', '2017-09-21 22:41:15', '2017-09-21 22:41:02', '2', null, null, null, null, '13.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('76', '出库', '调拨', null, 'DBCK201709210001', 'DBCK201709210001', '季圣华', '2017-09-21 22:41:36', '2017-09-21 22:41:19', null, null, null, null, null, '10.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('77', '出库', '零售', null, 'LSCK201709210001', 'LSCK201709210001', '季圣华', '2017-09-21 22:42:44', '2017-09-21 22:42:21', '7', null, '4', '2.200000', null, '2.200000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('78', '入库', '零售退货', null, 'LSTH201709210001', 'LSTH201709210001', '季圣华', '2017-09-21 22:46:07', '2017-09-21 22:45:49', '7', null, '4', '-2.200000', null, '-2.200000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('79', '入库', '采购', null, 'CGRK201709210002', 'CGRK201709210002', '季圣华', '2017-09-21 23:16:37', '2017-09-21 23:16:21', '1', null, '11', '-23.760000', null, '-21.600000', '现付', '', '', null, null, '0.000000', '0.000000', '23.760000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('80', '其它', '组装单', null, 'ZZD2017092100001', 'ZZD2017092100001', '季圣华', '2017-09-21 23:17:16', '2017-09-21 23:16:59', null, null, null, null, null, '5.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('82', '入库', '采购', null, 'CGRK201709220001', 'CGRK201709220001', '季圣华', '2017-09-22 23:06:01', '2017-09-22 23:05:39', '1', null, null, '-50.000000', null, '-52.000000', '现付', '', '', '[\"11\",\"9\"]', '[\"-20\",\"-30\"]', '10.000000', '5.720000', '51.480000', '5.000000', '[\"11\",\"10\"]', '[\"2\",\"3\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('84', '入库', '采购', null, 'CGRK201709220002', 'CGRK201709220002', '季圣华', '2017-09-22 23:22:02', '2017-09-22 23:21:48', '1', null, '10', '-26.400000', null, '-24.000000', '现付', '', '', null, null, '0.000000', '0.000000', '26.400000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('85', '入库', '采购', null, 'CGRK201709240001', 'CGRK201709240001', '季圣华', '2017-09-24 22:46:00', '2017-09-24 22:44:35', '4', null, null, '-85.000000', null, '-75.000000', '现付', '', '', '[\"10\",\"9\"]', '[\"-20\",\"-65\"]', '0.000000', '0.000000', '87.750000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('87', '出库', '销售', null, 'XSCK201709250001', 'XSCK201709250001', '季圣华', '2017-09-25 22:24:08', '2017-09-25 22:23:47', '2', null, '10', '4.000000', null, '4.000000', '现付', '', '<6>', null, null, '0.000000', '0.000000', '4.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('88', '出库', '销售', null, 'XSCK201709250002', 'XSCK201709250002', '季圣华', '2017-09-25 22:36:51', '2017-09-25 22:35:09', '2', null, '10', '39.600000', null, '40.000000', '现付', '', '<7>', null, null, '10.000000', '4.400000', '39.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('89', '入库', '零售退货', null, 'LSTH201709260001', 'LSTH201709260001', '季圣华', '2017-09-26 00:26:52', '2017-09-26 00:26:19', '7', null, '9', '-18.000000', null, '-18.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('90', '出库', '零售', null, 'LSCK201709260001', 'LSCK201709260001', '季圣华', '2017-09-26 22:31:24', '2017-09-26 22:29:50', '7', null, null, '100.000000', null, '100.000000', '现付', '', '', '[\"10\",\"11\"]', '[\"60\",\"40\"]', null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('93', '出库', '销售', null, 'XSCK201710080001', 'XSCK201710080001', '季圣华', '2017-10-08 19:12:23', '2017-10-08 19:11:44', '2', null, '10', '0.000000', null, '2.600000', '现付', '', '<7>', null, null, '0.000000', '0.000000', '2.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('94', '出库', '销售', null, 'XSCK201710080002', 'XSCK201710080002', '季圣华', '2017-10-08 19:58:55', '2017-10-08 19:58:27', '5', null, '9', '0.000000', null, '8.000000', '现付', '', '<6>', null, null, '0.000000', '0.000000', '8.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('95', '入库', '采购', null, 'CGRK201710180001', 'CGRK201710180001', '季圣华', '2017-10-18 23:21:24', '2017-10-18 23:21:12', '1', null, '11', '-2.860000', null, '-2.600000', '现付', '', '', null, null, '0.000000', '0.000000', '2.860000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('96', '出库', '销售', null, 'XSCK201710240001', 'XSCK201710240001', '季圣华', '2017-10-24 22:04:06', '2017-10-24 22:03:08', '2', null, '9', '0.000000', null, '2.800000', '现付', '', '<7>', null, null, '10.000000', '0.280000', '2.520000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('97', '入库', '采购', null, 'CGRK201710290001', 'CGRK201710290001', '季圣华', '2017-10-29 23:30:47', '2017-10-29 23:30:08', '4', null, '10', '0.000000', null, '-200.000000', '现付', '', '', null, null, '0.000000', '0.000000', '234.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('98', '入库', '采购', null, 'CGRK201710290002', 'CGRK201710290002', '季圣华', '2017-10-29 23:32:07', '2017-10-29 23:30:52', '4', null, '10', '0.000000', null, '-300.000000', '现付', '', '', null, null, '0.000000', '0.000000', '351.000000', null, null, null, null, '1', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('99', '入库', '采购', null, 'CGRK201710290003', 'CGRK201710290003', '季圣华', '2017-10-29 23:33:45', '2017-10-29 23:32:11', '4', null, '11', '-10.000000', null, '-720.000000', '现付', '', '', null, null, '0.000000', '0.000000', '842.400000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('101', '出库', '调拨', null, 'DBCK201711020001', 'DBCK201711020001', '季圣华', '2017-11-02 22:51:17', '2017-11-02 22:48:58', null, null, null, '0.000000', null, '50.000000', '现付', '', '', null, null, null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('102', '出库', '零售', null, 'LSCK201711060001', 'LSCK201711060001', '季圣华', '2017-11-06 20:38:46', '2017-11-06 20:38:01', '7', null, null, '12.000000', null, '12.000000', '现付', '', '', '[\"9\",\"12\"]', '[\"10\",\"2\"]', null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('103', '入库', '采购', null, 'CGRK201711070001', 'CGRK201711070001', '季圣华', '2017-11-07 21:07:05', '2017-11-07 21:06:53', '1', null, '10', '-26.400000', null, '-24.000000', '现付', '', '', null, '', '0.000000', '0.000000', '26.400000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('104', '入库', '采购', null, 'CGRK201711070002', 'CGRK201711070002', '季圣华', '2017-11-07 21:07:40', '2017-11-07 21:07:08', '4', null, null, '-11.000000', null, '-10.000000', '现付', '', '', '[\"9\",\"11\"]', '[\"-10\",\"-1\"]', '0.000000', '0.000000', '11.700000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('105', '出库', '销售', null, 'XSCK201711070001', 'XSCK201711070001', '季圣华', '2017-11-07 21:08:48', '2017-11-07 21:08:34', '2', null, '10', '13.000000', null, '13.000000', '现付', '', '<6>', null, '', '0.000000', '0.000000', '13.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('106', '出库', '销售', null, 'XSCK201711070002', 'XSCK201711070002', '季圣华', '2017-11-07 21:09:20', '2017-11-07 21:08:51', '2', null, null, '13.000000', null, '13.000000', '现付', '', '<5>', '[\"9\",\"10\"]', '[\"5\",\"8\"]', '0.000000', '0.000000', '13.000000', '54.000000', '[\"11\",\"10\"]', '[\"21\",\"33\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('107', '入库', '采购', null, 'CGRK201712030001', 'CGRK201712030001', '季圣华', '2017-12-03 22:38:36', '2017-12-03 22:37:26', '4', null, '9', '-1.000000', null, '-1.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('108', '入库', '采购', null, 'CGRK201712030002', 'sdfasdfa', '季圣华', '2017-12-03 22:40:57', '2017-12-03 22:40:38', '4', null, '4', '-42.120000', null, '-36.000000', '现付', '', '', null, '', '0.000000', '0.000000', '42.120000', null, '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('109', '入库', '采购', null, 'CGRK201712030003', 'CGRK201712030003', '季圣华', '2017-12-03 22:41:38', '2017-12-03 22:41:01', '4', null, '11', '-1.400000', null, '-1.200000', '现付', '', '', null, '', '0.000000', '0.000000', '1.400000', null, '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('110', '入库', '采购', null, 'CGRK201712050001', 'CGRK201712050001', '季圣华', '2017-12-05 23:05:48', '2017-12-05 23:05:34', '1', null, '10', '-11.000000', null, '-10.000000', '现付', '', '', null, '', '0.000000', '0.000000', '11.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('111', '入库', '采购', null, 'CGRK201712050002', 'CGRK201712050002', '季圣华', '2017-12-05 23:12:53', '2017-12-05 23:12:40', '1', null, '10', '0.000000', null, '-20.000000', '现付', '', '', null, '', '0.000000', '0.000000', '22.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('112', '出库', '销售', null, 'XSCK201712100001', 'XSCK201712100001', '季圣华', '2017-12-10 21:07:45', '2017-12-10 21:07:25', '2', null, '11', '2.600000', null, '2.600000', '现付', '', '<>', null, '', '0.000000', '0.000000', '2.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('114', '其它', '采购订单', null, 'CGDD00000000001', 'CGDD00000000001', '季圣华', '2019-03-09 15:49:57', '2019-03-09 15:49:50', '4', null, null, '0.000000', null, '-2.400000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('115', '入库', '采购', null, 'CGRK00000000002', 'CGRK00000000002', '季圣华', '2019-03-09 15:52:05', '2019-03-09 15:51:45', '4', null, '9', '-257.400000', null, '-220.000000', '现付', '', '', null, '', '0.000000', '0.000000', '257.400000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('116', '入库', '采购', null, 'CGRK00000000003', 'CGRK00000000003', '季圣华', '2019-03-09 15:52:21', '2019-03-09 15:52:09', '4', null, '9', '-1029.600000', null, '-880.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1029.600000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('117', '出库', '销售', null, 'XSCK00000000004', 'XSCK00000000004', '季圣华', '2019-03-09 15:53:07', '2019-03-09 15:52:28', '5', null, '9', '110.000000', null, '110.000000', '现付', '', '<7>', null, '', '0.000000', '0.000000', '110.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('118', '出库', '销售', null, 'XSCK00000000005', 'XSCK00000000005', '季圣华', '2019-03-09 15:57:26', '2019-03-09 15:53:10', '2', null, '9', '11.000000', null, '11.000000', '现付', '', '<7>', null, '', '0.000000', '0.000000', '11.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('119', '入库', '采购', null, 'CGRK00000000009', 'CGRK00000000009', '季圣华', '2019-03-09 16:02:30', '2019-03-09 16:01:22', '1', null, '9', '-88.000000', null, '-80.000000', '现付', '', '', null, '', '0.000000', '0.000000', '88.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('120', '其它', '销售订单', null, 'XSDD00000000012', 'XSDD00000000012', '季圣华', '2019-03-09 16:27:38', '2019-03-09 22:12:14', '5', null, null, '0.000000', null, '3.900000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('121', '入库', '采购', null, 'CGRK00000000013', 'CGRK00000000013', '季圣华', '2019-03-09 16:35:53', '2019-03-09 16:35:32', '4', null, '9', '-42.120000', null, '-36.000000', '现付', '', '', null, '', '0.000000', '0.000000', '42.120000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('122', '入库', '采购', null, 'CGRK00000000015', 'CGRK00000000015', '季圣华', '2019-03-09 16:37:34', '2019-03-09 16:37:01', '4', null, '9', '0.000000', null, '-100.000000', '现付', '', '', null, '', '0.000000', '0.000000', '117.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('123', '出库', '销售', null, 'XSCK00000000016', 'XSCK00000000016', '季圣华', '2019-03-09 16:38:03', '2019-03-09 16:37:40', '5', null, '9', '0.000000', null, '26.000000', '现付', '', '<7>', null, '', '0.000000', '0.000000', '26.000000', null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('124', '入库', '其它', null, 'QTRK00000000074', 'QTRK00000000074', '季圣华', '2019-03-09 22:35:21', '2019-03-09 22:34:56', '4', null, null, '0.000000', null, '800.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', null, null, '0'); -INSERT INTO `jsh_depothead` VALUES ('137', '入库', '采购', null, 'CGRK00000000125', 'CGRK00000000125', '季圣华', '2019-03-10 16:46:13', '2019-03-10 16:44:32', '4', null, '9', '-2.400000', null, '-2.400000', '现付', '', '', null, '', '0.000000', '0.000000', '2.400000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', 'CGDD00000000001', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('139', '其它', '采购订单', null, 'CGDD00000000127', 'CGDD00000000127', '季圣华', '2019-03-10 17:00:24', '2019-03-10 18:52:21', '4', null, null, '0.000000', null, '-50.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('141', '出库', '销售', null, 'XSCK00000000134', 'XSCK00000000134', '季圣华', '2019-03-10 17:40:13', '2019-03-10 17:39:41', '5', null, '9', '3.900000', null, '3.900000', '现付', '', '', null, '', '0.000000', '0.000000', '3.900000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', 'XSDD00000000012', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('142', '其它', '销售订单', null, 'XSDD00000000135', 'XSDD00000000135', '季圣华', '2019-03-10 17:42:11', '2019-03-10 17:44:07', '2', null, null, '0.000000', null, '7.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('144', '出库', '销售', null, 'XSCK00000000137', 'XSCK00000000137', '季圣华', '2019-03-10 17:44:49', '2019-03-10 17:44:14', '2', null, '9', '7.000000', null, '7.000000', '现付', '', '', null, '', '0.000000', '0.000000', '7.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', 'XSDD00000000135', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('147', '其它', '采购订单', null, 'CGDD00000000140', 'CGDD00000000140', '季圣华', '2019-03-10 17:49:51', '2019-03-10 17:49:38', '4', null, null, '0.000000', null, '-240.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('148', '入库', '采购', null, 'CGRK00000000141', 'CGRK00000000141', '季圣华', '2019-03-10 17:50:19', '2019-03-10 17:50:06', '4', null, '9', '-240.000000', null, '-240.000000', '现付', '', '', null, '', '0.000000', '0.000000', '240.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', 'CGDD00000000140', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('155', '入库', '采购', null, 'CGRK00000000173', 'CGRK00000000173', '季圣华', '2019-03-10 19:21:56', '2019-03-10 19:20:30', '4', null, '4', '-54.080000', null, '-46.220000', '现付', '', '', null, '', '0.000000', '0.000000', '54.080000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', 'CGDD00000000127', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('158', '出库', '销售', null, 'XSCK00000000177', 'XSCK00000000177', '季圣华', '2019-03-10 20:02:32', '2019-03-10 20:02:21', '5', null, '9', '10.000000', null, '10.000000', '现付', '', '', null, '', '0.000000', '0.000000', '10.000000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('159', '入库', '采购', null, 'CGRK00000000178', 'CGRK00000000178', '季圣华', '2019-03-15 23:05:40', '2019-03-15 23:05:28', '46', null, '9', '-19.500000', null, '-19.500000', '现付', '', '', null, '', '0.000000', '0.000000', '19.500000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('160', '入库', '采购', null, 'CGRK00000000179', 'CGRK00000000179', '季圣华', '2019-03-15 23:06:22', '2019-03-15 23:06:03', '46', null, '9', '-1111.000000', null, '-1111.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1111.000000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('161', '出库', '销售', null, 'XSCK00000000180', 'XSCK00000000180', '季圣华', '2019-03-15 23:06:52', '2019-03-15 23:06:38', '2', null, '9', '111.000000', null, '111.000000', '现付', '', '', null, '', '0.000000', '0.000000', '111.000000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('162', '入库', '其它', null, 'QTRK00000000181', 'QTRK00000000181', '季圣华', '2019-03-15 23:08:18', '2019-03-15 23:08:11', '4', null, null, '0.000000', null, '144.300000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('163', '出库', '调拨', null, 'DBCK00000000182', 'DBCK00000000182', '季圣华', '2019-03-15 23:08:32', '2019-03-15 23:08:22', null, null, null, '0.000000', null, '111.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('164', '出库', '零售', null, 'LSCK00000000184', 'LSCK00000000184', '季圣华', '2019-03-15 23:15:30', '2019-03-15 23:15:22', '8', null, '9', '1.200000', null, '1.200000', '预付款', '', '', null, '', null, null, null, null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('165', '入库', '采购', null, 'CGRK00000000190', 'CGRK00000000190', 'lili', '2019-03-19 22:10:17', '2019-03-19 22:09:49', '47', null, '13', '-220.000000', null, '-220.000000', '现付', '', '', null, '', '0.000000', '0.000000', '220.000000', null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('166', '其它', '采购订单', null, 'CGDD00000000191', 'CGDD00000000191', 'lili', '2019-03-19 22:10:35', '2019-03-19 22:10:22', '50', null, null, '0.000000', null, '-2442.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('167', '出库', '采购退货', null, 'CGTH00000000193', 'CGTH00000000193', 'lili', '2019-03-19 22:11:39', '2019-03-19 22:11:12', '47', null, '13', '110.000000', null, '110.000000', '现付', '', '', null, '', '0.000000', '0.000000', '110.000000', null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('168', '其它', '销售订单', null, 'XSDD00000000194', 'XSDD00000000194', 'lili', '2019-03-19 22:12:04', '2019-03-19 22:11:55', '48', null, null, '0.000000', null, '22.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('169', '出库', '销售', null, 'XSCK00000000195', 'XSCK00000000195', 'lili', '2019-03-19 22:12:18', '2019-03-19 22:12:09', '48', null, '13', '22.000000', null, '22.000000', '现付', '', '', null, '', '0.000000', '0.000000', '22.000000', null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('170', '入库', '销售退货', null, 'XSTH00000000196', 'XSTH00000000196', 'lili', '2019-03-19 22:12:29', '2019-03-19 22:12:21', '48', null, '13', '-22.000000', null, '-22.000000', '现付', '', '', null, '', '0.000000', '0.000000', '22.000000', null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('171', '出库', '零售', null, 'LSCK00000000197', 'LSCK00000000197', 'lili', '2019-03-19 22:12:43', '2019-03-19 22:12:35', '49', null, '13', '22.000000', null, '22.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('172', '入库', '零售退货', null, 'LSTH00000000198', 'LSTH00000000198', 'lili', '2019-03-19 22:12:53', '2019-03-19 22:12:46', '49', null, '13', '-22.000000', null, '-22.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('173', '入库', '其它', null, 'QTRK00000000199', 'QTRK00000000199', 'lili', '2019-03-19 22:13:20', '2019-03-19 22:13:09', '50', null, null, '0.000000', null, '2200.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('174', '出库', '其它', null, 'QTCK00000000200', 'QTCK00000000200', 'lili', '2019-03-19 22:13:34', '2019-03-19 22:13:23', '48', null, null, '0.000000', null, '176.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '1', '0'); -INSERT INTO `jsh_depothead` VALUES ('175', '其它', '采购订单', null, 'CGDD00000000203', 'CGDD00000000203', '季圣华', '2019-03-19 22:48:07', '2019-03-19 22:47:55', '46', null, null, '0.000000', null, '-10.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('176', '入库', '采购', null, 'CGRK00000000204', 'CGRK00000000204', '季圣华', '2019-03-19 22:48:22', '2019-03-19 22:48:10', '4', null, '13', '-28.080000', null, '-24.000000', '现付', '', '', null, '', '0.000000', '0.000000', '28.080000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('177', '出库', '销售', null, 'XSCK00000000205', 'XSCK00000000205', '季圣华', '2019-03-19 22:48:40', '2019-03-19 22:48:26', '5', null, '13', '10.000000', null, '10.000000', '现付', '', '', null, '', '0.000000', '0.000000', '10.000000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('178', '入库', '采购', null, 'CGRK00000000213', 'CGRK00000000213', '季圣华', '2019-03-21 23:58:56', '2019-03-21 23:58:44', '4', null, '13', '-14.400000', null, '-14.400000', '现付', '', '', null, '', '0.000000', '0.000000', '14.400000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('179', '出库', '销售', null, 'XSCK00000000214', 'XSCK00000000214', '季圣华', '2019-03-21 23:59:18', '2019-03-21 23:59:05', '5', null, '10', '317.200000', null, '317.200000', '现付', '', '', null, '', '0.000000', '0.000000', '317.200000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('180', '入库', '采购', null, 'CGRK00000000242', 'CGRK00000000242', 'laoba123', '2019-04-02 22:30:01', '2019-04-02 22:29:52', '55', null, '16', '-1221.000000', null, '-1221.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1221.000000', null, null, null, null, '0', '', '115', '0'); -INSERT INTO `jsh_depothead` VALUES ('181', '入库', '采购', null, 'CGRK00000000243', 'CGRK00000000243', 'laoba123', '2019-04-02 22:30:20', '2019-04-02 22:30:03', '55', null, '16', '-1342.000000', null, '-1342.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1342.000000', null, null, null, null, '0', '', '115', '0'); -INSERT INTO `jsh_depothead` VALUES ('182', '入库', '采购', null, 'CGRK00000000245', 'CGRK00000000245', '季圣华', '2019-04-02 22:32:00', '2019-04-02 22:31:48', '46', null, '16', '-14.400000', null, '-14.400000', '现付', '', '', null, '', '0.000000', '0.000000', '14.400000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('183', '入库', '采购', null, 'CGRK00000000247', 'CGRK00000000247', '季圣华', '2019-04-04 23:06:58', '2019-04-04 23:06:41', '46', null, '16', '-159.600000', null, '-159.600000', '现付', '', '', null, '', '0.000000', '0.000000', '159.600000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('184', '入库', '采购', null, 'CGRK00000000248', 'CGRK00000000248', '季圣华', '2019-04-07 20:23:23', '2019-04-07 20:22:40', '4', null, '4', '-35.100000', null, '-30.000000', '现付', '', '', null, '', '0.000000', '0.000000', '35.100000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('185', '入库', '采购', null, 'CGRK00000000249', 'CGRK00000000249', '季圣华', '2019-04-07 20:25:30', '2019-04-07 20:25:00', '4', null, '16', '-35.100000', null, '-30.000000', '现付', '', '', null, '', '0.000000', '0.000000', '35.100000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('186', '入库', '采购', null, 'CGRK00000000250', 'CGRK00000000250', '季圣华', '2019-04-07 20:35:00', '2019-04-07 20:34:29', '4', null, '16', '-11.700000', null, '-10.000000', '现付', '', '', null, '', '0.000000', '0.000000', '11.700000', null, null, null, null, '0', '', null, '1'); -INSERT INTO `jsh_depothead` VALUES ('187', '入库', '采购', null, 'CGRK00000000252', 'CGRK00000000252', '季圣华', '2019-04-07 20:44:09', '2019-04-07 20:43:49', '4', null, '4', '-421.200000', null, '-360.000000', '现付', '', '', null, '', '0.000000', '0.000000', '421.200000', null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('188', '其它', '组装单', null, 'ZZD00000000254', 'ZZD00000000254', '季圣华', '2019-04-07 20:51:51', '2019-04-07 22:39:59', null, null, null, '0.000000', null, '0.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', null, '0'); -INSERT INTO `jsh_depothead` VALUES ('189', '入库', '采购', null, 'CGRK00000000261', 'CGRK00000000261', '季圣华', '2019-04-10 22:25:49', '2019-04-10 22:26:00', '57', null, '17', '-24.000000', null, '-24.000000', '现付', '', '', null, '', '0.000000', '0.000000', '24.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('190', '入库', '采购', null, 'CGRK00000000263', 'CGRK00000000263', '季圣华', '2019-04-13 19:57:43', '2019-04-13 19:57:32', '57', null, '17', '-24.000000', null, '-24.000000', '现付', '', '', null, '', '0.000000', '0.000000', '24.000000', null, null, null, null, '0', '', '63', '1'); -INSERT INTO `jsh_depothead` VALUES ('191', '入库', '采购', null, 'CGRK00000000264', 'CGRK00000000264', '季圣华', '2019-04-13 19:57:58', '2019-04-13 19:57:48', '57', null, '17', '-2.000000', null, '-2.000000', '现付', '', '', null, '', '0.000000', '0.000000', '2.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('192', '入库', '采购', null, 'CGRK00000000265', 'CGRK00000000265', '季圣华', '2019-04-20 00:36:24', '2019-04-20 00:35:57', '57', null, '17', '-44.000000', null, '-44.000000', '现付', '', '', null, '', '0.000000', '0.000000', '44.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('193', '出库', '销售', null, 'XSCK00000000268', 'XSCK00000000268', '季圣华', '2019-04-29 23:41:02', '2019-04-29 23:40:49', '58', null, '17', '0.000000', null, '100.000000', '现付', '', '', null, '', '0.000000', '0.000000', '100.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('194', '入库', '采购', null, 'CGRK00000000272', 'CGRK00000000272', '季圣华', '2019-04-30 22:33:24', '2019-04-30 22:33:09', '57', null, '17', '-500.000000', null, '-500.000000', '现付', '', '', null, '', '0.000000', '0.000000', '500.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('195', '入库', '采购', null, 'CGRK00000000273', 'CGRK00000000273', '季圣华', '2019-04-30 22:34:45', '2019-04-30 22:34:32', '57', null, '17', '-610.000000', null, '-610.000000', '现付', '', '', null, '', '0.000000', '0.000000', '610.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('196', '入库', '采购', null, 'CGRK00000000274', 'CGRK00000000274', '季圣华', '2019-04-30 22:35:53', '2019-05-03 11:57:49', '57', null, '18', '-670.000000', null, '-670.000000', '现付', '', '', null, '', '0.000000', '0.000000', '670.000000', '0.000000', '[\"undefined\"]', '[\"undefined\"]', null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('197', '出库', '销售', null, 'XSCK00000000290', 'XSCK00000000290', '季圣华', '2019-04-30 23:15:27', '2019-04-30 23:15:09', '58', null, '17', '90.000000', null, '90.000000', '现付', '', '', null, '', '0.000000', '0.000000', '90.000000', null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('198', '入库', '采购', null, 'CGRK00000000292', 'CGRK00000000292', '季圣华', '2019-05-03 14:20:56', '2019-05-03 14:19:38', '57', null, '17', '-1.120000', null, '-1.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1.120000', null, null, null, null, '0', '', '63', '0'); - --- ---------------------------- --- Table structure for jsh_depotitem --- ---------------------------- -DROP TABLE IF EXISTS `jsh_depotitem`; -CREATE TABLE `jsh_depotitem` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `HeaderId` bigint(20) NOT NULL COMMENT '表头Id', - `MaterialId` bigint(20) NOT NULL COMMENT '材料Id', - `MUnit` varchar(20) DEFAULT NULL COMMENT '商品计量单位', - `OperNumber` decimal(24,6) DEFAULT NULL COMMENT '数量', - `BasicNumber` decimal(24,6) DEFAULT NULL COMMENT '基础数量,如kg、瓶', - `UnitPrice` decimal(24,6) DEFAULT NULL COMMENT '单价', - `TaxUnitPrice` decimal(24,6) DEFAULT NULL COMMENT '含税单价', - `AllPrice` decimal(24,6) DEFAULT NULL COMMENT '金额', - `Remark` varchar(200) DEFAULT NULL COMMENT '描述', - `Img` varchar(50) DEFAULT NULL COMMENT '图片', - `Incidentals` decimal(24,6) DEFAULT NULL COMMENT '运杂费', - `DepotId` bigint(20) DEFAULT NULL COMMENT '仓库ID(库存是统计出来的)', - `AnotherDepotId` bigint(20) DEFAULT NULL COMMENT '调拨时,对方仓库Id', - `TaxRate` decimal(24,6) DEFAULT NULL COMMENT '税率', - `TaxMoney` decimal(24,6) DEFAULT NULL COMMENT '税额', - `TaxLastMoney` decimal(24,6) DEFAULT NULL COMMENT '价税合计', - `OtherField1` varchar(50) DEFAULT NULL COMMENT '自定义字段1-品名', - `OtherField2` varchar(50) DEFAULT NULL COMMENT '自定义字段2-型号', - `OtherField3` varchar(50) DEFAULT NULL COMMENT '自定义字段3-制造商', - `OtherField4` varchar(50) DEFAULT NULL COMMENT '自定义字段4', - `OtherField5` varchar(50) DEFAULT NULL COMMENT '自定义字段5', - `MType` varchar(20) DEFAULT NULL COMMENT '商品类型', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`), - KEY `FK2A819F475D61CCF7` (`MaterialId`), - KEY `FK2A819F474BB6190E` (`HeaderId`), - KEY `FK2A819F479485B3F5` (`DepotId`), - KEY `FK2A819F47729F5392` (`AnotherDepotId`) -) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=utf8 COMMENT='单据子表'; - --- ---------------------------- --- Records of jsh_depotitem --- ---------------------------- -INSERT INTO `jsh_depotitem` VALUES ('7', '7', '500', '码', '30.000000', '30.000000', '1.200000', '1.320000', '36.000000', 'remark', null, null, '3', null, '10.000000', '3.600000', '39.600000', 'a', 'b', 'c', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('8', '8', '500', '码', '20.000000', '20.000000', '1.200000', '1.200000', '24.000000', '', null, null, '3', null, null, '0.000000', '24.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('9', '9', '500', '码', '100.000000', '100.000000', '1.200000', '1.320000', '120.000000', '', null, null, '3', null, '10.000000', '12.000000', '132.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('10', '10', '500', '码', '10.000000', '10.000000', '1.200000', '1.320000', '12.000000', '', null, null, '3', null, '10.000000', '1.200000', '13.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('11', '11', '500', '码', '20.000000', '20.000000', '1.200000', '1.320000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('12', '12', '500', '码', '10.000000', '10.000000', '1.200000', '1.320000', '12.000000', '', null, null, '3', null, '10.000000', '1.200000', '13.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('13', '13', '500', '码', '20.000000', '20.000000', '1.200000', '1.320000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('14', '14', '500', '码', '30.000000', '30.000000', '1.200000', '1.320000', '36.000000', '', null, null, '3', null, '10.000000', '3.600000', '39.600000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('16', '16', '500', '码', '20.000000', '20.000000', '1.200000', '1.320000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('17', '17', '500', '码', '30.000000', '30.000000', '1.200000', '1.320000', '36.000000', '', null, null, '3', null, '10.000000', '3.600000', '39.600000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('18', '18', '500', '码', '20.000000', '20.000000', '1.200000', '1.320000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('19', '19', '500', '码', '22.000000', '22.000000', '1.200000', '1.320000', '26.400000', '', null, null, '3', null, '10.000000', '2.640000', '29.040000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('20', '20', '500', '码', '30.000000', '30.000000', '1.200000', '1.320000', '36.000000', '', null, null, '3', null, '10.000000', '3.600000', '39.600000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('21', '21', '500', '码', '22.000000', '22.000000', '1.200000', '1.320000', '26.400000', '', null, null, '3', null, '10.000000', '2.640000', '29.040000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('22', '22', '500', '码', '20.000000', '20.000000', '1.200000', '1.320000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('23', '23', '517', '箱', '10.000000', '120.000000', '36.000000', '36.000000', '360.000000', '', null, null, '3', null, '0.000000', '0.000000', '360.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('24', '24', '518', '包', '10.000000', '250.000000', '75.000000', '75.000000', '750.000000', '', null, null, '3', null, '0.000000', '0.000000', '750.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('25', '25', '518', '包', '1.000000', '25.000000', '75.000000', '75.000000', '75.000000', '', null, null, '3', null, '0.000000', '0.000000', '75.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('26', '26', '518', '包', '2.000000', '50.000000', '75.000000', '90.000000', '150.000000', '', null, null, '3', null, '20.000000', '30.000000', '180.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('27', '27', '518', '包', '1.000000', '25.000000', '75.000000', '82.500000', '75.000000', '', null, null, '3', null, '10.000000', '7.500000', '82.500000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('28', '28', '517', '箱', '2.000000', '24.000000', '36.000000', '36.000000', '72.000000', '', null, null, '3', null, '0.000000', '0.000000', '72.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('29', '29', '500', '码', '100.000000', '100.000000', '1.300000', '1.370000', '130.000000', '', null, null, '3', null, '5.000000', '6.500000', '136.500000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('30', '30', '500', '码', '40.000000', '40.000000', '1.200000', '1.200000', '48.000000', '', null, null, '3', null, '0.000000', '0.000000', '48.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('31', '31', '500', '码', '20.000000', '20.000000', '1.300000', '1.430000', '26.000000', '', null, null, '3', null, '10.000000', '2.600000', '28.600000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('32', '32', '500', '码', '10.000000', '10.000000', '1.200000', '1.320000', '12.000000', '', null, null, '3', null, '10.000000', '1.200000', '13.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('33', '33', '500', '码', '50.000000', '50.000000', '1.300000', '1.430000', '65.000000', '', null, null, '3', null, '10.000000', '6.500000', '71.500000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('37', '37', '500', '码', '1.000000', '1.000000', '1.300000', '1.300000', '1.300000', '', null, null, '3', '1', '0.000000', '0.000000', '1.300000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('38', '38', '500', '码', '2.000000', '2.000000', '1.300000', '1.300000', '2.600000', '', null, null, '3', '1', '0.000000', '0.000000', '2.600000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('41', '41', '500', '码', '20.000000', '20.000000', '2.100000', '2.310000', '42.000000', '', null, null, '3', null, '10.000000', '4.200000', '46.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('42', '42', '500', '码', '10.000000', '10.000000', '1.100000', '1.100000', '11.000000', '', null, null, '3', null, '0.000000', '0.000000', '11.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('43', '43', '500', '码', '11.000000', '11.000000', '1.100000', '1.100000', '12.100000', '', null, null, '3', null, '0.000000', '0.000000', '12.100000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('44', '44', '499', '码', '1.000000', '1.000000', '2.200000', '2.200000', '2.200000', '', null, null, '3', null, '0.000000', '0.000000', '2.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('45', '45', '500', '码', '3.000000', '3.000000', '1.100000', '1.100000', '3.300000', '', null, null, '3', null, '0.000000', '0.000000', '3.300000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('48', '48', '498', '码', '10.000000', '10.000000', '1.200000', '1.200000', '12.000000', '', null, null, '3', null, '0.000000', '0.000000', '12.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('49', '49', '498', '码', '10.000000', '10.000000', '1.200000', '1.200000', '12.000000', '', null, null, '3', null, '0.000000', '0.000000', '12.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('50', '50', '500', '码', '20.000000', '20.000000', '1.100000', '1.100000', '22.000000', '', null, null, '3', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('52', '52', '500', '码', '22.000000', '22.000000', '1.100000', '1.100000', '24.200000', '', null, null, '3', null, '0.000000', '0.000000', '24.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('53', '53', '500', '码', '33.000000', '33.000000', '1.100000', '1.100000', '36.300000', '', null, null, '3', null, '0.000000', '0.000000', '36.300000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('54', '54', '500', '码', '10.000000', '10.000000', '1.200000', '1.200000', '12.000000', '', null, null, '1', null, '10.000000', '0.000000', '12.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('57', '57', '500', '码', '2.000000', '2.000000', '1.200000', '1.260000', '2.400000', '', null, null, '3', null, '0.000000', '0.120000', '2.520000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('63', '57', '517', '箱', '5.000000', '60.000000', '36.000000', '36.000000', '180.000000', '', null, null, '3', null, '0.000000', '0.000000', '180.000000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('64', '63', '500', '码', '10.000000', '10.000000', '1.200000', '1.320000', '12.000000', '', null, null, '3', null, '10.000000', '1.200000', '13.200000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('66', '65', '498', '码', '30.000000', '30.000000', '1.300000', '1.430000', '39.000000', '', null, null, '3', null, '10.000000', '3.900000', '42.900000', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('71', '68', '498', '码', '1.000000', '1.000000', '3.000000', '3.000000', '3.000000', '', null, null, '3', null, '0.000000', '0.000000', '3.000000', '', '', '', '', '', '组合件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('72', '68', '499', '码', '1.000000', '1.000000', '4.000000', '4.000000', '4.000000', '', null, null, '3', null, '0.000000', '0.000000', '4.000000', '', '', '', '', '', '普通子件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('73', '69', '498', '码', '1.000000', '1.000000', '0.000000', '0.000000', '0.000000', '', null, null, '1', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '组合件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('74', '69', '499', '码', '1.000000', '1.000000', '0.000000', '0.000000', '0.000000', '', null, null, '1', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '普通子件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('75', '70', '487', '码', '50.000000', '50.000000', '1.000000', '1.000000', '50.000000', '', null, null, '1', null, '10.000000', '0.000000', '50.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('76', '71', '499', '码', '20.000000', '20.000000', '2.400000', '2.400000', '48.000000', '', null, null, '3', null, '0.000000', '0.000000', '48.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('77', '72', '499', '码', '10.000000', '10.000000', '2.400000', '2.810000', '24.000000', '', null, null, '3', null, '17.000000', '4.080000', '28.080000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('78', '73', '487', '码', '10.000000', '10.000000', '1.000000', '1.000000', '10.000000', '', null, null, '1', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('79', '74', '487', '码', '5.000000', '5.000000', '1.000000', '1.000000', '5.000000', '', null, null, '3', null, '0.000000', '0.000000', '5.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('80', '75', '500', '码', '10.000000', '10.000000', '1.300000', '1.300000', '13.000000', '', null, null, '3', null, '0.000000', '0.000000', '13.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('81', '76', '487', '码', '10.000000', '10.000000', '1.000000', '1.000000', '10.000000', '', null, null, '3', '1', '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('82', '77', '499', '码', '1.000000', '1.000000', '2.200000', '2.200000', '2.200000', '', null, null, '3', null, '0.000000', '0.000000', '2.200000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('83', '78', '499', '码', '1.000000', '1.000000', '2.200000', '2.200000', '2.200000', '', null, null, '3', null, '0.000000', '0.000000', '2.200000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('84', '79', '499', '码', '9.000000', '9.000000', '2.400000', '2.640000', '21.600000', '', null, null, '3', null, '10.000000', '2.160000', '23.760000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('85', '80', '500', '码', '1.000000', '1.000000', '2.000000', '2.000000', '2.000000', '', null, null, '3', null, '0.000000', '0.000000', '2.000000', '', '', '', '', '', '组合件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('86', '80', '498', '码', '1.000000', '1.000000', '3.000000', '3.000000', '3.000000', '', null, null, '3', null, '0.000000', '0.000000', '3.000000', '', '', '', '', '', '普通子件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('88', '82', '498', '码', '40.000000', '40.000000', '1.300000', '1.430000', '52.000000', '', null, null, '3', null, '10.000000', '5.200000', '57.200000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('90', '84', '499', '码', '10.000000', '10.000000', '2.400000', '2.640000', '24.000000', '', null, null, '1', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('91', '85', '518', '包', '1.000000', '25.000000', '75.000000', '87.750000', '75.000000', '', null, null, '3', null, '17.000000', '12.750000', '87.750000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('93', '87', '518', 'kg', '1.000000', '1.000000', '4.000000', '4.000000', '4.000000', '', null, null, '3', null, '0.000000', '0.000000', '4.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('94', '88', '517', '瓶', '10.000000', '10.000000', '4.000000', '4.400000', '40.000000', '', null, null, '3', null, '10.000000', '4.000000', '44.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('95', '89', '517', '箱', '1.000000', '12.000000', '18.000000', '18.000000', '18.000000', '', null, null, '3', null, '0.000000', '0.000000', '18.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('96', '90', '518', '包', '2.000000', '50.000000', '50.000000', '50.000000', '100.000000', '', null, null, '3', null, '0.000000', '0.000000', '100.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('101', '94', '517', '瓶', '2.000000', '2.000000', '4.000000', '4.000000', '8.000000', '', null, null, '3', null, '0.000000', '0.000000', '8.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('102', '95', '498', '码', '2.000000', '2.000000', '1.300000', '1.430000', '2.600000', '', null, null, '3', null, '10.000000', '0.260000', '2.860000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('103', '96', '498', '码', '2.000000', '2.000000', '1.400000', '1.400000', '2.800000', '', null, null, '3', null, '0.000000', '0.000000', '2.800000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('104', '97', '485', '码', '200.000000', '200.000000', '1.000000', '1.170000', '200.000000', '', null, null, '3', null, '17.000000', '34.000000', '234.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('105', '98', '487', '码', '300.000000', '300.000000', '1.000000', '1.170000', '300.000000', '', null, null, '3', null, '17.000000', '51.000000', '351.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('106', '99', '517', '箱', '20.000000', '240.000000', '36.000000', '42.120000', '720.000000', '', null, null, '3', null, '17.000000', '122.400000', '842.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('107', '100', '487', '码', '1.000000', '1.000000', '1.000000', '1.000000', '1.000000', '', null, null, '4', null, '0.000000', '0.000000', '1.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('108', '101', '485', '码', '50.000000', '50.000000', '1.000000', '1.000000', '50.000000', '', null, null, '3', '1', '0.000000', '0.000000', '50.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('109', '102', '498', '码', '10.000000', '10.000000', '1.200000', '1.200000', '12.000000', '', null, null, '3', null, '0.000000', '0.000000', '12.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('110', '103', '499', '码', '10.000000', '10.000000', '2.400000', '2.640000', '24.000000', '', null, null, '3', null, '10.000000', '2.400000', '26.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('111', '104', '487', '码', '10.000000', '10.000000', '1.000000', '1.170000', '10.000000', '', null, null, '3', null, '17.000000', '1.700000', '11.700000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('112', '105', '499', '码', '5.000000', '5.000000', '2.600000', '2.600000', '13.000000', '', null, null, '3', null, '0.000000', '0.000000', '13.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('113', '106', '499', '码', '5.000000', '5.000000', '2.600000', '2.600000', '13.000000', '', null, null, '3', null, '0.000000', '0.000000', '13.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('114', '107', '487', '码', '1.000000', '1.000000', '1.000000', '1.000000', '1.000000', '', null, null, '1', null, '0.000000', '0.000000', '1.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('116', '108', '517', '箱', '1.000000', '12.000000', '36.000000', '42.120000', '36.000000', '', null, null, '3', null, '17.000000', '6.120000', '42.120000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('117', '109', '500', '码', '1.000000', '1.000000', '1.200000', '1.400000', '1.200000', '', null, null, '3', null, '17.000000', '0.200000', '1.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('118', '110', '487', '码', '10.000000', '10.000000', '1.000000', '1.100000', '10.000000', '', null, null, '3', null, '10.000000', '1.000000', '11.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('119', '111', '487', '码', '20.000000', '20.000000', '1.000000', '1.100000', '20.000000', '', null, null, '1', null, '10.000000', '2.000000', '22.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('120', '112', '499', '码', '1.000000', '1.000000', '2.600000', '2.600000', '2.600000', '', null, null, '3', null, '0.000000', '0.000000', '2.600000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('123', '114', '499', '码', '1.000000', '1.000000', '2.400000', '2.400000', '2.400000', '', null, null, '3', null, '0.000000', '0.000000', '2.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('124', '115', '563', '张', '20.000000', '20.000000', '11.000000', '12.870000', '220.000000', '', null, null, '1', null, '17.000000', '37.400000', '257.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('125', '116', '563', '张', '80.000000', '80.000000', '11.000000', '12.870000', '880.000000', '', null, null, '3', null, '17.000000', '149.600000', '1029.600000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('126', '117', '563', '张', '10.000000', '10.000000', '11.000000', '11.000000', '110.000000', '', null, null, '3', null, '0.000000', '0.000000', '110.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('127', '118', '563', '张', '1.000000', '1.000000', '11.000000', '11.000000', '11.000000', '', null, null, '1', null, '0.000000', '0.000000', '11.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('128', '119', '562', '个', '10.000000', '10.000000', '8.000000', '8.800000', '80.000000', '', null, null, '3', null, '10.000000', '8.000000', '88.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('129', '120', '500', '码', '3.000000', '3.000000', '1.300000', '1.300000', '3.900000', '', null, null, '3', null, '0.000000', '0.000000', '3.900000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('130', '121', '517', '箱', '1.000000', '12.000000', '36.000000', '42.120000', '36.000000', '', null, null, '3', null, '17.000000', '6.120000', '42.120000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('131', '122', '487', '码', '100.000000', '100.000000', '1.000000', '1.170000', '100.000000', '', null, null, '3', null, '17.000000', '17.000000', '117.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('132', '123', '499', '码', '10.000000', '10.000000', '2.600000', '2.600000', '26.000000', '', null, null, '3', null, '0.000000', '0.000000', '26.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('133', '124', '562', '个', '100.000000', '100.000000', '8.000000', '9.360000', '800.000000', '', null, null, '1', null, '17.000000', '136.000000', '936.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('144', '137', '499', '码', '1.000000', '1.000000', '2.400000', '2.400000', '2.400000', '', null, null, '3', null, '0.000000', '0.000000', '2.400000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('146', '139', '499', '码', '10.000000', '10.000000', '2.400000', '2.810000', '24.000000', '', null, null, '3', null, '17.000000', '4.080000', '28.080000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('148', '141', '500', '码', '3.000000', '3.000000', '1.300000', '1.300000', '3.900000', '', null, null, '3', null, '0.000000', '0.000000', '3.900000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('149', '142', '498', '码', '5.000000', '5.000000', '1.400000', '1.400000', '7.000000', '', null, null, '3', null, '0.000000', '0.000000', '7.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('151', '144', '498', '码', '5.000000', '5.000000', '1.400000', '1.400000', '7.000000', '', null, null, '3', null, '0.000000', '0.000000', '7.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('154', '147', '499', '码', '100.000000', '100.000000', '2.400000', '2.400000', '240.000000', '', null, null, '3', null, '0.000000', '0.000000', '240.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('155', '148', '499', '码', '100.000000', '100.000000', '2.400000', '2.400000', '240.000000', '', null, null, '3', null, '0.000000', '0.000000', '240.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('158', '139', '498', '码', '20.000000', '20.000000', '1.110000', '1.300000', '22.220000', '', null, null, '3', null, '17.000000', '3.780000', '26.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('161', '155', '499', '码', '10.000000', '10.000000', '2.400000', '2.810000', '24.000000', '', null, null, '3', null, '17.000000', '4.080000', '28.080000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('162', '155', '498', '码', '20.000000', '20.000000', '1.110000', '1.300000', '22.220000', '', null, null, '3', null, '17.000000', '3.780000', '26.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('165', '158', '487', '码', '10.000000', '10.000000', '1.000000', '1.000000', '10.000000', '', null, null, '3', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('166', '159', '498', '码', '15.000000', '15.000000', '1.300000', '1.300000', '19.500000', '', null, null, '3', null, '0.000000', '0.000000', '19.500000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('167', '160', '487', '码', '1111.000000', '1111.000000', '1.000000', '1.000000', '1111.000000', '', null, null, '1', null, '0.000000', '0.000000', '1111.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('168', '161', '487', '码', '111.000000', '111.000000', '1.000000', '1.000000', '111.000000', '', null, null, '1', null, '0.000000', '0.000000', '111.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('169', '162', '498', '码', '111.000000', '111.000000', '1.300000', '1.520000', '144.300000', '', null, null, '3', null, '17.000000', '24.530000', '168.830000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('170', '163', '487', '码', '111.000000', '111.000000', '1.000000', '1.000000', '111.000000', '', null, null, '1', '3', '0.000000', '0.000000', '111.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('171', '164', '498', '码', '1.000000', '1.000000', '1.200000', '1.200000', '1.200000', '', null, null, '3', null, '0.000000', '0.000000', '1.200000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('172', '165', '564', '个', '10.000000', '10.000000', '22.000000', '22.000000', '220.000000', '', null, null, '7', null, '0.000000', '0.000000', '220.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('173', '166', '564', '个', '111.000000', '111.000000', '22.000000', '22.000000', '2442.000000', '', null, null, '7', null, '0.000000', '0.000000', '2442.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('174', '167', '564', '个', '5.000000', '5.000000', '22.000000', '22.000000', '110.000000', '', null, null, '7', null, '0.000000', '0.000000', '110.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('175', '168', '564', '个', '1.000000', '1.000000', '22.000000', '22.000000', '22.000000', '', null, null, '7', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('176', '169', '564', '个', '1.000000', '1.000000', '22.000000', '22.000000', '22.000000', '', null, null, '7', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('177', '170', '564', '个', '1.000000', '1.000000', '22.000000', '22.000000', '22.000000', '', null, null, '7', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('178', '171', '564', '个', '1.000000', '1.000000', '22.000000', '22.000000', '22.000000', '', null, null, '7', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('179', '172', '564', '个', '1.000000', '1.000000', '22.000000', '22.000000', '22.000000', '', null, null, '7', null, '0.000000', '0.000000', '22.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('180', '173', '564', '个', '100.000000', '100.000000', '22.000000', '22.000000', '2200.000000', '', null, null, '7', null, '0.000000', '0.000000', '2200.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('181', '174', '564', '个', '8.000000', '8.000000', '22.000000', '22.000000', '176.000000', '', null, null, '7', null, '0.000000', '0.000000', '176.000000', '', '', '', '', '', '', '1', '0'); -INSERT INTO `jsh_depotitem` VALUES ('182', '175', '487', '码', '10.000000', '10.000000', '1.000000', '1.000000', '10.000000', '', null, null, '1', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('183', '176', '499', '码', '10.000000', '10.000000', '2.400000', '2.810000', '24.000000', '', null, null, '1', null, '17.000000', '4.080000', '28.080000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('184', '177', '487', '码', '10.000000', '10.000000', '1.000000', '1.000000', '10.000000', '', null, null, '1', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('185', '178', '500', '码', '12.000000', '12.000000', '1.200000', '1.200000', '14.400000', '', null, null, '3', null, '0.000000', '0.000000', '14.400000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('186', '179', '499', '码', '122.000000', '122.000000', '2.600000', '2.600000', '317.200000', '', null, null, '3', null, '0.000000', '0.000000', '317.200000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('187', '180', '567', '个', '111.000000', null, '11.000000', '11.000000', '1221.000000', '', null, null, '13', null, '0.000000', '0.000000', '1221.000000', '', '', '', '', '', '', '115', '0'); -INSERT INTO `jsh_depotitem` VALUES ('188', '181', '567', '个', '122.000000', null, '11.000000', '11.000000', '1342.000000', '', null, null, '13', null, '0.000000', '0.000000', '1342.000000', '', '', '', '', '', '', '115', '0'); -INSERT INTO `jsh_depotitem` VALUES ('189', '182', '500', '码', '12.000000', null, '1.200000', '1.200000', '14.400000', '', null, null, '1', null, '0.000000', '0.000000', '14.400000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('190', '183', '500', '码', '133.000000', null, '1.200000', '1.200000', '159.600000', '', null, null, '1', null, '0.000000', '0.000000', '159.600000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('191', '184', '517', '瓶', '10.000000', null, '3.000000', '3.510000', '30.000000', '', null, null, '3', null, '17.000000', '5.100000', '35.100000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('192', '185', '517', '瓶', '10.000000', null, '3.000000', '3.510000', '30.000000', '', null, null, '3', null, '17.000000', '5.100000', '35.100000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('193', '186', '487', '码', '10.000000', null, '1.000000', '1.170000', '10.000000', '', null, null, '3', null, '17.000000', '1.700000', '11.700000', '', '', '', '', '', '', null, '1'); -INSERT INTO `jsh_depotitem` VALUES ('194', '187', '517', '箱', '10.000000', '120.000000', '36.000000', '42.120000', '360.000000', '', null, null, '3', null, '17.000000', '61.200000', '421.200000', '', '', '', '', '', '', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('195', '188', '485', '码', '8.000000', '8.000000', '0.000000', '0.000000', '0.000000', '', null, null, '3', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '组合件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('196', '188', '487', '码', '8.000000', '8.000000', '0.000000', '0.000000', '0.000000', '', null, null, '3', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '普通子件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('197', '188', '498', '码', '8.000000', '8.000000', '0.000000', '0.000000', '0.000000', '', null, null, '3', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '普通子件', null, '0'); -INSERT INTO `jsh_depotitem` VALUES ('198', '189', '569', '只', '12.000000', '12.000000', '2.000000', '2.000000', '24.000000', '', null, null, '14', null, '0.000000', '0.000000', '24.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('199', '190', '569', '只', '12.000000', '12.000000', '2.000000', '2.000000', '24.000000', '', null, null, '14', null, '0.000000', '0.000000', '24.000000', '', '', '', '', '', '', '63', '1'); -INSERT INTO `jsh_depotitem` VALUES ('200', '191', '569', '只', '1.000000', '1.000000', '2.000000', '2.000000', '2.000000', '', null, null, '14', null, '0.000000', '0.000000', '2.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('201', '192', '569', '只', '22.000000', '22.000000', '2.000000', '2.000000', '44.000000', '', null, null, '14', null, '0.000000', '0.000000', '44.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('202', '193', '569', '只', '20.000000', '20.000000', '5.000000', '5.000000', '100.000000', '', null, null, '14', null, '0.000000', '0.000000', '100.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('203', '194', '569', '只', '100.000000', '100.000000', '5.000000', '5.000000', '500.000000', '', null, null, '15', null, '0.000000', '0.000000', '500.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('204', '195', '569', '只', '122.000000', '122.000000', '5.000000', '5.000000', '610.000000', '', null, null, '15', null, '0.000000', '0.000000', '610.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('205', '196', '569', '只', '122.000000', '122.000000', '5.000000', '5.000000', '610.000000', '', null, null, '15', null, '0.000000', '0.000000', '610.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('206', '197', '569', '只', '18.000000', '18.000000', '5.000000', '5.000000', '90.000000', '', null, null, '14', null, '0.000000', '0.000000', '90.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('207', '196', '569', '只', '2.000000', '2.000000', '5.000000', '5.000000', '10.000000', '', null, null, '15', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('208', '196', '569', '只', '2.000000', '2.000000', '5.000000', '5.000000', '10.000000', '', null, null, '15', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('209', '196', '568', '个', '2.000000', '2.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('210', '196', '568', '个', '2.000000', '2.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('211', '196', '568', '个', '3.000000', '3.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('212', '196', '568', '个', '4.000000', '4.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('213', '196', '568', '个', '5.000000', '5.000000', '2.000000', '2.000000', '10.000000', '', null, null, '14', null, '0.000000', '0.000000', '10.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('214', '196', '569', '只', '6.000000', '6.000000', '5.000000', '5.000000', '30.000000', '', null, null, '14', null, '0.000000', '0.000000', '30.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('215', '198', '578', '箱', '1.000000', '12.000000', '1.000000', '1.120000', '1.000000', '', null, null, '14', null, '12.000000', '0.120000', '1.120000', '', '', '', '', '', '', '63', '0'); - --- ---------------------------- --- Table structure for jsh_functions --- ---------------------------- -DROP TABLE IF EXISTS `jsh_functions`; -CREATE TABLE `jsh_functions` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Number` varchar(50) DEFAULT NULL COMMENT '编号', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `PNumber` varchar(50) DEFAULT NULL COMMENT '上级编号', - `URL` varchar(100) DEFAULT NULL COMMENT '链接', - `State` bit(1) DEFAULT NULL COMMENT '收缩', - `Sort` varchar(50) DEFAULT NULL COMMENT '排序', - `Enabled` bit(1) DEFAULT NULL COMMENT '启用', - `Type` varchar(50) DEFAULT NULL COMMENT '类型', - `PushBtn` varchar(50) DEFAULT NULL COMMENT '功能按钮', - `icon` varchar(50) DEFAULT NULL COMMENT '图标', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=252 DEFAULT CHARSET=utf8 COMMENT='功能模块表'; - --- ---------------------------- --- Records of jsh_functions --- ---------------------------- -INSERT INTO `jsh_functions` VALUES ('1', '0001', '系统管理', '0', '', '', '0910', '', '电脑版', '', 'icon-settings', '0'); -INSERT INTO `jsh_functions` VALUES ('13', '000102', '角色管理', '0001', '/pages/manage/role.html', '\0', '0130', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('14', '000103', '用户管理', '0001', '/pages/manage/user.html', '\0', '0140', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('15', '000104', '日志管理', '0001', '/pages/manage/log.html', '\0', '0160', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('16', '000105', '功能管理', '0001', '/pages/manage/functions.html', '\0', '0135', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('21', '0101', '商品管理', '0', '', '\0', '0620', '', '电脑版', null, 'icon-social-dropbox', '0'); -INSERT INTO `jsh_functions` VALUES ('22', '010101', '商品类别', '0101', '/pages/materials/materialcategory.html', '\0', '0230', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('23', '010102', '商品信息', '0101', '/pages/materials/material.html', '\0', '0240', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('24', '0102', '基本资料', '0', '', '\0', '0750', '', '电脑版', null, 'icon-grid', '0'); -INSERT INTO `jsh_functions` VALUES ('25', '01020101', '供应商信息', '0102', '/pages/manage/vendor.html', '\0', '0260', '', '电脑版', '1,2', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('26', '010202', '仓库信息', '0102', '/pages/manage/depot.html', '\0', '0270', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('31', '010206', '经手人管理', '0102', '/pages/materials/person.html', '\0', '0284', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('32', '0502', '采购管理', '0', '', '\0', '0330', '', '电脑版', '', 'icon-loop', '0'); -INSERT INTO `jsh_functions` VALUES ('33', '050201', '采购入库', '0502', '/pages/materials/purchase_in_list.html', '\0', '0340', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('38', '0603', '销售管理', '0', '', '\0', '0390', '', '电脑版', '', 'icon-briefcase', '0'); -INSERT INTO `jsh_functions` VALUES ('40', '080107', '调拨出库', '0801', '/pages/materials/allocation_out_list.html', '\0', '0807', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('41', '060303', '销售出库', '0603', '/pages/materials/sale_out_list.html', '\0', '0394', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('44', '0704', '财务管理', '0', '', '\0', '0450', '', '电脑版', '', 'icon-map', '0'); -INSERT INTO `jsh_functions` VALUES ('59', '030101', '库存状况', '0301', '/pages/reports/in_out_stock_report.html', '\0', '0600', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('194', '010204', '收支项目', '0102', '/pages/manage/inOutItem.html', '\0', '0282', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('195', '010205', '结算账户', '0102', '/pages/manage/account.html', '\0', '0283', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('197', '070402', '收入单', '0704', '/pages/financial/item_in.html', '\0', '0465', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('198', '0301', '报表查询', '0', '', '\0', '0570', '', '电脑版', null, 'icon-pie-chart', '0'); -INSERT INTO `jsh_functions` VALUES ('199', '050204', '采购退货', '0502', '/pages/materials/purchase_back_list.html', '\0', '0345', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('200', '060305', '销售退货', '0603', '/pages/materials/sale_back_list.html', '\0', '0396', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('201', '080103', '其它入库', '0801', '/pages/materials/other_in_list.html', '\0', '0803', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('202', '080105', '其它出库', '0801', '/pages/materials/other_out_list.html', '\0', '0805', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('203', '070403', '支出单', '0704', '/pages/financial/item_out.html', '\0', '0470', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('204', '070404', '收款单', '0704', '/pages/financial/money_in.html', '\0', '0475', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('205', '070405', '付款单', '0704', '/pages/financial/money_out.html', '\0', '0480', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('206', '070406', '转账单', '0704', '/pages/financial/giro.html', '\0', '0490', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('207', '030102', '结算账户', '0301', '/pages/reports/account_report.html', '\0', '0610', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('208', '030103', '进货统计', '0301', '/pages/reports/buy_in_report.html', '\0', '0620', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('209', '030104', '销售统计', '0301', '/pages/reports/sale_out_report.html', '\0', '0630', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('210', '040102', '零售出库', '0401', '/pages/materials/retail_out_list.html', '\0', '0405', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('211', '040104', '零售退货', '0401', '/pages/materials/retail_back_list.html', '\0', '0407', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('212', '070407', '收预付款', '0704', '/pages/financial/advance_in.html', '\0', '0495', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('217', '01020102', '客户信息', '0102', '/pages/manage/customer.html', '\0', '0262', '', '电脑版', '1,2', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('218', '01020103', '会员信息', '0102', '/pages/manage/member.html', '\0', '0263', '', '电脑版', '1,2', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('219', '000107', '资产管理', '0001', '/pages/asset/asset.html', '\0', '0170', '\0', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('220', '010103', '计量单位', '0101', '/pages/manage/unit.html', '\0', '0245', '', '电脑版', null, 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('225', '0401', '零售管理', '0', '', '\0', '0101', '', '电脑版', '', 'icon-present', '0'); -INSERT INTO `jsh_functions` VALUES ('226', '030106', '入库明细', '0301', '/pages/reports/in_detail.html', '\0', '0640', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('227', '030107', '出库明细', '0301', '/pages/reports/out_detail.html', '\0', '0645', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('228', '030108', '入库汇总', '0301', '/pages/reports/in_material_count.html', '\0', '0650', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('229', '030109', '出库汇总', '0301', '/pages/reports/out_material_count.html', '\0', '0655', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('232', '080109', '组装单', '0801', '/pages/materials/assemble_list.html', '\0', '0809', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('233', '080111', '拆卸单', '0801', '/pages/materials/disassemble_list.html', '\0', '0811', '', '电脑版', '3,4,5', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('234', '000105', '系统配置', '0001', '/pages/manage/systemConfig.html', '\0', '0165', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('235', '030110', '客户对账', '0301', '/pages/reports/customer_account.html', '\0', '0660', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('236', '000106', '商品属性', '0001', '/pages/materials/materialProperty.html', '\0', '0168', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('237', '030111', '供应商对账', '0301', '/pages/reports/vendor_account.html', '\0', '0665', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('239', '0801', '仓库管理', '0', '', '\0', '0420', '', '电脑版', '', 'icon-layers', '0'); -INSERT INTO `jsh_functions` VALUES ('240', '010104', '序列号', '0101', '/pages/manage/serialNumber.html', '\0', '0246', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('241', '050202', '采购订单', '0502', '/pages/materials/purchase_orders_list.html', '\0', '0335', '', '电脑版', '3', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('242', '060301', '销售订单', '0603', '/pages/materials/sale_orders_list.html', '\0', '0392', '', '电脑版', '3', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('243', '000108', '机构管理', '0001', '/pages/manage/organization.html', '', '0139', '', '电脑版', '', 'icon-notebook', '0'); -INSERT INTO `jsh_functions` VALUES ('244', '030112', '库存预警', '0301', '/pages/reports/stock_warning_report.html', '\0', '0670', '', '电脑版', '', 'icon-notebook', '0'); - --- ---------------------------- --- Table structure for jsh_inoutitem --- ---------------------------- -DROP TABLE IF EXISTS `jsh_inoutitem`; -CREATE TABLE `jsh_inoutitem` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `Type` varchar(20) DEFAULT NULL COMMENT '类型', - `Remark` varchar(100) DEFAULT NULL COMMENT '备注', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COMMENT='收支项目'; - --- ---------------------------- --- Records of jsh_inoutitem --- ---------------------------- -INSERT INTO `jsh_inoutitem` VALUES ('1', '办公耗材', '支出', '办公耗材', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('5', '房租收入', '收入', '房租收入', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('7', '利息收入', '收入', '利息收入', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('8', '水电费', '支出', '水电费水电费', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('9', '快递费', '支出', '快递费', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('10', '交通报销费', '支出', '交通报销费', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('11', '差旅费', '支出', '差旅费', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('12', '全车贴膜-普通', '收入', '', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('13', '全车贴膜-高档', '收入', '', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('14', '洗车', '收入', '', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('15', '保养汽车', '收入', '', null, '0'); -INSERT INTO `jsh_inoutitem` VALUES ('16', '收入项目1', '收入', '', '1', '0'); -INSERT INTO `jsh_inoutitem` VALUES ('17', '支出项目1', '支出', '', '1', '0'); -INSERT INTO `jsh_inoutitem` VALUES ('18', '收入1', '收入', '', '117', '0'); -INSERT INTO `jsh_inoutitem` VALUES ('19', '支出1', '支出', '', '117', '0'); -INSERT INTO `jsh_inoutitem` VALUES ('20', '支出2', '支出', '', '117', '0'); - --- ---------------------------- --- Table structure for jsh_log --- ---------------------------- -DROP TABLE IF EXISTS `jsh_log`; -CREATE TABLE `jsh_log` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `userID` bigint(20) NOT NULL COMMENT '操作用户ID', - `operation` varchar(500) DEFAULT NULL COMMENT '操作模块名称', - `clientIP` varchar(50) DEFAULT NULL COMMENT '客户端IP', - `createtime` datetime DEFAULT NULL COMMENT '创建时间', - `status` tinyint(4) DEFAULT NULL COMMENT '操作状态 0==成功,1==失败', - `contentdetails` varchar(1000) DEFAULT NULL COMMENT '操作详情', - `remark` varchar(500) DEFAULT NULL COMMENT '备注信息', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`id`), - KEY `FKF2696AA13E226853` (`userID`) -) ENGINE=InnoDB AUTO_INCREMENT=6348 DEFAULT CHARSET=utf8 COMMENT='操作日志'; - --- ---------------------------- --- Records of jsh_log --- ---------------------------- -INSERT INTO `jsh_log` VALUES ('1722', '63', '登录系统', '192.168.1.104', '2016-11-27 13:17:17', '0', '管理用户:jsh 登录系统', 'jsh 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1723', '63', '登录系统', '192.168.1.104', '2016-11-27 13:17:30', '0', '管理用户:jsh 登录系统', 'jsh 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1724', '63', '退出系统', '192.168.1.104', '2016-11-27 13:17:48', '0', '管理用户:jsh 退出系统', 'jsh 退出系统', null); -INSERT INTO `jsh_log` VALUES ('1725', '65', '登录系统', '192.168.1.104', '2016-11-27 13:17:52', '0', '管理用户:ls 登录系统', 'ls 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1726', '65', '退出系统', '192.168.1.104', '2016-11-27 13:18:18', '0', '管理用户:ls 退出系统', 'ls 退出系统', null); -INSERT INTO `jsh_log` VALUES ('1727', '63', '登录系统', '192.168.1.104', '2016-11-27 13:18:22', '0', '管理用户:jsh 登录系统', 'jsh 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1728', '63', '更新UserBusiness', '192.168.1.104', '2016-11-27 13:18:44', '0', '更新UserBusiness的ID为 6 成功!', '更新UserBusiness成功', null); -INSERT INTO `jsh_log` VALUES ('1729', '63', '退出系统', '192.168.1.104', '2016-11-27 13:18:48', '0', '管理用户:jsh 退出系统', 'jsh 退出系统', null); -INSERT INTO `jsh_log` VALUES ('1730', '65', '登录系统', '192.168.1.104', '2016-11-27 13:18:53', '0', '管理用户:ls 登录系统', 'ls 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1731', '63', '登录系统', '192.168.1.104', '2016-12-04 10:38:50', '0', '管理用户:jsh 登录系统', 'jsh 登录系统', null); -INSERT INTO `jsh_log` VALUES ('1732', '63', '增加物料', '192.168.1.104', '2016-12-04 10:40:52', '0', '增加物料名称为 11 成功!', '增加物料成功', null); -INSERT INTO `jsh_log` VALUES ('1733', '63', '更新物料', '192.168.1.104', '2016-12-04 10:59:57', '0', '更新物料ID为 499 成功!', '更新物料成功', null); -INSERT INTO `jsh_log` VALUES ('1734', '63', '更新物料', '192.168.1.104', '2016-12-04 11:00:13', '0', '更新物料ID为 499 成功!', '更新物料成功', null); -INSERT INTO `jsh_log` VALUES ('1735', '63', '删除物料', '192.168.1.104', '2016-12-04 11:00:38', '0', '删除物料ID为 499 成功!', '删除物料成功', null); -INSERT INTO `jsh_log` VALUES ('1736', '63', '增加物料', '192.168.1.104', '2016-12-04 11:02:35', '0', '增加物料名称为 11 成功!', '增加物料成功', null); -INSERT INTO `jsh_log` VALUES ('1737', '63', '批量删除物料', '192.168.1.104', '2016-12-04 11:02:41', '0', '批量删除物料ID为 500 成功!', '批量删除物料成功', null); -INSERT INTO `jsh_log` VALUES ('1738', '63', '更新功能', '192.168.1.104', '2016-12-04 11:04:43', '0', '更新功能ID为 26 成功!', '更新功能成功', null); -INSERT INTO `jsh_log` VALUES ('1739', '63', '增加供应商', '192.168.1.104', '2016-12-04 11:38:13', '0', '增加供应商名称为 aa 成功!', '增加供应商成功', null); -INSERT INTO `jsh_log` VALUES ('1740', '63', '增加供应商', '192.168.1.104', '2016-12-04 11:48:36', '0', '增加供应商名称为 aaaa 成功!', '增加供应商成功', null); -INSERT INTO `jsh_log` VALUES ('1741', '63', '删除供应商', '192.168.1.104', '2016-12-04 11:48:53', '0', '删除供应商ID为 3,名称为 aa成功!', '删除供应商成功', null); -INSERT INTO `jsh_log` VALUES ('1742', '63', '更新供应商', '192.168.1.104', '2016-12-04 11:48:59', '0', '更新供应商ID为 4 成功!', '更新供应商成功', null); -INSERT INTO `jsh_log` VALUES ('5852', '63', '单据', '127.0.0.1', '2019-03-09 15:49:57', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5853', '63', '商品', '127.0.0.1', '2019-03-09 15:50:31', '0', '新增商品', '新增商品', null); -INSERT INTO `jsh_log` VALUES ('5854', '63', '商品', '127.0.0.1', '2019-03-09 15:50:49', '0', '更新,id:563商品', '更新,id:563商品', null); -INSERT INTO `jsh_log` VALUES ('5855', '63', '单据', '127.0.0.1', '2019-03-09 15:52:06', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5856', '63', '单据', '127.0.0.1', '2019-03-09 15:52:21', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5857', '63', '单据', '127.0.0.1', '2019-03-09 15:53:07', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5858', '63', '单据', '127.0.0.1', '2019-03-09 15:57:26', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5859', '63', '商品', '127.0.0.1', '2019-03-09 16:00:18', '0', '更新,id:562商品', '更新,id:562商品', null); -INSERT INTO `jsh_log` VALUES ('5860', '63', '商品', '127.0.0.1', '2019-03-09 16:01:17', '0', '更新,id:562商品', '更新,id:562商品', null); -INSERT INTO `jsh_log` VALUES ('5861', '63', '单据', '127.0.0.1', '2019-03-09 16:02:30', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5862', '63', '功能', '127.0.0.1', '2019-03-09 16:10:29', '0', '更新,id:241功能', '更新,id:241功能', null); -INSERT INTO `jsh_log` VALUES ('5863', '63', '单据', '127.0.0.1', '2019-03-09 16:27:38', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5864', '63', '单据', '127.0.0.1', '2019-03-09 16:35:53', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5865', '63', '单据', '127.0.0.1', '2019-03-09 16:37:34', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5866', '63', '单据', '127.0.0.1', '2019-03-09 16:38:03', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5867', '63', '商品', '127.0.0.1', '2019-03-09 16:54:36', '0', '更新,id:563商品', '更新,id:563商品', null); -INSERT INTO `jsh_log` VALUES ('5868', '63', '单据', '127.0.0.1', '2019-03-09 22:35:21', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5869', '63', '单据', '127.0.0.1', '2019-03-09 23:13:40', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5870', '63', '单据', '127.0.0.1', '2019-03-09 23:19:15', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5871', '63', '单据', '127.0.0.1', '2019-03-09 23:27:52', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5872', '63', '单据', '127.0.0.1', '2019-03-09 23:28:43', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5873', '63', '单据', '127.0.0.1', '2019-03-09 23:32:57', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5874', '63', '单据', '127.0.0.1', '2019-03-09 23:35:07', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5875', '63', '单据', '127.0.0.1', '2019-03-09 23:38:10', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5876', '63', '单据', '127.0.0.1', '2019-03-09 23:39:46', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5877', '63', '单据', '127.0.0.1', '2019-03-10 15:48:42', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5878', '63', '单据', '127.0.0.1', '2019-03-10 15:54:30', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5879', '63', '单据', '127.0.0.1', '2019-03-10 15:56:23', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5880', '63', '单据', '127.0.0.1', '2019-03-10 16:05:10', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5881', '63', '单据', '127.0.0.1', '2019-03-10 16:46:13', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5882', '63', '单据', '127.0.0.1', '2019-03-10 16:47:04', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5883', '63', '单据', '127.0.0.1', '2019-03-10 17:00:25', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5884', '63', '单据', '127.0.0.1', '2019-03-10 17:40:13', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5885', '63', '单据', '127.0.0.1', '2019-03-10 17:42:11', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5886', '63', '单据', '127.0.0.1', '2019-03-10 17:44:49', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5887', '63', '单据', '127.0.0.1', '2019-03-10 17:47:23', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5888', '63', '单据', '127.0.0.1', '2019-03-10 17:48:28', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5889', '63', '单据', '127.0.0.1', '2019-03-10 17:49:51', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5890', '63', '单据', '127.0.0.1', '2019-03-10 17:50:19', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5891', '63', '单据', '127.0.0.1', '2019-03-10 18:13:00', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5892', '63', '单据', '127.0.0.1', '2019-03-10 18:16:25', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5893', '63', '单据', '127.0.0.1', '2019-03-10 18:24:54', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5894', '63', '单据', '127.0.0.1', '2019-03-10 18:30:56', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5895', '63', '单据', '127.0.0.1', '2019-03-10 18:43:23', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5896', '63', '单据', '127.0.0.1', '2019-03-10 19:19:45', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5897', '63', '单据', '127.0.0.1', '2019-03-10 19:21:56', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5898', '63', '单据', '127.0.0.1', '2019-03-10 20:00:11', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5899', '63', '单据', '127.0.0.1', '2019-03-10 20:02:01', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5900', '63', '单据', '127.0.0.1', '2019-03-10 20:02:33', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5901', '63', '仓库', '127.0.0.1', '2019-03-15 23:02:54', '0', '更新,id:2仓库', '更新,id:2仓库', null); -INSERT INTO `jsh_log` VALUES ('5902', '63', '仓库', '127.0.0.1', '2019-03-15 23:03:55', '0', '更新,id:2仓库', '更新,id:2仓库', null); -INSERT INTO `jsh_log` VALUES ('5903', '63', '仓库', '127.0.0.1', '2019-03-15 23:04:10', '0', '更新,id:1仓库', '更新,id:1仓库', null); -INSERT INTO `jsh_log` VALUES ('5904', '63', '仓库', '127.0.0.1', '2019-03-15 23:04:15', '0', '更新,id:3仓库', '更新,id:3仓库', null); -INSERT INTO `jsh_log` VALUES ('5905', '63', '单据', '127.0.0.1', '2019-03-15 23:05:40', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5906', '63', '单据', '127.0.0.1', '2019-03-15 23:06:22', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5907', '63', '单据', '127.0.0.1', '2019-03-15 23:06:52', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5908', '63', '单据', '127.0.0.1', '2019-03-15 23:08:18', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5909', '63', '单据', '127.0.0.1', '2019-03-15 23:08:33', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5910', '63', '计量单位', '127.0.0.1', '2019-03-15 23:12:39', '0', '新增计量单位', '新增计量单位', null); -INSERT INTO `jsh_log` VALUES ('5911', '63', '单据', '127.0.0.1', '2019-03-15 23:15:30', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5912', '63', '角色', '0:0:0:0:0:0:0:1', '2019-03-17 21:37:05', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('5913', '63', '角色', '0:0:0:0:0:0:0:1', '2019-03-17 23:26:30', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('5914', '63', '商家', '127.0.0.1', '2019-03-18 22:38:21', '0', '新增商家', '新增商家', '1'); -INSERT INTO `jsh_log` VALUES ('5915', '63', '商家', '127.0.0.1', '2019-03-18 22:38:33', '0', '新增商家', '新增商家', '1'); -INSERT INTO `jsh_log` VALUES ('5916', '63', '仓库', '127.0.0.1', '2019-03-18 22:38:39', '0', '新增仓库', '新增仓库', '1'); -INSERT INTO `jsh_log` VALUES ('5917', '63', '账户', '127.0.0.1', '2019-03-18 22:38:58', '0', '新增账户', '新增账户', '1'); -INSERT INTO `jsh_log` VALUES ('5918', '63', '经手人', '127.0.0.1', '2019-03-18 22:45:08', '0', '新增经手人', '新增经手人', '1'); -INSERT INTO `jsh_log` VALUES ('5919', '63', '商品', '127.0.0.1', '2019-03-18 23:07:31', '0', '新增商品', '新增商品', '1'); -INSERT INTO `jsh_log` VALUES ('5920', '63', '商家', '127.0.0.1', '2019-03-18 23:38:47', '0', '新增商家', '新增商家', '1'); -INSERT INTO `jsh_log` VALUES ('5921', '63', '收支项目', '127.0.0.1', '2019-03-18 23:39:09', '0', '新增收支项目', '新增收支项目', '1'); -INSERT INTO `jsh_log` VALUES ('5922', '63', '计量单位', '127.0.0.1', '2019-03-18 23:49:08', '0', '新增计量单位', '新增计量单位', '1'); -INSERT INTO `jsh_log` VALUES ('5923', '63', '关联关系', '127.0.0.1', '2019-03-18 23:49:31', '0', '新增关联关系', '新增关联关系', '1'); -INSERT INTO `jsh_log` VALUES ('5924', '63', '商家', '127.0.0.1', '2019-03-19 21:57:45', '0', '新增商家', '新增商家', '1'); -INSERT INTO `jsh_log` VALUES ('5925', '63', '关联关系', '127.0.0.1', '2019-03-19 22:00:49', '0', '更新,id:3关联关系', '更新,id:3关联关系', '1'); -INSERT INTO `jsh_log` VALUES ('5926', '63', '关联关系', '127.0.0.1', '2019-03-19 22:01:14', '0', '更新,id:7关联关系', '更新,id:7关联关系', '1'); -INSERT INTO `jsh_log` VALUES ('5927', '63', '关联关系', '127.0.0.1', '2019-03-19 22:01:21', '0', '更新,id:7关联关系', '更新,id:7关联关系', '1'); -INSERT INTO `jsh_log` VALUES ('5928', '63', '关联关系', '127.0.0.1', '2019-03-19 22:05:11', '0', '新增关联关系', '新增关联关系', '1'); -INSERT INTO `jsh_log` VALUES ('5933', '96', '商品', '127.0.0.1', '2019-03-19 22:08:46', '0', '更新,id:564商品', '更新,id:564商品', '1'); -INSERT INTO `jsh_log` VALUES ('5934', '96', '单据', '127.0.0.1', '2019-03-19 22:10:17', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5935', '96', '单据', '127.0.0.1', '2019-03-19 22:10:35', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5936', '96', '单据', '127.0.0.1', '2019-03-19 22:11:39', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5937', '96', '单据', '127.0.0.1', '2019-03-19 22:12:04', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5938', '96', '单据', '127.0.0.1', '2019-03-19 22:12:18', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5939', '96', '单据', '127.0.0.1', '2019-03-19 22:12:29', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5940', '96', '单据', '127.0.0.1', '2019-03-19 22:12:43', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5941', '96', '单据', '127.0.0.1', '2019-03-19 22:12:53', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5942', '96', '单据', '127.0.0.1', '2019-03-19 22:13:20', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5943', '96', '单据', '127.0.0.1', '2019-03-19 22:13:34', '0', '新增单据', '新增单据', '1'); -INSERT INTO `jsh_log` VALUES ('5944', '96', '收支项目', '127.0.0.1', '2019-03-19 22:14:18', '0', '新增收支项目', '新增收支项目', '1'); -INSERT INTO `jsh_log` VALUES ('5945', '96', '经手人', '127.0.0.1', '2019-03-19 22:14:33', '0', '新增经手人', '新增经手人', '1'); -INSERT INTO `jsh_log` VALUES ('5946', '96', '财务', '127.0.0.1', '2019-03-19 22:14:50', '0', '新增财务', '新增财务', '1'); -INSERT INTO `jsh_log` VALUES ('5947', '96', '财务', '127.0.0.1', '2019-03-19 22:15:09', '0', '新增财务', '新增财务', '1'); -INSERT INTO `jsh_log` VALUES ('5948', '96', '财务', '127.0.0.1', '2019-03-19 22:15:22', '0', '新增财务', '新增财务', '1'); -INSERT INTO `jsh_log` VALUES ('5949', '96', '财务', '127.0.0.1', '2019-03-19 22:15:36', '0', '新增财务', '新增财务', '1'); -INSERT INTO `jsh_log` VALUES ('5950', '96', '财务', '127.0.0.1', '2019-03-19 22:16:04', '0', '新增财务', '新增财务', '1'); -INSERT INTO `jsh_log` VALUES ('5951', '96', '商品', '127.0.0.1', '2019-03-19 22:35:56', '0', '新增商品', '新增商品', '1'); -INSERT INTO `jsh_log` VALUES ('5952', '96', '商品', '127.0.0.1', '2019-03-19 22:36:03', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5953', '96', '商品', '127.0.0.1', '2019-03-19 22:36:11', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5954', '96', '商品', '127.0.0.1', '2019-03-19 22:36:24', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5955', '96', '商品', '127.0.0.1', '2019-03-19 22:37:17', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5956', '96', '商品', '127.0.0.1', '2019-03-19 22:44:12', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5957', '96', '商品', '127.0.0.1', '2019-03-19 22:44:18', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5958', '96', '商品', '127.0.0.1', '2019-03-19 22:44:23', '0', '更新,id:565商品', '更新,id:565商品', '1'); -INSERT INTO `jsh_log` VALUES ('5959', '63', '单据', '127.0.0.1', '2019-03-19 22:48:07', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5960', '63', '单据', '127.0.0.1', '2019-03-19 22:48:22', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5961', '63', '单据', '127.0.0.1', '2019-03-19 22:48:40', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5962', '63', '商家', '127.0.0.1', '2019-03-21 23:50:49', '0', '新增商家', '新增商家', null); -INSERT INTO `jsh_log` VALUES ('5963', '63', '商家', '127.0.0.1', '2019-03-21 23:51:05', '0', '批量删除,id集:51商家', '批量删除,id集:51商家', null); -INSERT INTO `jsh_log` VALUES ('5964', '63', null, '127.0.0.1', '2019-03-21 23:57:46', '0', '删除,id:101null', '删除,id:101null', null); -INSERT INTO `jsh_log` VALUES ('5965', '63', '单据', '127.0.0.1', '2019-03-21 23:58:56', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5966', '63', '单据', '127.0.0.1', '2019-03-21 23:59:18', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('5967', '63', '财务', '127.0.0.1', '2019-03-21 23:59:38', '0', '新增财务', '新增财务', null); -INSERT INTO `jsh_log` VALUES ('5968', '63', '角色', '127.0.0.1', '2019-03-24 23:51:47', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('5969', '63', '角色', '127.0.0.1', '2019-03-29 00:07:16', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('5970', '63', '关联关系', '127.0.0.1', '2019-03-29 00:07:21', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('5971', '63', '关联关系', '127.0.0.1', '2019-03-29 00:07:52', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('5972', '63', '关联关系', '127.0.0.1', '2019-03-29 00:08:07', '0', '修改,id:32关联关系', '修改,id:32关联关系', null); -INSERT INTO `jsh_log` VALUES ('5973', '63', '角色', '127.0.0.1', '2019-03-29 00:08:21', '0', '批量删除,id集:9角色', '批量删除,id集:9角色', null); -INSERT INTO `jsh_log` VALUES ('5974', '63', '角色', '127.0.0.1', '2019-03-29 00:08:24', '0', '删除,id:8角色', '删除,id:8角色', null); -INSERT INTO `jsh_log` VALUES ('5975', '63', '角色', '127.0.0.1', '2019-03-29 00:08:26', '0', '删除,id:7角色', '删除,id:7角色', null); -INSERT INTO `jsh_log` VALUES ('5976', '63', '角色', '127.0.0.1', '2019-03-29 00:08:27', '0', '删除,id:6角色', '删除,id:6角色', null); -INSERT INTO `jsh_log` VALUES ('5977', '63', '关联关系', '127.0.0.1', '2019-03-29 00:08:35', '0', '修改,id:32关联关系', '修改,id:32关联关系', null); -INSERT INTO `jsh_log` VALUES ('5978', '113', '角色', '127.0.0.1', '2019-03-29 00:10:02', '0', '新增角色', '新增角色', '10'); -INSERT INTO `jsh_log` VALUES ('5979', '113', '角色', '127.0.0.1', '2019-03-29 00:11:34', '0', '新增角色', '新增角色', '113'); -INSERT INTO `jsh_log` VALUES ('5980', '113', '角色', '127.0.0.1', '2019-03-29 00:11:39', '0', '删除,id:12角色', '删除,id:12角色', '113'); -INSERT INTO `jsh_log` VALUES ('5981', '115', '用户', '127.0.0.1', '2019-03-31 21:18:29', '0', '新增用户', '新增用户', '115'); -INSERT INTO `jsh_log` VALUES ('5983', '63', '用户', '127.0.0.1', '2019-03-31 21:49:38', '0', '新增用户', '新增用户', null); -INSERT INTO `jsh_log` VALUES ('5984', '63', '用户', '127.0.0.1', '2019-03-31 21:49:49', '0', '删除,id:118用户', '删除,id:118用户', null); -INSERT INTO `jsh_log` VALUES ('6026', '63', '用户', '127.0.0.1', '2019-03-31 22:18:21', '0', '修改,id:63用户', '修改,id:63用户', null); -INSERT INTO `jsh_log` VALUES ('6046', '120', '关联关系', '127.0.0.1', '2019-03-31 23:17:23', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6047', '120', '关联关系', '127.0.0.1', '2019-03-31 23:18:10', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6048', '63', '角色', '127.0.0.1', '2019-04-01 22:36:16', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('6049', '63', '关联关系', '127.0.0.1', '2019-04-01 22:36:27', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6050', '63', '关联关系', '127.0.0.1', '2019-04-01 22:36:50', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6051', '63', '关联关系', '127.0.0.1', '2019-04-01 22:37:14', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6052', '63', '关联关系', '127.0.0.1', '2019-04-01 22:39:07', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6053', '63', '关联关系', '127.0.0.1', '2019-04-01 22:39:14', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6054', '63', '关联关系', '127.0.0.1', '2019-04-01 22:39:52', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6055', '63', '关联关系', '127.0.0.1', '2019-04-01 22:41:39', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6056', '63', '关联关系', '127.0.0.1', '2019-04-01 22:49:09', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6057', '63', '关联关系', '127.0.0.1', '2019-04-01 22:49:41', '0', '修改,id:17关联关系', '修改,id:17关联关系', null); -INSERT INTO `jsh_log` VALUES ('6058', '63', '关联关系', '127.0.0.1', '2019-04-01 23:16:20', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6059', '63', '关联关系', '127.0.0.1', '2019-04-01 23:20:23', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6060', '63', '关联关系', '127.0.0.1', '2019-04-01 23:22:00', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6061', '63', '关联关系', '127.0.0.1', '2019-04-01 23:23:26', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6062', '63', '关联关系', '127.0.0.1', '2019-04-01 23:25:33', '0', '修改,id:45关联关系', '修改,id:45关联关系', null); -INSERT INTO `jsh_log` VALUES ('6063', '63', '关联关系', '127.0.0.1', '2019-04-01 23:34:27', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6064', '63', '关联关系', '127.0.0.1', '2019-04-01 23:39:52', '0', '修改,id:46关联关系', '修改,id:46关联关系', null); -INSERT INTO `jsh_log` VALUES ('6065', '63', '关联关系', '127.0.0.1', '2019-04-01 23:43:21', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6066', '63', '关联关系', '127.0.0.1', '2019-04-01 23:43:43', '0', '修改,id:48关联关系', '修改,id:48关联关系', null); -INSERT INTO `jsh_log` VALUES ('6067', '63', '关联关系', '127.0.0.1', '2019-04-01 23:43:58', '0', '修改,id:48关联关系', '修改,id:48关联关系', null); -INSERT INTO `jsh_log` VALUES ('6069', '63', '关联关系', '127.0.0.1', '2019-04-01 23:46:01', '0', '修改,id:48关联关系', '修改,id:48关联关系', null); -INSERT INTO `jsh_log` VALUES ('6070', '63', '关联关系', '127.0.0.1', '2019-04-01 23:46:26', '0', '修改,id:21关联关系', '修改,id:21关联关系', null); -INSERT INTO `jsh_log` VALUES ('6071', '63', '关联关系', '127.0.0.1', '2019-04-01 23:48:17', '0', '修改,id:48关联关系', '修改,id:48关联关系', null); -INSERT INTO `jsh_log` VALUES ('6072', '63', '关联关系', '127.0.0.1', '2019-04-01 23:49:09', '0', '修改,id:48关联关系', '修改,id:48关联关系', null); -INSERT INTO `jsh_log` VALUES ('6073', '115', '用户', '127.0.0.1', '2019-04-02 22:21:51', '0', '删除,id:116用户', '删除,id:116用户', '115'); -INSERT INTO `jsh_log` VALUES ('6074', '115', '用户', '127.0.0.1', '2019-04-02 22:21:58', '0', '新增用户', '新增用户', '115'); -INSERT INTO `jsh_log` VALUES ('6075', '120', '关联关系', '127.0.0.1', '2019-04-02 22:23:53', '0', '修改,id:16关联关系', '修改,id:16关联关系', null); -INSERT INTO `jsh_log` VALUES ('6076', '120', '关联关系', '127.0.0.1', '2019-04-02 22:24:16', '0', '新增关联关系', '新增关联关系', null); -INSERT INTO `jsh_log` VALUES ('6077', '115', '商品类型', '127.0.0.1', '2019-04-02 22:28:07', '0', '新增商品类型', '新增商品类型', '115'); -INSERT INTO `jsh_log` VALUES ('6078', '115', '商品', '127.0.0.1', '2019-04-02 22:28:28', '0', '新增商品', '新增商品', '115'); -INSERT INTO `jsh_log` VALUES ('6079', '115', '商家', '127.0.0.1', '2019-04-02 22:28:37', '0', '新增商家', '新增商家', '115'); -INSERT INTO `jsh_log` VALUES ('6080', '115', '仓库', '127.0.0.1', '2019-04-02 22:28:45', '0', '新增仓库', '新增仓库', '115'); -INSERT INTO `jsh_log` VALUES ('6081', '115', '账户', '127.0.0.1', '2019-04-02 22:28:56', '0', '新增账户', '新增账户', '115'); -INSERT INTO `jsh_log` VALUES ('6082', '115', '账户', '127.0.0.1', '2019-04-02 22:28:57', '0', '修改,id:16账户', '修改,id:16账户', '115'); -INSERT INTO `jsh_log` VALUES ('6083', '115', '经手人', '127.0.0.1', '2019-04-02 22:29:11', '0', '新增经手人', '新增经手人', '115'); -INSERT INTO `jsh_log` VALUES ('6084', '115', '关联关系', '127.0.0.1', '2019-04-02 22:29:28', '0', '新增关联关系', '新增关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6085', '115', '关联关系', '127.0.0.1', '2019-04-02 22:29:46', '0', '新增关联关系', '新增关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6086', '115', '单据', '127.0.0.1', '2019-04-02 22:30:01', '0', '新增单据', '新增单据', '115'); -INSERT INTO `jsh_log` VALUES ('6087', '115', '单据明细', '127.0.0.1', '2019-04-02 22:30:01', '0', '新增单据明细', '新增单据明细', '115'); -INSERT INTO `jsh_log` VALUES ('6088', '115', '单据明细', '127.0.0.1', '2019-04-02 22:30:01', '0', '删除,id:单据明细', '删除,id:单据明细', '115'); -INSERT INTO `jsh_log` VALUES ('6089', '115', '单据', '127.0.0.1', '2019-04-02 22:30:20', '0', '新增单据', '新增单据', '115'); -INSERT INTO `jsh_log` VALUES ('6090', '115', '单据明细', '127.0.0.1', '2019-04-02 22:30:20', '0', '新增单据明细', '新增单据明细', '115'); -INSERT INTO `jsh_log` VALUES ('6091', '115', '单据明细', '127.0.0.1', '2019-04-02 22:30:20', '0', '删除,id:单据明细', '删除,id:单据明细', '115'); -INSERT INTO `jsh_log` VALUES ('6092', '63', '单据', '127.0.0.1', '2019-04-02 22:32:00', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6093', '63', '单据明细', '127.0.0.1', '2019-04-02 22:32:00', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6094', '63', '单据明细', '127.0.0.1', '2019-04-02 22:32:00', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6095', '63', '单据', '127.0.0.1', '2019-04-02 22:39:44', '0', '删除,id:178单据', '删除,id:178单据', null); -INSERT INTO `jsh_log` VALUES ('6096', '63', '单据', '127.0.0.1', '2019-04-02 22:39:45', '0', '删除,id:178单据', '删除,id:178单据', null); -INSERT INTO `jsh_log` VALUES ('6097', '63', '角色', '127.0.0.1', '2019-04-02 22:39:55', '0', '新增角色', '新增角色', null); -INSERT INTO `jsh_log` VALUES ('6098', '63', '序列号', '127.0.0.1', '2019-04-02 22:39:57', '0', '删除,id:14序列号', '删除,id:14序列号', null); -INSERT INTO `jsh_log` VALUES ('6099', '63', '单据', '127.0.0.1', '2019-04-04 23:06:58', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6100', '63', '单据明细', '127.0.0.1', '2019-04-04 23:06:58', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6101', '63', '单据明细', '127.0.0.1', '2019-04-04 23:06:58', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6102', '115', '关联关系', '127.0.0.1', '2019-04-05 17:13:49', '0', '修改,id:54关联关系', '修改,id:54关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6103', '115', '角色', '127.0.0.1', '2019-04-05 17:14:12', '0', '新增角色', '新增角色', '115'); -INSERT INTO `jsh_log` VALUES ('6104', '115', '商家', '127.0.0.1', '2019-04-05 17:14:26', '0', '新增商家', '新增商家', '115'); -INSERT INTO `jsh_log` VALUES ('6105', '115', '关联关系', '127.0.0.1', '2019-04-05 17:14:39', '0', '新增关联关系', '新增关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6106', '115', '关联关系', '127.0.0.1', '2019-04-05 17:14:52', '0', '修改,id:54关联关系', '修改,id:54关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6107', '115', '关联关系', '127.0.0.1', '2019-04-05 17:15:20', '0', '新增关联关系', '新增关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6108', '115', '关联关系', '127.0.0.1', '2019-04-05 17:15:32', '0', '新增关联关系', '新增关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6109', '115', '用户', '127.0.0.1', '2019-04-05 17:19:53', '0', '修改,id:115用户', '修改,id:115用户', '115'); -INSERT INTO `jsh_log` VALUES ('6110', '115', '用户', '127.0.0.1', '2019-04-05 17:20:05', '0', '修改,id:115用户', '修改,id:115用户', '115'); -INSERT INTO `jsh_log` VALUES ('6111', '115', '关联关系', '127.0.0.1', '2019-04-05 17:20:56', '0', '修改,id:56关联关系', '修改,id:56关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6112', '115', '关联关系', '127.0.0.1', '2019-04-05 17:21:31', '0', '修改,id:56关联关系', '修改,id:56关联关系', '115'); -INSERT INTO `jsh_log` VALUES ('6113', '63', '单据', '127.0.0.1', '2019-04-07 20:23:23', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6114', '63', '单据明细', '127.0.0.1', '2019-04-07 20:23:23', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6115', '63', '单据明细', '127.0.0.1', '2019-04-07 20:23:23', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6116', '63', '单据', '127.0.0.1', '2019-04-07 20:25:30', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6117', '63', '单据明细', '127.0.0.1', '2019-04-07 20:25:30', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6118', '63', '单据明细', '127.0.0.1', '2019-04-07 20:25:30', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6119', '63', '单据', '127.0.0.1', '2019-04-07 20:35:00', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6120', '63', '单据明细', '127.0.0.1', '2019-04-07 20:35:01', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6121', '63', '单据明细', '127.0.0.1', '2019-04-07 20:35:01', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6122', '63', '单据', '127.0.0.1', '2019-04-07 20:44:09', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6123', '63', '单据明细', '127.0.0.1', '2019-04-07 20:44:09', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6124', '63', '单据明细', '127.0.0.1', '2019-04-07 20:44:09', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6125', '63', '单据', '127.0.0.1', '2019-04-07 20:44:25', '0', '删除,id:184单据', '删除,id:184单据', null); -INSERT INTO `jsh_log` VALUES ('6126', '63', '单据', '127.0.0.1', '2019-04-07 20:44:25', '0', '删除,id:184单据', '删除,id:184单据', null); -INSERT INTO `jsh_log` VALUES ('6127', '63', '单据', '127.0.0.1', '2019-04-07 20:44:29', '0', '删除,id:185单据', '删除,id:185单据', null); -INSERT INTO `jsh_log` VALUES ('6128', '63', '单据', '127.0.0.1', '2019-04-07 20:44:29', '0', '删除,id:185单据', '删除,id:185单据', null); -INSERT INTO `jsh_log` VALUES ('6129', '63', '单据', '127.0.0.1', '2019-04-07 20:44:32', '0', '删除,id:186单据', '删除,id:186单据', null); -INSERT INTO `jsh_log` VALUES ('6130', '63', '单据', '127.0.0.1', '2019-04-07 20:44:32', '0', '删除,id:186单据', '删除,id:186单据', null); -INSERT INTO `jsh_log` VALUES ('6131', '63', '单据', '127.0.0.1', '2019-04-07 20:44:58', '0', '删除,id:183,182单据', '删除,id:183,182单据', null); -INSERT INTO `jsh_log` VALUES ('6132', '63', '单据', '127.0.0.1', '2019-04-07 20:44:58', '0', '删除,id:183单据', '删除,id:183单据', null); -INSERT INTO `jsh_log` VALUES ('6133', '63', '单据', '127.0.0.1', '2019-04-07 20:44:58', '0', '删除,id:183单据', '删除,id:183单据', null); -INSERT INTO `jsh_log` VALUES ('6134', '63', '单据', '127.0.0.1', '2019-04-07 20:44:58', '0', '删除,id:182单据', '删除,id:182单据', null); -INSERT INTO `jsh_log` VALUES ('6135', '63', '单据', '127.0.0.1', '2019-04-07 20:44:58', '0', '删除,id:182单据', '删除,id:182单据', null); -INSERT INTO `jsh_log` VALUES ('6136', '63', '单据', '127.0.0.1', '2019-04-07 20:45:09', '0', '删除,id:179单据', '删除,id:179单据', null); -INSERT INTO `jsh_log` VALUES ('6137', '63', '单据', '127.0.0.1', '2019-04-07 20:45:09', '0', '删除,id:179单据', '删除,id:179单据', null); -INSERT INTO `jsh_log` VALUES ('6138', '63', '单据', '127.0.0.1', '2019-04-07 20:51:51', '0', '新增单据', '新增单据', null); -INSERT INTO `jsh_log` VALUES ('6139', '63', '单据明细', '127.0.0.1', '2019-04-07 20:51:51', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6140', '63', '单据明细', '127.0.0.1', '2019-04-07 20:51:51', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6141', '63', '单据', '127.0.0.1', '2019-04-07 22:36:48', '0', '修改,id:188单据', '修改,id:188单据', null); -INSERT INTO `jsh_log` VALUES ('6142', '63', '单据明细', '127.0.0.1', '2019-04-07 22:36:48', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6143', '63', '单据明细', '127.0.0.1', '2019-04-07 22:36:48', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6144', '63', '单据', '127.0.0.1', '2019-04-07 22:38:23', '0', '修改,id:188单据', '修改,id:188单据', null); -INSERT INTO `jsh_log` VALUES ('6145', '63', '单据明细', '127.0.0.1', '2019-04-07 22:38:24', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6146', '63', '单据明细', '127.0.0.1', '2019-04-07 22:38:24', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6147', '63', '单据', '127.0.0.1', '2019-04-07 22:39:59', '0', '修改,id:188单据', '修改,id:188单据', null); -INSERT INTO `jsh_log` VALUES ('6148', '63', '单据明细', '127.0.0.1', '2019-04-07 22:39:59', '0', '新增单据明细', '新增单据明细', null); -INSERT INTO `jsh_log` VALUES ('6149', '63', '单据明细', '127.0.0.1', '2019-04-07 22:39:59', '0', '删除,id:单据明细', '删除,id:单据明细', null); -INSERT INTO `jsh_log` VALUES ('6150', '63', '商品类型', '127.0.0.1', '2019-04-10 22:18:12', '0', '新增商品类型', '新增商品类型', '63'); -INSERT INTO `jsh_log` VALUES ('6151', '63', '商品', '127.0.0.1', '2019-04-10 22:18:23', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6152', '63', '商家', '127.0.0.1', '2019-04-10 22:18:33', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6153', '63', '商家', '127.0.0.1', '2019-04-10 22:18:41', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6154', '63', '账户', '127.0.0.1', '2019-04-10 22:18:54', '0', '新增账户', '新增账户', '63'); -INSERT INTO `jsh_log` VALUES ('6155', '63', '账户', '127.0.0.1', '2019-04-10 22:19:19', '0', '修改,id:17账户', '修改,id:17账户', '63'); -INSERT INTO `jsh_log` VALUES ('6156', '63', '仓库', '127.0.0.1', '2019-04-10 22:20:07', '0', '新增仓库', '新增仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6157', '63', '关联关系', '127.0.0.1', '2019-04-10 22:20:19', '0', '修改,id:18关联关系', '修改,id:18关联关系', '63'); -INSERT INTO `jsh_log` VALUES ('6170', '63', '商品', '127.0.0.1', '2019-04-10 22:24:35', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6179', '63', '商品', '127.0.0.1', '2019-04-10 22:25:23', '0', '修改,id:568商品', '修改,id:568商品', '63'); -INSERT INTO `jsh_log` VALUES ('6180', '63', '商品', '127.0.0.1', '2019-04-10 22:25:32', '0', '修改,id:569商品', '修改,id:569商品', '63'); -INSERT INTO `jsh_log` VALUES ('6181', '63', '单据', '127.0.0.1', '2019-04-10 22:25:49', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6182', '63', '单据明细', '127.0.0.1', '2019-04-10 22:25:49', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6183', '63', '单据明细', '127.0.0.1', '2019-04-10 22:25:49', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6184', '63', '单据', '127.0.0.1', '2019-04-10 22:26:00', '0', '修改,id:189单据', '修改,id:189单据', '63'); -INSERT INTO `jsh_log` VALUES ('6185', '63', '单据明细', '127.0.0.1', '2019-04-10 22:26:00', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6186', '63', '单据明细', '127.0.0.1', '2019-04-10 22:26:00', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6187', '63', '用户', '127.0.0.1', '2019-04-13 19:38:11', '0', '新增用户', '新增用户', '63'); -INSERT INTO `jsh_log` VALUES ('6188', '63', '用户', '127.0.0.1', '2019-04-13 19:38:22', '0', '删除,id:122用户', '删除,id:122用户', '63'); -INSERT INTO `jsh_log` VALUES ('6189', '63', '单据', '127.0.0.1', '2019-04-13 19:57:43', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6190', '63', '单据明细', '127.0.0.1', '2019-04-13 19:57:43', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6191', '63', '单据明细', '127.0.0.1', '2019-04-13 19:57:43', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6192', '63', '单据', '127.0.0.1', '2019-04-13 19:57:58', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6193', '63', '单据明细', '127.0.0.1', '2019-04-13 19:57:58', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6194', '63', '单据明细', '127.0.0.1', '2019-04-13 19:57:58', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6195', '63', '单据', '127.0.0.1', '2019-04-13 19:58:02', '0', '删除,id:190单据', '删除,id:190单据', '63'); -INSERT INTO `jsh_log` VALUES ('6196', '63', '单据', '127.0.0.1', '2019-04-13 19:58:02', '0', '删除,id:190单据', '删除,id:190单据', '63'); -INSERT INTO `jsh_log` VALUES ('6197', '63', '商品', '127.0.0.1', '2019-04-13 19:58:23', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6198', '63', '单据', '127.0.0.1', '2019-04-20 00:36:23', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6199', '63', '单据明细', '127.0.0.1', '2019-04-20 00:36:24', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6200', '63', '单据明细', '127.0.0.1', '2019-04-20 00:36:24', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6201', '63', '商家', '127.0.0.1', '2019-04-29 23:39:40', '0', '修改,id:58商家', '修改,id:58商家', '63'); -INSERT INTO `jsh_log` VALUES ('6202', '63', '关联关系', '127.0.0.1', '2019-04-29 23:40:06', '0', '修改,id:27关联关系', '修改,id:27关联关系', '63'); -INSERT INTO `jsh_log` VALUES ('6203', '63', '商品', '127.0.0.1', '2019-04-29 23:40:44', '0', '修改,id:569商品', '修改,id:569商品', '63'); -INSERT INTO `jsh_log` VALUES ('6204', '63', '单据', '127.0.0.1', '2019-04-29 23:41:02', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6205', '63', '单据明细', '127.0.0.1', '2019-04-29 23:41:02', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6206', '63', '单据明细', '127.0.0.1', '2019-04-29 23:41:02', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6207', '63', '商家', '127.0.0.1', '2019-04-29 23:41:29', '0', '修改,id:58商家', '修改,id:58商家', '63'); -INSERT INTO `jsh_log` VALUES ('6208', '63', '商家', '127.0.0.1', '2019-04-29 23:41:35', '0', '修改,id:58商家', '修改,id:58商家', '63'); -INSERT INTO `jsh_log` VALUES ('6209', '63', '商家', '127.0.0.1', '2019-04-29 23:41:39', '0', '修改,id:58商家', '修改,id:58商家', '63'); -INSERT INTO `jsh_log` VALUES ('6210', '63', '仓库', '127.0.0.1', '2019-04-30 22:31:32', '0', '修改,id:14仓库', '修改,id:14仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6211', '63', '关联关系', '127.0.0.1', '2019-04-30 22:32:09', '0', '修改,id:18关联关系', '修改,id:18关联关系', '63'); -INSERT INTO `jsh_log` VALUES ('6212', '63', '仓库', '127.0.0.1', '2019-04-30 22:32:36', '0', '新增仓库', '新增仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6213', '63', '关联关系', '127.0.0.1', '2019-04-30 22:32:49', '0', '修改,id:18关联关系', '修改,id:18关联关系', '63'); -INSERT INTO `jsh_log` VALUES ('6214', '63', '仓库', '127.0.0.1', '2019-04-30 22:33:04', '0', '修改,id:15仓库', '修改,id:15仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6215', '63', '仓库', '127.0.0.1', '2019-04-30 22:33:04', '0', '修改,id:14仓库', '修改,id:14仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6216', '63', '单据', '127.0.0.1', '2019-04-30 22:33:23', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6217', '63', '单据明细', '127.0.0.1', '2019-04-30 22:33:24', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6218', '63', '单据明细', '127.0.0.1', '2019-04-30 22:33:24', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6219', '63', '账户', '127.0.0.1', '2019-04-30 22:34:23', '0', '新增账户', '新增账户', '63'); -INSERT INTO `jsh_log` VALUES ('6220', '63', '单据', '127.0.0.1', '2019-04-30 22:34:45', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6221', '63', '单据明细', '127.0.0.1', '2019-04-30 22:34:45', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6222', '63', '单据明细', '127.0.0.1', '2019-04-30 22:34:45', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6223', '63', '单据', '127.0.0.1', '2019-04-30 22:35:53', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6224', '63', '单据明细', '127.0.0.1', '2019-04-30 22:35:53', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6225', '63', '单据明细', '127.0.0.1', '2019-04-30 22:35:53', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6226', '120', '功能', '127.0.0.1', '2019-04-30 22:43:37', '0', '新增功能', '新增功能', null); -INSERT INTO `jsh_log` VALUES ('6227', '120', '关联关系', '127.0.0.1', '2019-04-30 22:43:52', '0', '修改,id:5关联关系', '修改,id:5关联关系', null); -INSERT INTO `jsh_log` VALUES ('6228', '120', '功能', '127.0.0.1', '2019-04-30 22:44:46', '0', '修改,id:244功能', '修改,id:244功能', null); -INSERT INTO `jsh_log` VALUES ('6229', '120', '关联关系', '127.0.0.1', '2019-04-30 22:46:03', '0', '修改,id:32关联关系', '修改,id:32关联关系', null); -INSERT INTO `jsh_log` VALUES ('6230', '63', '商品', '127.0.0.1', '2019-04-30 22:47:10', '0', '修改,id:568商品', '修改,id:568商品', '63'); -INSERT INTO `jsh_log` VALUES ('6231', '63', '商品', '127.0.0.1', '2019-04-30 22:47:17', '0', '修改,id:569商品', '修改,id:569商品', '63'); -INSERT INTO `jsh_log` VALUES ('6232', '63', '商品', '127.0.0.1', '2019-04-30 22:47:30', '0', '修改,id:570商品', '修改,id:570商品', '63'); -INSERT INTO `jsh_log` VALUES ('6233', '63', '商家', '127.0.0.1', '2019-04-30 22:48:41', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6234', '63', '商家', '127.0.0.1', '2019-04-30 22:50:03', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6235', '63', '商家', '127.0.0.1', '2019-04-30 22:50:15', '0', '修改,id:60商家', '修改,id:60商家', '63'); -INSERT INTO `jsh_log` VALUES ('6236', '63', '商家', '127.0.0.1', '2019-04-30 22:50:17', '0', '修改,id:60商家', '修改,id:60商家', '63'); -INSERT INTO `jsh_log` VALUES ('6237', '63', '仓库', '127.0.0.1', '2019-04-30 23:04:32', '0', '修改,id:14仓库', '修改,id:14仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6238', '63', '仓库', '127.0.0.1', '2019-04-30 23:04:32', '0', '修改,id:15仓库', '修改,id:15仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6239', '63', '仓库', '127.0.0.1', '2019-04-30 23:04:36', '0', '修改,id:15仓库', '修改,id:15仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6240', '63', '仓库', '127.0.0.1', '2019-04-30 23:04:36', '0', '修改,id:14仓库', '修改,id:14仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6241', '63', '仓库', '127.0.0.1', '2019-04-30 23:09:07', '0', '修改,id:14仓库', '修改,id:14仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6242', '63', '仓库', '127.0.0.1', '2019-04-30 23:09:07', '0', '修改,id:15仓库', '修改,id:15仓库', '63'); -INSERT INTO `jsh_log` VALUES ('6243', '63', '单据', '127.0.0.1', '2019-04-30 23:15:27', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6244', '63', '单据明细', '127.0.0.1', '2019-04-30 23:15:27', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6245', '63', '单据明细', '127.0.0.1', '2019-04-30 23:15:27', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6246', '63', '单据', '127.0.0.1', '2019-05-03 11:50:21', '0', '修改,id:196单据', '修改,id:196单据', '63'); -INSERT INTO `jsh_log` VALUES ('6247', '63', '单据明细', '127.0.0.1', '2019-05-03 11:50:21', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6248', '63', '单据明细', '127.0.0.1', '2019-05-03 11:50:21', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6249', '63', '单据', '127.0.0.1', '2019-05-03 11:51:52', '0', '修改,id:196单据', '修改,id:196单据', '63'); -INSERT INTO `jsh_log` VALUES ('6250', '63', '单据明细', '127.0.0.1', '2019-05-03 11:51:52', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6251', '63', '单据明细', '127.0.0.1', '2019-05-03 11:51:52', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6252', '63', '单据', '127.0.0.1', '2019-05-03 11:57:49', '0', '修改,id:196单据', '修改,id:196单据', '63'); -INSERT INTO `jsh_log` VALUES ('6253', '63', '单据明细', '127.0.0.1', '2019-05-03 11:57:49', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6254', '63', '单据明细', '127.0.0.1', '2019-05-03 11:57:49', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6255', '63', '商家', '127.0.0.1', '2019-05-03 13:05:32', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6256', '63', '商家', '127.0.0.1', '2019-05-03 13:20:45', '0', '删除,id:61商家', '删除,id:61商家', '63'); -INSERT INTO `jsh_log` VALUES ('6257', '63', '商家', '127.0.0.1', '2019-05-03 13:25:50', '0', '修改,id:57商家', '修改,id:57商家', '63'); -INSERT INTO `jsh_log` VALUES ('6258', '63', '商家', '127.0.0.1', '2019-05-03 13:25:58', '0', '修改,id:57商家', '修改,id:57商家', '63'); -INSERT INTO `jsh_log` VALUES ('6259', '63', '商家', '127.0.0.1', '2019-05-03 13:27:23', '0', '修改,id:57商家', '修改,id:57商家', '63'); -INSERT INTO `jsh_log` VALUES ('6260', '63', '商家', '127.0.0.1', '2019-05-03 13:27:32', '0', '修改,id:57商家', '修改,id:57商家', '63'); -INSERT INTO `jsh_log` VALUES ('6261', '63', '商家', '127.0.0.1', '2019-05-03 13:28:45', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6262', '63', '商家', '127.0.0.1', '2019-05-03 13:43:28', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6263', '63', '商家', '127.0.0.1', '2019-05-03 13:43:31', '0', '删除,id:63商家', '删除,id:63商家', '63'); -INSERT INTO `jsh_log` VALUES ('6264', '63', '商家', '127.0.0.1', '2019-05-03 13:43:35', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6265', '63', '商家', '127.0.0.1', '2019-05-03 13:43:44', '0', '修改,id:64商家', '修改,id:64商家', '63'); -INSERT INTO `jsh_log` VALUES ('6266', '63', '商家', '127.0.0.1', '2019-05-03 13:45:52', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6267', '63', '商家', '127.0.0.1', '2019-05-03 13:46:17', '0', '修改,id:65商家', '修改,id:65商家', '63'); -INSERT INTO `jsh_log` VALUES ('6268', '63', '商家', '127.0.0.1', '2019-05-03 13:46:23', '0', '删除,id:62,64,65商家', '删除,id:62,64,65商家', '63'); -INSERT INTO `jsh_log` VALUES ('6269', '63', '商家', '127.0.0.1', '2019-05-03 13:46:28', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6270', '63', '商家', '127.0.0.1', '2019-05-03 13:46:34', '0', '删除,id:66商家', '删除,id:66商家', '63'); -INSERT INTO `jsh_log` VALUES ('6271', '63', '商家', '127.0.0.1', '2019-05-03 13:46:58', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6272', '63', '商家', '127.0.0.1', '2019-05-03 13:47:07', '0', '修改,id:67商家', '修改,id:67商家', '63'); -INSERT INTO `jsh_log` VALUES ('6273', '63', '商家', '127.0.0.1', '2019-05-03 13:47:17', '0', '修改,id:67商家', '修改,id:67商家', '63'); -INSERT INTO `jsh_log` VALUES ('6274', '63', '商家', '127.0.0.1', '2019-05-03 13:54:20', '0', '删除,id:67商家', '删除,id:67商家', '63'); -INSERT INTO `jsh_log` VALUES ('6275', '63', '商家', '127.0.0.1', '2019-05-03 13:54:32', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6276', '63', '商家', '127.0.0.1', '2019-05-03 13:55:00', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6277', '63', '商家', '127.0.0.1', '2019-05-03 13:55:33', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6278', '63', '商家', '127.0.0.1', '2019-05-03 13:56:22', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6279', '63', '商家', '127.0.0.1', '2019-05-03 13:56:42', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6280', '63', '商家', '127.0.0.1', '2019-05-03 13:57:06', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6281', '63', '商家', '127.0.0.1', '2019-05-03 13:57:24', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6282', '63', '商家', '127.0.0.1', '2019-05-03 13:57:42', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6283', '63', '商家', '127.0.0.1', '2019-05-03 13:57:50', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6284', '63', '商家', '127.0.0.1', '2019-05-03 13:58:33', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6285', '63', '商家', '127.0.0.1', '2019-05-03 13:58:43', '0', '修改,id:68商家', '修改,id:68商家', '63'); -INSERT INTO `jsh_log` VALUES ('6286', '63', '计量单位', '127.0.0.1', '2019-05-03 14:00:00', '0', '新增计量单位', '新增计量单位', '63'); -INSERT INTO `jsh_log` VALUES ('6287', '63', '商品', '127.0.0.1', '2019-05-03 14:00:56', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6288', '63', '商品', '127.0.0.1', '2019-05-03 14:06:56', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6289', '63', '商品', '127.0.0.1', '2019-05-03 14:07:09', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6290', '63', '商品', '127.0.0.1', '2019-05-03 14:07:19', '0', '删除,id:572,573商品', '删除,id:572,573商品', '63'); -INSERT INTO `jsh_log` VALUES ('6291', '63', '商品', '127.0.0.1', '2019-05-03 14:14:43', '0', '删除,id:571商品', '删除,id:571商品', '63'); -INSERT INTO `jsh_log` VALUES ('6292', '63', '商品', '127.0.0.1', '2019-05-03 14:15:13', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6295', '63', '商品', '127.0.0.1', '2019-05-03 14:16:06', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6296', '63', '商品', '127.0.0.1', '2019-05-03 14:16:15', '0', '删除,id:574,575商品', '删除,id:574,575商品', '63'); -INSERT INTO `jsh_log` VALUES ('6297', '63', '商品', '127.0.0.1', '2019-05-03 14:17:08', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6298', '63', '商品', '127.0.0.1', '2019-05-03 14:17:12', '0', '删除,id:576商品', '删除,id:576商品', '63'); -INSERT INTO `jsh_log` VALUES ('6299', '63', '商品', '127.0.0.1', '2019-05-03 14:17:39', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6300', '63', '商品', '127.0.0.1', '2019-05-03 14:18:59', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6301', '63', '商品', '127.0.0.1', '2019-05-03 14:19:17', '0', '修改,id:578商品', '修改,id:578商品', '63'); -INSERT INTO `jsh_log` VALUES ('6302', '63', '商品', '127.0.0.1', '2019-05-03 14:19:27', '0', '修改,id:578商品', '修改,id:578商品', '63'); -INSERT INTO `jsh_log` VALUES ('6303', '63', '商品', '127.0.0.1', '2019-05-03 14:19:34', '0', '修改,id:578商品', '修改,id:578商品', '63'); -INSERT INTO `jsh_log` VALUES ('6304', '63', '单据', '127.0.0.1', '2019-05-03 14:20:56', '0', '新增单据', '新增单据', '63'); -INSERT INTO `jsh_log` VALUES ('6305', '63', '单据明细', '127.0.0.1', '2019-05-03 14:20:56', '0', '新增单据明细', '新增单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6306', '63', '单据明细', '127.0.0.1', '2019-05-03 14:20:56', '0', '删除,id:单据明细', '删除,id:单据明细', '63'); -INSERT INTO `jsh_log` VALUES ('6307', '63', '商品', '127.0.0.1', '2019-05-03 14:21:11', '0', '删除,id:578商品', '删除,id:578商品', '63'); -INSERT INTO `jsh_log` VALUES ('6312', '63', '商品', '127.0.0.1', '2019-05-03 14:35:11', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6314', '63', '商品', '127.0.0.1', '2019-05-03 14:36:06', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6315', '63', '商品', '127.0.0.1', '2019-05-03 14:36:18', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6316', '63', '商品', '127.0.0.1', '2019-05-03 14:40:05', '0', '修改,id:581商品', '修改,id:581商品', '63'); -INSERT INTO `jsh_log` VALUES ('6317', '63', '商品', '127.0.0.1', '2019-05-03 14:40:07', '0', '修改,id:581商品', '修改,id:581商品', '63'); -INSERT INTO `jsh_log` VALUES ('6318', '63', '商品', '127.0.0.1', '2019-05-03 14:40:10', '0', '删除,id:581商品', '删除,id:581商品', '63'); -INSERT INTO `jsh_log` VALUES ('6319', '63', '商品', '127.0.0.1', '2019-05-03 14:40:12', '0', '删除,id:580商品', '删除,id:580商品', '63'); -INSERT INTO `jsh_log` VALUES ('6320', '63', '商品', '127.0.0.1', '2019-05-03 14:40:24', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6321', '63', '商品', '127.0.0.1', '2019-05-03 14:40:46', '0', '修改,id:582商品', '修改,id:582商品', '63'); -INSERT INTO `jsh_log` VALUES ('6322', '63', '商品', '127.0.0.1', '2019-05-03 14:43:25', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6323', '63', '商品', '127.0.0.1', '2019-05-03 14:43:28', '0', '删除,id:583商品', '删除,id:583商品', '63'); -INSERT INTO `jsh_log` VALUES ('6324', '63', '商品', '127.0.0.1', '2019-05-03 14:45:57', '0', '删除,id:582商品', '删除,id:582商品', '63'); -INSERT INTO `jsh_log` VALUES ('6325', '63', '商品', '127.0.0.1', '2019-05-03 14:46:18', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6326', '63', '商品', '127.0.0.1', '2019-05-03 14:46:38', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6327', '63', '商品', '127.0.0.1', '2019-05-03 14:46:43', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6328', '63', '商品', '127.0.0.1', '2019-05-03 14:46:51', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6329', '63', '商品', '127.0.0.1', '2019-05-03 14:47:13', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6330', '63', '商品', '127.0.0.1', '2019-05-03 14:47:18', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6331', '63', '商品', '127.0.0.1', '2019-05-03 14:47:21', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6332', '63', '商品', '127.0.0.1', '2019-05-03 14:47:29', '0', '修改,id:584商品', '修改,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6333', '63', '商品', '127.0.0.1', '2019-05-03 14:48:53', '0', '删除,id:584商品', '删除,id:584商品', '63'); -INSERT INTO `jsh_log` VALUES ('6334', '63', '商品', '127.0.0.1', '2019-05-03 14:49:11', '0', '新增商品', '新增商品', '63'); -INSERT INTO `jsh_log` VALUES ('6335', '63', '商家', '127.0.0.1', '2019-05-03 14:55:10', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6336', '63', '商家', '127.0.0.1', '2019-05-03 14:55:26', '0', '删除,id:69商家', '删除,id:69商家', '63'); -INSERT INTO `jsh_log` VALUES ('6337', '63', '商家', '127.0.0.1', '2019-05-03 14:56:46', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6338', '63', '商家', '127.0.0.1', '2019-05-03 14:57:13', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6339', '63', '商家', '127.0.0.1', '2019-05-03 14:58:47', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6340', '63', '商家', '127.0.0.1', '2019-05-03 14:58:52', '0', '新增商家', '新增商家', '63'); -INSERT INTO `jsh_log` VALUES ('6341', '63', '商家', '127.0.0.1', '2019-05-03 14:59:03', '0', '删除,id:70,72,73商家', '删除,id:70,72,73商家', '63'); -INSERT INTO `jsh_log` VALUES ('6342', '120', '关联关系', '127.0.0.1', '2019-05-03 16:37:15', '0', '修改,id:32关联关系', '修改,id:32关联关系', null); -INSERT INTO `jsh_log` VALUES ('6343', '120', '功能', '127.0.0.1', '2019-05-03 16:55:52', '0', '新增功能', '新增功能', null); -INSERT INTO `jsh_log` VALUES ('6344', '120', '关联关系', '127.0.0.1', '2019-05-03 16:56:20', '0', '修改,id:32关联关系', '修改,id:32关联关系', null); -INSERT INTO `jsh_log` VALUES ('6345', '120', '关联关系', '127.0.0.1', '2019-05-03 16:57:24', '0', '修改,id:5关联关系', '修改,id:5关联关系', null); -INSERT INTO `jsh_log` VALUES ('6346', '120', '功能', '127.0.0.1', '2019-05-03 16:58:04', '0', '修改,id:245功能', '修改,id:245功能', null); -INSERT INTO `jsh_log` VALUES ('6347', '63', '角色', '127.0.0.1', '2019-05-03 17:06:47', '0', '新增角色', '新增角色', '63'); - --- ---------------------------- --- Table structure for jsh_material --- ---------------------------- -DROP TABLE IF EXISTS `jsh_material`; -CREATE TABLE `jsh_material` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `CategoryId` bigint(20) DEFAULT NULL COMMENT '产品类型', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `Mfrs` varchar(50) DEFAULT NULL COMMENT '制造商', - `Packing` decimal(24,6) DEFAULT NULL COMMENT '包装(KG/包)', - `SafetyStock` decimal(24,6) DEFAULT NULL COMMENT '安全存量(KG)', - `Model` varchar(50) DEFAULT NULL COMMENT '型号', - `Standard` varchar(50) DEFAULT NULL COMMENT '规格', - `Color` varchar(50) DEFAULT NULL COMMENT '颜色', - `Unit` varchar(50) DEFAULT NULL COMMENT '单位-单个', - `Remark` varchar(100) DEFAULT NULL COMMENT '备注', - `RetailPrice` decimal(24,6) DEFAULT NULL COMMENT '零售价', - `LowPrice` decimal(24,6) DEFAULT NULL COMMENT '最低售价', - `PresetPriceOne` decimal(24,6) DEFAULT NULL COMMENT '预设售价一', - `PresetPriceTwo` decimal(24,6) DEFAULT NULL COMMENT '预设售价二', - `UnitId` bigint(20) DEFAULT NULL COMMENT '计量单位Id', - `FirstOutUnit` varchar(50) DEFAULT NULL COMMENT '首选出库单位', - `FirstInUnit` varchar(50) DEFAULT NULL COMMENT '首选入库单位', - `PriceStrategy` varchar(500) DEFAULT NULL COMMENT '价格策略', - `Enabled` bit(1) DEFAULT NULL COMMENT '启用 0-禁用 1-启用', - `OtherField1` varchar(50) DEFAULT NULL COMMENT '自定义1', - `OtherField2` varchar(50) DEFAULT NULL COMMENT '自定义2', - `OtherField3` varchar(50) DEFAULT NULL COMMENT '自定义3', - `enableSerialNumber` varchar(1) DEFAULT '0' COMMENT '是否开启序列号,0否,1是', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`), - KEY `FK675951272AB6672C` (`CategoryId`), - KEY `UnitId` (`UnitId`) -) ENGINE=InnoDB AUTO_INCREMENT=586 DEFAULT CHARSET=utf8 COMMENT='产品表'; - --- ---------------------------- --- Records of jsh_material --- ---------------------------- -INSERT INTO `jsh_material` VALUES ('485', '2', '棉线', 'a1', null, '100.000000', 'A21-4321', '5g', '白色', '码', '', '1.000000', '1.000000', '1.000000', '1.000000', null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', 'b2', 'c3', 'd4', '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('487', '1', '网布', '制造商b', null, '100.000000', '12343', '10g', '', '码', '', '1.000000', '1.000000', '1.000000', '1.000000', null, '', '', '[{\"basic\":{\"Unit\":\"kg\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}},{\"other\":{\"Unit\":\"包\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', null, null, null, '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('498', '1', '蕾丝', '制造商c', null, null, 'B123a', '6g', '', '码', '', '1.200000', '1.000000', '1.300000', '1.400000', null, '', '', '[{\"basic\":{\"Unit\":\"kg\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}},{\"other\":{\"Unit\":\"包\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', null, null, null, '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('499', '1', '棉线', '制造商d', null, null, 'A21-1234', '7g', '', '码', '', '2.200000', '2.000000', '2.400000', '2.600000', null, '', '', '[{\"basic\":{\"Unit\":\"kg\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}},{\"other\":{\"Unit\":\"包\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', null, null, null, '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('500', '1', '纯棉线', '制造商e', null, null, 'AAA666', '11g', '', '码', '', '1.100000', '1.000000', '1.200000', '1.300000', null, '', '', '[{\"basic\":{\"Unit\":\"kg\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}},{\"other\":{\"Unit\":\"包\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', null, null, null, '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('517', '1', '奶酪', '制造商', null, null, 'AAAA', '12ml', '', '', '', null, null, null, null, '8', '瓶', '箱', '[{\"basic\":{\"Unit\":\"瓶\",\"RetailPrice\":\"1.5\",\"LowPrice\":\"2\",\"PresetPriceOne\":\"3\",\"PresetPriceTwo\":\"4\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"18\",\"LowPrice\":\"24\",\"PresetPriceOne\":\"36\",\"PresetPriceTwo\":\"48\"}}]', '', null, null, null, '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('518', '1', '安慕希', '伊利', null, null, 'abcd', '350ml', '银白色', '', '', null, null, null, null, '2', 'kg', '包', '[{\"basic\":{\"Unit\":\"kg\",\"RetailPrice\":\"2\",\"LowPrice\":\"1\",\"PresetPriceOne\":\"3\",\"PresetPriceTwo\":\"4\"}},{\"other\":{\"Unit\":\"包\",\"RetailPrice\":\"50\",\"LowPrice\":\"25\",\"PresetPriceOne\":\"75\",\"PresetPriceTwo\":\"100\"}}]', '', '', '', '', '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('562', '1', '红苹果(蛇果)', '', null, null, '60#', '大铁筐', '', '个', '', '12.000000', '10.000000', '8.000000', '11.000000', null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"enableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', null, '0'); -INSERT INTO `jsh_material` VALUES ('563', '8', '139电话卡', '', null, null, '139', '规格1', '绿色', '张', '', '11.000000', '11.000000', '11.000000', '11.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"enableSerialNumber\":\"1\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '1', null, '0'); -INSERT INTO `jsh_material` VALUES ('564', '14', '商品1', '', null, null, 'sp1', '', '', '个', '', '22.000000', '22.000000', '22.000000', '22.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"enableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '1', '0'); -INSERT INTO `jsh_material` VALUES ('565', '14', '商品2', '', null, null, 'sp2', '', '', '个', '', '44.000000', '44.000000', '44.000000', '44.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"1\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '1', '1', '0'); -INSERT INTO `jsh_material` VALUES ('566', '15', '商品666', '', null, null, 'sp666', '', '', '个', '', '5.000000', '4.000000', '3.000000', '2.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '117', '0'); -INSERT INTO `jsh_material` VALUES ('567', null, '商品1', '', null, null, 'dsp1', '', '', '个', '', '11.000000', '11.000000', '11.000000', '11.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '115', '0'); -INSERT INTO `jsh_material` VALUES ('568', '17', '商品1', '', null, '100.000000', 'sp1', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -INSERT INTO `jsh_material` VALUES ('569', '17', '商品2', '', null, '200.000000', 'sp2', '', '', '只', '', '5.000000', '5.000000', '5.000000', '5.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -INSERT INTO `jsh_material` VALUES ('570', '17', '商品3', '', null, '300.000000', 'sp3', '', '', '个个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -INSERT INTO `jsh_material` VALUES ('571', null, '商品4', '', null, null, 'sp4', '', '', '', '', null, null, null, null, '15', '个', '箱', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"3\",\"LowPrice\":\"2\",\"PresetPriceOne\":\"2\",\"PresetPriceTwo\":\"2\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"36\",\"LowPrice\":\"24\",\"PresetPriceOne\":\"24\",\"PresetPriceTwo\":\"24\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('572', null, '234234', '', null, null, '234234', '', '', '', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('573', null, '12312', '', null, null, '12', '', '', '', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('574', null, '商品5', '', null, null, '213qw', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('575', null, '商品6', '', null, null, 'sp6', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('576', null, '商品7', '', null, null, 'sp7', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('577', null, '商品8', '', null, null, 'sp8', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -INSERT INTO `jsh_material` VALUES ('578', '17', '商品9', '', null, null, 'sp9', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('579', null, '商品17', '', null, null, 'sp17', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -INSERT INTO `jsh_material` VALUES ('580', null, '15', '', null, null, '15', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('581', null, '16', '', null, null, '16', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('582', null, '商品20', '', null, null, 'sp2', '', '', '个', '', null, null, null, null, null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('583', null, 'wer', '', null, null, 'rqwe', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('584', null, 'sfds', '', null, null, 'a2233', '12', '2', 'ge', '', '1.000000', '2.000000', '3.000000', '4.000000', null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('585', null, 'asdf', '', null, null, 'adsfasdf', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); - --- ---------------------------- --- Table structure for jsh_materialcategory --- ---------------------------- -DROP TABLE IF EXISTS `jsh_materialcategory`; -CREATE TABLE `jsh_materialcategory` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `CategoryLevel` smallint(6) DEFAULT NULL COMMENT '等级', - `ParentId` bigint(20) DEFAULT NULL COMMENT '上级ID', - `sort` varchar(10) DEFAULT NULL COMMENT '显示顺序', - `status` varchar(1) DEFAULT '0' COMMENT '状态,0系统默认,1启用,2删除', - `serial_no` varchar(100) DEFAULT NULL COMMENT '编号', - `remark` varchar(1024) DEFAULT NULL COMMENT '备注', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`Id`), - KEY `FK3EE7F725237A77D8` (`ParentId`) -) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='产品类型表'; - --- ---------------------------- --- Records of jsh_materialcategory --- ---------------------------- -INSERT INTO `jsh_materialcategory` VALUES ('1', '根目录', '1', '-1', null, '2', '1', null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('2', '花边一级A', '1', '1', '', '2', '', '', null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('3', '花边一级B', '1', '1', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('4', '其他', '2', '3', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('5', '其他', '3', '4', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('6', '花边二级A', '2', '2', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('7', '花边三级A', '3', '6', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('8', '花边二级B', '2', '2', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('9', '花边一级C', '1', '1', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('10', '花边三级B', '3', '6', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('11', 'ddddd', null, '-1', '', '1', '', '', '2019-03-15 23:09:13', '63', '2019-03-15 23:09:13', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('12', 'ffffff', null, '11', '', '1', '', '', '2019-03-15 23:09:27', '63', '2019-03-15 23:09:27', '63', null); -INSERT INTO `jsh_materialcategory` VALUES ('13', '目录1', null, '-1', '', '1', '111', '', '2019-03-18 22:45:39', '63', '2019-03-18 22:45:39', '63', '1'); -INSERT INTO `jsh_materialcategory` VALUES ('14', '目录2', null, '13', '', '1', '234', '', '2019-03-18 23:39:39', '63', '2019-03-18 23:39:39', '63', '1'); -INSERT INTO `jsh_materialcategory` VALUES ('15', '目录1', null, '-1', '', '1', '', '', '2019-03-31 21:53:53', '117', '2019-03-31 21:53:53', '117', '117'); -INSERT INTO `jsh_materialcategory` VALUES ('16', 'aaaa', null, '-1', '', '1', '', '', '2019-04-02 22:28:07', '115', '2019-04-02 22:28:07', '115', '115'); -INSERT INTO `jsh_materialcategory` VALUES ('17', '目录1', null, '-1', '', '1', '', '', '2019-04-10 22:18:12', '63', '2019-04-10 22:18:12', '63', '63'); - --- ---------------------------- --- Table structure for jsh_materialproperty --- ---------------------------- -DROP TABLE IF EXISTS `jsh_materialproperty`; -CREATE TABLE `jsh_materialproperty` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `nativeName` varchar(50) DEFAULT NULL COMMENT '原始名称', - `enabled` bit(1) DEFAULT NULL COMMENT '是否启用', - `sort` varchar(10) DEFAULT NULL COMMENT '排序', - `anotherName` varchar(50) DEFAULT NULL COMMENT '别名', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='产品扩展字段表'; - --- ---------------------------- --- Records of jsh_materialproperty --- ---------------------------- -INSERT INTO `jsh_materialproperty` VALUES ('1', '规格', '', '02', '规格', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('2', '颜色', '', '01', '颜色', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('3', '制造商', '\0', '03', '制造商', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('4', '自定义1', '\0', '04', '自定义1', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('5', '自定义2', '\0', '05', '自定义2', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('6', '自定义3', '\0', '06', '自定义3', '0'); - --- ---------------------------- --- Table structure for jsh_organization --- ---------------------------- -DROP TABLE IF EXISTS `jsh_organization`; -CREATE TABLE `jsh_organization` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `org_no` varchar(20) DEFAULT NULL COMMENT '机构编号', - `org_full_name` varchar(500) DEFAULT NULL COMMENT '机构全称', - `org_abr` varchar(20) DEFAULT NULL COMMENT '机构简称', - `org_tpcd` varchar(9) DEFAULT NULL COMMENT '机构类型', - `org_stcd` char(1) DEFAULT NULL COMMENT '机构状态,1未营业、2正常营业、3暂停营业、4终止营业、5已除名', - `org_parent_no` varchar(20) DEFAULT NULL COMMENT '机构父节点编号', - `sort` varchar(20) DEFAULT NULL COMMENT '机构显示顺序', - `remark` varchar(500) DEFAULT NULL COMMENT '备注', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `org_create_time` datetime DEFAULT NULL COMMENT '机构创建时间', - `org_stop_time` datetime DEFAULT NULL COMMENT '机构停运时间', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='机构表'; - --- ---------------------------- --- Records of jsh_organization --- ---------------------------- -INSERT INTO `jsh_organization` VALUES ('1', '01', '根机构', '根机构', null, '5', '-1', '1', '根机构,初始化存在', null, null, '2019-03-15 23:01:21', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('2', null, '销售', '销售', null, '5', '01', '1', '机构表初始化', null, null, '2019-03-15 23:01:21', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('3', null, 'sdf444', 'sdf444', null, '5', '01', '2', '机构表初始化', null, null, '2019-03-15 23:01:19', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('4', null, '1231', '1231', null, '5', '01', '3', '机构表初始化', null, null, '2019-03-15 23:01:19', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('5', null, '23', '23', null, '5', '01', '4', '机构表初始化', null, null, '2019-03-15 23:01:19', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('6', '4444', 'abcd', 'abcd', null, '1', '-1', '', '', '2019-03-15 23:01:30', '63', '2019-03-15 23:01:47', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('7', '123', 'bbbb', 'bbbb', null, '1', 'abcd', '', '', '2019-03-15 23:01:42', '63', '2019-03-15 23:01:42', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('8', 'ddddd', 'ddddd', 'ddddd', null, '1', '4444', '', '', '2019-03-15 23:02:02', '63', '2019-03-15 23:02:02', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('9', '555', 'dddddddddd', 'dddddddddd', null, '1', 'ddddd', '', '', '2019-03-15 23:02:16', '63', '2019-03-15 23:02:16', '63', null, null, null); -INSERT INTO `jsh_organization` VALUES ('10', '23124', 'gaga', 'gaga', null, '1', '-1', '11', '', '2019-03-31 21:52:31', '117', '2019-03-31 21:52:31', '117', null, null, '117'); -INSERT INTO `jsh_organization` VALUES ('11', '12312', 'fsadfasdf', 'fsadfasdf', null, '1', '23124', '12312', '', '2019-03-31 21:52:52', '117', '2019-03-31 21:52:52', '117', null, null, '117'); - --- ---------------------------- --- Table structure for jsh_orga_user_rel --- ---------------------------- -DROP TABLE IF EXISTS `jsh_orga_user_rel`; -CREATE TABLE `jsh_orga_user_rel` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `orga_id` bigint(20) NOT NULL COMMENT '机构id', - `user_id` bigint(20) NOT NULL COMMENT '用户id', - `user_blng_orga_dspl_seq` varchar(20) DEFAULT NULL COMMENT '用户在所属机构中显示顺序', - `delete_flag` char(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='机构用户关系表'; - --- ---------------------------- --- Records of jsh_orga_user_rel --- ---------------------------- -INSERT INTO `jsh_orga_user_rel` VALUES ('1', '9', '64', '', '0', null, null, '2019-03-15 23:03:39', '63', null); -INSERT INTO `jsh_orga_user_rel` VALUES ('2', '3', '65', null, '0', null, null, null, null, null); -INSERT INTO `jsh_orga_user_rel` VALUES ('3', '3', '67', null, '0', null, null, null, null, null); -INSERT INTO `jsh_orga_user_rel` VALUES ('4', '4', '84', null, '0', null, null, null, null, null); -INSERT INTO `jsh_orga_user_rel` VALUES ('5', '5', '86', null, '0', null, null, null, null, null); -INSERT INTO `jsh_orga_user_rel` VALUES ('6', '3', '91', '', '0', '2019-03-12 21:55:28', '63', '2019-03-12 21:55:28', '63', null); -INSERT INTO `jsh_orga_user_rel` VALUES ('7', '9', '95', '', '0', '2019-03-15 23:03:22', '63', '2019-03-15 23:03:22', '63', null); -INSERT INTO `jsh_orga_user_rel` VALUES ('8', '9', '96', '', '0', '2019-03-17 23:32:08', '63', '2019-03-17 23:32:08', '63', null); -INSERT INTO `jsh_orga_user_rel` VALUES ('9', '10', '117', '', '0', '2019-03-31 21:53:03', '117', '2019-03-31 21:53:12', '117', '117'); - --- ---------------------------- --- Table structure for jsh_person --- ---------------------------- -DROP TABLE IF EXISTS `jsh_person`; -CREATE TABLE `jsh_person` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Type` varchar(20) DEFAULT NULL COMMENT '类型', - `Name` varchar(50) DEFAULT NULL COMMENT '姓名', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='经手人表'; - --- ---------------------------- --- Records of jsh_person --- ---------------------------- -INSERT INTO `jsh_person` VALUES ('3', '财务员', '王五-财务', null, '0'); -INSERT INTO `jsh_person` VALUES ('4', '财务员', '赵六-财务', null, '0'); -INSERT INTO `jsh_person` VALUES ('5', '业务员', '小李', null, '0'); -INSERT INTO `jsh_person` VALUES ('6', '业务员', '小军', null, '0'); -INSERT INTO `jsh_person` VALUES ('7', '业务员', '小曹', null, '0'); -INSERT INTO `jsh_person` VALUES ('8', '仓管员', '小季', '1', '0'); -INSERT INTO `jsh_person` VALUES ('9', '财务员', '小月', '1', '0'); -INSERT INTO `jsh_person` VALUES ('10', '仓管员', '小张', '117', '0'); -INSERT INTO `jsh_person` VALUES ('11', '业务员', '晓丽', '117', '0'); -INSERT INTO `jsh_person` VALUES ('12', '财务员', '小草', '117', '0'); -INSERT INTO `jsh_person` VALUES ('13', '业务员', '经手人1', '115', '0'); - --- ---------------------------- --- Table structure for jsh_role --- ---------------------------- -DROP TABLE IF EXISTS `jsh_role`; -CREATE TABLE `jsh_role` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', - `type` varchar(50) DEFAULT NULL COMMENT '类型', - `value` varchar(200) DEFAULT NULL COMMENT '值', - `description` varchar(100) DEFAULT NULL COMMENT '描述', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='角色表'; - --- ---------------------------- --- Records of jsh_role --- ---------------------------- -INSERT INTO `jsh_role` VALUES ('4', '管理员', null, null, null, null, '0'); -INSERT INTO `jsh_role` VALUES ('5', '仓管员', null, null, null, null, '0'); -INSERT INTO `jsh_role` VALUES ('10', '租户', null, null, null, null, '0'); -INSERT INTO `jsh_role` VALUES ('12', '角色123', null, null, null, '117', '0'); -INSERT INTO `jsh_role` VALUES ('13', '角色test', null, null, null, null, '0'); -INSERT INTO `jsh_role` VALUES ('14', '44444', null, null, null, null, '1'); -INSERT INTO `jsh_role` VALUES ('15', 'laoba角色', null, null, null, '115', '0'); -INSERT INTO `jsh_role` VALUES ('16', '测试角色123', null, null, null, '63', '0'); - --- ---------------------------- --- Table structure for jsh_serial_number --- ---------------------------- -DROP TABLE IF EXISTS `jsh_serial_number`; -CREATE TABLE `jsh_serial_number` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `material_Id` bigint(20) DEFAULT NULL COMMENT '产品表id', - `serial_Number` varchar(64) DEFAULT NULL COMMENT '序列号', - `is_Sell` varchar(1) DEFAULT '0' COMMENT '是否卖出,0未卖出,1卖出', - `remark` varchar(1024) DEFAULT NULL COMMENT '备注', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - `create_Time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_Time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `depothead_Id` bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8 COMMENT='序列号表'; - --- ---------------------------- --- Records of jsh_serial_number --- ---------------------------- -INSERT INTO `jsh_serial_number` VALUES ('1', '563', '13915521178850971', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('2', '563', '13915521178850972', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('3', '563', '13915521178850973', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('4', '563', '13915521178850974', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('5', '563', '13915521178850975', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('6', '563', '13915521178850976', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('7', '563', '13915521178850977', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('8', '563', '13915521178850978', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('9', '563', '13915521178850979', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('10', '563', '139155211788509710', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:53:07', '63', '117', null); -INSERT INTO `jsh_serial_number` VALUES ('11', '563', '139155211788509711', '1', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:57:26', '63', '118', null); -INSERT INTO `jsh_serial_number` VALUES ('12', '563', '139155211788509712', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('13', '563', '139155211788509713', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('14', '563', '139155211788509714', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('15', '563', '139155211788509715', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('16', '563', '139155211788509716', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('17', '563', '139155211788509717', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('18', '563', '139155211788509718', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('19', '563', '139155211788509719', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('20', '563', '139155211788509720', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('21', '563', '139155211788509721', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('22', '563', '139155211788509722', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('23', '563', '139155211788509723', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('24', '563', '139155211788509724', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('25', '563', '139155211788509725', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('26', '563', '139155211788509726', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('27', '563', '139155211788509727', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('28', '563', '139155211788509728', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('29', '563', '139155211788509729', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('30', '563', '139155211788509730', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('31', '563', '139155211788509731', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('32', '563', '139155211788509732', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('33', '563', '139155211788509733', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('34', '563', '139155211788509734', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('35', '563', '139155211788509735', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('36', '563', '139155211788509736', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('37', '563', '139155211788509737', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('38', '563', '139155211788509738', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('39', '563', '139155211788509739', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('40', '563', '139155211788509740', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('41', '563', '139155211788509741', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('42', '563', '139155211788509742', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('43', '563', '139155211788509743', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('44', '563', '139155211788509744', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('45', '563', '139155211788509745', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('46', '563', '139155211788509746', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('47', '563', '139155211788509747', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('48', '563', '139155211788509748', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('49', '563', '139155211788509749', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('50', '563', '139155211788509750', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('51', '563', '139155211788509751', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('52', '563', '139155211788509752', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('53', '563', '139155211788509753', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('54', '563', '139155211788509754', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('55', '563', '139155211788509755', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('56', '563', '139155211788509756', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('57', '563', '139155211788509757', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('58', '563', '139155211788509758', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('59', '563', '139155211788509759', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('60', '563', '139155211788509760', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('61', '563', '139155211788509761', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('62', '563', '139155211788509762', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('63', '563', '139155211788509763', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('64', '563', '139155211788509764', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('65', '563', '139155211788509765', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('66', '563', '139155211788509766', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('67', '563', '139155211788509767', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('68', '563', '139155211788509768', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('69', '563', '139155211788509769', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('70', '563', '139155211788509770', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('71', '563', '139155211788509771', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('72', '563', '139155211788509772', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('73', '563', '139155211788509773', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('74', '563', '139155211788509774', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('75', '563', '139155211788509775', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('76', '563', '139155211788509776', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('77', '563', '139155211788509777', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('78', '563', '139155211788509778', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('79', '563', '139155211788509779', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('80', '563', '139155211788509780', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('81', '563', '139155211788509781', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('82', '563', '139155211788509782', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('83', '563', '139155211788509783', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('84', '563', '139155211788509784', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('85', '563', '139155211788509785', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('86', '563', '139155211788509786', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('87', '563', '139155211788509787', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('88', '563', '139155211788509788', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('89', '563', '139155211788509789', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('90', '563', '139155211788509790', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('91', '563', '139155211788509791', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('92', '563', '139155211788509792', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('93', '563', '139155211788509793', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('94', '563', '139155211788509794', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('95', '563', '139155211788509795', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('96', '563', '139155211788509796', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('97', '563', '139155211788509797', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('98', '563', '139155211788509798', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('99', '563', '139155211788509799', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('100', '563', '1391552117885097100', '0', '', '0', '2019-03-09 15:51:25', '63', '2019-03-09 15:51:25', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('102', '563', '123123123', '0', '', '0', '2019-03-21 23:57:29', '63', '2019-03-21 23:57:29', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('103', '565', '2222222', '0', '', '0', '2019-03-21 23:57:37', '63', '2019-03-21 23:57:37', '63', null, null); -INSERT INTO `jsh_serial_number` VALUES ('104', '563', '234213123', '0', '', '0', '2019-03-21 23:58:00', '63', '2019-03-21 23:58:00', '63', null, null); - --- ---------------------------- --- Table structure for jsh_supplier --- ---------------------------- -DROP TABLE IF EXISTS `jsh_supplier`; -CREATE TABLE `jsh_supplier` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `supplier` varchar(255) NOT NULL COMMENT '供应商名称', - `contacts` varchar(100) DEFAULT NULL COMMENT '联系人', - `phonenum` varchar(30) DEFAULT NULL COMMENT '联系电话', - `email` varchar(50) DEFAULT NULL COMMENT '电子邮箱', - `description` varchar(500) DEFAULT NULL COMMENT '备注', - `isystem` tinyint(4) DEFAULT NULL COMMENT '是否系统自带 0==系统 1==非系统', - `type` varchar(20) DEFAULT NULL COMMENT '类型', - `enabled` bit(1) DEFAULT NULL COMMENT '启用', - `AdvanceIn` decimal(24,6) DEFAULT '0.000000' COMMENT '预收款', - `BeginNeedGet` decimal(24,6) DEFAULT NULL COMMENT '期初应收', - `BeginNeedPay` decimal(24,6) DEFAULT NULL COMMENT '期初应付', - `AllNeedGet` decimal(24,6) DEFAULT NULL COMMENT '累计应收', - `AllNeedPay` decimal(24,6) DEFAULT NULL COMMENT '累计应付', - `fax` varchar(30) DEFAULT NULL COMMENT '传真', - `telephone` varchar(30) DEFAULT NULL COMMENT '手机', - `address` varchar(50) DEFAULT NULL COMMENT '地址', - `taxNum` varchar(50) DEFAULT NULL COMMENT '纳税人识别号', - `bankName` varchar(50) DEFAULT NULL COMMENT '开户行', - `accountNumber` varchar(50) DEFAULT NULL COMMENT '账号', - `taxRate` decimal(24,6) DEFAULT NULL COMMENT '税率', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 COMMENT='供应商/客户信息表'; - --- ---------------------------- --- Records of jsh_supplier --- ---------------------------- -INSERT INTO `jsh_supplier` VALUES ('1', '上海某某花边工厂', '乔治', '', '', '', '1', '供应商', '', '0.000000', null, '20.000000', null, null, '', '', '', '', '', '', '10.000000', null, '0'); -INSERT INTO `jsh_supplier` VALUES ('2', '客户AAAA', '佩琪', '', '', '', '1', '客户', '', '24.000000', '10.000000', null, null, null, '', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('4', '苏州新源布料厂', '龙哥', '13000000000', '312341@qq.com', '55', '1', '供应商', '', '0.000000', null, '44.000000', null, null, '', '', '', '', '', '', '17.000000', null, '0'); -INSERT INTO `jsh_supplier` VALUES ('5', '客户BBBB', '彪哥', '13000000000', '666@qq.com', '', '1', '客户', '', '36.000000', '20.000000', null, null, null, null, null, null, null, null, null, null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('6', '南通宝贝家纺', '姗姗', '1231', '31243@qq.com', '备注备注备注', '1', '客户', '', '0.000000', '5.000000', null, null, null, '2134', '15678903', '地址地址地址', '纳税人识别号', '开户行', '31234124312', '0.170000', null, '0'); -INSERT INTO `jsh_supplier` VALUES ('7', '非会员', '宋江', '13000000000', '123456@qq.com', '', '1', '会员', '', '76.600000', null, null, null, null, null, null, null, null, null, null, null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('8', 'hy00001', '宋江', '13000000000', '', '', '1', '会员', '', '954.800000', null, null, null, null, '', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('9', 'hy00002', '吴用', '13000000000', '', '', '1', '会员', '', '344.000000', null, null, null, null, '', '', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('10', '1268787965', '李逵', '82567384', '423@qq.com', '', '1', '会员', '', '2122.000000', null, null, null, null, '', '13000000001', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('45', '666666666', '武松', '82567384', '423@qq.com', '', '1', '会员', '', '2100.000000', '0.000000', '0.000000', '0.000000', '0.000000', '', '13000000001', '', '', '', '', '0.000000', null, '0'); -INSERT INTO `jsh_supplier` VALUES ('46', '南通居梦莱家纺', '曹操', '', '', '', '1', '供应商', '', '0.000000', null, null, '0.000000', '0.000000', '', '13000000000', '', '', '', '', null, null, '0'); -INSERT INTO `jsh_supplier` VALUES ('47', '供应商1', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '1', '0'); -INSERT INTO `jsh_supplier` VALUES ('48', '客户1', '', '', '', '', null, '客户', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '1', '0'); -INSERT INTO `jsh_supplier` VALUES ('49', 'ddddd123', '', '', '', '', null, '会员', '', '6.000000', null, null, null, null, '', '', '', '', '', '', null, '1', '0'); -INSERT INTO `jsh_supplier` VALUES ('50', '供应商2', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '1', '0'); -INSERT INTO `jsh_supplier` VALUES ('51', '供应商1', '小周', '', '', '', null, '供应商', '', '0.000000', null, '2000.000000', null, null, '', '', '', '', '', '', null, '117', '0'); -INSERT INTO `jsh_supplier` VALUES ('52', '客户123', '', '', '', '', null, '客户', '', '0.000000', '1000.000000', null, null, null, '', '', '', '', '', '', null, '117', '0'); -INSERT INTO `jsh_supplier` VALUES ('53', '会员123123', '', '', '', '', null, '会员', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '117', '0'); -INSERT INTO `jsh_supplier` VALUES ('54', '供应商2222', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '117', '0'); -INSERT INTO `jsh_supplier` VALUES ('55', '供应商1', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '115', '0'); -INSERT INTO `jsh_supplier` VALUES ('56', '客户666', '', '', '', '', null, '客户', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '115', '0'); -INSERT INTO `jsh_supplier` VALUES ('57', '供应商1', '', '', '', '', null, '供应商', '', '0.000000', '0.000000', '0.000000', null, '0.000000', '', '', '', '', '', '', '12.000000', '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('58', '客户1', '', '', '', '', null, '客户', '', '0.000000', '200.000000', '0.000000', '-100.000000', null, '', '', '', '', '', '', null, '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('59', 'kh123', '', '', '', '', null, '客户', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('60', '12312666', '', '', '', '', null, '会员', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('61', '', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', '12312312.000000', '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('62', '供if', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('63', '', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('64', 'wrwer', '', '', '', '', null, '供应商', '', '0.000000', '0.000000', '0.000000', null, '0.000000', '', '', '', '', '', '', '233.000000', '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('65', '123123', '', '', '', '', null, '供应商', '', '0.000000', '0.000000', '0.000000', null, '0.000000', '', '', '', '', '', '', '44.000000', '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('66', 'rrtt', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('67', '供应商2', '', '', '', '', null, '供应商', '', '0.000000', '0.000000', '0.000000', null, '0.000000', '', '', '', '', '', '', '7.000000', '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('68', '供应商3', '', '', '', '', null, '供应商', '', '0.000000', '15.000000', '0.000000', null, '-15.000000', '', '13000000000', '', '', '', '', '22.000000', '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('69', '', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', '3123.000000', '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('70', 'rrrrr', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('71', 'fsdfasdf', '', '', '', '', null, '客户', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('72', 'sdfafadsf', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -INSERT INTO `jsh_supplier` VALUES ('73', 'sadvczXCvz', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); - --- ---------------------------- --- Table structure for jsh_systemconfig --- ---------------------------- -DROP TABLE IF EXISTS `jsh_systemconfig`; -CREATE TABLE `jsh_systemconfig` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `company_name` varchar(50) DEFAULT NULL COMMENT '公司名称', - `company_contacts` varchar(20) DEFAULT NULL COMMENT '公司联系人', - `company_address` varchar(50) DEFAULT NULL COMMENT '公司地址', - `company_tel` varchar(20) DEFAULT NULL COMMENT '公司电话', - `company_fax` varchar(20) DEFAULT NULL COMMENT '公司传真', - `company_post_code` varchar(20) DEFAULT NULL COMMENT '公司邮编', - `depot_flag` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '仓库启用标记,0未启用,1启用' , - `customer_flag` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '客户启用标记,0未启用,1启用' , - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统参数'; - --- ---------------------------- --- Records of jsh_systemconfig --- ---------------------------- -INSERT INTO `jsh_systemconfig` VALUES ('7', '南通jshERP公司', '张三', '南通市通州区某某路', '0513-10101010', '0513-18181818', '226300', '0', '0', null, '0'); -INSERT INTO `jsh_systemconfig` VALUES ('8', '公司123', '', '', '', '', '', '0', '0', '117', '0'); - --- ---------------------------- --- Table structure for jsh_unit --- ---------------------------- -DROP TABLE IF EXISTS `jsh_unit`; -CREATE TABLE `jsh_unit` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `UName` varchar(50) DEFAULT NULL COMMENT '名称,支持多单位', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='多单位表'; - --- ---------------------------- --- Records of jsh_unit --- ---------------------------- -INSERT INTO `jsh_unit` VALUES ('2', 'kg,包(1:25)', null, '0'); -INSERT INTO `jsh_unit` VALUES ('8', '瓶,箱(1:12)', null, '0'); -INSERT INTO `jsh_unit` VALUES ('11', 'qwe,sed(1:33)', null, '0'); -INSERT INTO `jsh_unit` VALUES ('12', '1,2(1:33)', null, '0'); -INSERT INTO `jsh_unit` VALUES ('13', 'aa,vv(1:22)', '1', '0'); -INSERT INTO `jsh_unit` VALUES ('14', '个,箱(1:12)', '117', '0'); -INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '63', '0'); - --- ---------------------------- --- Table structure for jsh_user --- ---------------------------- -DROP TABLE IF EXISTS `jsh_user`; -CREATE TABLE `jsh_user` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `username` varchar(255) NOT NULL COMMENT '用户姓名--例如张三', - `loginame` varchar(255) DEFAULT NULL COMMENT '登录用户名--可能为空', - `password` varchar(50) DEFAULT NULL COMMENT '登陆密码', - `position` varchar(200) DEFAULT NULL COMMENT '职位', - `department` varchar(255) DEFAULT NULL COMMENT '所属部门', - `email` varchar(100) DEFAULT NULL COMMENT '电子邮箱', - `phonenum` varchar(100) DEFAULT NULL COMMENT '手机号码', - `ismanager` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否为管理者 0==管理者 1==员工', - `isystem` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否系统自带数据 ', - `Status` tinyint(4) DEFAULT '0' COMMENT '状态,0:正常,1:删除,2封禁', - `description` varchar(500) DEFAULT NULL COMMENT '用户描述信息', - `remark` varchar(500) DEFAULT NULL COMMENT '备注', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=utf8 COMMENT='用户表'; - --- ---------------------------- --- Records of jsh_user --- ---------------------------- -INSERT INTO `jsh_user` VALUES ('63', '季圣华', 'jsh', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '1', '0', '', null, '63'); -INSERT INTO `jsh_user` VALUES ('64', '张三', 'zs', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('65', '李四', 'ls', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('67', 'fas666', 'asd555', null, 'asdf333', null, '11111@qq.com', '222222', '1', '0', '0', 'sdf0000', null, null); -INSERT INTO `jsh_user` VALUES ('74', '21312sfdfsdf', '1231234', null, '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('84', '123123', 'jsh123', null, '3123', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('86', '2333', 'sdf111aaa', null, '3232', null, '', '32323', '1', '0', '0', '33232', null, null); -INSERT INTO `jsh_user` VALUES ('87', '122123132', 'sdfasd1', null, '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('90', '232343', '233', null, '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('91', 'jsh1231', 'jsh1231', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('92', '213123', 'aaaa', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '1', '', null, null); -INSERT INTO `jsh_user` VALUES ('93', '111', 'ffff', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '1', '', null, null); -INSERT INTO `jsh_user` VALUES ('94', 'sdfsdf', 'fsdfsdsd', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '1', '', null, null); -INSERT INTO `jsh_user` VALUES ('95', '4444444', '4444', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, null); -INSERT INTO `jsh_user` VALUES ('96', 'lili', 'lili', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, '1'); -INSERT INTO `jsh_user` VALUES ('113', 'yuyu123', 'yuyu123', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '113'); -INSERT INTO `jsh_user` VALUES ('115', 'laoba123', 'laoba123', 'e10adc3949ba59abbe56e057f20f883e', '33333', null, '', '', '1', '0', '0', '', null, '115'); -INSERT INTO `jsh_user` VALUES ('116', 'gggg123', 'gggg123', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '1', '', null, '115'); -INSERT INTO `jsh_user` VALUES ('120', '管理员', 'admin', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, null); -INSERT INTO `jsh_user` VALUES ('121', 'hhhh', 'hhhh', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, '115'); -INSERT INTO `jsh_user` VALUES ('122', 'admin1', 'admin1', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '1', '', null, '63'); -INSERT INTO `jsh_user` VALUES ('123', 'caoyuli', 'caoyuli', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '123'); -INSERT INTO `jsh_user` VALUES ('124', 'jchb', 'jchb', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '124'); -INSERT INTO `jsh_user` VALUES ('126', '123123', '123123', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '126'); -INSERT INTO `jsh_user` VALUES ('127', '2345123', '2345123', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '127'); -INSERT INTO `jsh_user` VALUES ('128', 'q12341243', 'q12341243', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '128'); -INSERT INTO `jsh_user` VALUES ('130', 'jsh666', 'jsh666', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '130'); - --- ---------------------------- --- Table structure for jsh_userbusiness --- ---------------------------- -DROP TABLE IF EXISTS `jsh_userbusiness`; -CREATE TABLE `jsh_userbusiness` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Type` varchar(50) DEFAULT NULL COMMENT '类别', - `KeyId` varchar(50) DEFAULT NULL COMMENT '主ID', - `Value` varchar(10000) DEFAULT NULL COMMENT '值', - `BtnStr` varchar(2000) DEFAULT NULL COMMENT '按钮权限', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='用户/角色/模块关系表'; - --- ---------------------------- --- Records of jsh_userbusiness --- ---------------------------- -INSERT INTO `jsh_userbusiness` VALUES ('5', 'RoleFunctions', '4', '[245][13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); -INSERT INTO `jsh_userbusiness` VALUES ('6', 'RoleFunctions', '5', '[22][23][25][26][194][195][31][33][200][201][41][199][202]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('7', 'RoleFunctions', '6', '[22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]', '[{\"funId\":\"33\",\"btnStr\":\"4\"}]', '0'); -INSERT INTO `jsh_userbusiness` VALUES ('9', 'RoleFunctions', '7', '[168][13][12][16][14][15][189][18][19][132]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('10', 'RoleFunctions', '8', '[168][13][12][16][14][15][189][18][19][132][22][23][25][26][27][157][158][155][156][125][31][127][126][128][33][34][35][36][37][39][40][41][42][43][46][47][48][49][50][51][52][53][54][55][56][57][192][59][60][61][62][63][65][66][68][69][70][71][73][74][76][77][79][191][81][82][83][85][89][161][86][176][165][160][28][134][91][92][29][94][95][97][104][99][100][101][102][105][107][108][110][111][113][114][116][117][118][120][121][131][135][123][122][20][130][146][147][138][148][149][153][140][145][184][152][143][170][171][169][166][167][163][164][172][173][179][178][181][182][183][186][187]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('11', 'RoleFunctions', '9', '[168][13][12][16][14][15][189][18][19][132][22][23][25][26][27][157][158][155][156][125][31][127][126][128][33][34][35][36][37][39][40][41][42][43][46][47][48][49][50][51][52][53][54][55][56][57][192][59][60][61][62][63][65][66][68][69][70][71][73][74][76][77][79][191][81][82][83][85][89][161][86][176][165][160][28][134][91][92][29][94][95][97][104][99][100][101][102][105][107][108][110][111][113][114][116][117][118][120][121][131][135][123][122][20][130][146][147][138][148][149][153][140][145][184][152][143][170][171][169][166][167][163][164][172][173][179][178][181][182][183][186][187][188]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('12', 'UserRole', '1', '[5]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('13', 'UserRole', '2', '[6][7]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('14', 'UserDepot', '2', '[1][2][6][7]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('15', 'UserDepot', '1', '[1][2][5][6][7][10][12][14][15][17]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('16', 'UserRole', '63', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('18', 'UserDepot', '63', '[14][15]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('19', 'UserDepot', '5', '[6][45][46][50]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('20', 'UserRole', '5', '[5]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('21', 'UserRole', '64', '[13]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('22', 'UserDepot', '64', '[1]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('23', 'UserRole', '65', '[5]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('24', 'UserDepot', '65', '[1]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('25', 'UserCustomer', '64', '[5][2]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('26', 'UserCustomer', '65', '[6]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('27', 'UserCustomer', '63', '[58]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('28', 'UserDepot', '96', '[7]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('29', 'UserRole', '96', '[6]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('30', 'UserRole', '113', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('32', 'RoleFunctions', '10', '[245][13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); -INSERT INTO `jsh_userbusiness` VALUES ('34', 'UserRole', '115', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('35', 'UserRole', '117', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('36', 'UserDepot', '117', '[8][9]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('37', 'UserCustomer', '117', '[52]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('38', 'UserRole', '120', '[4]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('39', 'UserDepot', '120', '[7][8][9][10][11][12][2][1][3]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('40', 'UserCustomer', '120', '[52][48][6][5][2]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('41', 'RoleFunctions', '12', '', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('48', 'RoleFunctions', '13', '[59][207][208][209][226][227][228][229][235][237][210][211][241][33][199][242][41][200]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('51', 'UserRole', '74', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('52', 'UserDepot', '121', '[13]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('54', 'UserDepot', '115', '[13]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('56', 'UserCustomer', '115', '[56]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('57', 'UserCustomer', '121', '[56]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('58', 'UserRole', '121', '[15]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('59', 'UserRole', '123', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('60', 'UserRole', '124', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('61', 'UserRole', '125', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('62', 'UserRole', '126', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('63', 'UserRole', '127', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('64', 'UserRole', '128', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('65', 'UserRole', '129', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('66', 'UserRole', '130', '[10]', null, '0'); - --- ---------------------------- --- Table structure for tbl_sequence --- ---------------------------- -DROP TABLE IF EXISTS `tbl_sequence`; -CREATE TABLE `tbl_sequence` ( - `seq_name` varchar(50) NOT NULL COMMENT '序列名称', - `min_value` bigint(20) NOT NULL COMMENT '最小值', - `max_value` bigint(20) NOT NULL COMMENT '最大值', - `current_val` bigint(20) NOT NULL COMMENT '当前值', - `increment_val` int(11) NOT NULL DEFAULT '1' COMMENT '增长步数', - `remark` varchar(500) DEFAULT NULL COMMENT '备注', - PRIMARY KEY (`seq_name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sequence表'; - --- ---------------------------- --- Records of tbl_sequence --- ---------------------------- -INSERT INTO `tbl_sequence` VALUES ('depot_number_seq', '1', '999999999999999999', '304', '1', '单据编号sequence'); - --- ---------------------------- --- Table structure for jsh_tenant --- ---------------------------- -DROP TABLE IF EXISTS `jsh_tenant`; -CREATE TABLE `jsh_tenant` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '用户id', - `login_name` varchar(255) DEFAULT NULL COMMENT '登录名', - `user_num_limit` int(11) DEFAULT NULL COMMENT '用户数量限制', - `bills_num_limit` int(11) DEFAULT NULL COMMENT '单据数量限制', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8 COMMENT='租户'; - --- ---------------------------- --- Records of jsh_tenant --- ---------------------------- -INSERT INTO `jsh_tenant` VALUES ('13', '63', 'jsh', '20', '2000', null); -INSERT INTO `jsh_tenant` VALUES ('14', '113', 'abc123', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('15', '115', 'jzh', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('16', '123', 'caoyuli', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('17', '124', 'jchb', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('18', '126', '123123', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('19', '127', '2345123', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('20', '128', 'q12341243', '2', '200', null); -INSERT INTO `jsh_tenant` VALUES ('21', '130', 'jsh666', '2', '200', null); - --- ---------------------------- --- Table structure for jsh_msg --- ---------------------------- -DROP TABLE IF EXISTS `jsh_msg`; -CREATE TABLE `jsh_msg` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `msg_title` varchar(100) DEFAULT NULL COMMENT '消息标题', - `msg_content` varchar(500) DEFAULT NULL COMMENT '消息内容', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `type` varchar(20) DEFAULT NULL COMMENT '消息类型', - `status` varchar(1) DEFAULT NULL COMMENT '状态,1未读 2已读', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='消息表'; - --- ---------------------------- --- Records of jsh_msg --- ---------------------------- -INSERT INTO `jsh_msg` VALUES ('2', '标题1', '内容1', '2019-09-10 00:11:39', '类型1', '1', '63', '0'); \ No newline at end of file diff --git a/docs/华夏ERP数据库设计汇总.xlsx b/docs/华夏ERP数据库设计汇总.xlsx deleted file mode 100644 index 2c7686ac..00000000 Binary files a/docs/华夏ERP数据库设计汇总.xlsx and /dev/null differ diff --git a/docs/数据库更新记录-方便升级.txt b/docs/数据库更新记录-方便升级.txt deleted file mode 100644 index 5dc2b0e9..00000000 --- a/docs/数据库更新记录-方便升级.txt +++ /dev/null @@ -1,672 +0,0 @@ ---------------------------------------------------------------------------------------------------- -****注意第一次初始化数据库不需要执行下面的内容,该文档会随着代码更新持续更新,方便大家手动升级数据库**** -****注意第一次初始化数据库不需要执行下面的内容,该文档会随着代码更新持续更新,方便大家手动升级数据库**** -****注意第一次初始化数据库不需要执行下面的内容,该文档会随着代码更新持续更新,方便大家手动升级数据库**** ---------------------------------------------------------------------------------------------------- - - --- ---------------------------- --- 时间:2019年1月21日 --- version:1.0.0 --- 此次更新添加序列号功能 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- - --- ---------------------------- --- 添加序列号表 --- ---------------------------- -DROP TABLE IF EXISTS `jsh_serial_number`; -CREATE TABLE `jsh_serial_number` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `material_Id` bigint(20) DEFAULT NULL COMMENT '产品表id', - `serial_Number` varchar(64) DEFAULT NULL COMMENT '序列号', - `is_Sell` bit(1) DEFAULT 0 COMMENT '是否卖出,0未卖出,1卖出', - `remark` varchar(1024) DEFAULT NULL COMMENT '备注', - `delete_Flag` bit(1) DEFAULT 0 COMMENT '删除标记,0未删除,1删除', - `create_Time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_Time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='序列号表'; - --- ---------------------------- --- 产品表新增字段是否启用序列号 --- ---------------------------- -alter table jsh_material add enableSerialNumber bit(1) DEFAULT 0 COMMENT '是否开启序列号,0否,1是'; --- ---------------------------- --- 时间:2019年1月24日 --- version:1.0.1 --- 此次更新添加序列号菜单 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- ---------------------------- --- 添加序列号菜单 --- ---------------------------- -delete from `jsh_functions` where Name='序列号'; -INSERT INTO `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) VALUES ('010104', '序列号', '0101', '../manage/serialNumber.html', b'0', '0246', b'1', '电脑版', ''); --- ---------------------------- --- 删除单据主表供应商id字段对应外键约束 --- ---------------------------- -ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_3; --- ---------------------------- --- 序列号表添加单据主表id字段,用于跟踪序列号流向 --- ---------------------------- -alter table jsh_serial_number add depothead_Id bigint(20) DEFAULT null COMMENT '单据主表id,用于跟踪序列号流向'; --- ---------------------------- --- 修改商品表enableSerialNumber字段类型为varchar(1) --- ---------------------------- -alter table jsh_material change enableSerialNumber enableSerialNumber varchar(1) DEFAULT '0' COMMENT '是否开启序列号,0否,1是'; --- ---------------------------- --- 修改序列号表is_Sell字段类型为varchar(1) --- 修改序列号表delete_Flag字段类型为varchar(1) --- ---------------------------- -alter table jsh_serial_number change is_Sell is_Sell varchar(1) DEFAULT '0' COMMENT '是否卖出,0未卖出,1卖出'; -alter table jsh_serial_number change delete_Flag delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- ---------------------------- --- 删除单据子表单据主表id字段对应外键约束 --- ---------------------------- -ALTER TABLE jsh_depotitem DROP FOREIGN KEY jsh_depotitem_ibfk_1; --- ---------------------------- --- 时间:2019年2月1日 --- version:1.0.2 --- 此次更新添加sequence表,用于获取一个唯一的数值 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- ---------------------------- --- 添加表tbl_sequence --- ---------------------------- -DROP TABLE IF EXISTS `tbl_sequence`; -CREATE TABLE tbl_sequence ( - seq_name VARCHAR(50) NOT NULL COMMENT '序列名称', - min_value bigint(20) NOT NULL COMMENT '最小值', - max_value bigint(20) NOT NULL COMMENT '最大值', - current_val bigint(20) NOT NULL COMMENT '当前值', - increment_val INT DEFAULT '1' NOT NULL COMMENT '增长步数', - remark VARCHAR(500) DEFAULT null COMMENT '备注', - PRIMARY KEY (seq_name) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sequence表'; - --- ---------------------------- --- 添加表单据编号sequence --- 插入数据前判断,防止数据重复插入 --- ---------------------------- -insert into tbl_sequence (seq_name, min_value, max_value, current_val, increment_val,remark) -select 'depot_number_seq', 1, 999999999999999999, 1, 1,'单据编号sequence' from dual where not exists -(select * from tbl_sequence where seq_name='depot_number_seq'); --- ---------------------------- --- 创建function _nextval() 用于获取当前序列号 --- ---------------------------- -DROP FUNCTION IF EXISTS `_nextval`; -DELIMITER ;; -CREATE FUNCTION `_nextval`(name varchar(50)) RETURNS mediumtext CHARSET utf8 -begin -declare _cur bigint; -declare _maxvalue bigint; -- 接收最大值 -declare _increment int; -- 接收增长步数 -set _increment = (select increment_val from tbl_sequence where seq_name = name); -set _maxvalue = (select max_value from tbl_sequence where seq_name = name); -set _cur = (select current_val from tbl_sequence where seq_name = name for update); -update tbl_sequence -- 更新当前值 - set current_val = _cur + increment_val - where seq_name = name ; -if(_cur + _increment >= _maxvalue) then -- 判断是都达到最大值 - update tbl_sequence - set current_val = minvalue - where seq_name = name ; -end if; -return _cur; -end -;; -DELIMITER ; - --- ---------------------------- --- 时间:2019年2月18日 --- version:1.0.3 --- 此次更新修改产品类型表jsh_materialcategory,添加一些字段 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- ---------------------------- --- 产品类型表添加字段sort,显示顺序 --- ---------------------------- -alter table jsh_materialcategory add sort varchar(10) DEFAULT null COMMENT '显示顺序'; --- ---------------------------- --- 产品类型表添加字段status,状态,0系统默认,1启用,2删除 --- ---------------------------- -alter table jsh_materialcategory add status varchar(1) DEFAULT '0' COMMENT '状态,0系统默认,1启用,2删除'; --- ---------------------------- --- 产品类型表添加字段serial_no,编号 --- ---------------------------- -alter table jsh_materialcategory add serial_no varchar(100) DEFAULT null COMMENT '编号'; --- ---------------------------- --- 产品类型表添加字段remark,备注 --- ---------------------------- -alter table jsh_materialcategory add remark varchar(1024) DEFAULT null COMMENT '备注'; --- ---------------------------- --- 产品类型表添加字段create_time,创建时间 --- ---------------------------- -alter table jsh_materialcategory add create_time datetime DEFAULT null COMMENT '创建时间'; --- ---------------------------- --- 产品类型表添加字段creator,创建人 --- ---------------------------- -alter table jsh_materialcategory add creator bigint(20) DEFAULT null COMMENT '创建人'; --- ---------------------------- --- 产品类型表添加字段update_time,更新时间 --- ---------------------------- -alter table jsh_materialcategory add update_time datetime DEFAULT null COMMENT '更新时间'; --- ---------------------------- --- 产品类型表添加字段updater,更新人 --- ---------------------------- -alter table jsh_materialcategory add updater bigint(20) DEFAULT null COMMENT '更新人'; - --- ---------------------------- --- 去掉jsh_materialcategory外键 --- ---------------------------- -ALTER TABLE jsh_materialcategory DROP FOREIGN KEY FK3EE7F725237A77D8; - --- ---------------------------- --- 修改根目录父节点id为-1 --- 设置根目录编号为1 --- ---------------------------- -update jsh_materialcategory set ParentId='-1' where id='1'; - --- ---------------------------- --- 删除礼品卡管理、礼品充值、礼品销售、礼品卡统计的功能数据 --- ---------------------------- -delete from jsh_functions where id in (213,214,215,216); - --- ---------------------------- --- 新增采购订单、销售订单的功能数据 --- 主键自增长,直接指定主键插入数据的方式可能会和本地数据冲突 --- 插入数据前判断,防止数据重复插入 --- ---------------------------- -insert into `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) -select '050202', '采购订单', '0502', '../materials/purchase_orders_list.html', b'0', '0335',b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='050202' and PNumber='0502'); -insert into `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) -select '060301', '销售订单', '0603', '../materials/sale_orders_list.html', b'0', '0392', b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='060301' and PNumber='0603'); - --- ---------------------------- --- 改管理员的功能权限 --- ---------------------------- -update jsh_userbusiness SET Type = 'RoleFunctions', KeyId = '4', -Value = '[13][12][16][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][210][211][242][33][199][243][41][200][201][202][40][232][233][197][203][204][205][206][212]' -where Id = 5; - --- ---------------------------- --- 时间:2019年2月25日 --- version:1.0.4 --- 此次更新仓库添加负责人信息,负责人信息从用户表获取 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- ---------------------------- --- 仓库表添加字段principal,负责人 --- ---------------------------- -alter table jsh_depot add principal bigint(20) DEFAULT null COMMENT '负责人'; - --- ---------------------------- --- 时间:2019年3月6日 --- version:1.0.5 --- 此次更新 --- 1、添加机构表 --- 2、添加机构用户关系表 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- ---------------------------- --- 添加机构表 --- ---------------------------- -DROP TABLE IF EXISTS `jsh_organization`; -CREATE TABLE `jsh_organization` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `org_no` varchar(20) DEFAULT NULL COMMENT '机构编号', - `org_full_name` varchar(500) DEFAULT NULL COMMENT '机构全称', - `org_abr` varchar(20) DEFAULT NULL COMMENT '机构简称', - `org_tpcd` varchar(9) DEFAULT NULL COMMENT '机构类型', - `org_stcd` char(1) DEFAULT NULL COMMENT '机构状态,1未营业、2正常营业、3暂停营业、4终止营业、5已除名', - `org_parent_no` varchar(20) DEFAULT NULL COMMENT '机构父节点编号', - `sort` varchar(20) DEFAULT NULL COMMENT '机构显示顺序', - remark VARCHAR(500) DEFAULT null COMMENT '备注', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `org_create_time` datetime DEFAULT NULL COMMENT '机构创建时间', - `org_stop_time` datetime DEFAULT NULL COMMENT '机构停运时间', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='机构表'; --- ---------------------------- --- 添加机构用户关系表 --- ---------------------------- -DROP TABLE IF EXISTS `jsh_orga_user_rel`; -CREATE TABLE `jsh_orga_user_rel` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `orga_id` bigint(20) NOT NULL COMMENT '机构id', - `user_id` bigint(20) NOT NULL COMMENT '用户id', - `user_blng_orga_dspl_seq` varchar(20) DEFAULT NULL COMMENT '用户在所属机构中显示顺序', - `delete_flag` char(1) DEFAULT 0 COMMENT '删除标记,0未删除,1删除', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - `creator` bigint(20) DEFAULT NULL COMMENT '创建人', - `update_time` datetime DEFAULT NULL COMMENT '更新时间', - `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='机构用户关系表'; --- ---------------------------- --- 添加机构管理菜单 --- 插入数据前判断,防止数据重复插入 --- ---------------------------- -INSERT INTO `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) -select '000108', '机构管理', '0001', '../manage/organization.html', b'1', '0139', b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='000108' and PNumber='0001'); --- ---------------------------- --- 添加根机构 --- 插入时判断对应数据是否存在,防止多次执行产生重复数据 --- ---------------------------- -INSERT INTO jsh_organization (org_no, org_full_name, org_abr, org_tpcd, org_stcd, org_parent_no, sort, remark, create_time, creator, update_time, updater, org_create_time, org_stop_time) -select '01', '根机构', '根机构', NULL, '2', '-1', '1', '根机构,初始化存在', NULL, NULL, NULL, NULL, NULL, NULL from dual where not exists -(select * from jsh_organization where org_no='01' and org_abr='根机构' and org_parent_no='-1' ); --- ---------------------------- --- 时间:2019年3月9日 --- version:1.0.6 --- 此次更新 --- 整改jsh_systemconfig表的字段 --- ---------------------------- -alter table jsh_systemconfig drop type; -alter table jsh_systemconfig drop name; -alter table jsh_systemconfig drop value; -alter table jsh_systemconfig drop description; -alter table jsh_systemconfig add company_name varchar(50) DEFAULT null COMMENT '公司名称'; -alter table jsh_systemconfig add company_contacts varchar(20) DEFAULT null COMMENT '公司联系人'; -alter table jsh_systemconfig add company_address varchar(50) DEFAULT null COMMENT '公司地址'; -alter table jsh_systemconfig add company_tel varchar(20) DEFAULT null COMMENT '公司电话'; -alter table jsh_systemconfig add company_fax varchar(20) DEFAULT null COMMENT '公司传真'; -alter table jsh_systemconfig add company_post_code varchar(20) DEFAULT null COMMENT '公司邮编'; -delete from jsh_systemconfig; -insert into jsh_systemconfig (`company_name`, `company_contacts`, `company_address`, `company_tel`, `company_fax`, `company_post_code`) values("南通jshERP公司","张三","南通市通州区某某路","0513-10101010","0513-18181818","226300"); - --- ---------------------------- --- 时间:2019年3月9日 --- version:1.0.7 --- 改管理员的功能权限 --- ---------------------------- -update jsh_userbusiness SET -Value = '[13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]' -where Id = 5; --- ---------------------------- --- 给订单功能加审核和反审核的功能按钮权限 --- ---------------------------- -update jsh_functions SET PushBtn = '3' where Number = '050202' and PNumber = '0502'; -update jsh_functions SET PushBtn = '3' where Number = '060301' and PNumber = '0603'; --- ---------------------------- --- 改管理员的按钮权限 --- ---------------------------- -update jsh_userbusiness SET -BtnStr = '[{"funId":"25","btnStr":"1"},{"funId":"217","btnStr":"1"},{"funId":"218","btnStr":"1"},{"funId":"241","btnStr":"3"},{"funId":"242","btnStr":"3"}]' -where Id = 5; - --- ---------------------------- --- 时间:2019年3月10日 --- version:1.0.8 --- 改状态字段的类型,增加关联单据字段 --- ---------------------------- -alter table jsh_depothead change Status Status varchar(1) DEFAULT '0' COMMENT '状态,0未审核、1已审核、2已转采购|销售'; -alter table jsh_depothead add `LinkNumber` varchar(50) DEFAULT null COMMENT '关联订单号'; --- ---------------------------- --- 时间:2019年3月12日 --- version:1.0.9 --- 此次更新 --- 1、根据本地用户表中现有部门生成机构表数据,同时重建机构和用户的关联关系 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- -DROP FUNCTION IF EXISTS `_buildOrgAndOrgUserRel`; -DELIMITER ;; -CREATE FUNCTION `_buildOrgAndOrgUserRel` (name varchar(50)) RETURNS mediumtext CHARSET utf8 -begin - -declare _org_full_name varchar(500); -- 机构全称 -declare _org_abr varchar(20); -- 机构简称 -declare _sort int default 0; -declare _success_msg varchar(50) default '重建机构及机构用户关系成功'; -- 机构全称 - -- 遍历数据结束标志 -declare done int DEFAULT 0; --- 获取用户表中唯一的部门信息列表 -declare orgCur cursor for select distinct department from jsh_user where department!='' and department is not null; - - -- 将结束标志绑定到游标 -declare continue handler for not found set done = 1; - -- 循环部门信息列表在机构表插入数据 - -- 打开游标 - open orgCur; - -- 开始循环 - read_loop: loop - -- 提取游标里的数据,这里只有一个,多个的话也一样; - fetch orgCur into _org_full_name; - -- 声明结束的时候 - if done=1 then - leave read_loop; - end if; - -- 这里做你想做的循环的事件 - if length(_org_full_name)<=20 then - set _org_abr=_org_full_name; - else - set _org_abr=left(_org_full_name,20); - end if; - set _sort=_sort+1; - insert into jsh_organization (org_full_name, org_abr, org_stcd, org_parent_no, sort, remark) - values (_org_full_name,_org_abr, '1', '01', _sort, '机构表初始化'); - begin - declare _userId bigint; - declare _orgId bigint; - -- 遍历数据结束标志 - declare ogrUserRelDone int DEFAULT 0; - -- 根据用户表和机构表部门关联关系,重建用户和机构关联关系 - declare ogrUserRelCur cursor for select user.id as userId,org.id as orgId from jsh_user user,jsh_organization org - where 1=1 and user.department=org.org_full_name and user.department =_org_full_name; - -- 将结束标志绑定到游标 - declare continue handler for not found set ogrUserRelDone = 1; - -- 打开游标 - open ogrUserRelCur; - -- 开始循环 - rel_read_loop: loop - -- 提取游标里的数据,这里只有一个,多个的话也一样; - fetch ogrUserRelCur into _userId,_orgId; - -- 声明结束的时候 - if ogrUserRelDone=1 then - leave rel_read_loop; - end if; - insert into `jsh_orga_user_rel`(`orga_id`, `user_id`, `delete_flag`) VALUES (_orgId,_userId,'0'); - - end loop rel_read_loop; - -- 关闭游标 - close ogrUserRelCur; - end; - - end loop read_loop; - -- 关闭游标 - close orgCur; - --- 清空用户表中的部门信息 -update jsh_user set department=null; - -return _success_msg; -end -;; -DELIMITER ; --- ---------------------------- --- 初始化机构数据,重建机构用户关系 --- ---------------------------- -select _buildOrgAndOrgUserRel('初始化机构数据,重建机构用户关系') from dual; --- ---------------------------- --- 删除一次性函数 --- ---------------------------- -DROP FUNCTION _buildOrgAndOrgUserRel; - --- ---------------------------- --- 时间:2019年3月13日 --- version:1.0.10 --- 此次更新 --- 1、设置用户表的用户状态status默认值为0 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- - -alter table jsh_user change Status Status tinyint(4) DEFAULT '0' COMMENT '状态,0:正常,1:删除,2封禁'; -update jsh_user set status='0' where status is null; --- ---------------------------- --- 设置根目录编号为1 --- ---------------------------- -update jsh_materialcategory set serial_no='1' where id='1'; - --- ---------------------------- --- 时间:2019年3月18日 --- version:1.0.11 --- 此次更新 --- 1、批量增加大部分表的tenant_id租户字段 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- -alter table jsh_account add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_accounthead add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_accountitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_asset add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_assetcategory add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_assetname add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_depot add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_depothead add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_depotitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_inoutitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_log add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_material add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_materialcategory add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_orga_user_rel add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_organization add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_person add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_role add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_serial_number add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_supplier add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_systemconfig add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_unit add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; -alter table jsh_user add tenant_id bigint(20) DEFAULT null COMMENT '租户id'; - --- ---------------------------- --- 时间:2019年3月27日 --- version:1.0.12 --- 此次更新 --- 添加删除标记,将物理删除修改为逻辑删除 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- --- 角色表 jsh_role -alter table jsh_role add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 用户 角色 模块关系表 jsh_userbusiness -alter table jsh_userbusiness add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 功能模块表 jsh_functions -alter table jsh_functions add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 应用表 jsh_app -alter table jsh_app add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 产品表 jsh_material -alter table jsh_material add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 产品扩展字段表 jsh_materialproperty -alter table jsh_materialproperty add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 经手人表 jsh_person -alter table jsh_person add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 供应商 客户信息表 jsh_supplier -alter table jsh_supplier add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 系统参数表 jsh_systemconfig -alter table jsh_systemconfig add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 多单位表 jsh_unit -alter table jsh_unit add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 仓库表 jsh_depot -alter table jsh_depot add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 账户信息表 jsh_account -alter table jsh_account add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 财务主表 jsh_accounthead -alter table jsh_accounthead add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 财务子表 jsh_accountitem -alter table jsh_accountitem add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 资产记录表 jsh_asset -alter table jsh_asset add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 资产类型表 jsh_assetcategory -alter table jsh_assetcategory add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 资产信息表 jsh_assetname -alter table jsh_assetname add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 单据主表 jsh_depothead -alter table jsh_depothead add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 单据子表 jsh_depotitem -alter table jsh_depotitem add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; --- 收支项目表 jsh_inoutitem -alter table jsh_inoutitem add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; - --- ---------------------------- --- 时间:2019年4月11日 --- version:1.0.13 --- 此次更新 --- 删除所有外键 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- - --- ---------------------------- --- 删除财务主表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_accounthead DROP FOREIGN KEY FK9F4C0D8DAAE50527; -ALTER TABLE jsh_accounthead DROP FOREIGN KEY FK9F4C0D8DB610FC06; -ALTER TABLE jsh_accounthead DROP FOREIGN KEY FK9F4C0D8DC4170B37; --- ---------------------------- --- 删除财务子表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_accountitem DROP FOREIGN KEY FK9F4CBAC0AAE50527; -ALTER TABLE jsh_accountitem DROP FOREIGN KEY FK9F4CBAC0C5FE6007; -ALTER TABLE jsh_accountitem DROP FOREIGN KEY FK9F4CBAC0D203EDC5; --- ---------------------------- --- 删除资产记录表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_asset DROP FOREIGN KEY FK353690ED27D23FE4; -ALTER TABLE jsh_asset DROP FOREIGN KEY FK353690ED3E226853; -ALTER TABLE jsh_asset DROP FOREIGN KEY FK353690ED61FE182C; -ALTER TABLE jsh_asset DROP FOREIGN KEY FK353690ED9B6CB285; -ALTER TABLE jsh_asset DROP FOREIGN KEY FK353690EDAD45B659; --- ---------------------------- --- 删除资产信息表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_assetname DROP FOREIGN KEY FKA4ADCCF866BC8AD3; --- ---------------------------- --- 删除单据主表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_depothead DROP FOREIGN KEY FK2A80F214AAE50527; -ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_1; -ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_4; -ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_5; --- ---------------------------- --- 删除单据子表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_depotitem DROP FOREIGN KEY FK2A819F47729F5392; -ALTER TABLE jsh_depotitem DROP FOREIGN KEY FK2A819F479485B3F5; -ALTER TABLE jsh_depotitem DROP FOREIGN KEY jsh_depotitem_ibfk_2; --- ---------------------------- --- 删除操作日志表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_log DROP FOREIGN KEY FKF2696AA13E226853; --- ---------------------------- --- 删除产品表对应外键约束 --- ---------------------------- -ALTER TABLE jsh_material DROP FOREIGN KEY FK675951272AB6672C; -ALTER TABLE jsh_material DROP FOREIGN KEY jsh_material_ibfk_1; - --- ---------------------------- --- 时间:2019年4月30日 --- version:1.0.14 --- 此次更新 --- 增加仓库默认功能 增加库存预警功能 --- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新 --- ---------------------------- -alter table jsh_depot add is_default bit(1) DEFAULT NULL COMMENT '是否默认'; -insert into `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) -select '030112', '库存预警', '0301', '../reports/stock_warning_report.html', b'0', '0670', b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='030112' and PNumber='0301'); - --- ---------------------------- --- 改管理员的功能权限 --- ---------------------------- -update jsh_userbusiness SET Type = 'RoleFunctions', KeyId = '4', -Value = '[13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]' -where Id = 5; - --- ---------------------------- --- 给app的功能增加代号 在功能表增加个人信息 --- ---------------------------- -update jsh_app SET Number = '02' where name='个人信息'; -insert into `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) -select '02', '个人信息', '0', '', b'1', '0005', b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='02' and PNumber='0'); - --- ---------------------------- --- 时间:2019年6月23日 --- 增加新手引导模块 --- ---------------------------- -INSERT INTO `jsh_app` VALUES ('28', '09', '新手引导', 'app', 'userHelp.png', '../user/userHelp.html', '1000', '500', '\0', '\0', '\0', 'dock', '210', '', '', '0'); -INSERT INTO `jsh_functions` VALUES ('246', '09', '新手引导', '0', '', '', '0115', '', '电脑版', '', '0'); -update jsh_userbusiness SET Value = '[3][6][7][22][23][24][25][26][27][28]' -where Type = 'RoleAPP' and (KeyId = '4' or KeyId = '10'); -update jsh_userbusiness SET -Value = '[245][13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]' -where Type = 'RoleFunctions' and KeyId = '4'; -update jsh_userbusiness SET -Value = '[245][13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]' -where Type = 'RoleFunctions' and KeyId = '10'; - - --- ---------------------------- --- 时间:2019年6月26日 --- 删除多余的资产相关表 --- ---------------------------- -drop table jsh_asset; -drop table jsh_assetcategory; -drop table jsh_assetname; - - --- ---------------------------- --- 时间:2019年6月27日 --- 增加租户表 --- ---------------------------- -DROP TABLE IF EXISTS `jsh_tenant`; -CREATE TABLE `jsh_tenant` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '用户id', - `login_name` varchar(255) DEFAULT NULL COMMENT '登录名', - `user_num_limit` int(11) DEFAULT NULL COMMENT '用户数量限制', - `bills_num_limit` int(11) DEFAULT NULL COMMENT '单据数量限制', - `create_time` datetime DEFAULT NULL COMMENT '创建时间', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8 COMMENT='租户'; - --- ---------------------------- --- 时间:2019年6月27日 --- 给租户表增加数据 --- ---------------------------- -INSERT INTO `jsh_tenant` VALUES ('13', '63', 'jsh', '20', '2000', null); - --- ---------------------------- --- 时间:2019年7月10日 --- 删除函数 --- ---------------------------- -DROP FUNCTION IF EXISTS `_nextval`; - --- ---------------------------- --- 时间:2019年8月1日 --- 增加仓库和客户的启用标记 --- ---------------------------- -alter table jsh_systemconfig add customer_flag varchar(1) DEFAULT '0' COMMENT '客户启用标记,0未启用,1启用' after company_post_code; -alter table jsh_systemconfig add depot_flag varchar(1) DEFAULT '0' COMMENT '仓库启用标记,0未启用,1启用' after company_post_code; - --- ---------------------------- --- 时间:2019年9月13日 --- 给功能表增加icon字段 --- ---------------------------- -alter table jsh_functions add icon varchar(50) DEFAULT NULL COMMENT '图标' after PushBtn; - --- ---------------------------- --- 时间:2019年9月13日 --- 创建消息表 --- ---------------------------- -CREATE TABLE `jsh_msg` ( -`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键' , -`msg_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '消息标题' , -`msg_content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '消息内容' , -`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间' , -`type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '消息类型' , -`status` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态,1未读 2已读' , -`tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '租户id' , -`delete_Flag` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除' , -PRIMARY KEY (`id`) -) -ENGINE=InnoDB -DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci -COMMENT='消息表' -AUTO_INCREMENT=2 -ROW_FORMAT=COMPACT -; - --- ---------------------------- --- 时间:2019年9月13日 --- 删除表 jsh_app databasechangelog databasechangeloglock --- ---------------------------- -drop table databasechangelog; -drop table databasechangeloglock; -drop table jsh_app; \ No newline at end of file diff --git a/erp_web/register.html b/erp_web/register.html index 77ad41d8..c2914ec0 100644 --- a/erp_web/register.html +++ b/erp_web/register.html @@ -43,7 +43,7 @@
diff --git a/src/main/java/com/jsh/erp/controller/FunctionsController.java b/src/main/java/com/jsh/erp/controller/FunctionsController.java index 1f93f209..f524664d 100644 --- a/src/main/java/com/jsh/erp/controller/FunctionsController.java +++ b/src/main/java/com/jsh/erp/controller/FunctionsController.java @@ -1,330 +1,330 @@ -package com.jsh.erp.controller; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.jsh.erp.constants.ExceptionConstants; -import com.jsh.erp.datasource.entities.Functions; -import com.jsh.erp.datasource.entities.User; -import com.jsh.erp.exception.BusinessRunTimeException; -import com.jsh.erp.service.functions.FunctionsService; -import com.jsh.erp.service.userBusiness.UserBusinessService; -import com.jsh.erp.utils.BaseResponseInfo; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.dao.DataAccessException; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * @author ji-sheng-hua 华夏ERP - */ -@RestController -@RequestMapping(value = "/functions") -public class FunctionsController { - private Logger logger = LoggerFactory.getLogger(FunctionsController.class); - - @Resource - private FunctionsService functionsService; - - @Resource - private UserBusinessService userBusinessService; - - @PostMapping(value = "/findMenu") - public JSONArray findMenu(@RequestParam(value="pNumber") String pNumber, - @RequestParam(value="hasFunctions") String hasFunctions, - HttpServletRequest request)throws Exception { - //存放数据json数组 - JSONArray dataArray = new JSONArray(); - try { - String fc = hasFunctions; //当前用户所拥有的功能列表,格式如:[1][2][5] - List dataList = functionsService.getRoleFunctions(pNumber); - if (null != dataList) { - for (Functions functions : dataList) { - JSONObject item = new JSONObject(); - item.put("id", functions.getId()); - List dataList1 = functionsService.getRoleFunctions(functions.getNumber()); - JSONArray dataArray1 = new JSONArray(); - if (dataList1.size() != 0) { - item.put("text", functions.getName()); //是目录就没链接 - item.put("icon", functions.getIcon()); - for (Functions functions1 : dataList1) { - item.put("state", "open"); //如果不为空,节点展开 - JSONObject item1 = new JSONObject(); - List dataList2 = functionsService.getRoleFunctions(functions1.getNumber()); - if (fc.indexOf("[" + functions1.getId().toString() + "]") != -1 || dataList2.size() != 0) { - item1.put("id", functions1.getId()); - JSONArray dataArray2 = new JSONArray(); - if (dataList2.size() != 0) { - item1.put("text", functions1.getName());//是目录就没链接 - item1.put("icon", functions1.getIcon()); - for (Functions functions2 : dataList2) { - item1.put("state", "closed"); //如果不为空,节点不展开 - JSONObject item2 = new JSONObject(); - List dataList3 = functionsService.getRoleFunctions(functions2.getNumber()); - if (fc.indexOf("[" + functions2.getId().toString() + "]") != -1 || dataList3.size() != 0) { - item2.put("id", functions2.getId()); - JSONArray dataArray3 = new JSONArray(); - if (dataList3.size() != 0) { - item2.put("text", functions2.getName());//是目录就没链接 - item2.put("icon", functions2.getIcon()); - for (Functions functions3 : dataList3) { - item2.put("state", "closed"); //如果不为空,节点不展开 - JSONObject item3 = new JSONObject(); - item3.put("id", functions3.getId()); - item3.put("text", functions3.getName()); - item3.put("icon", functions3.getIcon()); - // - dataArray3.add(item3); - item2.put("children", dataArray3); - } - } else { - //不是目录,有链接 - item2.put("text", functions2.getName()); - item2.put("icon", functions2.getIcon()); - item2.put("url", functions2.getUrl()); - dataArray2.add(item2); - item1.put("children", dataArray2); - } - } else { - //不是目录,有链接 - } - } - } else { - //不是目录,有链接 - item1.put("text", functions1.getName()); - item1.put("icon", functions1.getIcon()); - item1.put("url", functions1.getUrl()); - dataArray1.add(item1); - item.put("children", dataArray1); - } - } else { - //不是目录,有链接 - } - } - } else { - //不是目录,有链接 - item.put("text", functions.getName()); - item.put("icon", functions.getIcon()); - item.put("url", functions.getUrl()); - } - dataArray.add(item); - } - } - } catch (DataAccessException e) { - logger.error(">>>>>>>>>>>>>>>>>>>查找应用异常", e); - } - return dataArray; - } - - /** - * 角色对应功能显示 - * @param request - * @return - */ - @PostMapping(value = "/findRoleFunctions") - public JSONArray findRoleFunctions(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId, - HttpServletRequest request)throws Exception { - JSONArray arr = new JSONArray(); - try { - List dataListFun = functionsService.findRoleFunctions("0"); - //开始拼接json数据 - JSONObject outer = new JSONObject(); - outer.put("id", 1); - outer.put("text", "功能列表"); - outer.put("state", "open"); - //存放数据json数组 - JSONArray dataArray = new JSONArray(); - if (null != dataListFun) { - //根据条件从列表里面移除"系统管理" - List dataList = new ArrayList(); - for (Functions fun : dataListFun) { - //从session中获取租户id - String loginName = null; - Object userInfo = request.getSession().getAttribute("user"); - if(userInfo != null) { - User user = (User) userInfo; - loginName = user.getLoginame(); - } - if(("admin").equals(loginName)) { - dataList.add(fun); - } else { - if(!("系统管理").equals(fun.getName())) { - dataList.add(fun); - } - } - } - - //筛选功能列表 - for (Functions functions : dataList) { - JSONObject item = new JSONObject(); - item.put("id", functions.getId()); - item.put("text", functions.getName()); - - //勾选判断1 - Boolean flag = false; - try { - flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions.getId().toString() + "]"); - } catch (Exception e) { - logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); - } - if (flag == true) { - item.put("checked", true); - } - //结束 - - List dataList1 = functionsService.findRoleFunctions(functions.getNumber()); - JSONArray dataArray1 = new JSONArray(); - if (null != dataList1) { - - for (Functions functions1 : dataList1) { - item.put("state", "open"); //如果不为空,节点不展开 - JSONObject item1 = new JSONObject(); - item1.put("id", functions1.getId()); - item1.put("text", functions1.getName()); - - //勾选判断2 - //Boolean flag = false; - try { - flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions1.getId().toString() + "]"); - } catch (Exception e) { - logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); - } - if (flag == true) { - item1.put("checked", true); - } - //结束 - - List dataList2 = functionsService.findRoleFunctions(functions1.getNumber()); - JSONArray dataArray2 = new JSONArray(); - if (null != dataList2) { - - for (Functions functions2 : dataList2) { - item1.put("state", "closed"); //如果不为空,节点不展开 - JSONObject item2 = new JSONObject(); - item2.put("id", functions2.getId()); - item2.put("text", functions2.getName()); - - //勾选判断3 - //Boolean flag = false; - try { - flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions2.getId().toString() + "]"); - } catch (Exception e) { - logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); - } - if (flag == true) { - item2.put("checked", true); - } - //结束 - - List dataList3 = functionsService.findRoleFunctions(functions2.getNumber()); - JSONArray dataArray3 = new JSONArray(); - if (null != dataList3) { - - for (Functions functions3 : dataList3) { - item2.put("state", "closed"); //如果不为空,节点不展开 - JSONObject item3 = new JSONObject(); - item3.put("id", functions3.getId()); - item3.put("text", functions3.getName()); - - //勾选判断4 - //Boolean flag = false; - try { - flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions3.getId().toString() + "]"); - } catch (Exception e) { - logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); - } - if (flag == true) { - item3.put("checked", true); - } - //结束 - - dataArray3.add(item3); - item2.put("children", dataArray3); - } - } - - dataArray2.add(item2); - item1.put("children", dataArray2); - } - } - - dataArray1.add(item1); - item.put("children", dataArray1); - } - - } - dataArray.add(item); - } - outer.put("children", dataArray); - arr.add(outer); - } - } catch (Exception e) { - e.printStackTrace(); - } - return arr; - } - - /** - * 根据id列表查找功能信息 - * @param functionsIds - * @param request - * @return - */ - @GetMapping(value = "/findByIds") - public BaseResponseInfo findByIds(@RequestParam("functionsIds") String functionsIds, - HttpServletRequest request)throws Exception { - BaseResponseInfo res = new BaseResponseInfo(); - try { - List dataList = functionsService.findByIds(functionsIds); - JSONObject outer = new JSONObject(); - outer.put("total", dataList.size()); - //存放数据json数组 - JSONArray dataArray = new JSONArray(); - if (null != dataList) { - for (Functions functions : dataList) { - JSONObject item = new JSONObject(); - item.put("Id", functions.getId()); - item.put("Name", functions.getName()); - item.put("PushBtn", functions.getPushbtn()); - item.put("op", 1); - dataArray.add(item); - } - } - outer.put("rows", dataArray); - res.code = 200; - res.data = outer; - } catch (Exception e) { - e.printStackTrace(); - res.code = 500; - res.data = "获取数据失败"; - } - return res; - } - /** - * create by: qiankunpingtai - * website:https://qiankunpingtai.cn - * description: - * 批量删除功能模块信息 - * create time: 2019/3/29 11:15 - * @Param: ids - * @return java.lang.Object - */ - @RequestMapping(value = "/batchDeleteFunctionsByIds") - public Object batchDeleteFunctionsByIds(@RequestParam("ids") String ids) throws Exception { - JSONObject result = ExceptionConstants.standardSuccess(); - int i= functionsService.batchDeleteFunctionsByIds(ids); - if(i<1){ - logger.error("异常码[{}],异常提示[{}],参数,ids[{}]", - ExceptionConstants.FUNCTIONS_DELETE_FAILED_CODE,ExceptionConstants.FUNCTIONS_DELETE_FAILED_MSG,ids); - throw new BusinessRunTimeException(ExceptionConstants.FUNCTIONS_DELETE_FAILED_CODE, - ExceptionConstants.FUNCTIONS_DELETE_FAILED_MSG); - } - return result; - } -} +package com.jsh.erp.controller; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.jsh.erp.constants.ExceptionConstants; +import com.jsh.erp.datasource.entities.Functions; +import com.jsh.erp.datasource.entities.User; +import com.jsh.erp.exception.BusinessRunTimeException; +import com.jsh.erp.service.functions.FunctionsService; +import com.jsh.erp.service.userBusiness.UserBusinessService; +import com.jsh.erp.utils.BaseResponseInfo; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.dao.DataAccessException; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * @author ji-sheng-hua 华夏ERP + */ +@RestController +@RequestMapping(value = "/functions") +public class FunctionsController { + private Logger logger = LoggerFactory.getLogger(FunctionsController.class); + + @Resource + private FunctionsService functionsService; + + @Resource + private UserBusinessService userBusinessService; + + @PostMapping(value = "/findMenu") + public JSONArray findMenu(@RequestParam(value="pNumber") String pNumber, + @RequestParam(value="hasFunctions") String hasFunctions, + HttpServletRequest request)throws Exception { + //存放数据json数组 + JSONArray dataArray = new JSONArray(); + try { + String fc = hasFunctions; //当前用户所拥有的功能列表,格式如:[1][2][5] + List dataList = functionsService.getRoleFunctions(pNumber); + if (null != dataList) { + for (Functions functions : dataList) { + JSONObject item = new JSONObject(); + item.put("id", functions.getId()); + List dataList1 = functionsService.getRoleFunctions(functions.getNumber()); + JSONArray dataArray1 = new JSONArray(); + if (dataList1.size() != 0) { + item.put("text", functions.getName()); //是目录就没链接 + item.put("icon", functions.getIcon()); + for (Functions functions1 : dataList1) { + item.put("state", "open"); //如果不为空,节点展开 + JSONObject item1 = new JSONObject(); + List dataList2 = functionsService.getRoleFunctions(functions1.getNumber()); + if (fc.indexOf("[" + functions1.getId().toString() + "]") != -1 || dataList2.size() != 0) { + item1.put("id", functions1.getId()); + JSONArray dataArray2 = new JSONArray(); + if (dataList2.size() != 0) { + item1.put("text", functions1.getName());//是目录就没链接 + item1.put("icon", functions1.getIcon()); + for (Functions functions2 : dataList2) { + item1.put("state", "closed"); //如果不为空,节点不展开 + JSONObject item2 = new JSONObject(); + List dataList3 = functionsService.getRoleFunctions(functions2.getNumber()); + if (fc.indexOf("[" + functions2.getId().toString() + "]") != -1 || dataList3.size() != 0) { + item2.put("id", functions2.getId()); + JSONArray dataArray3 = new JSONArray(); + if (dataList3.size() != 0) { + item2.put("text", functions2.getName());//是目录就没链接 + item2.put("icon", functions2.getIcon()); + for (Functions functions3 : dataList3) { + item2.put("state", "closed"); //如果不为空,节点不展开 + JSONObject item3 = new JSONObject(); + item3.put("id", functions3.getId()); + item3.put("text", functions3.getName()); + item3.put("icon", functions3.getIcon()); + // + dataArray3.add(item3); + item2.put("children", dataArray3); + } + } else { + //不是目录,有链接 + item2.put("text", functions2.getName()); + item2.put("icon", functions2.getIcon()); + item2.put("url", functions2.getUrl()); + dataArray2.add(item2); + item1.put("children", dataArray2); + } + } else { + //不是目录,有链接 + } + } + } else { + //不是目录,有链接 + item1.put("text", functions1.getName()); + item1.put("icon", functions1.getIcon()); + item1.put("url", functions1.getUrl()); + dataArray1.add(item1); + item.put("children", dataArray1); + } + } else { + //不是目录,有链接 + } + } + } else { + //不是目录,有链接 + item.put("text", functions.getName()); + item.put("icon", functions.getIcon()); + item.put("url", functions.getUrl()); + } + dataArray.add(item); + } + } + } catch (DataAccessException e) { + logger.error(">>>>>>>>>>>>>>>>>>>查找应用异常", e); + } + return dataArray; + } + + /** + * 角色对应功能显示 + * @param request + * @return + */ + @PostMapping(value = "/findRoleFunctions") + public JSONArray findRoleFunctions(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId, + HttpServletRequest request)throws Exception { + JSONArray arr = new JSONArray(); + try { + List dataListFun = functionsService.findRoleFunctions("0"); + //开始拼接json数据 + JSONObject outer = new JSONObject(); + outer.put("id", 1); + outer.put("text", "功能列表"); + outer.put("state", "open"); + //存放数据json数组 + JSONArray dataArray = new JSONArray(); + if (null != dataListFun) { + //根据条件从列表里面移除"系统管理" + List dataList = new ArrayList(); + for (Functions fun : dataListFun) { + //从session中获取租户id + String loginName = null; + Object userInfo = request.getSession().getAttribute("user"); + if(userInfo != null) { + User user = (User) userInfo; + loginName = user.getLoginame(); + } + if(("admin").equals(loginName)) { + dataList.add(fun); + } else { + if(!("系统管理").equals(fun.getName())) { + dataList.add(fun); + } + } + } + + //筛选功能列表 + for (Functions functions : dataList) { + JSONObject item = new JSONObject(); + item.put("id", functions.getId()); + item.put("text", functions.getName()); + + //勾选判断1 + Boolean flag = false; + try { + flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions.getId().toString() + "]"); + } catch (Exception e) { + logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); + } + if (flag == true) { + item.put("checked", true); + } + //结束 + + List dataList1 = functionsService.findRoleFunctions(functions.getNumber()); + JSONArray dataArray1 = new JSONArray(); + if (null != dataList1) { + + for (Functions functions1 : dataList1) { + item.put("state", "open"); //如果不为空,节点不展开 + JSONObject item1 = new JSONObject(); + item1.put("id", functions1.getId()); + item1.put("text", functions1.getName()); + + //勾选判断2 + //Boolean flag = false; + try { + flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions1.getId().toString() + "]"); + } catch (Exception e) { + logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); + } + if (flag == true) { + item1.put("checked", true); + } + //结束 + + List dataList2 = functionsService.findRoleFunctions(functions1.getNumber()); + JSONArray dataArray2 = new JSONArray(); + if (null != dataList2) { + + for (Functions functions2 : dataList2) { + item1.put("state", "closed"); //如果不为空,节点不展开 + JSONObject item2 = new JSONObject(); + item2.put("id", functions2.getId()); + item2.put("text", functions2.getName()); + + //勾选判断3 + //Boolean flag = false; + try { + flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions2.getId().toString() + "]"); + } catch (Exception e) { + logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); + } + if (flag == true) { + item2.put("checked", true); + } + //结束 + + List dataList3 = functionsService.findRoleFunctions(functions2.getNumber()); + JSONArray dataArray3 = new JSONArray(); + if (null != dataList3) { + + for (Functions functions3 : dataList3) { + item2.put("state", "closed"); //如果不为空,节点不展开 + JSONObject item3 = new JSONObject(); + item3.put("id", functions3.getId()); + item3.put("text", functions3.getName()); + + //勾选判断4 + //Boolean flag = false; + try { + flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions3.getId().toString() + "]"); + } catch (Exception e) { + logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); + } + if (flag == true) { + item3.put("checked", true); + } + //结束 + + dataArray3.add(item3); + item2.put("children", dataArray3); + } + } + + dataArray2.add(item2); + item1.put("children", dataArray2); + } + } + + dataArray1.add(item1); + item.put("children", dataArray1); + } + + } + dataArray.add(item); + } + outer.put("children", dataArray); + arr.add(outer); + } + } catch (Exception e) { + e.printStackTrace(); + } + return arr; + } + + /** + * 根据id列表查找功能信息 + * @param functionsIds + * @param request + * @return + */ + @GetMapping(value = "/findByIds") + public BaseResponseInfo findByIds(@RequestParam("functionsIds") String functionsIds, + HttpServletRequest request)throws Exception { + BaseResponseInfo res = new BaseResponseInfo(); + try { + List dataList = functionsService.findByIds(functionsIds); + JSONObject outer = new JSONObject(); + outer.put("total", dataList.size()); + //存放数据json数组 + JSONArray dataArray = new JSONArray(); + if (null != dataList) { + for (Functions functions : dataList) { + JSONObject item = new JSONObject(); + item.put("Id", functions.getId()); + item.put("Name", functions.getName()); + item.put("PushBtn", functions.getPushbtn()); + item.put("op", 1); + dataArray.add(item); + } + } + outer.put("rows", dataArray); + res.code = 200; + res.data = outer; + } catch (Exception e) { + e.printStackTrace(); + res.code = 500; + res.data = "获取数据失败"; + } + return res; + } + /** + * create by: qiankunpingtai + * website:https://qiankunpingtai.cn + * description: + * 批量删除功能模块信息 + * create time: 2019/3/29 11:15 + * @Param: ids + * @return java.lang.Object + */ + @RequestMapping(value = "/batchDeleteFunctionsByIds") + public Object batchDeleteFunctionsByIds(@RequestParam("ids") String ids) throws Exception { + JSONObject result = ExceptionConstants.standardSuccess(); + int i= functionsService.batchDeleteFunctionsByIds(ids); + if(i<1){ + logger.error("异常码[{}],异常提示[{}],参数,ids[{}]", + ExceptionConstants.FUNCTIONS_DELETE_FAILED_CODE,ExceptionConstants.FUNCTIONS_DELETE_FAILED_MSG,ids); + throw new BusinessRunTimeException(ExceptionConstants.FUNCTIONS_DELETE_FAILED_CODE, + ExceptionConstants.FUNCTIONS_DELETE_FAILED_MSG); + } + return result; + } +} diff --git a/src/main/java/com/jsh/erp/datasource/entities/Tenant.java b/src/main/java/com/jsh/erp/datasource/entities/Tenant.java index 80cdec8f..bbcd85f5 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Tenant.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Tenant.java @@ -1,197 +1,197 @@ -package com.jsh.erp.datasource.entities; - -import java.util.Date; - -public class Tenant { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.id - * - * @mbggenerated - */ - private Long id; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.tenant_id - * - * @mbggenerated - */ - private Long tenantId; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.login_name - * - * @mbggenerated - */ - private String loginName; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.user_num_limit - * - * @mbggenerated - */ - private Integer userNumLimit; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.bills_num_limit - * - * @mbggenerated - */ - private Integer billsNumLimit; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_tenant.create_time - * - * @mbggenerated - */ - private Date createTime; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.id - * - * @return the value of jsh_tenant.id - * - * @mbggenerated - */ - public Long getId() { - return id; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.id - * - * @param id the value for jsh_tenant.id - * - * @mbggenerated - */ - public void setId(Long id) { - this.id = id; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.tenant_id - * - * @return the value of jsh_tenant.tenant_id - * - * @mbggenerated - */ - public Long getTenantId() { - return tenantId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.tenant_id - * - * @param tenantId the value for jsh_tenant.tenant_id - * - * @mbggenerated - */ - public void setTenantId(Long tenantId) { - this.tenantId = tenantId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.login_name - * - * @return the value of jsh_tenant.login_name - * - * @mbggenerated - */ - public String getLoginName() { - return loginName; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.login_name - * - * @param loginName the value for jsh_tenant.login_name - * - * @mbggenerated - */ - public void setLoginName(String loginName) { - this.loginName = loginName == null ? null : loginName.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.user_num_limit - * - * @return the value of jsh_tenant.user_num_limit - * - * @mbggenerated - */ - public Integer getUserNumLimit() { - return userNumLimit; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.user_num_limit - * - * @param userNumLimit the value for jsh_tenant.user_num_limit - * - * @mbggenerated - */ - public void setUserNumLimit(Integer userNumLimit) { - this.userNumLimit = userNumLimit; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.bills_num_limit - * - * @return the value of jsh_tenant.bills_num_limit - * - * @mbggenerated - */ - public Integer getBillsNumLimit() { - return billsNumLimit; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.bills_num_limit - * - * @param billsNumLimit the value for jsh_tenant.bills_num_limit - * - * @mbggenerated - */ - public void setBillsNumLimit(Integer billsNumLimit) { - this.billsNumLimit = billsNumLimit; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_tenant.create_time - * - * @return the value of jsh_tenant.create_time - * - * @mbggenerated - */ - public Date getCreateTime() { - return createTime; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_tenant.create_time - * - * @param createTime the value for jsh_tenant.create_time - * - * @mbggenerated - */ - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } +package com.jsh.erp.datasource.entities; + +import java.util.Date; + +public class Tenant { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.id + * + * @mbggenerated + */ + private Long id; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.tenant_id + * + * @mbggenerated + */ + private Long tenantId; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.login_name + * + * @mbggenerated + */ + private String loginName; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.user_num_limit + * + * @mbggenerated + */ + private Integer userNumLimit; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.bills_num_limit + * + * @mbggenerated + */ + private Integer billsNumLimit; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column jsh_tenant.create_time + * + * @mbggenerated + */ + private Date createTime; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.id + * + * @return the value of jsh_tenant.id + * + * @mbggenerated + */ + public Long getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.id + * + * @param id the value for jsh_tenant.id + * + * @mbggenerated + */ + public void setId(Long id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.tenant_id + * + * @return the value of jsh_tenant.tenant_id + * + * @mbggenerated + */ + public Long getTenantId() { + return tenantId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.tenant_id + * + * @param tenantId the value for jsh_tenant.tenant_id + * + * @mbggenerated + */ + public void setTenantId(Long tenantId) { + this.tenantId = tenantId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.login_name + * + * @return the value of jsh_tenant.login_name + * + * @mbggenerated + */ + public String getLoginName() { + return loginName; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.login_name + * + * @param loginName the value for jsh_tenant.login_name + * + * @mbggenerated + */ + public void setLoginName(String loginName) { + this.loginName = loginName == null ? null : loginName.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.user_num_limit + * + * @return the value of jsh_tenant.user_num_limit + * + * @mbggenerated + */ + public Integer getUserNumLimit() { + return userNumLimit; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.user_num_limit + * + * @param userNumLimit the value for jsh_tenant.user_num_limit + * + * @mbggenerated + */ + public void setUserNumLimit(Integer userNumLimit) { + this.userNumLimit = userNumLimit; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.bills_num_limit + * + * @return the value of jsh_tenant.bills_num_limit + * + * @mbggenerated + */ + public Integer getBillsNumLimit() { + return billsNumLimit; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.bills_num_limit + * + * @param billsNumLimit the value for jsh_tenant.bills_num_limit + * + * @mbggenerated + */ + public void setBillsNumLimit(Integer billsNumLimit) { + this.billsNumLimit = billsNumLimit; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column jsh_tenant.create_time + * + * @return the value of jsh_tenant.create_time + * + * @mbggenerated + */ + public Date getCreateTime() { + return createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column jsh_tenant.create_time + * + * @param createTime the value for jsh_tenant.create_time + * + * @mbggenerated + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/entities/TenantExample.java b/src/main/java/com/jsh/erp/datasource/entities/TenantExample.java index 4c4834e1..c196986b 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/TenantExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/TenantExample.java @@ -1,673 +1,673 @@ -package com.jsh.erp.datasource.entities; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class TenantExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public TenantExample() { - oredCriteria = new ArrayList(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andTenantIdIsNull() { - addCriterion("tenant_id is null"); - return (Criteria) this; - } - - public Criteria andTenantIdIsNotNull() { - addCriterion("tenant_id is not null"); - return (Criteria) this; - } - - public Criteria andTenantIdEqualTo(Long value) { - addCriterion("tenant_id =", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdNotEqualTo(Long value) { - addCriterion("tenant_id <>", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdGreaterThan(Long value) { - addCriterion("tenant_id >", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdGreaterThanOrEqualTo(Long value) { - addCriterion("tenant_id >=", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdLessThan(Long value) { - addCriterion("tenant_id <", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdLessThanOrEqualTo(Long value) { - addCriterion("tenant_id <=", value, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdIn(List values) { - addCriterion("tenant_id in", values, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdNotIn(List values) { - addCriterion("tenant_id not in", values, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdBetween(Long value1, Long value2) { - addCriterion("tenant_id between", value1, value2, "tenantId"); - return (Criteria) this; - } - - public Criteria andTenantIdNotBetween(Long value1, Long value2) { - addCriterion("tenant_id not between", value1, value2, "tenantId"); - return (Criteria) this; - } - - public Criteria andLoginNameIsNull() { - addCriterion("login_name is null"); - return (Criteria) this; - } - - public Criteria andLoginNameIsNotNull() { - addCriterion("login_name is not null"); - return (Criteria) this; - } - - public Criteria andLoginNameEqualTo(String value) { - addCriterion("login_name =", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameNotEqualTo(String value) { - addCriterion("login_name <>", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameGreaterThan(String value) { - addCriterion("login_name >", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameGreaterThanOrEqualTo(String value) { - addCriterion("login_name >=", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameLessThan(String value) { - addCriterion("login_name <", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameLessThanOrEqualTo(String value) { - addCriterion("login_name <=", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameLike(String value) { - addCriterion("login_name like", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameNotLike(String value) { - addCriterion("login_name not like", value, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameIn(List values) { - addCriterion("login_name in", values, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameNotIn(List values) { - addCriterion("login_name not in", values, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameBetween(String value1, String value2) { - addCriterion("login_name between", value1, value2, "loginName"); - return (Criteria) this; - } - - public Criteria andLoginNameNotBetween(String value1, String value2) { - addCriterion("login_name not between", value1, value2, "loginName"); - return (Criteria) this; - } - - public Criteria andUserNumLimitIsNull() { - addCriterion("user_num_limit is null"); - return (Criteria) this; - } - - public Criteria andUserNumLimitIsNotNull() { - addCriterion("user_num_limit is not null"); - return (Criteria) this; - } - - public Criteria andUserNumLimitEqualTo(Integer value) { - addCriterion("user_num_limit =", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitNotEqualTo(Integer value) { - addCriterion("user_num_limit <>", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitGreaterThan(Integer value) { - addCriterion("user_num_limit >", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitGreaterThanOrEqualTo(Integer value) { - addCriterion("user_num_limit >=", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitLessThan(Integer value) { - addCriterion("user_num_limit <", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitLessThanOrEqualTo(Integer value) { - addCriterion("user_num_limit <=", value, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitIn(List values) { - addCriterion("user_num_limit in", values, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitNotIn(List values) { - addCriterion("user_num_limit not in", values, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitBetween(Integer value1, Integer value2) { - addCriterion("user_num_limit between", value1, value2, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andUserNumLimitNotBetween(Integer value1, Integer value2) { - addCriterion("user_num_limit not between", value1, value2, "userNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitIsNull() { - addCriterion("bills_num_limit is null"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitIsNotNull() { - addCriterion("bills_num_limit is not null"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitEqualTo(Integer value) { - addCriterion("bills_num_limit =", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitNotEqualTo(Integer value) { - addCriterion("bills_num_limit <>", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitGreaterThan(Integer value) { - addCriterion("bills_num_limit >", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitGreaterThanOrEqualTo(Integer value) { - addCriterion("bills_num_limit >=", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitLessThan(Integer value) { - addCriterion("bills_num_limit <", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitLessThanOrEqualTo(Integer value) { - addCriterion("bills_num_limit <=", value, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitIn(List values) { - addCriterion("bills_num_limit in", values, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitNotIn(List values) { - addCriterion("bills_num_limit not in", values, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitBetween(Integer value1, Integer value2) { - addCriterion("bills_num_limit between", value1, value2, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andBillsNumLimitNotBetween(Integer value1, Integer value2) { - addCriterion("bills_num_limit not between", value1, value2, "billsNumLimit"); - return (Criteria) this; - } - - public Criteria andCreateTimeIsNull() { - addCriterion("create_time is null"); - return (Criteria) this; - } - - public Criteria andCreateTimeIsNotNull() { - addCriterion("create_time is not null"); - return (Criteria) this; - } - - public Criteria andCreateTimeEqualTo(Date value) { - addCriterion("create_time =", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotEqualTo(Date value) { - addCriterion("create_time <>", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThan(Date value) { - addCriterion("create_time >", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { - addCriterion("create_time >=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThan(Date value) { - addCriterion("create_time <", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThanOrEqualTo(Date value) { - addCriterion("create_time <=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeIn(List values) { - addCriterion("create_time in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotIn(List values) { - addCriterion("create_time not in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeBetween(Date value1, Date value2) { - addCriterion("create_time between", value1, value2, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotBetween(Date value1, Date value2) { - addCriterion("create_time not between", value1, value2, "createTime"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_tenant - * - * @mbggenerated do_not_delete_during_merge - */ - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } +package com.jsh.erp.datasource.entities; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TenantExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public TenantExample() { + oredCriteria = new ArrayList(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTenantIdIsNull() { + addCriterion("tenant_id is null"); + return (Criteria) this; + } + + public Criteria andTenantIdIsNotNull() { + addCriterion("tenant_id is not null"); + return (Criteria) this; + } + + public Criteria andTenantIdEqualTo(Long value) { + addCriterion("tenant_id =", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdNotEqualTo(Long value) { + addCriterion("tenant_id <>", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdGreaterThan(Long value) { + addCriterion("tenant_id >", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdGreaterThanOrEqualTo(Long value) { + addCriterion("tenant_id >=", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdLessThan(Long value) { + addCriterion("tenant_id <", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdLessThanOrEqualTo(Long value) { + addCriterion("tenant_id <=", value, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdIn(List values) { + addCriterion("tenant_id in", values, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdNotIn(List values) { + addCriterion("tenant_id not in", values, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdBetween(Long value1, Long value2) { + addCriterion("tenant_id between", value1, value2, "tenantId"); + return (Criteria) this; + } + + public Criteria andTenantIdNotBetween(Long value1, Long value2) { + addCriterion("tenant_id not between", value1, value2, "tenantId"); + return (Criteria) this; + } + + public Criteria andLoginNameIsNull() { + addCriterion("login_name is null"); + return (Criteria) this; + } + + public Criteria andLoginNameIsNotNull() { + addCriterion("login_name is not null"); + return (Criteria) this; + } + + public Criteria andLoginNameEqualTo(String value) { + addCriterion("login_name =", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameNotEqualTo(String value) { + addCriterion("login_name <>", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameGreaterThan(String value) { + addCriterion("login_name >", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameGreaterThanOrEqualTo(String value) { + addCriterion("login_name >=", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameLessThan(String value) { + addCriterion("login_name <", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameLessThanOrEqualTo(String value) { + addCriterion("login_name <=", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameLike(String value) { + addCriterion("login_name like", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameNotLike(String value) { + addCriterion("login_name not like", value, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameIn(List values) { + addCriterion("login_name in", values, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameNotIn(List values) { + addCriterion("login_name not in", values, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameBetween(String value1, String value2) { + addCriterion("login_name between", value1, value2, "loginName"); + return (Criteria) this; + } + + public Criteria andLoginNameNotBetween(String value1, String value2) { + addCriterion("login_name not between", value1, value2, "loginName"); + return (Criteria) this; + } + + public Criteria andUserNumLimitIsNull() { + addCriterion("user_num_limit is null"); + return (Criteria) this; + } + + public Criteria andUserNumLimitIsNotNull() { + addCriterion("user_num_limit is not null"); + return (Criteria) this; + } + + public Criteria andUserNumLimitEqualTo(Integer value) { + addCriterion("user_num_limit =", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitNotEqualTo(Integer value) { + addCriterion("user_num_limit <>", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitGreaterThan(Integer value) { + addCriterion("user_num_limit >", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitGreaterThanOrEqualTo(Integer value) { + addCriterion("user_num_limit >=", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitLessThan(Integer value) { + addCriterion("user_num_limit <", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitLessThanOrEqualTo(Integer value) { + addCriterion("user_num_limit <=", value, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitIn(List values) { + addCriterion("user_num_limit in", values, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitNotIn(List values) { + addCriterion("user_num_limit not in", values, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitBetween(Integer value1, Integer value2) { + addCriterion("user_num_limit between", value1, value2, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andUserNumLimitNotBetween(Integer value1, Integer value2) { + addCriterion("user_num_limit not between", value1, value2, "userNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitIsNull() { + addCriterion("bills_num_limit is null"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitIsNotNull() { + addCriterion("bills_num_limit is not null"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitEqualTo(Integer value) { + addCriterion("bills_num_limit =", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitNotEqualTo(Integer value) { + addCriterion("bills_num_limit <>", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitGreaterThan(Integer value) { + addCriterion("bills_num_limit >", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitGreaterThanOrEqualTo(Integer value) { + addCriterion("bills_num_limit >=", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitLessThan(Integer value) { + addCriterion("bills_num_limit <", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitLessThanOrEqualTo(Integer value) { + addCriterion("bills_num_limit <=", value, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitIn(List values) { + addCriterion("bills_num_limit in", values, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitNotIn(List values) { + addCriterion("bills_num_limit not in", values, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitBetween(Integer value1, Integer value2) { + addCriterion("bills_num_limit between", value1, value2, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andBillsNumLimitNotBetween(Integer value1, Integer value2) { + addCriterion("bills_num_limit not between", value1, value2, "billsNumLimit"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table jsh_tenant + * + * @mbggenerated do_not_delete_during_merge + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/TenantMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/TenantMapper.java index e881f774..04069777 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/TenantMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/TenantMapper.java @@ -1,96 +1,96 @@ -package com.jsh.erp.datasource.mappers; - -import com.jsh.erp.datasource.entities.Tenant; -import com.jsh.erp.datasource.entities.TenantExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface TenantMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int countByExample(TenantExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int deleteByExample(TenantExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int deleteByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int insert(Tenant record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int insertSelective(Tenant record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - List selectByExample(TenantExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - Tenant selectByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int updateByExampleSelective(@Param("record") Tenant record, @Param("example") TenantExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int updateByExample(@Param("record") Tenant record, @Param("example") TenantExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int updateByPrimaryKeySelective(Tenant record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_tenant - * - * @mbggenerated - */ - int updateByPrimaryKey(Tenant record); +package com.jsh.erp.datasource.mappers; + +import com.jsh.erp.datasource.entities.Tenant; +import com.jsh.erp.datasource.entities.TenantExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TenantMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int countByExample(TenantExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int deleteByExample(TenantExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int deleteByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int insert(Tenant record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int insertSelective(Tenant record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + List selectByExample(TenantExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + Tenant selectByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int updateByExampleSelective(@Param("record") Tenant record, @Param("example") TenantExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int updateByExample(@Param("record") Tenant record, @Param("example") TenantExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int updateByPrimaryKeySelective(Tenant record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table jsh_tenant + * + * @mbggenerated + */ + int updateByPrimaryKey(Tenant record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/TenantMapperEx.java b/src/main/java/com/jsh/erp/datasource/mappers/TenantMapperEx.java index be52df45..39af69e7 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/TenantMapperEx.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/TenantMapperEx.java @@ -1,17 +1,17 @@ -package com.jsh.erp.datasource.mappers; - -import com.jsh.erp.datasource.entities.Tenant; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface TenantMapperEx { - - List selectByConditionTenant( - @Param("loginName") String loginName, - @Param("offset") Integer offset, - @Param("rows") Integer rows); - - Long countsByTenant( - @Param("loginName") String loginName); +package com.jsh.erp.datasource.mappers; + +import com.jsh.erp.datasource.entities.Tenant; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface TenantMapperEx { + + List selectByConditionTenant( + @Param("loginName") String loginName, + @Param("offset") Integer offset, + @Param("rows") Integer rows); + + Long countsByTenant( + @Param("loginName") String loginName); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/service/ResourceInfo.java b/src/main/java/com/jsh/erp/service/ResourceInfo.java index 352d7bea..be14a336 100644 --- a/src/main/java/com/jsh/erp/service/ResourceInfo.java +++ b/src/main/java/com/jsh/erp/service/ResourceInfo.java @@ -1,39 +1,39 @@ -package com.jsh.erp.service; - -import java.lang.annotation.*; - -/** - * @author jishenghua 2018-10-7 15:25:39 - * user-5 - * role-10 - * depot-20 - * log-25 - * functions-30 - * inOutItem-35 - * unit-40 - * person-45 - * userBusiness-50 - * systemConfig-55 - * materialProperty-60 - * account-65 - * supplier-70 - * materialCategory-75 - * material-80 - * depotHead-85 - * depotItem-90 - * accountHead-95 - * accountItem-100 - * serialNumber-105 - * organization-110 - * orgaUserRel-115 - * tenant-120 - * msg-125 - */ -@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE}) -@Retention(RetentionPolicy.RUNTIME) -@Inherited -@Documented -public @interface ResourceInfo { - String value(); - int type(); -} +package com.jsh.erp.service; + +import java.lang.annotation.*; + +/** + * @author jishenghua 2018-10-7 15:25:39 + * user-5 + * role-10 + * depot-20 + * log-25 + * functions-30 + * inOutItem-35 + * unit-40 + * person-45 + * userBusiness-50 + * systemConfig-55 + * materialProperty-60 + * account-65 + * supplier-70 + * materialCategory-75 + * material-80 + * depotHead-85 + * depotItem-90 + * accountHead-95 + * accountItem-100 + * serialNumber-105 + * organization-110 + * orgaUserRel-115 + * tenant-120 + * msg-125 + */ +@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE}) +@Retention(RetentionPolicy.RUNTIME) +@Inherited +@Documented +public @interface ResourceInfo { + String value(); + int type(); +} diff --git a/src/main/java/com/jsh/erp/service/tenant/TenantComponent.java b/src/main/java/com/jsh/erp/service/tenant/TenantComponent.java index 60e6b597..6e960838 100644 --- a/src/main/java/com/jsh/erp/service/tenant/TenantComponent.java +++ b/src/main/java/com/jsh/erp/service/tenant/TenantComponent.java @@ -1,71 +1,71 @@ -package com.jsh.erp.service.tenant; - -import com.jsh.erp.service.ICommonQuery; -import com.jsh.erp.service.user.UserResource; -import com.jsh.erp.service.user.UserService; -import com.jsh.erp.utils.Constants; -import com.jsh.erp.utils.QueryUtils; -import com.jsh.erp.utils.StringUtil; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import java.util.List; -import java.util.Map; - -@Service(value = "tenant_component") -@TenantResource -public class TenantComponent implements ICommonQuery { - - @Resource - private TenantService tenantService; - - @Override - public Object selectOne(Long id) throws Exception { - return tenantService.getTenant(id); - } - - @Override - public List select(Map map)throws Exception { - return getTenantList(map); - } - - private List getTenantList(Map map)throws Exception { - String search = map.get(Constants.SEARCH); - String loginName = StringUtil.getInfo(search, "loginName"); - return tenantService.select(loginName, QueryUtils.offset(map), QueryUtils.rows(map)); - } - - @Override - public Long counts(Map map)throws Exception { - String search = map.get(Constants.SEARCH); - String loginName = StringUtil.getInfo(search, "loginName"); - return tenantService.countTenant(loginName); - } - - @Override - public int insert(String beanJson, HttpServletRequest request)throws Exception { - return tenantService.insertTenant(beanJson, request); - } - - @Override - public int update(String beanJson, Long id)throws Exception { - return tenantService.updateTenant(beanJson, id); - } - - @Override - public int delete(Long id)throws Exception { - return tenantService.deleteTenant(id); - } - - @Override - public int batchDelete(String ids)throws Exception { - return tenantService.batchDeleteTenant(ids); - } - - @Override - public int checkIsNameExist(Long id, String name)throws Exception { - return tenantService.checkIsNameExist(id, name); - } - -} +package com.jsh.erp.service.tenant; + +import com.jsh.erp.service.ICommonQuery; +import com.jsh.erp.service.user.UserResource; +import com.jsh.erp.service.user.UserService; +import com.jsh.erp.utils.Constants; +import com.jsh.erp.utils.QueryUtils; +import com.jsh.erp.utils.StringUtil; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import java.util.List; +import java.util.Map; + +@Service(value = "tenant_component") +@TenantResource +public class TenantComponent implements ICommonQuery { + + @Resource + private TenantService tenantService; + + @Override + public Object selectOne(Long id) throws Exception { + return tenantService.getTenant(id); + } + + @Override + public List select(Map map)throws Exception { + return getTenantList(map); + } + + private List getTenantList(Map map)throws Exception { + String search = map.get(Constants.SEARCH); + String loginName = StringUtil.getInfo(search, "loginName"); + return tenantService.select(loginName, QueryUtils.offset(map), QueryUtils.rows(map)); + } + + @Override + public Long counts(Map map)throws Exception { + String search = map.get(Constants.SEARCH); + String loginName = StringUtil.getInfo(search, "loginName"); + return tenantService.countTenant(loginName); + } + + @Override + public int insert(String beanJson, HttpServletRequest request)throws Exception { + return tenantService.insertTenant(beanJson, request); + } + + @Override + public int update(String beanJson, Long id)throws Exception { + return tenantService.updateTenant(beanJson, id); + } + + @Override + public int delete(Long id)throws Exception { + return tenantService.deleteTenant(id); + } + + @Override + public int batchDelete(String ids)throws Exception { + return tenantService.batchDeleteTenant(ids); + } + + @Override + public int checkIsNameExist(Long id, String name)throws Exception { + return tenantService.checkIsNameExist(id, name); + } + +} diff --git a/src/main/java/com/jsh/erp/service/tenant/TenantResource.java b/src/main/java/com/jsh/erp/service/tenant/TenantResource.java index c38deb64..eb83ae5f 100644 --- a/src/main/java/com/jsh/erp/service/tenant/TenantResource.java +++ b/src/main/java/com/jsh/erp/service/tenant/TenantResource.java @@ -1,15 +1,15 @@ -package com.jsh.erp.service.tenant; - -import com.jsh.erp.service.ResourceInfo; - -import java.lang.annotation.*; - -/** - * @author jishenghua qq752718920 2019-6-27 22:56:56 - */ -@ResourceInfo(value = "tenant", type = 120) -@Inherited -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -public @interface TenantResource { -} +package com.jsh.erp.service.tenant; + +import com.jsh.erp.service.ResourceInfo; + +import java.lang.annotation.*; + +/** + * @author jishenghua qq752718920 2019-6-27 22:56:56 + */ +@ResourceInfo(value = "tenant", type = 120) +@Inherited +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +public @interface TenantResource { +} diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 7c1675f8..86291bb2 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -1,34 +1,34 @@ - - - - - - - ${LOG_PATTERN} - - - - - ${LOG_FILE}.log - - ${LOG_PATTERN} - - - ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log - 10 - 1GB - - 100MB - - - - - - - - - - - - + + + + + + + ${LOG_PATTERN} + + + + + ${LOG_FILE}.log + + ${LOG_PATTERN} + + + ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log + 10 + 1GB + + 100MB + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/FunctionsMapper.xml b/src/main/resources/mapper_xml/FunctionsMapper.xml index 82ab5d36..3fd63173 100644 --- a/src/main/resources/mapper_xml/FunctionsMapper.xml +++ b/src/main/resources/mapper_xml/FunctionsMapper.xml @@ -1,5 +1,5 @@ - - + + - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - id, tenant_id, login_name, user_num_limit, bills_num_limit, create_time - - - - - - delete from jsh_tenant - where id = #{id,jdbcType=BIGINT} - - - - delete from jsh_tenant - - - - - - - insert into jsh_tenant (id, tenant_id, login_name, - user_num_limit, bills_num_limit, create_time - ) - values (#{id,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, #{loginName,jdbcType=VARCHAR}, - #{userNumLimit,jdbcType=INTEGER}, #{billsNumLimit,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP} - ) - - - - insert into jsh_tenant - - - id, - - - tenant_id, - - - login_name, - - - user_num_limit, - - - bills_num_limit, - - - create_time, - - - - - #{id,jdbcType=BIGINT}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{loginName,jdbcType=VARCHAR}, - - - #{userNumLimit,jdbcType=INTEGER}, - - - #{billsNumLimit,jdbcType=INTEGER}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - - - - - update jsh_tenant - - - id = #{record.id,jdbcType=BIGINT}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - login_name = #{record.loginName,jdbcType=VARCHAR}, - - - user_num_limit = #{record.userNumLimit,jdbcType=INTEGER}, - - - bills_num_limit = #{record.billsNumLimit,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - - - - - - - update jsh_tenant - set id = #{record.id,jdbcType=BIGINT}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - login_name = #{record.loginName,jdbcType=VARCHAR}, - user_num_limit = #{record.userNumLimit,jdbcType=INTEGER}, - bills_num_limit = #{record.billsNumLimit,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=TIMESTAMP} - - - - - - - update jsh_tenant - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - login_name = #{loginName,jdbcType=VARCHAR}, - - - user_num_limit = #{userNumLimit,jdbcType=INTEGER}, - - - bills_num_limit = #{billsNumLimit,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=BIGINT} - - - - update jsh_tenant - set tenant_id = #{tenantId,jdbcType=BIGINT}, - login_name = #{loginName,jdbcType=VARCHAR}, - user_num_limit = #{userNumLimit,jdbcType=INTEGER}, - bills_num_limit = #{billsNumLimit,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + id, tenant_id, login_name, user_num_limit, bills_num_limit, create_time + + + + + + delete from jsh_tenant + where id = #{id,jdbcType=BIGINT} + + + + delete from jsh_tenant + + + + + + + insert into jsh_tenant (id, tenant_id, login_name, + user_num_limit, bills_num_limit, create_time + ) + values (#{id,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, #{loginName,jdbcType=VARCHAR}, + #{userNumLimit,jdbcType=INTEGER}, #{billsNumLimit,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP} + ) + + + + insert into jsh_tenant + + + id, + + + tenant_id, + + + login_name, + + + user_num_limit, + + + bills_num_limit, + + + create_time, + + + + + #{id,jdbcType=BIGINT}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{loginName,jdbcType=VARCHAR}, + + + #{userNumLimit,jdbcType=INTEGER}, + + + #{billsNumLimit,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + + update jsh_tenant + + + id = #{record.id,jdbcType=BIGINT}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + login_name = #{record.loginName,jdbcType=VARCHAR}, + + + user_num_limit = #{record.userNumLimit,jdbcType=INTEGER}, + + + bills_num_limit = #{record.billsNumLimit,jdbcType=INTEGER}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + + + + + + + update jsh_tenant + set id = #{record.id,jdbcType=BIGINT}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + login_name = #{record.loginName,jdbcType=VARCHAR}, + user_num_limit = #{record.userNumLimit,jdbcType=INTEGER}, + bills_num_limit = #{record.billsNumLimit,jdbcType=INTEGER}, + create_time = #{record.createTime,jdbcType=TIMESTAMP} + + + + + + + update jsh_tenant + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + login_name = #{loginName,jdbcType=VARCHAR}, + + + user_num_limit = #{userNumLimit,jdbcType=INTEGER}, + + + bills_num_limit = #{billsNumLimit,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + + update jsh_tenant + set tenant_id = #{tenantId,jdbcType=BIGINT}, + login_name = #{loginName,jdbcType=VARCHAR}, + user_num_limit = #{userNumLimit,jdbcType=INTEGER}, + bills_num_limit = #{billsNumLimit,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file