diff --git a/docs/jsh_erp.sql b/docs/jsh_erp.sql index c558c2b9..3cfc5214 100644 --- a/docs/jsh_erp.sql +++ b/docs/jsh_erp.sql @@ -10,7 +10,7 @@ Target Server Type : MYSQL Target Server Version : 50704 File Encoding : 65001 -Date: 2020-02-21 00:05:36 +Date: 2020-07-21 01:35:41 */ SET FOREIGN_KEY_CHECKS=0; @@ -20,17 +20,17 @@ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- 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 '是否默认', + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `name` varchar(50) DEFAULT NULL COMMENT '名称', + `serial_no` varchar(50) DEFAULT NULL COMMENT '编号', + `initial_amount` decimal(24,6) DEFAULT NULL COMMENT '期初金额', + `current_amount` decimal(24,6) DEFAULT NULL COMMENT '当前余额', + `remark` varchar(100) DEFAULT NULL COMMENT '备注', + `is_default` 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='账户信息'; + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='账户信息'; -- ---------------------------- -- Records of jsh_account @@ -44,8 +44,8 @@ INSERT INTO `jsh_account` VALUES ('13', '账户1', 'abcd123', '0.000000', null, 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'); +INSERT INTO `jsh_account` VALUES ('17', '账户1', 'zzz111', '100.000000', '-1545.000000', 'aa', '', '63', '0'); +INSERT INTO `jsh_account` VALUES ('18', '账户2', '1234131324', '200.000000', '-1750.000000', 'bb', '\0', '63', '0'); -- ---------------------------- -- Table structure for jsh_accounthead @@ -173,7 +173,7 @@ CREATE TABLE `jsh_depot` ( `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='仓库表'; +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='仓库表'; -- ---------------------------- -- Records of jsh_depot @@ -191,8 +191,9 @@ INSERT INTO `jsh_depot` VALUES ('10', '仓库321342', '', null, null, '0', '', ' 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'); +INSERT INTO `jsh_depot` VALUES ('14', '仓库1', 'dizhi', '12.000000', '12.000000', '0', '2', '描述', '131', '63', '0', ''); +INSERT INTO `jsh_depot` VALUES ('15', '仓库2', '', null, null, '0', '', '', '131', '63', '0', '\0'); +INSERT INTO `jsh_depot` VALUES ('16', '仓库6', '', null, null, '0', '', '', null, '63', '0', null); -- ---------------------------- -- Table structure for jsh_depothead @@ -232,7 +233,7 @@ CREATE TABLE `jsh_depothead` ( KEY `FK2A80F214C4170B37` (`HandsPersonId`), KEY `FK2A80F214B610FC06` (`OrganId`), KEY `FK2A80F214AAE50527` (`AccountId`) -) ENGINE=InnoDB AUTO_INCREMENT=212 DEFAULT CHARSET=utf8 COMMENT='单据主表'; +) ENGINE=InnoDB AUTO_INCREMENT=219 DEFAULT CHARSET=utf8 COMMENT='单据主表'; -- ---------------------------- -- Records of jsh_depothead @@ -268,10 +269,16 @@ INSERT INTO `jsh_depothead` VALUES ('204', '出库', '其它', 'QTCK00000000310' INSERT INTO `jsh_depothead` VALUES ('205', '出库', '调拨', 'DBCK00000000311', 'DBCK00000000311', '季圣华', '2019-12-28 12:17:58', '2020-02-20 23:53:21', null, '63', null, '0.000000', '15.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); INSERT INTO `jsh_depothead` VALUES ('206', '其它', '组装单', 'ZZD00000000312', 'ZZD00000000312', '季圣华', '2019-12-28 12:18:09', '2020-02-20 23:54:02', null, '63', null, '0.000000', '0.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); INSERT INTO `jsh_depothead` VALUES ('207', '其它', '拆卸单', 'CXD00000000313', 'CXD00000000313', '季圣华', '2019-12-28 12:18:47', '2020-02-20 23:54:21', null, '63', null, '0.000000', '0.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('208', '出库', '零售', 'LSCK00000000314', 'LSCK00000000314', '季圣华', '2019-12-28 12:20:26', '2019-12-28 12:20:14', '60', '63', '17', '6.000000', '6.000000', '预付款', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); -INSERT INTO `jsh_depothead` VALUES ('209', '入库', '零售退货', 'LSTH00000000315', 'LSTH00000000315', '季圣华', '2019-12-28 12:20:39', '2019-12-28 12:20:29', '60', '63', '17', '-6.000000', '-6.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('208', '出库', '零售', 'LSCK00000000314', 'LSCK00000000314', '季圣华', '2019-12-28 12:20:26', '2019-12-28 12:20:14', '60', '63', '17', '15.000000', '15.000000', '预付款', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('209', '入库', '零售退货', 'LSTH00000000315', 'LSTH00000000315', '季圣华', '2019-12-28 12:20:39', '2019-12-28 12:20:29', '60', '63', '17', '-15.000000', '-15.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '0', '', '63', '0'); INSERT INTO `jsh_depothead` VALUES ('210', '入库', '采购', 'CGRK00000000318', 'CGRK00000000318', '季圣华', '2020-02-20 23:22:38', '2020-02-20 23:22:27', '57', '63', '17', '-110.000000', '-110.000000', '现付', '', '', null, '', '0.000000', '0.000000', '110.000000', null, null, null, null, '0', '', '63', '0'); INSERT INTO `jsh_depothead` VALUES ('211', '入库', '采购', 'CGRK00000000319', 'CGRK00000000319', '季圣华', '2020-02-20 23:54:48', '2020-02-20 23:54:33', '57', '63', '17', '-2400.000000', '-2400.000000', '现付', '', '', null, '', '0.000000', '0.000000', '2400.000000', null, '[\"undefined\"]', '[\"undefined\"]', null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('212', '入库', '采购', 'CGRK00000000320', 'CGRK00000000320', '季圣华', '2020-07-14 00:28:15', '2020-07-14 00:27:59', '57', '63', '17', '-535.000000', '-535.000000', '现付', '', '', null, '', '0.000000', '0.000000', '535.000000', null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('214', '出库', '销售', 'XSCK00000000321', 'XSCK00000000321', '季圣华', '2020-07-15 00:38:07', '2020-07-15 00:37:36', '58', '63', '17', '2400.000000', '2500.000000', '现付', '', '', null, '', '0.000000', '0.000000', '2500.000000', null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('215', '入库', '采购', 'CGRK00000000329', 'CGRK00000000329', '季圣华', '2020-07-21 00:35:16', '2020-07-21 00:35:05', '57', '63', '17', '-800.000000', '-800.000000', '现付', '', '', null, '', '0.000000', '0.000000', '800.000000', null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('216', '出库', '销售', 'XSCK00000000330', 'XSCK00000000330', '季圣华', '2020-07-21 00:35:37', '2020-07-21 00:35:26', '58', '63', '17', '308.000000', '308.000000', '现付', '', '', null, '', '0.000000', '0.000000', '308.000000', null, null, null, null, '0', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('217', '其它', '采购订单', 'CGDD00000000333', 'CGDD00000000333', '季圣华', '2020-07-21 01:15:15', '2020-07-21 01:15:07', '57', '63', null, '0.000000', '-96.000000', '现付', '', '', null, '', null, null, null, null, null, null, null, '2', '', '63', '0'); +INSERT INTO `jsh_depothead` VALUES ('218', '入库', '采购', 'CGRK00000000334', 'CGRK00000000334', '季圣华', '2020-07-21 01:15:32', '2020-07-21 01:15:28', '57', '63', '17', '-96.000000', '-96.000000', '现付', '', '', null, '', '0.000000', '0.000000', '96.000000', null, null, null, null, '0', 'CGDD00000000333', '63', '0'); -- ---------------------------- -- Table structure for jsh_depotitem @@ -309,7 +316,7 @@ CREATE TABLE `jsh_depotitem` ( KEY `FK2A819F474BB6190E` (`HeaderId`), KEY `FK2A819F479485B3F5` (`DepotId`), KEY `FK2A819F47729F5392` (`AnotherDepotId`) -) ENGINE=InnoDB AUTO_INCREMENT=232 DEFAULT CHARSET=utf8 COMMENT='单据子表'; +) ENGINE=InnoDB AUTO_INCREMENT=240 DEFAULT CHARSET=utf8 COMMENT='单据子表'; -- ---------------------------- -- Records of jsh_depotitem @@ -356,128 +363,137 @@ INSERT INTO `jsh_depotitem` VALUES ('224', '206', '568', '2', '个', '1.000000', INSERT INTO `jsh_depotitem` VALUES ('225', '206', '569', '3', '只', '1.000000', '1.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '普通子件', '63', '0'); INSERT INTO `jsh_depotitem` VALUES ('226', '207', '569', '3', '只', '1.000000', '1.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '组合件', '63', '0'); INSERT INTO `jsh_depotitem` VALUES ('227', '207', '568', '2', '个', '1.000000', '1.000000', '0.000000', '0.000000', '0.000000', '', null, null, '14', null, '0.000000', '0.000000', '0.000000', '', '', '', '', '', '普通子件', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('228', '208', '568', null, '个', '1.000000', '1.000000', '6.000000', '6.000000', '6.000000', '', null, null, '14', null, '0.000000', '0.000000', '6.000000', '', '', '', '', '', '', '63', '0'); -INSERT INTO `jsh_depotitem` VALUES ('229', '209', '568', null, '个', '1.000000', '1.000000', '6.000000', '6.000000', '6.000000', '', null, null, '14', null, '0.000000', '0.000000', '6.000000', '', '', '', '', '', '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('228', '208', '568', '2', '个', '1.000000', '1.000000', '15.000000', '15.000000', '15.000000', '', null, null, '14', null, '0.000000', '0.000000', '15.000000', '', '', '', '', '', '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('229', '209', '568', '2', '个', '1.000000', '1.000000', '15.000000', '15.000000', '15.000000', '', null, null, '14', null, '0.000000', '0.000000', '15.000000', '', '', '', '', '', '', '63', '0'); INSERT INTO `jsh_depotitem` VALUES ('230', '210', '587', '1', '个', '10.000000', '10.000000', '11.000000', '11.000000', '110.000000', '', null, null, '14', null, '0.000000', '0.000000', '110.000000', null, null, null, null, null, '', '63', '0'); INSERT INTO `jsh_depotitem` VALUES ('231', '211', '579', '8', '箱', '10.000000', '120.000000', '240.000000', '240.000000', '2400.000000', '', null, null, '14', null, '0.000000', '0.000000', '2400.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('232', '212', '587', '1', '个', '5.000000', '5.000000', '11.000000', '11.000000', '55.000000', '', null, null, '14', null, '0.000000', '0.000000', '55.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('233', '212', '570', '4', '个', '60.000000', '60.000000', '8.000000', '8.000000', '480.000000', '', null, null, '14', null, '0.000000', '0.000000', '480.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('234', '214', '570', '4', '个', '100.000000', '100.000000', '14.000000', '14.000000', '1400.000000', '', null, null, '14', null, '0.000000', '0.000000', '1400.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('235', '214', '587', '1', '个', '50.000000', '50.000000', '22.000000', '22.000000', '1100.000000', '', null, null, '14', null, '0.000000', '0.000000', '1100.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('236', '215', '570', '4', '个', '100.000000', '100.000000', '8.000000', '8.000000', '800.000000', '', null, null, '14', null, '0.000000', '0.000000', '800.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('237', '216', '570', '4', '个', '22.000000', '22.000000', '14.000000', '14.000000', '308.000000', '', null, null, '14', null, '0.000000', '0.000000', '308.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('238', '217', '570', '4', '个', '12.000000', '12.000000', '8.000000', '8.000000', '96.000000', '', null, null, '14', null, '0.000000', '0.000000', '96.000000', null, null, null, null, null, '', '63', '0'); +INSERT INTO `jsh_depotitem` VALUES ('239', '218', '570', '4', '个', '12.000000', '12.000000', '8.000000', '8.000000', '96.000000', '', null, null, '14', null, '0.000000', '0.000000', '96.000000', null, null, null, null, null, '', '63', '0'); -- ---------------------------- --- Table structure for jsh_functions +-- Table structure for jsh_function -- ---------------------------- -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 '功能按钮', +DROP TABLE IF EXISTS `jsh_function`; +CREATE TABLE `jsh_function` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `number` varchar(50) DEFAULT NULL COMMENT '编号', + `name` varchar(50) DEFAULT NULL COMMENT '名称', + `parent_number` 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 '类型', + `push_btn` 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='功能模块表'; + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='功能模块表'; -- ---------------------------- --- Records of jsh_functions +-- Records of jsh_function -- ---------------------------- -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 ('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'); -INSERT INTO `jsh_functions` VALUES ('245', '000107', '插件管理', '0001', '/pages/manage/plugin.html', '\0', '0170', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('1', '0001', '系统管理', '0', '', '', '0910', '', '电脑版', '', 'icon-settings', '0'); +INSERT INTO `jsh_function` VALUES ('13', '000102', '角色管理', '0001', '/pages/manage/role.html', '\0', '0130', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('14', '000103', '用户管理', '0001', '/pages/manage/user.html', '\0', '0140', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('15', '000104', '日志管理', '0001', '/pages/manage/log.html', '\0', '0160', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('16', '000105', '功能管理', '0001', '/pages/manage/functions.html', '\0', '0135', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('21', '0101', '商品管理', '0', '', '\0', '0620', '', '电脑版', null, 'icon-social-dropbox', '0'); +INSERT INTO `jsh_function` VALUES ('22', '010101', '商品类别', '0101', '/pages/materials/materialcategory.html', '\0', '0230', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('23', '010102', '商品信息', '0101', '/pages/materials/material.html', '\0', '0240', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('24', '0102', '基本资料', '0', '', '\0', '0750', '', '电脑版', null, 'icon-grid', '0'); +INSERT INTO `jsh_function` VALUES ('25', '01020101', '供应商信息', '0102', '/pages/manage/vendor.html', '\0', '0260', '', '电脑版', '1,2', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('26', '010202', '仓库信息', '0102', '/pages/manage/depot.html', '\0', '0270', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('31', '010206', '经手人管理', '0102', '/pages/materials/person.html', '\0', '0284', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('32', '0502', '采购管理', '0', '', '\0', '0330', '', '电脑版', '', 'icon-loop', '0'); +INSERT INTO `jsh_function` VALUES ('33', '050201', '采购入库', '0502', '/pages/materials/purchase_in_list.html', '\0', '0340', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('38', '0603', '销售管理', '0', '', '\0', '0390', '', '电脑版', '', 'icon-briefcase', '0'); +INSERT INTO `jsh_function` VALUES ('40', '080107', '调拨出库', '0801', '/pages/materials/allocation_out_list.html', '\0', '0807', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('41', '060303', '销售出库', '0603', '/pages/materials/sale_out_list.html', '\0', '0394', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('44', '0704', '财务管理', '0', '', '\0', '0450', '', '电脑版', '', 'icon-map', '0'); +INSERT INTO `jsh_function` VALUES ('59', '030101', '库存状况', '0301', '/pages/reports/in_out_stock_report.html', '\0', '0600', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('194', '010204', '收支项目', '0102', '/pages/manage/inOutItem.html', '\0', '0282', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('195', '010205', '结算账户', '0102', '/pages/manage/account.html', '\0', '0283', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('197', '070402', '收入单', '0704', '/pages/financial/item_in.html', '\0', '0465', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('198', '0301', '报表查询', '0', '', '\0', '0570', '', '电脑版', null, 'icon-pie-chart', '0'); +INSERT INTO `jsh_function` VALUES ('199', '050204', '采购退货', '0502', '/pages/materials/purchase_back_list.html', '\0', '0345', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('200', '060305', '销售退货', '0603', '/pages/materials/sale_back_list.html', '\0', '0396', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('201', '080103', '其它入库', '0801', '/pages/materials/other_in_list.html', '\0', '0803', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('202', '080105', '其它出库', '0801', '/pages/materials/other_out_list.html', '\0', '0805', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('203', '070403', '支出单', '0704', '/pages/financial/item_out.html', '\0', '0470', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('204', '070404', '收款单', '0704', '/pages/financial/money_in.html', '\0', '0475', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('205', '070405', '付款单', '0704', '/pages/financial/money_out.html', '\0', '0480', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('206', '070406', '转账单', '0704', '/pages/financial/giro.html', '\0', '0490', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('207', '030102', '账户统计', '0301', '/pages/reports/account_report.html', '\0', '0610', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('208', '030103', '进货统计', '0301', '/pages/reports/buy_in_report.html', '\0', '0620', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('209', '030104', '销售统计', '0301', '/pages/reports/sale_out_report.html', '\0', '0630', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('210', '040102', '零售出库', '0401', '/pages/materials/retail_out_list.html', '\0', '0405', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('211', '040104', '零售退货', '0401', '/pages/materials/retail_back_list.html', '\0', '0407', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('212', '070407', '收预付款', '0704', '/pages/financial/advance_in.html', '\0', '0495', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('217', '01020102', '客户信息', '0102', '/pages/manage/customer.html', '\0', '0262', '', '电脑版', '1,2', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('218', '01020103', '会员信息', '0102', '/pages/manage/member.html', '\0', '0263', '', '电脑版', '1,2', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('220', '010103', '计量单位', '0101', '/pages/manage/unit.html', '\0', '0245', '', '电脑版', null, 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('225', '0401', '零售管理', '0', '', '\0', '0101', '', '电脑版', '', 'icon-present', '0'); +INSERT INTO `jsh_function` VALUES ('226', '030106', '入库明细', '0301', '/pages/reports/in_detail.html', '\0', '0640', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('227', '030107', '出库明细', '0301', '/pages/reports/out_detail.html', '\0', '0645', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('228', '030108', '入库汇总', '0301', '/pages/reports/in_material_count.html', '\0', '0650', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('229', '030109', '出库汇总', '0301', '/pages/reports/out_material_count.html', '\0', '0655', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('232', '080109', '组装单', '0801', '/pages/materials/assemble_list.html', '\0', '0809', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('233', '080111', '拆卸单', '0801', '/pages/materials/disassemble_list.html', '\0', '0811', '', '电脑版', '3,4,5', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('234', '000105', '系统配置', '0001', '/pages/manage/systemConfig.html', '\0', '0165', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('235', '030110', '客户对账', '0301', '/pages/reports/customer_account.html', '\0', '0660', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('236', '000106', '商品属性', '0001', '/pages/materials/materialProperty.html', '\0', '0168', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('237', '030111', '供应商对账', '0301', '/pages/reports/vendor_account.html', '\0', '0665', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('239', '0801', '仓库管理', '0', '', '\0', '0420', '', '电脑版', '', 'icon-layers', '0'); +INSERT INTO `jsh_function` VALUES ('240', '010104', '序列号', '0101', '/pages/manage/serialNumber.html', '\0', '0246', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('241', '050202', '采购订单', '0502', '/pages/materials/purchase_orders_list.html', '\0', '0335', '', '电脑版', '3', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('242', '060301', '销售订单', '0603', '/pages/materials/sale_orders_list.html', '\0', '0392', '', '电脑版', '3', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('243', '000108', '机构管理', '0001', '/pages/manage/organization.html', '', '0139', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('244', '030112', '库存预警', '0301', '/pages/reports/stock_warning_report.html', '\0', '0670', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('245', '000107', '插件管理', '0001', '/pages/manage/plugin.html', '\0', '0170', '', '电脑版', '', 'icon-notebook', '0'); +INSERT INTO `jsh_function` VALUES ('246', '030113', '负库存统计[插件]', '0301', '/plugins/minusStockStatistics/index.html', '\0', '0675', '', '电脑版', '', 'icon-notebook', '0'); -- ---------------------------- --- Table structure for jsh_inoutitem +-- Table structure for jsh_in_out_item -- ---------------------------- -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 '备注', +DROP TABLE IF EXISTS `jsh_in_out_item`; +CREATE TABLE `jsh_in_out_item` ( + `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=23 DEFAULT CHARSET=utf8 COMMENT='收支项目'; + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收支项目'; -- ---------------------------- --- Records of jsh_inoutitem +-- Records of jsh_in_out_item -- ---------------------------- -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'); -INSERT INTO `jsh_inoutitem` VALUES ('21', '支出1', '支出', '', '63', '0'); -INSERT INTO `jsh_inoutitem` VALUES ('22', '收入1', '收入', '', '63', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('1', '办公耗材', '支出', '办公耗材', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('5', '房租收入', '收入', '房租收入', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('7', '利息收入', '收入', '利息收入', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('8', '水电费', '支出', '水电费水电费', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('9', '快递费', '支出', '快递费', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('10', '交通报销费', '支出', '交通报销费', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('11', '差旅费', '支出', '差旅费', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('12', '全车贴膜-普通', '收入', '', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('13', '全车贴膜-高档', '收入', '', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('14', '洗车', '收入', '', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('15', '保养汽车', '收入', '', null, '0'); +INSERT INTO `jsh_in_out_item` VALUES ('16', '收入项目1', '收入', '', '1', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('17', '支出项目1', '支出', '', '1', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('18', '收入1', '收入', '', '117', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('19', '支出1', '支出', '', '117', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('20', '支出2', '支出', '', '117', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('21', '支出1', '支出', '', '63', '0'); +INSERT INTO `jsh_in_out_item` VALUES ('22', '收入1', '收入', '', '63', '0'); -- ---------------------------- -- Table structure for jsh_log @@ -485,81 +501,225 @@ INSERT INTO `jsh_inoutitem` VALUES ('22', '收入1', '收入', '', '63', '0'); 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', + `user_id` bigint(20) DEFAULT NULL COMMENT '用户id', `operation` varchar(500) DEFAULT NULL COMMENT '操作模块名称', - `clientIP` varchar(50) DEFAULT NULL COMMENT '客户端IP', - `createtime` datetime DEFAULT NULL COMMENT '创建时间', + `client_ip` varchar(50) DEFAULT NULL COMMENT '客户端IP', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', `status` tinyint(4) DEFAULT NULL COMMENT '操作状态 0==成功,1==失败', - `contentdetails` varchar(1000) DEFAULT NULL COMMENT '操作详情', - `remark` varchar(500) DEFAULT NULL COMMENT '备注信息', + `content` varchar(1000) DEFAULT NULL COMMENT '详情', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', PRIMARY KEY (`id`), - KEY `FKF2696AA13E226853` (`userID`) -) ENGINE=InnoDB AUTO_INCREMENT=6504 DEFAULT CHARSET=utf8 COMMENT='操作日志'; + KEY `FKF2696AA13E226853` (`user_id`) +) ENGINE=InnoDB AUTO_INCREMENT=6662 DEFAULT CHARSET=utf8 COMMENT='操作日志'; -- ---------------------------- -- Records of jsh_log -- ---------------------------- -INSERT INTO `jsh_log` VALUES ('6441', '63', '商品', '127.0.0.1', '2020-02-20 23:47:04', '0', '修改,id:579商品', null, '63'); -INSERT INTO `jsh_log` VALUES ('6442', '63', '商品价格扩展', '127.0.0.1', '2020-02-20 23:47:23', '0', '新增商品价格扩展', null, '63'); -INSERT INTO `jsh_log` VALUES ('6443', '63', '商品价格扩展', '127.0.0.1', '2020-02-20 23:47:23', '0', '删除,id:商品价格扩展', null, '63'); -INSERT INTO `jsh_log` VALUES ('6444', '63', '商品', '127.0.0.1', '2020-02-20 23:47:23', '0', '修改,id:586商品', null, '63'); -INSERT INTO `jsh_log` VALUES ('6445', '63', '单据', '127.0.0.1', '2020-02-20 23:47:56', '0', '修改,id:199单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6446', '63', '单据明细', '127.0.0.1', '2020-02-20 23:47:56', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6447', '63', '单据明细', '127.0.0.1', '2020-02-20 23:47:56', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6448', '63', '单据', '127.0.0.1', '2020-02-20 23:49:07', '0', '修改,id:196单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6449', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:07', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6450', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:07', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6451', '63', '单据', '127.0.0.1', '2020-02-20 23:49:49', '0', '修改,id:195单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6452', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:49', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6453', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:49', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6454', '63', '单据', '127.0.0.1', '2020-02-20 23:50:28', '0', '修改,id:194单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6455', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:28', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6456', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:28', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6457', '63', '单据', '127.0.0.1', '2020-02-20 23:50:47', '0', '修改,id:192单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6458', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:47', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6459', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:47', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6460', '63', '单据', '127.0.0.1', '2020-02-20 23:50:55', '0', '修改,id:191单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6461', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:55', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6462', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:55', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6463', '63', '单据', '127.0.0.1', '2020-02-20 23:51:03', '0', '修改,id:189单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6464', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:03', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6465', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:03', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6466', '63', '单据', '127.0.0.1', '2020-02-20 23:51:28', '0', '修改,id:200单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6467', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:28', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6468', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:28', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6469', '63', '单据', '127.0.0.1', '2020-02-20 23:51:37', '0', '修改,id:201单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6470', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:37', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6471', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:37', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6472', '63', '单据', '127.0.0.1', '2020-02-20 23:52:01', '0', '修改,id:197单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6473', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:01', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6474', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:01', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6475', '63', '单据', '127.0.0.1', '2020-02-20 23:52:17', '0', '修改,id:193单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6476', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:17', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6477', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:17', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6478', '63', '单据', '127.0.0.1', '2020-02-20 23:52:33', '0', '修改,id:202单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6479', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:33', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6480', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:33', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6481', '63', '单据', '127.0.0.1', '2020-02-20 23:52:51', '0', '修改,id:203单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6482', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:51', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6483', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:51', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6484', '63', '单据', '127.0.0.1', '2020-02-20 23:53:04', '0', '修改,id:204单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6485', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:04', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6486', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:04', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6487', '63', '单据', '127.0.0.1', '2020-02-20 23:53:21', '0', '修改,id:205单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6488', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:21', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6489', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:21', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6493', '63', '单据', '127.0.0.1', '2020-02-20 23:54:02', '0', '修改,id:206单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6494', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:02', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6495', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:02', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6496', '63', '单据', '127.0.0.1', '2020-02-20 23:54:21', '0', '修改,id:207单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6497', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:21', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6498', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:21', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6499', '63', '单据', '127.0.0.1', '2020-02-20 23:54:48', '0', '新增单据', null, '63'); -INSERT INTO `jsh_log` VALUES ('6500', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:48', '0', '新增单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6501', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:48', '0', '删除,id:单据明细', null, '63'); -INSERT INTO `jsh_log` VALUES ('6502', '120', '用户', '127.0.0.1', '2020-02-21 00:03:55', '0', '登录,id:120用户', null, null); -INSERT INTO `jsh_log` VALUES ('6503', '63', '用户', '127.0.0.1', '2020-02-21 00:04:38', '0', '登录,id:63用户', null, '63'); +INSERT INTO `jsh_log` VALUES ('6441', '63', '商品', '127.0.0.1', '2020-02-20 23:47:04', '0', '修改,id:579商品', '63'); +INSERT INTO `jsh_log` VALUES ('6442', '63', '商品价格扩展', '127.0.0.1', '2020-02-20 23:47:23', '0', '新增商品价格扩展', '63'); +INSERT INTO `jsh_log` VALUES ('6443', '63', '商品价格扩展', '127.0.0.1', '2020-02-20 23:47:23', '0', '删除,id:商品价格扩展', '63'); +INSERT INTO `jsh_log` VALUES ('6444', '63', '商品', '127.0.0.1', '2020-02-20 23:47:23', '0', '修改,id:586商品', '63'); +INSERT INTO `jsh_log` VALUES ('6445', '63', '单据', '127.0.0.1', '2020-02-20 23:47:56', '0', '修改,id:199单据', '63'); +INSERT INTO `jsh_log` VALUES ('6446', '63', '单据明细', '127.0.0.1', '2020-02-20 23:47:56', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6447', '63', '单据明细', '127.0.0.1', '2020-02-20 23:47:56', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6448', '63', '单据', '127.0.0.1', '2020-02-20 23:49:07', '0', '修改,id:196单据', '63'); +INSERT INTO `jsh_log` VALUES ('6449', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:07', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6450', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:07', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6451', '63', '单据', '127.0.0.1', '2020-02-20 23:49:49', '0', '修改,id:195单据', '63'); +INSERT INTO `jsh_log` VALUES ('6452', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:49', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6453', '63', '单据明细', '127.0.0.1', '2020-02-20 23:49:49', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6454', '63', '单据', '127.0.0.1', '2020-02-20 23:50:28', '0', '修改,id:194单据', '63'); +INSERT INTO `jsh_log` VALUES ('6455', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:28', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6456', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:28', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6457', '63', '单据', '127.0.0.1', '2020-02-20 23:50:47', '0', '修改,id:192单据', '63'); +INSERT INTO `jsh_log` VALUES ('6458', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:47', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6459', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:47', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6460', '63', '单据', '127.0.0.1', '2020-02-20 23:50:55', '0', '修改,id:191单据', '63'); +INSERT INTO `jsh_log` VALUES ('6461', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:55', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6462', '63', '单据明细', '127.0.0.1', '2020-02-20 23:50:55', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6463', '63', '单据', '127.0.0.1', '2020-02-20 23:51:03', '0', '修改,id:189单据', '63'); +INSERT INTO `jsh_log` VALUES ('6464', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:03', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6465', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:03', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6466', '63', '单据', '127.0.0.1', '2020-02-20 23:51:28', '0', '修改,id:200单据', '63'); +INSERT INTO `jsh_log` VALUES ('6467', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:28', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6468', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:28', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6469', '63', '单据', '127.0.0.1', '2020-02-20 23:51:37', '0', '修改,id:201单据', '63'); +INSERT INTO `jsh_log` VALUES ('6470', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:37', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6471', '63', '单据明细', '127.0.0.1', '2020-02-20 23:51:37', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6472', '63', '单据', '127.0.0.1', '2020-02-20 23:52:01', '0', '修改,id:197单据', '63'); +INSERT INTO `jsh_log` VALUES ('6473', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:01', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6474', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:01', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6475', '63', '单据', '127.0.0.1', '2020-02-20 23:52:17', '0', '修改,id:193单据', '63'); +INSERT INTO `jsh_log` VALUES ('6476', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:17', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6477', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:17', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6478', '63', '单据', '127.0.0.1', '2020-02-20 23:52:33', '0', '修改,id:202单据', '63'); +INSERT INTO `jsh_log` VALUES ('6479', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:33', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6480', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:33', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6481', '63', '单据', '127.0.0.1', '2020-02-20 23:52:51', '0', '修改,id:203单据', '63'); +INSERT INTO `jsh_log` VALUES ('6482', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:51', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6483', '63', '单据明细', '127.0.0.1', '2020-02-20 23:52:51', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6484', '63', '单据', '127.0.0.1', '2020-02-20 23:53:04', '0', '修改,id:204单据', '63'); +INSERT INTO `jsh_log` VALUES ('6485', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:04', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6486', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:04', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6487', '63', '单据', '127.0.0.1', '2020-02-20 23:53:21', '0', '修改,id:205单据', '63'); +INSERT INTO `jsh_log` VALUES ('6488', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:21', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6489', '63', '单据明细', '127.0.0.1', '2020-02-20 23:53:21', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6493', '63', '单据', '127.0.0.1', '2020-02-20 23:54:02', '0', '修改,id:206单据', '63'); +INSERT INTO `jsh_log` VALUES ('6494', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:02', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6495', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:02', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6496', '63', '单据', '127.0.0.1', '2020-02-20 23:54:21', '0', '修改,id:207单据', '63'); +INSERT INTO `jsh_log` VALUES ('6497', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:21', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6498', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:21', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6499', '63', '单据', '127.0.0.1', '2020-02-20 23:54:48', '0', '新增单据', '63'); +INSERT INTO `jsh_log` VALUES ('6500', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:48', '0', '新增单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6501', '63', '单据明细', '127.0.0.1', '2020-02-20 23:54:48', '0', '删除,id:单据明细', '63'); +INSERT INTO `jsh_log` VALUES ('6502', '120', '用户', '127.0.0.1', '2020-02-21 00:03:55', '0', '登录,id:120用户', null); +INSERT INTO `jsh_log` VALUES ('6503', '63', '用户', '127.0.0.1', '2020-02-21 00:04:38', '0', '登录,id:63用户', '63'); +INSERT INTO `jsh_log` VALUES ('6504', '63', '用户', '127.0.0.1', '2020-07-14 00:27:09', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6505', '63', '商品', '127.0.0.1', '2020-07-14 00:27:51', '0', '修改商品test1', '63'); +INSERT INTO `jsh_log` VALUES ('6506', '63', '单据', '127.0.0.1', '2020-07-14 00:28:15', '0', '新增CGRK00000000320', '63'); +INSERT INTO `jsh_log` VALUES ('6507', '120', '用户', '127.0.0.1', '2020-07-15 00:16:25', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6508', '63', '用户', '127.0.0.1', '2020-07-15 00:17:21', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6509', '120', '用户', '127.0.0.1', '2020-07-15 00:19:54', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6510', '120', '关联关系', '127.0.0.1', '2020-07-15 00:20:17', '0', '修改', null); +INSERT INTO `jsh_log` VALUES ('6511', '120', '关联关系', '127.0.0.1', '2020-07-15 00:20:27', '0', '修改', null); +INSERT INTO `jsh_log` VALUES ('6512', '120', '关联关系', '127.0.0.1', '2020-07-15 00:20:35', '0', '修改', null); +INSERT INTO `jsh_log` VALUES ('6513', '63', '用户', '127.0.0.1', '2020-07-15 00:20:42', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6514', '120', '用户', '127.0.0.1', '2020-07-15 00:35:00', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6515', '63', '用户', '127.0.0.1', '2020-07-15 00:35:53', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6516', '63', '系统配置', '127.0.0.1', '2020-07-15 00:38:04', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6517', '63', '单据', '127.0.0.1', '2020-07-15 00:38:07', '0', '新增XSCK00000000321', '63'); +INSERT INTO `jsh_log` VALUES ('6518', '63', '用户', '127.0.0.1', '2020-07-15 00:41:25', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6519', '63', '用户', '127.0.0.1', '2020-07-15 21:38:15', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6520', '63', '用户', '127.0.0.1', '2020-07-15 21:41:04', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6521', '63', '用户', '127.0.0.1', '2020-07-15 21:56:16', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6522', '63', '用户', '127.0.0.1', '2020-07-16 17:12:09', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6523', '63', '用户', '127.0.0.1', '2020-07-16 17:15:12', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6524', '63', '商品', '127.0.0.1', '2020-07-16 17:19:46', '0', '修改587', '63'); +INSERT INTO `jsh_log` VALUES ('6525', '63', '用户', '127.0.0.1', '2020-07-16 21:45:14', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6526', '63', '单据', '127.0.0.1', '2020-07-16 21:45:29', '0', '修改XSCK00000000321', '63'); +INSERT INTO `jsh_log` VALUES ('6527', '63', '用户', '127.0.0.1', '2020-07-19 23:55:43', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6528', '63', '用户', '127.0.0.1', '2020-07-20 22:00:25', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6529', '63', '用户', '127.0.0.1', '2020-07-20 22:06:39', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6530', '63', '用户', '127.0.0.1', '2020-07-20 22:14:37', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6531', '63', '用户', '127.0.0.1', '2020-07-20 22:19:41', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6532', '63', '商品', '127.0.0.1', '2020-07-20 22:20:00', '0', '修改587', '63'); +INSERT INTO `jsh_log` VALUES ('6533', '63', '商品', '127.0.0.1', '2020-07-20 22:20:03', '0', '修改587', '63'); +INSERT INTO `jsh_log` VALUES ('6534', '63', '商品', '127.0.0.1', '2020-07-20 22:22:35', '0', '修改商品test1', '63'); +INSERT INTO `jsh_log` VALUES ('6535', '63', '商品', '127.0.0.1', '2020-07-20 22:23:02', '0', '修改序列号商品测试', '63'); +INSERT INTO `jsh_log` VALUES ('6536', '63', '计量单位', '127.0.0.1', '2020-07-20 22:25:26', '0', '修改null', '63'); +INSERT INTO `jsh_log` VALUES ('6544', '63', '用户', '127.0.0.1', '2020-07-20 22:42:44', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6546', '63', '用户', '127.0.0.1', '2020-07-20 22:46:13', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6548', '63', '用户', '127.0.0.1', '2020-07-20 22:47:25', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6550', '63', '商品类型', '127.0.0.1', '2020-07-20 22:58:04', '0', '新增目录2', '63'); +INSERT INTO `jsh_log` VALUES ('6551', '63', '用户', '127.0.0.1', '2020-07-20 23:08:31', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6552', '63', '商品类型', '127.0.0.1', '2020-07-20 23:08:44', '0', '新增目录2', '63'); +INSERT INTO `jsh_log` VALUES ('6553', '63', '商品', '127.0.0.1', '2020-07-20 23:08:54', '0', '修改商品test1', '63'); +INSERT INTO `jsh_log` VALUES ('6554', '63', '商品', '127.0.0.1', '2020-07-20 23:09:12', '0', '修改商品test1', '63'); +INSERT INTO `jsh_log` VALUES ('6555', '63', '仓库', '127.0.0.1', '2020-07-20 23:10:20', '0', '修改仓库2', '63'); +INSERT INTO `jsh_log` VALUES ('6556', '63', '收支项目', '127.0.0.1', '2020-07-20 23:10:31', '0', '修改支出1', '63'); +INSERT INTO `jsh_log` VALUES ('6557', '63', '收支项目', '127.0.0.1', '2020-07-20 23:10:35', '0', '修改支出1', '63'); +INSERT INTO `jsh_log` VALUES ('6558', '63', '用户', '127.0.0.1', '2020-07-20 23:20:51', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6559', '63', '用户', '127.0.0.1', '2020-07-20 23:30:49', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6560', '63', '账户', '127.0.0.1', '2020-07-20 23:31:55', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6561', '63', '账户', '127.0.0.1', '2020-07-20 23:31:55', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6562', '63', '账户', '127.0.0.1', '2020-07-20 23:31:59', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6563', '63', '账户', '127.0.0.1', '2020-07-20 23:31:59', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6564', '63', '账户', '127.0.0.1', '2020-07-20 23:32:10', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6565', '63', '账户', '127.0.0.1', '2020-07-20 23:32:10', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6566', '63', '账户', '127.0.0.1', '2020-07-20 23:33:18', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6567', '63', '账户', '127.0.0.1', '2020-07-20 23:33:18', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6568', '63', '账户', '127.0.0.1', '2020-07-20 23:36:25', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6569', '63', '账户', '127.0.0.1', '2020-07-20 23:36:25', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6570', '63', '账户', '127.0.0.1', '2020-07-20 23:36:29', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6571', '63', '账户', '127.0.0.1', '2020-07-20 23:36:29', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6572', '63', '账户', '127.0.0.1', '2020-07-20 23:46:00', '0', '修改账户1', '63'); +INSERT INTO `jsh_log` VALUES ('6573', '63', '账户', '127.0.0.1', '2020-07-20 23:46:11', '0', '修改账户2', '63'); +INSERT INTO `jsh_log` VALUES ('6574', '63', '账户', '127.0.0.1', '2020-07-20 23:58:55', '0', '修改账户1', '63'); +INSERT INTO `jsh_log` VALUES ('6575', '63', '账户', '127.0.0.1', '2020-07-20 23:59:01', '0', '修改账户2', '63'); +INSERT INTO `jsh_log` VALUES ('6576', '63', '经手人', '127.0.0.1', '2020-07-20 23:59:31', '0', '修改小李1', '63'); +INSERT INTO `jsh_log` VALUES ('6577', '63', '经手人', '127.0.0.1', '2020-07-20 23:59:33', '0', '修改小李', '63'); +INSERT INTO `jsh_log` VALUES ('6578', '63', '账户', '127.0.0.1', '2020-07-21 00:01:01', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6579', '63', '账户', '127.0.0.1', '2020-07-21 00:01:01', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6580', '63', '账户', '127.0.0.1', '2020-07-21 00:01:04', '0', '修改17', '63'); +INSERT INTO `jsh_log` VALUES ('6581', '63', '账户', '127.0.0.1', '2020-07-21 00:01:04', '0', '修改18', '63'); +INSERT INTO `jsh_log` VALUES ('6582', '63', '仓库', '127.0.0.1', '2020-07-21 00:01:47', '0', '修改15', '63'); +INSERT INTO `jsh_log` VALUES ('6583', '63', '仓库', '127.0.0.1', '2020-07-21 00:01:47', '0', '修改14', '63'); +INSERT INTO `jsh_log` VALUES ('6584', '63', '仓库', '127.0.0.1', '2020-07-21 00:01:54', '0', '修改14', '63'); +INSERT INTO `jsh_log` VALUES ('6585', '63', '仓库', '127.0.0.1', '2020-07-21 00:01:54', '0', '修改15', '63'); +INSERT INTO `jsh_log` VALUES ('6586', '63', '仓库', '127.0.0.1', '2020-07-21 00:02:00', '0', '修改仓库1', '63'); +INSERT INTO `jsh_log` VALUES ('6587', '63', '仓库', '127.0.0.1', '2020-07-21 00:02:08', '0', '修改仓库1', '63'); +INSERT INTO `jsh_log` VALUES ('6588', '63', '角色', '127.0.0.1', '2020-07-21 00:02:20', '0', '修改测试角色1234', '63'); +INSERT INTO `jsh_log` VALUES ('6589', '63', '用户', '127.0.0.1', '2020-07-21 00:05:33', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6590', '63', '用户', '127.0.0.1', '2020-07-21 00:08:40', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6591', '63', '系统配置', '127.0.0.1', '2020-07-21 00:09:08', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6592', '63', '系统配置', '127.0.0.1', '2020-07-21 00:09:15', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6593', '63', '系统配置', '127.0.0.1', '2020-07-21 00:09:18', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6594', '63', '系统配置', '127.0.0.1', '2020-07-21 00:09:21', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6595', '63', '系统配置', '127.0.0.1', '2020-07-21 00:09:24', '0', '修改公司1', '63'); +INSERT INTO `jsh_log` VALUES ('6596', '63', '机构', '127.0.0.1', '2020-07-21 00:09:57', '0', '新增机构1', '63'); +INSERT INTO `jsh_log` VALUES ('6597', '63', '机构', '127.0.0.1', '2020-07-21 00:10:22', '0', '修改机构1', '63'); +INSERT INTO `jsh_log` VALUES ('6598', '120', '用户', '127.0.0.1', '2020-07-21 00:15:38', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6599', '120', '关联关系', '127.0.0.1', '2020-07-21 00:16:18', '0', '修改', null); +INSERT INTO `jsh_log` VALUES ('6600', '120', '关联关系', '127.0.0.1', '2020-07-21 00:16:35', '0', '修改', null); +INSERT INTO `jsh_log` VALUES ('6601', '63', '用户', '127.0.0.1', '2020-07-21 00:18:50', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6602', '63', '商家', '127.0.0.1', '2020-07-21 00:19:38', '0', '修改68', '63'); +INSERT INTO `jsh_log` VALUES ('6603', '63', '商家', '127.0.0.1', '2020-07-21 00:19:41', '0', '修改68', '63'); +INSERT INTO `jsh_log` VALUES ('6604', '63', '仓库', '127.0.0.1', '2020-07-21 00:19:53', '0', '修改15', '63'); +INSERT INTO `jsh_log` VALUES ('6605', '63', '仓库', '127.0.0.1', '2020-07-21 00:19:53', '0', '修改14', '63'); +INSERT INTO `jsh_log` VALUES ('6606', '63', '仓库', '127.0.0.1', '2020-07-21 00:19:57', '0', '修改14', '63'); +INSERT INTO `jsh_log` VALUES ('6607', '63', '仓库', '127.0.0.1', '2020-07-21 00:19:57', '0', '修改15', '63'); +INSERT INTO `jsh_log` VALUES ('6608', '63', '仓库', '127.0.0.1', '2020-07-21 00:21:09', '0', '修改仓库1', '63'); +INSERT INTO `jsh_log` VALUES ('6609', '63', '仓库', '127.0.0.1', '2020-07-21 00:21:16', '0', '修改仓库1', '63'); +INSERT INTO `jsh_log` VALUES ('6610', '63', '计量单位', '127.0.0.1', '2020-07-21 00:21:33', '0', '修改null', '63'); +INSERT INTO `jsh_log` VALUES ('6611', '63', '计量单位', '127.0.0.1', '2020-07-21 00:21:50', '0', '修改null', '63'); +INSERT INTO `jsh_log` VALUES ('6612', '63', '计量单位', '127.0.0.1', '2020-07-21 00:23:46', '0', '修改个,箱(1:11)', '63'); +INSERT INTO `jsh_log` VALUES ('6613', '63', '计量单位', '127.0.0.1', '2020-07-21 00:23:50', '0', '修改个,箱(1:12)', '63'); +INSERT INTO `jsh_log` VALUES ('6614', '63', '计量单位', '127.0.0.1', '2020-07-21 00:23:55', '0', '修改个,箱2(1:12)', '63'); +INSERT INTO `jsh_log` VALUES ('6615', '63', '计量单位', '127.0.0.1', '2020-07-21 00:23:58', '0', '修改个,箱(1:12)', '63'); +INSERT INTO `jsh_log` VALUES ('6616', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:03', '0', '修改个,箱(1:11)', '63'); +INSERT INTO `jsh_log` VALUES ('6617', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:06', '0', '修改个,箱(1:12)', '63'); +INSERT INTO `jsh_log` VALUES ('6618', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:34', '0', '新增个,台(1:10)', '63'); +INSERT INTO `jsh_log` VALUES ('6619', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:38', '0', '删除[个,台(1:10)]', '63'); +INSERT INTO `jsh_log` VALUES ('6620', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:45', '0', '新增个,只(1:12)', '63'); +INSERT INTO `jsh_log` VALUES ('6621', '63', '计量单位', '127.0.0.1', '2020-07-21 00:24:47', '0', '删除[个,只(1:12)]', '63'); +INSERT INTO `jsh_log` VALUES ('6625', '63', '用户', '127.0.0.1', '2020-07-21 00:30:08', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6626', '63', '序列号', '127.0.0.1', '2020-07-21 00:30:27', '0', '修改105', '63'); +INSERT INTO `jsh_log` VALUES ('6627', '63', '序列号', '127.0.0.1', '2020-07-21 00:30:32', '0', '修改105', '63'); +INSERT INTO `jsh_log` VALUES ('6628', '63', '序列号', '127.0.0.1', '2020-07-21 00:30:40', '0', '批量新增2条', '63'); +INSERT INTO `jsh_log` VALUES ('6629', '63', '序列号', '127.0.0.1', '2020-07-21 00:30:47', '0', '删除[143132415952626404572]', '63'); +INSERT INTO `jsh_log` VALUES ('6630', '63', '序列号', '127.0.0.1', '2020-07-21 00:30:49', '0', '删除[143132415952626404571]', '63'); +INSERT INTO `jsh_log` VALUES ('6631', '63', '序列号', '127.0.0.1', '2020-07-21 00:31:02', '0', '批量新增2条', '63'); +INSERT INTO `jsh_log` VALUES ('6632', '63', '仓库', '127.0.0.1', '2020-07-21 00:34:52', '0', '新增仓库6', '63'); +INSERT INTO `jsh_log` VALUES ('6633', '63', '单据', '127.0.0.1', '2020-07-21 00:35:16', '0', '新增CGRK00000000329', '63'); +INSERT INTO `jsh_log` VALUES ('6634', '63', '单据', '127.0.0.1', '2020-07-21 00:35:37', '0', '新增XSCK00000000330', '63'); +INSERT INTO `jsh_log` VALUES ('6635', '63', '用户', '127.0.0.1', '2020-07-21 00:38:20', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6636', '120', '用户', '127.0.0.1', '2020-07-21 00:45:29', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6637', '120', '商品属性', '127.0.0.1', '2020-07-21 00:46:53', '0', '修改null', null); +INSERT INTO `jsh_log` VALUES ('6638', '120', '商品属性', '127.0.0.1', '2020-07-21 00:46:56', '0', '修改null', null); +INSERT INTO `jsh_log` VALUES ('6639', '63', '用户', '127.0.0.1', '2020-07-21 00:47:15', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6640', '63', '商品', '127.0.0.1', '2020-07-21 00:47:37', '0', '修改商品test1', '63'); +INSERT INTO `jsh_log` VALUES ('6641', '63', '商品', '127.0.0.1', '2020-07-21 00:55:36', '0', '修改商品17', '63'); +INSERT INTO `jsh_log` VALUES ('6642', '63', '商品', '127.0.0.1', '2020-07-21 00:55:46', '0', '修改商品17', '63'); +INSERT INTO `jsh_log` VALUES ('6643', '63', '商品', '127.0.0.1', '2020-07-21 00:56:48', '0', '修改商品17', '63'); +INSERT INTO `jsh_log` VALUES ('6644', '63', '商品', '127.0.0.1', '2020-07-21 00:57:50', '0', '修改商品17', '63'); +INSERT INTO `jsh_log` VALUES ('6645', '63', '商品', '127.0.0.1', '2020-07-21 00:58:15', '0', '新增商品200', '63'); +INSERT INTO `jsh_log` VALUES ('6646', '63', '商品', '127.0.0.1', '2020-07-21 00:58:22', '0', '修改商品200', '63'); +INSERT INTO `jsh_log` VALUES ('6647', '63', '商品', '127.0.0.1', '2020-07-21 00:58:36', '0', '修改商品200', '63'); +INSERT INTO `jsh_log` VALUES ('6648', '63', '商品', '127.0.0.1', '2020-07-21 00:58:43', '0', '修改588', '63'); +INSERT INTO `jsh_log` VALUES ('6649', '63', '商品', '127.0.0.1', '2020-07-21 00:58:46', '0', '修改588', '63'); +INSERT INTO `jsh_log` VALUES ('6650', '63', '商家', '127.0.0.1', '2020-07-21 00:59:11', '0', '修改供应商3', '63'); +INSERT INTO `jsh_log` VALUES ('6651', '63', '关联关系', '127.0.0.1', '2020-07-21 01:00:58', '0', '新增', '63'); +INSERT INTO `jsh_log` VALUES ('6652', '63', '关联关系', '127.0.0.1', '2020-07-21 01:01:16', '0', '修改', '63'); +INSERT INTO `jsh_log` VALUES ('6653', '63', '商家', '127.0.0.1', '2020-07-21 01:03:52', '0', '修改60', '63'); +INSERT INTO `jsh_log` VALUES ('6654', '63', '单据', '127.0.0.1', '2020-07-21 01:03:52', '0', '修改LSCK00000000314', '63'); +INSERT INTO `jsh_log` VALUES ('6655', '63', '单据', '127.0.0.1', '2020-07-21 01:04:11', '0', '修改LSTH00000000315', '63'); +INSERT INTO `jsh_log` VALUES ('6656', '120', '用户', '127.0.0.1', '2020-07-21 01:07:49', '0', '登录admin', null); +INSERT INTO `jsh_log` VALUES ('6657', '63', '用户', '127.0.0.1', '2020-07-21 01:14:47', '0', '登录jsh', '63'); +INSERT INTO `jsh_log` VALUES ('6658', '63', '单据', '127.0.0.1', '2020-07-21 01:15:15', '0', '新增CGDD00000000333', '63'); +INSERT INTO `jsh_log` VALUES ('6659', '63', '单据', '127.0.0.1', '2020-07-21 01:15:32', '0', '新增CGRK00000000334', '63'); +INSERT INTO `jsh_log` VALUES ('6660', '63', '商品', '127.0.0.1', '2020-07-21 01:17:19', '0', '修改商品1', '63'); +INSERT INTO `jsh_log` VALUES ('6661', '63', '用户', '127.0.0.1', '2020-07-21 01:27:49', '0', '登录jsh', '63'); -- ---------------------------- -- Table structure for jsh_material @@ -587,7 +747,7 @@ CREATE TABLE `jsh_material` ( PRIMARY KEY (`Id`), KEY `FK675951272AB6672C` (`CategoryId`), KEY `UnitId` (`UnitId`) -) ENGINE=InnoDB AUTO_INCREMENT=588 DEFAULT CHARSET=utf8 COMMENT='产品表'; +) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=utf8 COMMENT='产品表'; -- ---------------------------- -- Records of jsh_material @@ -596,7 +756,7 @@ INSERT INTO `jsh_material` VALUES ('564', '14', '商品1', '', null, 'sp1', '', INSERT INTO `jsh_material` VALUES ('565', '14', '商品2', '', null, 'sp2', '', '', '个', '', null, '', '', '', '', '1', '1', '0'); INSERT INTO `jsh_material` VALUES ('566', '15', '商品666', '', null, 'sp666', '', '', '个', '', null, '', '', '', '', '0', '117', '0'); INSERT INTO `jsh_material` VALUES ('567', null, '商品1', '', null, 'dsp1', '', '', '个', '', null, '', '', '', '', '0', '115', '0'); -INSERT INTO `jsh_material` VALUES ('568', '17', '商品1', '', '100.000000', 'sp1', '', '', '个', '', null, '', '', '', '', '0', '63', '0'); +INSERT INTO `jsh_material` VALUES ('568', '17', '商品1', '制1', '100.000000', 'sp1', '', '', '个', '', null, '', '', '', '', '0', '63', '0'); INSERT INTO `jsh_material` VALUES ('569', '17', '商品2', '', '200.000000', 'sp2', '', '', '只', '', null, '', '', '', '', '0', '63', '0'); INSERT INTO `jsh_material` VALUES ('570', '17', '商品3', '', '300.000000', 'sp3', '', '', '个', '', null, '', '', '', '', '0', '63', '0'); INSERT INTO `jsh_material` VALUES ('571', null, '商品4', '', null, 'sp4', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); @@ -607,25 +767,26 @@ INSERT INTO `jsh_material` VALUES ('575', null, '商品6', '', null, 'sp6', '', INSERT INTO `jsh_material` VALUES ('576', null, '商品7', '', null, 'sp7', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('577', null, '商品8', '', null, 'sp8', '', '', '', '', '15', '', '', '', '', '0', '63', '0'); INSERT INTO `jsh_material` VALUES ('578', '17', '商品9', '', null, 'sp9', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('579', null, '商品17', '', null, 'sp17', '', '', '', '', '15', '', '', '', '', '0', '63', '0'); +INSERT INTO `jsh_material` VALUES ('579', '21', '商品17', '', null, 'sp17', '', '', '', '', '15', '', '', '', '', '0', '63', '0'); INSERT INTO `jsh_material` VALUES ('580', null, '15', '', null, '15', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('581', null, '16', '', null, '16', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('582', null, '商品20', '', null, 'sp2', '', '', '个', '', null, '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('583', null, 'wer', '', null, 'rqwe', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('584', null, 'sfds', '', null, 'a2233', '12', '2', 'ge', '', null, '', '', '', '', '0', '63', '1'); INSERT INTO `jsh_material` VALUES ('585', null, 'asdf', '', null, 'adsfasdf', '', '', '', '', '15', '', '', '', '', '0', '63', '1'); -INSERT INTO `jsh_material` VALUES ('586', null, '序列号商品测试', '', null, 'xlh123', '', '', '个', '', null, '', '', '', '', '1', '63', '0'); -INSERT INTO `jsh_material` VALUES ('587', null, '商品test1', '', null, '', 'test1', '', '个', '', null, '', '', '', '', '0', '63', '0'); +INSERT INTO `jsh_material` VALUES ('586', '17', '序列号商品测试', '', null, 'xlh123', '', '', '个', '', null, '', '', '', '', '1', '63', '0'); +INSERT INTO `jsh_material` VALUES ('587', '17', '商品test1', '南通中远', null, '', 'test1', '', '个', '', null, '\0', '', '', '', '0', '63', '0'); +INSERT INTO `jsh_material` VALUES ('588', '21', '商品200', '', '112.000000', '', '300ml', '', '个', '', null, '', '', '', '', '0', '63', '0'); -- ---------------------------- --- Table structure for jsh_materialcategory +-- Table structure for jsh_material_category -- ---------------------------- -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', +DROP TABLE IF EXISTS `jsh_material_category`; +CREATE TABLE `jsh_material_category` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `name` varchar(50) DEFAULT NULL COMMENT '名称', + `category_level` smallint(6) DEFAULT NULL COMMENT '等级', + `parent_id` 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 '编号', @@ -635,54 +796,52 @@ CREATE TABLE `jsh_materialcategory` ( `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='产品类型表'; + PRIMARY KEY (`id`), + KEY `FK3EE7F725237A77D8` (`parent_id`) +) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='产品类型表'; -- ---------------------------- --- Records of jsh_materialcategory +-- Records of jsh_material_category -- ---------------------------- -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'); +INSERT INTO `jsh_material_category` VALUES ('1', '根目录', '1', '-1', null, '2', '1', null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('2', '花边一级A', '1', '1', '', '2', '', '', null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('3', '花边一级B', '1', '1', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('4', '其他', '2', '3', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('5', '其他', '3', '4', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('6', '花边二级A', '2', '2', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('7', '花边三级A', '3', '6', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('8', '花边二级B', '2', '2', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('9', '花边一级C', '1', '1', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('10', '花边三级B', '3', '6', null, '2', null, null, null, null, '2019-03-15 23:09:05', '63', null); +INSERT INTO `jsh_material_category` VALUES ('11', 'ddddd', null, '-1', '', '1', '', '', '2019-03-15 23:09:13', '63', '2019-03-15 23:09:13', '63', null); +INSERT INTO `jsh_material_category` VALUES ('12', 'ffffff', null, '11', '', '1', '', '', '2019-03-15 23:09:27', '63', '2019-03-15 23:09:27', '63', null); +INSERT INTO `jsh_material_category` 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_material_category` 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_material_category` VALUES ('15', '目录1', null, '-1', '', '1', '', '', '2019-03-31 21:53:53', '117', '2019-03-31 21:53:53', '117', '117'); +INSERT INTO `jsh_material_category` VALUES ('16', 'aaaa', null, '-1', '', '1', '', '', '2019-04-02 22:28:07', '115', '2019-04-02 22:28:07', '115', '115'); +INSERT INTO `jsh_material_category` VALUES ('17', '目录1', null, '-1', '', '1', '', '', '2019-04-10 22:18:12', '63', '2019-04-10 22:18:12', '63', '63'); +INSERT INTO `jsh_material_category` VALUES ('21', '目录2', null, '17', '', '1', '', '', '2020-07-20 23:08:44', '63', '2020-07-20 23:08:44', '63', '63'); -- ---------------------------- --- Table structure for jsh_materialproperty +-- Table structure for jsh_material_current_stock -- ---------------------------- -DROP TABLE IF EXISTS `jsh_materialproperty`; -CREATE TABLE `jsh_materialproperty` ( +DROP TABLE IF EXISTS `jsh_material_current_stock`; +CREATE TABLE `jsh_material_current_stock` ( `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删除', + `material_id` bigint(20) DEFAULT NULL COMMENT '产品id', + `depot_id` bigint(20) DEFAULT NULL COMMENT '仓库id', + `current_number` 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=7 DEFAULT CHARSET=utf8 COMMENT='产品扩展字段表'; +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品当前库存'; -- ---------------------------- --- Records of jsh_materialproperty +-- Records of jsh_material_current_stock -- ---------------------------- -INSERT INTO `jsh_materialproperty` VALUES ('1', '规格', '', '02', '规格', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('2', '颜色', '', '01', '颜色', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('3', '制造商', '', '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'); +INSERT INTO `jsh_material_current_stock` VALUES ('1', '587', '14', '-30.000000', '63', '0'); +INSERT INTO `jsh_material_current_stock` VALUES ('2', '570', '14', '50.000000', '63', '0'); +INSERT INTO `jsh_material_current_stock` VALUES ('3', '568', '14', '19.000000', '63', '0'); -- ---------------------------- -- Table structure for jsh_material_extend @@ -705,20 +864,21 @@ CREATE TABLE `jsh_material_extend` ( `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 ROW_FORMAT=COMPACT COMMENT='产品价格扩展'; +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品价格扩展'; -- ---------------------------- -- Records of jsh_material_extend -- ---------------------------- -INSERT INTO `jsh_material_extend` VALUES ('1', '587', '1000', '个', '11.000000', '22.000000', '22.000000', '22.000000', '1', '2020-02-20 23:22:03', 'jsh', 'jsh', '1587656613132', '63', '0'); -INSERT INTO `jsh_material_extend` VALUES ('2', '568', '1001', '个', '11.000000', '15.000000', '15.000000', '15.000000', '1', '2020-02-20 23:44:57', 'jsh', 'jsh', '1582213497098', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('1', '587', '1000', '个', '11.000000', '22.000000', '22.000000', '22.000000', '1', '2020-02-20 23:22:03', 'jsh', 'jsh', '1595263657135', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('2', '568', '1001', '个', '11.000000', '15.000000', '15.000000', '15.000000', '1', '2020-02-20 23:44:57', 'jsh', 'jsh', '1595265439418', '63', '0'); INSERT INTO `jsh_material_extend` VALUES ('3', '569', '1002', '只', '10.000000', '15.000000', '15.000000', '13.000000', '1', '2020-02-20 23:45:15', 'jsh', 'jsh', '1582213514731', '63', '0'); INSERT INTO `jsh_material_extend` VALUES ('4', '570', '1003', '个', '8.000000', '15.000000', '14.000000', '13.000000', '1', '2020-02-20 23:45:37', 'jsh', 'jsh', '1587657604430', '63', '0'); INSERT INTO `jsh_material_extend` VALUES ('5', '577', '1004', '个', '10.000000', '20.000000', '20.000000', '20.000000', '1', '2020-02-20 23:46:36', 'jsh', 'jsh', '1582213596494', '63', '0'); INSERT INTO `jsh_material_extend` VALUES ('6', '577', '1005', '箱', '120.000000', '240.000000', '240.000000', '240.000000', '0', '2020-02-20 23:46:36', 'jsh', 'jsh', '1582213596497', '63', '0'); -INSERT INTO `jsh_material_extend` VALUES ('7', '579', '1006', '个', '20.000000', '30.000000', '30.000000', '30.000000', '1', '2020-02-20 23:47:04', 'jsh', 'jsh', '1587784928581', '63', '0'); -INSERT INTO `jsh_material_extend` VALUES ('8', '579', '1007', '箱', '240.000000', '360.000000', '360.000000', '360.000000', '0', '2020-02-20 23:47:04', 'jsh', 'jsh', '1587784928585', '63', '0'); -INSERT INTO `jsh_material_extend` VALUES ('9', '586', '1008', '个', '12.000000', '15.000000', '15.000000', '15.000000', '1', '2020-02-20 23:47:23', 'jsh', 'jsh', '1582213643084', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('7', '579', '1006', '个', '20.000000', '30.000000', '30.000000', '30.000000', '1', '2020-02-20 23:47:04', 'jsh', 'jsh', '1595264270458', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('8', '579', '1007', '箱', '240.000000', '360.000000', '360.000000', '360.000000', '0', '2020-02-20 23:47:04', 'jsh', 'jsh', '1595264270466', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('9', '586', '1008', '个', '12.000000', '15.000000', '15.000000', '15.000000', '1', '2020-02-20 23:47:23', 'jsh', 'jsh', '1595254981896', '63', '0'); +INSERT INTO `jsh_material_extend` VALUES ('10', '588', '1009', '个', '11.000000', '22.000000', '22.000000', '22.000000', '1', '2020-07-21 00:58:15', 'jsh', 'jsh', '1595264315873', '63', '0'); -- ---------------------------- -- Table structure for jsh_material_initial_stock @@ -732,29 +892,36 @@ CREATE TABLE `jsh_material_initial_stock` ( `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品初始库存'; +) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品初始库存'; -- ---------------------------- -- Records of jsh_material_initial_stock -- ---------------------------- +INSERT INTO `jsh_material_initial_stock` VALUES ('123', '587', '14', '5.000000', '63', '0'); -- ---------------------------- --- Table structure for jsh_material_current_stock +-- Table structure for jsh_material_property -- ---------------------------- -DROP TABLE IF EXISTS `jsh_material_current_stock`; -CREATE TABLE `jsh_material_current_stock` ( +DROP TABLE IF EXISTS `jsh_material_property`; +CREATE TABLE `jsh_material_property` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `material_id` bigint(20) DEFAULT NULL COMMENT '产品id', - `depot_id` bigint(20) DEFAULT NULL COMMENT '仓库id', - `current_number` decimal(24,6) DEFAULT NULL COMMENT '当前库存数量', - `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', + `native_name` varchar(50) DEFAULT NULL COMMENT '原始名称', + `enabled` bit(1) DEFAULT NULL COMMENT '是否启用', + `sort` varchar(10) DEFAULT NULL COMMENT '排序', + `another_name` varchar(50) DEFAULT NULL COMMENT '别名', `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品当前库存'; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='产品扩展字段表'; -- ---------------------------- --- Records of jsh_material_current_stock +-- Records of jsh_material_property -- ---------------------------- +INSERT INTO `jsh_material_property` VALUES ('1', '规格', '', '02', '规格', '0'); +INSERT INTO `jsh_material_property` VALUES ('2', '颜色', '', '01', '颜色', '0'); +INSERT INTO `jsh_material_property` VALUES ('3', '制造商', '', '03', '制造商', '0'); +INSERT INTO `jsh_material_property` VALUES ('4', '自定义1', '\0', '04', '自定义1', '0'); +INSERT INTO `jsh_material_property` VALUES ('5', '自定义2', '\0', '05', '自定义2', '0'); +INSERT INTO `jsh_material_property` VALUES ('6', '自定义3', '\0', '06', '自定义3', '0'); -- ---------------------------- -- Table structure for jsh_msg @@ -799,7 +966,7 @@ CREATE TABLE `jsh_organization` ( `org_stop_time` datetime DEFAULT NULL COMMENT '机构停运时间', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='机构表'; +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='机构表'; -- ---------------------------- -- Records of jsh_organization @@ -816,6 +983,7 @@ INSERT INTO `jsh_organization` VALUES ('9', '555', 'dddddddddd', 'dddddddddd', n 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'); INSERT INTO `jsh_organization` VALUES ('12', '001', '测试机构', '测试机构', null, '2', '-1', '001', '', '2019-12-28 12:13:01', '63', '2019-12-28 12:13:01', '63', null, null, '63'); +INSERT INTO `jsh_organization` VALUES ('13', 'jg1', '机构1', '机构1', null, '2', '001', '22', '', '2020-07-21 00:09:57', '63', '2020-07-21 00:10:22', '63', null, null, '63'); -- ---------------------------- -- Table structure for jsh_orga_user_rel @@ -854,13 +1022,13 @@ INSERT INTO `jsh_orga_user_rel` VALUES ('10', '12', '131', '', '0', '2019-12-28 -- ---------------------------- 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 '姓名', + `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=17 DEFAULT CHARSET=utf8 COMMENT='经手人表'; + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='经手人表'; -- ---------------------------- -- Records of jsh_person @@ -885,15 +1053,15 @@ INSERT INTO `jsh_person` VALUES ('16', '财务员', '小夏', '63', '0'); -- ---------------------------- DROP TABLE IF EXISTS `jsh_role`; CREATE TABLE `jsh_role` ( - `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `Name` varchar(50) DEFAULT NULL COMMENT '名称', + `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='角色表'; + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色表'; -- ---------------------------- -- Records of jsh_role @@ -905,7 +1073,7 @@ 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'); +INSERT INTO `jsh_role` VALUES ('16', '测试角色1234', null, null, null, '63', '0'); -- ---------------------------- -- Table structure for jsh_sequence @@ -924,7 +1092,7 @@ CREATE TABLE `jsh_sequence` ( -- ---------------------------- -- Records of jsh_sequence -- ---------------------------- -INSERT INTO `jsh_sequence` VALUES ('depot_number_seq', '1', '999999999999999999', '319', '1', '单据编号sequence'); +INSERT INTO `jsh_sequence` VALUES ('depot_number_seq', '1', '999999999999999999', '334', '1', '单据编号sequence'); -- ---------------------------- -- Table structure for jsh_serial_number @@ -932,24 +1100,28 @@ INSERT INTO `jsh_sequence` VALUES ('depot_number_seq', '1', '999999999999999999' 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卖出', + `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 '创建时间', + `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 '更新时间', + `update_time` datetime DEFAULT NULL COMMENT '更新时间', `updater` bigint(20) DEFAULT NULL COMMENT '更新人', - `depothead_Id` bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向', + `depot_head_id` bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8 COMMENT='序列号表'; +) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8 COMMENT='序列号表'; -- ---------------------------- -- Records of jsh_serial_number -- ---------------------------- -INSERT INTO `jsh_serial_number` VALUES ('105', '586', '12312323423223', '0', '', '0', '2019-12-28 12:14:39', '63', '2019-12-28 12:14:39', '63', null, '63'); +INSERT INTO `jsh_serial_number` VALUES ('105', '586', '12312323423223', '0', 'abab', '0', '2019-12-28 12:14:39', '63', '2020-07-21 00:30:32', '63', null, '63'); +INSERT INTO `jsh_serial_number` VALUES ('106', '586', '143132415952626404571', '0', '', '1', '2020-07-21 00:30:40', '63', '2020-07-21 00:30:49', '63', null, '63'); +INSERT INTO `jsh_serial_number` VALUES ('107', '586', '143132415952626404572', '0', '', '1', '2020-07-21 00:30:40', '63', '2020-07-21 00:30:47', '63', null, '63'); +INSERT INTO `jsh_serial_number` VALUES ('108', '586', '3215952626621201', '0', '', '0', '2020-07-21 00:31:02', '63', '2020-07-21 00:31:02', '63', null, '63'); +INSERT INTO `jsh_serial_number` VALUES ('109', '586', '3215952626621202', '0', '', '0', '2020-07-21 00:31:02', '63', '2020-07-21 00:31:02', '63', null, '63'); -- ---------------------------- -- Table structure for jsh_supplier @@ -998,7 +1170,7 @@ INSERT INTO `jsh_supplier` VALUES ('56', '客户666', '', '', '', '', null, '客 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', '客户2', '', '', '', '', null, '客户', '', '0.000000', '0.000000', '0.000000', '0.000000', null, '', '', '', '', '', '', null, '63', '0'); -INSERT INTO `jsh_supplier` VALUES ('60', '12312666', '', '', '', '', null, '会员', '', '994.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '0'); +INSERT INTO `jsh_supplier` VALUES ('60', '12312666', '', '', '', '', null, '会员', '', '985.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'); @@ -1006,7 +1178,7 @@ INSERT INTO `jsh_supplier` VALUES ('64', 'wrwer', '', '', '', '', null, '供应 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 ('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', '客户3', '', '', '', '', null, '客户', '', '0.000000', '0.000000', '0.000000', '0.000000', null, '', '', '', '', '', '', null, '63', '0'); @@ -1014,10 +1186,10 @@ INSERT INTO `jsh_supplier` VALUES ('72', 'sdfafadsf', '', '', '', '', null, '供 INSERT INTO `jsh_supplier` VALUES ('73', 'sadvczXCvz', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -- ---------------------------- --- Table structure for jsh_systemconfig +-- Table structure for jsh_system_config -- ---------------------------- -DROP TABLE IF EXISTS `jsh_systemconfig`; -CREATE TABLE `jsh_systemconfig` ( +DROP TABLE IF EXISTS `jsh_system_config`; +CREATE TABLE `jsh_system_config` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `company_name` varchar(50) DEFAULT NULL COMMENT '公司名称', `company_contacts` varchar(20) DEFAULT NULL COMMENT '公司联系人', @@ -1029,16 +1201,16 @@ CREATE TABLE `jsh_systemconfig` ( `customer_flag` varchar(1) DEFAULT '0' COMMENT '客户启用标记,0未启用,1启用', `minus_stock_flag` varchar(1) DEFAULT '0' COMMENT '负库存启用标记,0未启用,1启用', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统参数'; -- ---------------------------- --- Records of jsh_systemconfig +-- Records of jsh_system_config -- ---------------------------- -INSERT INTO `jsh_systemconfig` VALUES ('7', '南通jshERP公司', '张三', '南通市通州区某某路', '0513-10101010', '0513-18181818', '226300', '0', '0', '0', null, '0'); -INSERT INTO `jsh_systemconfig` VALUES ('8', '公司123', '', '', '', '', '', '0', '0', '0', '117', '0'); -INSERT INTO `jsh_systemconfig` VALUES ('9', '公司1', '小军', '', '', '', '', '0', '0', '0', '63', '0'); +INSERT INTO `jsh_system_config` VALUES ('7', '南通jshERP公司', '张三', '南通市通州区某某路', '0513-10101010', '0513-18181818', '226300', '0', '0', '0', null, '0'); +INSERT INTO `jsh_system_config` VALUES ('8', '公司123', '', '', '', '', '', '0', '0', '0', '117', '0'); +INSERT INTO `jsh_system_config` VALUES ('9', '公司1', '小军', '地址1', '1231', '1233', '4231', '0', '0', '1', '63', '0'); -- ---------------------------- -- Table structure for jsh_tenant @@ -1052,7 +1224,7 @@ CREATE TABLE `jsh_tenant` ( `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='租户'; +) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='租户'; -- ---------------------------- -- Records of jsh_tenant @@ -1073,22 +1245,24 @@ INSERT INTO `jsh_tenant` VALUES ('21', '130', 'jsh666', '2', '200', null); DROP TABLE IF EXISTS `jsh_unit`; CREATE TABLE `jsh_unit` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', - `UName` varchar(50) DEFAULT NULL COMMENT '名称,支持多单位', - `basic_unit` varchar(50) DEFAULT NULL COMMENT '基础单位' , - `other_unit` varchar(50) DEFAULT NULL COMMENT '副单位' , - `ratio` int(11) NULL DEFAULT NULL COMMENT '比例' , + `name` varchar(50) DEFAULT NULL COMMENT '名称,支持多单位', + `basic_unit` varchar(50) DEFAULT NULL COMMENT '基础单位', + `other_unit` varchar(50) DEFAULT NULL COMMENT '副单位', + `ratio` int(11) DEFAULT NULL COMMENT '比例', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', - `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='多单位表'; +) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='多单位表'; -- ---------------------------- -- Records of jsh_unit -- ---------------------------- -INSERT INTO `jsh_unit` VALUES ('2', 'kg,包(1:25)', 'kg', '包', '25', NULL, '0'); -INSERT INTO `jsh_unit` VALUES ('8', '瓶,箱(1:12)', '瓶', '箱', '12', NULL, '0'); +INSERT INTO `jsh_unit` VALUES ('2', 'kg,包(1:25)', 'kg', '包', '25', null, '0'); +INSERT INTO `jsh_unit` VALUES ('8', '瓶,箱(1:12)', '瓶', '箱', '12', null, '0'); INSERT INTO `jsh_unit` VALUES ('14', '个,箱(1:12)', '个', '箱', '12', '117', '0'); INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '个', '箱', '12', '63', '0'); +INSERT INTO `jsh_unit` VALUES ('16', '个,台(1:10)', '个', '台', '10', '63', '1'); +INSERT INTO `jsh_unit` VALUES ('17', '个,只(1:12)', '个', '只', '12', '63', '1'); -- ---------------------------- -- Table structure for jsh_user @@ -1132,68 +1306,69 @@ INSERT INTO `jsh_user` VALUES ('130', 'jsh666', 'jsh666', 'e10adc3949ba59abbe56e INSERT INTO `jsh_user` VALUES ('131', '测试用户', 'test123', 'e10adc3949ba59abbe56e057f20f883e', '', null, '', '', '1', '0', '0', '', null, '63'); -- ---------------------------- --- Table structure for jsh_userbusiness +-- Table structure for jsh_user_business -- ---------------------------- -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=68 DEFAULT CHARSET=utf8 COMMENT='用户/角色/模块关系表'; +DROP TABLE IF EXISTS `jsh_user_business`; +CREATE TABLE `jsh_user_business` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `type` varchar(50) DEFAULT NULL COMMENT '类别', + `key_id` varchar(50) DEFAULT NULL COMMENT '主id', + `value` varchar(10000) DEFAULT NULL COMMENT '值', + `btn_str` varchar(2000) DEFAULT NULL COMMENT '按钮权限', + `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8 COMMENT='用户/角色/模块关系表'; -- ---------------------------- --- Records of jsh_userbusiness +-- Records of jsh_user_business -- ---------------------------- -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][245]', '[{\"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', '[210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][59][207][208][209][226][227][228][229][235][237][244][22][23][220][240][25][217][218][26][194][195][31][13][243][14][15][234]', '[{\"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'); -INSERT INTO `jsh_userbusiness` VALUES ('67', 'UserRole', '131', '[16]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('5', 'RoleFunctions', '4', '[210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][59][207][208][209][226][227][228][229][235][237][244][246][22][23][220][240][25][217][218][26][194][195][31][13][16][243][14][15][234][236][245]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); +INSERT INTO `jsh_user_business` VALUES ('6', 'RoleFunctions', '5', '[22][23][25][26][194][195][31][33][200][201][41][199][202]', null, '0'); +INSERT INTO `jsh_user_business` 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_user_business` VALUES ('9', 'RoleFunctions', '7', '[168][13][12][16][14][15][189][18][19][132]', null, '0'); +INSERT INTO `jsh_user_business` 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_user_business` 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_user_business` VALUES ('12', 'UserRole', '1', '[5]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('13', 'UserRole', '2', '[6][7]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('14', 'UserDepot', '2', '[1][2][6][7]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('15', 'UserDepot', '1', '[1][2][5][6][7][10][12][14][15][17]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('16', 'UserRole', '63', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('18', 'UserDepot', '63', '[14][15]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('19', 'UserDepot', '5', '[6][45][46][50]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('20', 'UserRole', '5', '[5]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('21', 'UserRole', '64', '[13]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('22', 'UserDepot', '64', '[1]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('23', 'UserRole', '65', '[5]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('24', 'UserDepot', '65', '[1]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('25', 'UserCustomer', '64', '[5][2]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('26', 'UserCustomer', '65', '[6]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('27', 'UserCustomer', '63', '[58]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('28', 'UserDepot', '96', '[7]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('29', 'UserRole', '96', '[6]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('30', 'UserRole', '113', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('32', 'RoleFunctions', '10', '[210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][59][207][208][209][226][227][228][229][235][237][244][246][22][23][220][240][25][217][218][26][194][195][31][13][243][14][15][234]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); +INSERT INTO `jsh_user_business` VALUES ('34', 'UserRole', '115', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('35', 'UserRole', '117', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('36', 'UserDepot', '117', '[8][9]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('37', 'UserCustomer', '117', '[52]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('38', 'UserRole', '120', '[4]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('39', 'UserDepot', '120', '[7][8][9][10][11][12][2][1][3]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('40', 'UserCustomer', '120', '[52][48][6][5][2]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('41', 'RoleFunctions', '12', '', null, '0'); +INSERT INTO `jsh_user_business` 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_user_business` VALUES ('51', 'UserRole', '74', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('52', 'UserDepot', '121', '[13]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('54', 'UserDepot', '115', '[13]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('56', 'UserCustomer', '115', '[56]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('57', 'UserCustomer', '121', '[56]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('58', 'UserRole', '121', '[15]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('59', 'UserRole', '123', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('60', 'UserRole', '124', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('61', 'UserRole', '125', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('62', 'UserRole', '126', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('63', 'UserRole', '127', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('64', 'UserRole', '128', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('65', 'UserRole', '129', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('66', 'UserRole', '130', '[10]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('67', 'UserRole', '131', '[16]', null, '0'); +INSERT INTO `jsh_user_business` VALUES ('68', 'RoleFunctions', '16', '[210]', null, '0'); diff --git a/docs/数据库更新记录-方便升级.txt b/docs/数据库更新记录-方便升级.txt index a7794b3e..47183191 100644 --- a/docs/数据库更新记录-方便升级.txt +++ b/docs/数据库更新记录-方便升级.txt @@ -820,4 +820,86 @@ ROW_FORMAT=COMPACT -- 修改jsh_material_initial_stock表的删除字段 -- -------------------------------------------------------- alter table jsh_material_stock rename to jsh_material_initial_stock; -alter table jsh_material_initial_stock change delete_fag delete_flag varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; \ No newline at end of file +alter table jsh_material_initial_stock change delete_fag delete_flag varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +-- -------------------------------------------------------- +-- 时间 2020年07月20日 +-- by jishenghua +-- 优化表和字段的格式 +-- -------------------------------------------------------- +alter table jsh_log change userID user_id bigint(20) DEFAULT NULL COMMENT '用户id'; +alter table jsh_log change clientIP client_ip varchar(50) DEFAULT NULL COMMENT '客户端IP'; +alter table jsh_log change createtime create_time datetime DEFAULT NULL COMMENT '创建时间'; +alter table jsh_log change contentdetails content varchar(1000) DEFAULT NULL COMMENT '详情'; +alter table jsh_log drop column remark; + +alter table jsh_materialcategory rename to jsh_material_category; +alter table jsh_material_category change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_material_category change Name name varchar(50) DEFAULT NULL COMMENT '名称'; +alter table jsh_material_category change CategoryLevel category_level smallint(6) DEFAULT NULL COMMENT '等级'; +alter table jsh_material_category change ParentId parent_id bigint(20) DEFAULT NULL COMMENT '上级id'; + +alter table jsh_materialproperty rename to jsh_material_property; +alter table jsh_material_property change nativeName native_name varchar(50) DEFAULT NULL COMMENT '原始名称'; +alter table jsh_material_property change anotherName another_name varchar(50) DEFAULT NULL COMMENT '别名'; +alter table jsh_material_property change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_role change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_role change Name name varchar(50) DEFAULT NULL COMMENT '名称'; +alter table jsh_role change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_person change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_person change Type type varchar(20) DEFAULT NULL COMMENT '类型'; +alter table jsh_person change Name name varchar(50) DEFAULT NULL COMMENT '姓名'; +alter table jsh_person change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_systemconfig rename to jsh_system_config; +alter table jsh_system_config change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_account change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_account change Name name varchar(50) DEFAULT NULL COMMENT '名称'; +alter table jsh_account change SerialNo serial_no varchar(50) DEFAULT NULL COMMENT '编号'; +alter table jsh_account change InitialAmount initial_amount decimal(24,6) DEFAULT NULL COMMENT '期初金额'; +alter table jsh_account change CurrentAmount current_amount decimal(24,6) DEFAULT NULL COMMENT '当前余额'; +alter table jsh_account change Remark remark varchar(100) DEFAULT NULL COMMENT '备注'; +alter table jsh_account change IsDefault is_default bit(1) DEFAULT NULL COMMENT '是否默认'; +alter table jsh_account change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_functions rename to jsh_function; +alter table jsh_function change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_function change Number number varchar(50) DEFAULT NULL COMMENT '编号'; +alter table jsh_function change Name name varchar(50) DEFAULT NULL COMMENT '名称'; +alter table jsh_function change PNumber parent_number varchar(50) DEFAULT NULL COMMENT '上级编号'; +alter table jsh_function change URL url varchar(100) DEFAULT NULL COMMENT '链接'; +alter table jsh_function change State state bit(1) DEFAULT NULL COMMENT '收缩'; +alter table jsh_function change Sort sort varchar(50) DEFAULT NULL COMMENT '排序'; +alter table jsh_function change Enabled enabled bit(1) DEFAULT NULL COMMENT '启用'; +alter table jsh_function change Type type varchar(50) DEFAULT NULL COMMENT '类型'; +alter table jsh_function change PushBtn push_btn varchar(50) DEFAULT NULL COMMENT '功能按钮'; +alter table jsh_function change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_userbusiness rename to jsh_user_business; +alter table jsh_user_business change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_user_business change Type type varchar(50) DEFAULT NULL COMMENT '类别'; +alter table jsh_user_business change KeyId key_id varchar(50) DEFAULT NULL COMMENT '主id'; +alter table jsh_user_business change Value value varchar(10000) DEFAULT NULL COMMENT '值'; +alter table jsh_user_business change BtnStr btn_str varchar(2000) DEFAULT NULL COMMENT '按钮权限'; +alter table jsh_user_business change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_unit change UName name varchar(50) DEFAULT NULL COMMENT '名称,支持多单位'; +alter table jsh_unit change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_inoutitem rename to jsh_in_out_item; +alter table jsh_in_out_item change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键'; +alter table jsh_in_out_item change Name name varchar(50) DEFAULT NULL COMMENT '名称'; +alter table jsh_in_out_item change Type type varchar(20) DEFAULT NULL COMMENT '类型'; +alter table jsh_in_out_item change Remark remark varchar(100) DEFAULT NULL COMMENT '备注'; +alter table jsh_in_out_item change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除'; + +alter table jsh_serial_number change material_Id material_id bigint(20) DEFAULT NULL COMMENT '产品表id'; +alter table jsh_serial_number change serial_Number serial_number varchar(64) DEFAULT NULL COMMENT '序列号'; +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删除'; +alter table jsh_serial_number change create_Time create_time datetime DEFAULT NULL COMMENT '创建时间'; +alter table jsh_serial_number change update_Time update_time datetime DEFAULT NULL COMMENT '更新时间'; +alter table jsh_serial_number change depothead_Id depot_head_id bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向'; \ No newline at end of file diff --git a/erp_web/js/modules/sys/menu.js b/erp_web/js/modules/sys/menu.js index fb92edc3..0a2d0208 100644 --- a/erp_web/js/modules/sys/menu.js +++ b/erp_web/js/modules/sys/menu.js @@ -42,7 +42,7 @@ function initSelectInfo(lei) { } //按钮权限列表 else if (lei == 3) { - var btnStr = userBusinessList[0].btnstr; + var btnStr = userBusinessList[0].btnStr; if (btnStr != null) { var btnObj = JSON.parse(btnStr); for (var j = 0; j < btnObj.length; j++) { @@ -71,10 +71,10 @@ if (btnStrList.length > 0) { } $.ajax({ type: "post", - url: "/functions/findMenu", + url: "/function/findMenu", data: ({ pNumber: 0, - hasFunctions: functions + hasFunction: functions }), dataType: "json", async: false, diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js index 10532eee..89a40785 100644 --- a/erp_web/js/pages/materials/in_out.js +++ b/erp_web/js/pages/materials/in_out.js @@ -312,8 +312,8 @@ options += ""; for(var i = 0 ;i < accountList.length;i++) { var account = accountList[i]; - options += ''; - if(account.isdefault) { + options += ''; + if(account.isDefault) { defaultAccountId = account.id; //给账户赋值默认id } } diff --git a/erp_web/pages/manage/account.html b/erp_web/pages/manage/account.html index 19c867c8..ff8b1cf0 100644 --- a/erp_web/pages/manage/account.html +++ b/erp_web/pages/manage/account.html @@ -124,13 +124,13 @@ columns: [[ {field: 'id', width: 35, align: "center", checkbox: true}, {title: '名称', field: 'name', width: 100}, - {title: '编号', field: 'serialno', width: 150, align: "center"}, - {title: '期初金额', field: 'initialamount', width: 100, align: "center"}, - {title: '当前余额', field: 'currentamount', width: 100, align: "center"}, + {title: '编号', field: 'serialNo', width: 150, align: "center"}, + {title: '期初金额', field: 'initialAmount', width: 100, align: "center"}, + {title: '当前余额', field: 'currentAmount', width: 100, align: "center"}, { - title: '是否默认', field: 'isdefault', width: 100, align: "center", + title: '是否默认', field: 'isDefault', width: 100, align: "center", formatter: function (value, rec) { - if (rec.isdefault) { + if (rec.isDefault) { return ""; } else { @@ -456,17 +456,14 @@ //编辑结算账户 function editAccount(index) { var rowsdata = $("#tableData").datagrid("getRows")[index]; - var row = { - name: rowsdata.name, - serialNo: rowsdata.serialno, - initialAmount: rowsdata.initialamount, - currentAmount: rowsdata.currentamount, - remark: rowsdata.remark - }; + $("#name").textbox("setValue", rowsdata.name); + $("#serialNo").textbox("setValue", rowsdata.serialNo); + $("#initialAmount").textbox("setValue", rowsdata.initialAmount); + $("#currentAmount").textbox("setValue", rowsdata.currentAmount); + $("#remark").textbox("setValue", rowsdata.remark); oldAccount = rowsdata.name; $('#accountDlg').dialog('open').dialog('setTitle', ' 编辑结算账户'); $(".window-mask").css({width: webW, height: webH}); - $('#accountFM').form('load', row); accountID = rowsdata.id; url = '/account/update?id=' + rowsdata.id; } @@ -558,7 +555,7 @@ function showAccountInOutList(index) { var rowsdata = $("#tableData").datagrid("getRows")[index]; var accountId = rowsdata.id; - var initialAmount = rowsdata.initialamount; + var initialAmount = rowsdata.initialAmount; $('#accountDetailListDlg').dialog('open').dialog('setTitle', ' 查看账户流水'); $(".window-mask").css({width: webW, height: webH}); initAccountDetailData(accountId); diff --git a/erp_web/pages/manage/depot.html b/erp_web/pages/manage/depot.html index 1fff6b15..c1299f6e 100644 --- a/erp_web/pages/manage/depot.html +++ b/erp_web/pages/manage/depot.html @@ -172,10 +172,10 @@ }, {title: '仓库名称', field: 'name', width: 200}, {title: '仓库地址', field: 'address', width: 200}, - {title: '仓储费', field: 'warehousing', width: 60}, - {title: '搬运费', field: 'truckage', width: 60}, - {title: '负责人', field: 'principalName', width: 60}, - {title: '排序', field: 'sort', width: 60}, + {title: '仓储费', field: 'warehousing', width: 100}, + {title: '搬运费', field: 'truckage', width: 100}, + {title: '负责人', field: 'principalName', width: 100}, + {title: '排序', field: 'sort', width: 80}, { title: '是否默认', field: 'isDefault', width: 100, align: "center", formatter: function (value, rec) { diff --git a/erp_web/pages/manage/functions.html b/erp_web/pages/manage/functions.html index 5726e71b..3e6a4a0c 100644 --- a/erp_web/pages/manage/functions.html +++ b/erp_web/pages/manage/functions.html @@ -153,7 +153,7 @@ {field: 'id', width: 35, align: "center", checkbox: true}, {title: '编号 ', field: 'number', width: 80}, {title: '名称', field: 'name', width: 100}, - {title: '上级编号', field: 'pnumber', width: 80}, + {title: '上级编号', field: 'parentNumber', width: 80}, {title: '链接', field: 'url', width: 250}, {title: '排序', field: 'sort', width: 60}, { @@ -257,7 +257,7 @@ if (r) { $.ajax({ type: "post", - url: "/functions/batchDeleteFunctionsByIds", + url: "/function/batchDeleteFunctionsByIds", dataType: "json", data: ({ ids: functionsID @@ -299,7 +299,7 @@ } $.ajax({ type: "post", - url: "/functions/batchDeleteFunctionsByIds", + url: "/function/batchDeleteFunctionsByIds", dataType: "json", async: false, data: ({ @@ -339,7 +339,7 @@ iconBtnFun(); oldFunctions = ""; functionsID = 0; - url = '/functions/add'; + url = '/function/add'; } //保存信息 @@ -380,7 +380,7 @@ var rowsdata = $("#tableData").datagrid("getRows")[index]; $("#Number").textbox("setValue", rowsdata.number); $("#Name").focus().textbox("setValue", rowsdata.name); - $("#PNumber").textbox("setValue", rowsdata.pnumber); + $("#PNumber").textbox("setValue", rowsdata.parentNumber); $("#URL").textbox("setValue", rowsdata.url); $("#State").attr("checked", rowsdata.state); $("#Sort").textbox("setValue", rowsdata.sort); @@ -389,8 +389,8 @@ $("#Type").textbox("setValue", rowsdata.type); //点击icon图标弹出页面 iconBtnFun(); - if (rowsdata.pushbtn) { - var arr = rowsdata.pushbtn.split(","); + if (rowsdata.pushBtn) { + var arr = rowsdata.pushBtn.split(","); var pushBtnArray = []; for (var i = 0; i < arr.length; i++) { if (arr[i]) { @@ -411,7 +411,7 @@ functionsID = rowsdata.id; //焦点在名称输入框==定焦在输入文字后面 $("#Name").val("").focus().val(rowsdata.name); - url = '/functions/update?id=' + rowsdata.id; + url = '/function/update?id=' + rowsdata.id; } //点击icon图标弹出页面 @@ -432,7 +432,7 @@ if (name.length > 0 && (oldFunctions.length == 0 || name != oldFunctions)) { $.ajax({ type: "get", - url: "/functions/checkIsNameExist", + url: "/function/checkIsNameExist", dataType: "json", async: false, data: ({ @@ -480,7 +480,7 @@ var type = $.trim($("#searchType").val()); $.ajax({ type: "get", - url: "/functions/list", + url: "/function/list", dataType: "json", data: ({ search: JSON.stringify({ diff --git a/erp_web/pages/manage/log.html b/erp_web/pages/manage/log.html index 88b74499..6eb40b10 100644 --- a/erp_web/pages/manage/log.html +++ b/erp_web/pages/manage/log.html @@ -114,12 +114,12 @@ pageList: initPageNum, columns: [[ {title: '操作模块', field: 'operation', width: 120}, - {title: '操作详情', field: 'contentdetails', width: 350}, - {title: '操作人员', field: 'username', width: 100, align: "center"}, + {title: '操作详情', field: 'content', width: 350}, + {title: '操作人员', field: 'userName', width: 100, align: "center"}, {title: '操作状态',field: 'status',width:80,align:"center",formatter:function(value){ return value? "失败":"成功"; }}, - {title: '操作IP', field: 'clientip', width: 100, align: "center"}, + {title: '操作IP', field: 'clientIp', width: 100, align: "center"}, {title: '操作时间', field: 'createTimeStr', width: 150, align: "center"} ]], onLoadError: function () { @@ -222,25 +222,25 @@ function showLogDetails(pageNo, pageSize) { var operation = $.trim($("#searchOperation").val()); - var usernameID = $.trim($("#searchUsernameID").val()); + var userId = $.trim($("#searchUsernameID").val()); var clientIp = $.trim($("#searchIP").val()); var status = $.trim($("#searchStatus").val()); var beginTime = $.trim($("#searchBeginTime").datebox("getValue")); var endTime = $.trim($("#searchEndTime").datebox("getValue")); - var contentdetails = $.trim($("#searchDesc").val()); + var content = $.trim($("#searchDesc").val()); $.ajax({ type: "get", url: "/log/list", dataType: "json", data: ({ search: JSON.stringify({ - operation: operation, - usernameID: usernameID, - clientIp: clientIp, - status: status, - beginTime: beginTime, - endTime: endTime, - contentdetails: contentdetails + operation: operation, + userId: userId, + clientIp: clientIp, + status: status, + beginTime: beginTime, + endTime: endTime, + content: content }), currentPage: pageNo, pageSize: pageSize diff --git a/erp_web/pages/manage/roleFunctions.html b/erp_web/pages/manage/roleFunctions.html index a3543125..6e0bc587 100644 --- a/erp_web/pages/manage/roleFunctions.html +++ b/erp_web/pages/manage/roleFunctions.html @@ -64,7 +64,7 @@ $(function () { $('#tt').tree({ - url: '/functions/findRoleFunctions?UBType=' + type + '&UBKeyId=' + url_id, + url: '/function/findRoleFunction?UBType=' + type + '&UBKeyId=' + url_id, animate: true, checkbox: true }); diff --git a/erp_web/pages/manage/rolePushBtn.html b/erp_web/pages/manage/rolePushBtn.html index 773991d8..5d566677 100644 --- a/erp_web/pages/manage/rolePushBtn.html +++ b/erp_web/pages/manage/rolePushBtn.html @@ -145,7 +145,7 @@ var arr = getValue.split("]["); arr = arr.toString(); $.ajax({ - url: "/functions/findByIds", + url: "/function/findByIds", type: "get", data: { functionsIds: arr diff --git a/erp_web/pages/manage/unit.html b/erp_web/pages/manage/unit.html index d1b37701..291d95a3 100644 --- a/erp_web/pages/manage/unit.html +++ b/erp_web/pages/manage/unit.html @@ -118,7 +118,7 @@ return str; } }, - {title: '计量单位', field: 'uname', width: 200} + {title: '计量单位', field: 'name', width: 200} ]], toolbar: [ { @@ -356,7 +356,7 @@ dataType: "json", data: ({ info: JSON.stringify({ - uname: name, + name: name, basicUnit: basicName, otherUnit: otherName, ratio: otherNum diff --git a/erp_web/pages/materials/material.html b/erp_web/pages/materials/material.html index 1a63f179..c1fea4e6 100644 --- a/erp_web/pages/materials/material.html +++ b/erp_web/pages/materials/material.html @@ -115,7 +115,7 @@ - + @@ -362,7 +362,7 @@ var thisRows = res.data.page.rows; //属性列表 for (var i = 0; i < thisRows.length; i++) { if (thisRows[i].enabled) { - mPropertyListShort += thisRows[i].nativename + ","; + mPropertyListShort += thisRows[i].nativeName + ","; } } if (mPropertyListShort) { @@ -906,9 +906,9 @@ //表格模板变更 $(".tb-other-info").html(""); for (var i = 0; i < mPropertyList.length; i++) { - if (mPropertyList[i].nativename === "制造商") { + if (mPropertyList[i].nativeName === "制造商") { $(".tb-other-info").append(trMfrs); - $(".tr-mfrs td").first().text(mPropertyList[i].anothername); + $(".tr-mfrs td").first().text(mPropertyList[i].anotherName); if (mPropertyList[i].enabled) { $(".tr-mfrs").show(); } @@ -916,9 +916,9 @@ $(".tr-mfrs").hide(); } } - if (mPropertyList[i].nativename === "自定义1") { + if (mPropertyList[i].nativeName === "自定义1") { $(".tb-other-info").append(trOtherField1); - $(".tr-otherField1 td").first().text(mPropertyList[i].anothername); + $(".tr-otherField1 td").first().text(mPropertyList[i].anotherName); if (mPropertyList[i].enabled) { $(".tr-otherField1").show(); } @@ -926,9 +926,9 @@ $(".tr-otherField1").hide(); } } - if (mPropertyList[i].nativename === "自定义2") { + if (mPropertyList[i].nativeName === "自定义2") { $(".tb-other-info").append(trOtherField2); - $(".tr-otherField2 td").first().text(mPropertyList[i].anothername); + $(".tr-otherField2 td").first().text(mPropertyList[i].anotherName); if (mPropertyList[i].enabled) { $(".tr-otherField2").show(); } @@ -936,9 +936,9 @@ $(".tr-otherField2").hide(); } } - if (mPropertyList[i].nativename === "自定义3") { + if (mPropertyList[i].nativeName === "自定义3") { $(".tb-other-info").append(trOtherField3); - $(".tr-otherField3 td").first().text(mPropertyList[i].anothername); + $(".tr-otherField3 td").first().text(mPropertyList[i].anotherName); if (mPropertyList[i].enabled) { $(".tr-otherField3").show(); } @@ -1156,7 +1156,7 @@ } var objInfo = $("#materialFM").serializeObject(); objInfo.UnitId = $("#manyUnit").val(); - objInfo.CategoryId =$("#parentid").val(); + objInfo.CategoryId =$("#parentId").val(); //初始库存信息 var stockArr = []; $("#initDepot input").each(function () { @@ -1221,7 +1221,7 @@ $("#Name").focus().textbox("setValue", rowsdata.name); $("#EnableSerialNumber").val(rowsdata.enableserialnumber=='1'?'1':'0'); //商品类别id - $("#parentid").val(rowsdata.categoryid); + $("#parentId").val(rowsdata.categoryid); //商品类别名称 $("#parentName").textbox("setValue", rowsdata.categoryName); mId = rowsdata.categoryid; @@ -1397,7 +1397,7 @@ console.log(res.length); if (res.length) { for (var i = 0; i < res.length; i++) { - options += ''; + options += ''; } $("#manyUnit").empty().append('').append(options); //下拉框事件 diff --git a/erp_web/pages/materials/materialProperty.html b/erp_web/pages/materials/materialProperty.html index 06f09df0..d4227623 100644 --- a/erp_web/pages/materials/materialProperty.html +++ b/erp_web/pages/materials/materialProperty.html @@ -111,7 +111,7 @@ //loadFilter: pagerFilter, columns: [[ {field: 'id', width: 10, align: "center", hidden: true}, - {title: '名称', field: 'nativename', width: 100}, + {title: '名称', field: 'nativeName', width: 100}, { title: '是否启用', field: 'enabled', width: 100, formatter: function (value, rec) { if (rec.enabled) { @@ -123,7 +123,7 @@ } }, {title: '排序', field: 'sort', width: 100}, - {title: '别名', field: 'anothername', width: 100}, + {title: '别名', field: 'anotherName', width: 100}, { title: '操作', field: 'op', align: "center", width: 80, formatter: function (value, rec, index) { var str = ''; @@ -213,10 +213,10 @@ //编辑信息 function editMaterialProperty(index) { var rowsdata = $("#tableData").datagrid("getRows")[index]; - $("#nativeName").text(rowsdata.nativename); + $("#nativeName").text(rowsdata.nativeName); $("#enabled").attr("checked", rowsdata.enabled == true ? true : false); $("#sort").textbox("setValue", rowsdata.sort); - $("#anotherName").textbox("setValue", rowsdata.anothername); + $("#anotherName").textbox("setValue", rowsdata.anotherName); $('#materialPropertyDlg').dialog('open').dialog('setTitle', ' 编辑商品属性'); $(".window-mask").css({width: webW, height: webH}); //焦点在名称输入框==定焦在输入文字后面 diff --git a/erp_web/pages/materials/materialcategory.html b/erp_web/pages/materials/materialcategory.html index 7d65caa0..1a0141c4 100644 --- a/erp_web/pages/materials/materialcategory.html +++ b/erp_web/pages/materials/materialcategory.html @@ -36,13 +36,13 @@ - + 名称 - @@ -145,9 +145,9 @@ $('#materialCategoryFM').form('clear'); $('#materialCategoryDlg').dialog('open').dialog('setTitle', ' 修改商品类别信息'); $(".window-mask").css({width: webW, height: webH}); - $("#Name").textbox("setValue", res.data.name).focus(); + $("#name").textbox("setValue", res.data.name).focus(); $("#parentName").textbox("setValue", res.data.parentName); - $("#parentid").val(res.data.parentId); + $("#parentId").val(res.data.parentId); $("#serialNo").textbox("setValue", res.data.serialNo); $("#sort").textbox("setValue", res.data.sort); $("#remark").textbox("setValue", res.data.remark); @@ -250,7 +250,7 @@ //保存信息 $("#saveMaterialCategory").off("click").on("click", function () { - if (!$("#Name").val()) { + if (!$("#name").val()) { $.messager.alert('提示', '商品类别名称不能为空!', 'warning'); return; } diff --git a/erp_web/pages/materials/materialcategory_forselect.html b/erp_web/pages/materials/materialcategory_forselect.html index cce6828b..7964c20b 100644 --- a/erp_web/pages/materials/materialcategory_forselect.html +++ b/erp_web/pages/materials/materialcategory_forselect.html @@ -56,12 +56,12 @@ initMCData(node.id); } else if(clickType == "editBtn") { $("#parentName").textbox("setValue", node.text); - $("#parentid").val(node.id); + $("#parentId").val(node.id); } } else { $("#parentName").textbox("setValue", node.text); - $("#parentid").val(node.id); + $("#parentId").val(node.id); } $('#forSelectMaterialCategoryDlg').dialog('close'); } diff --git a/erp_web/pages/reports/account_report.html b/erp_web/pages/reports/account_report.html index e153fb8a..c4910ab9 100644 --- a/erp_web/pages/reports/account_report.html +++ b/erp_web/pages/reports/account_report.html @@ -88,14 +88,14 @@ pageList: initPageNum, columns: [[ {title: '名称', field: 'name', width: 100}, - {title: '编号', field: 'serialno', width: 150, align: "center"}, - {title: '期初金额', field: 'initialamount', width: 100, align: "center"}, - {title: '本月发生额', field: 'thismonthamount', width: 100, align: "center"}, - {title: '当前余额', field: 'currentamount', width: 100, align: "center"}, + {title: '编号', field: 'serialNo', width: 150, align: "center"}, + {title: '期初金额', field: 'initialAmount', width: 100, align: "center"}, + {title: '本月发生额', field: 'thisMonthAmount', width: 100, align: "center"}, + {title: '当前余额', field: 'currentAmount', width: 100, align: "center"}, { title: '操作', field: 'op', width: 100, align: "center", formatter: function (value, rec) { var str = ''; - var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialno + 'AaBb' + rec.initialamount + 'AaBb' + rec.currentamount; + var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialNo + 'AaBb' + rec.initialAmount + 'AaBb' + rec.currentAmount; str += ' 流水  '; return str; } diff --git a/erp_web/pages/reports/buy_in_report.html b/erp_web/pages/reports/buy_in_report.html index fe695f39..a9e3904d 100644 --- a/erp_web/pages/reports/buy_in_report.html +++ b/erp_web/pages/reports/buy_in_report.html @@ -84,6 +84,8 @@ type: "get", url: "/materialProperty/list", dataType: "json", + //设置为同步 + async: false, data: ({ search: JSON.stringify({ name: "" @@ -96,7 +98,7 @@ var thisRows = res.data.page.rows; for (var i = 0; i < thisRows.length; i++) { if (thisRows[i].enabled) { - mPropertyList += thisRows[i].nativename + ","; + mPropertyList += thisRows[i].nativeName + ","; } } if (mPropertyList) { diff --git a/erp_web/pages/reports/in_out_stock_report.html b/erp_web/pages/reports/in_out_stock_report.html index e0f925e2..79688d15 100644 --- a/erp_web/pages/reports/in_out_stock_report.html +++ b/erp_web/pages/reports/in_out_stock_report.html @@ -187,6 +187,8 @@ type: "get", url: "/materialProperty/list", dataType: "json", + //设置为同步 + async: false, data: ({ search: JSON.stringify({ name: "" @@ -199,7 +201,7 @@ var thisRows = res.data.page.rows; for (var i = 0; i < thisRows.length; i++) { if (thisRows[i].enabled) { - mPropertyList += thisRows[i].nativename + ","; + mPropertyList += thisRows[i].nativeName + ","; } } if (mPropertyList) { diff --git a/erp_web/pages/reports/sale_out_report.html b/erp_web/pages/reports/sale_out_report.html index 8e93b707..1285926e 100644 --- a/erp_web/pages/reports/sale_out_report.html +++ b/erp_web/pages/reports/sale_out_report.html @@ -88,6 +88,8 @@ type: "get", url: "/materialProperty/list", dataType: "json", + //设置为同步 + async: false, data: ({ search: JSON.stringify({ name: "" @@ -100,7 +102,7 @@ var thisRows = res.data.page.rows; for (var i = 0; i < thisRows.length; i++) { if (thisRows[i].enabled) { - mPropertyList += thisRows[i].nativename + ","; + mPropertyList += thisRows[i].nativeName + ","; } } if (mPropertyList) { diff --git a/erp_web/pages/reports/stock_warning_report.html b/erp_web/pages/reports/stock_warning_report.html index d523cc88..53247cf9 100644 --- a/erp_web/pages/reports/stock_warning_report.html +++ b/erp_web/pages/reports/stock_warning_report.html @@ -155,6 +155,8 @@ type: "get", url: "/materialProperty/list", dataType: "json", + //设置为同步 + async: false, data: ({ search: JSON.stringify({ name: "" @@ -167,7 +169,7 @@ var thisRows = res.data.page.rows; for (var i = 0; i < thisRows.length; i++) { if (thisRows[i].enabled) { - mPropertyList += thisRows[i].nativename + ","; + mPropertyList += thisRows[i].nativeName + ","; } } if (mPropertyList) { diff --git a/src/main/java/com/jsh/erp/config/TenantConfig.java b/src/main/java/com/jsh/erp/config/TenantConfig.java index 9157e67f..a868568d 100644 --- a/src/main/java/com/jsh/erp/config/TenantConfig.java +++ b/src/main/java/com/jsh/erp/config/TenantConfig.java @@ -61,8 +61,8 @@ public class TenantConfig { return true; } else { // 这里可以判断是否过滤表 - if ("jsh_materialproperty".equals(tableName) || "jsh_sequence".equals(tableName) - || "jsh_userbusiness".equals(tableName) || "jsh_functions".equals(tableName) + if ("jsh_material_property".equals(tableName) || "jsh_sequence".equals(tableName) + || "jsh_user_business".equals(tableName) || "jsh_function".equals(tableName) || "jsh_tenant".equals(tableName)) { return true; } else { diff --git a/src/main/java/com/jsh/erp/controller/DepotItemController.java b/src/main/java/com/jsh/erp/controller/DepotItemController.java index d17fe835..3934b081 100644 --- a/src/main/java/com/jsh/erp/controller/DepotItemController.java +++ b/src/main/java/com/jsh/erp/controller/DepotItemController.java @@ -174,7 +174,7 @@ public class DepotItemController { if (diEx.getUnitId() == null || diEx.getUnitId().equals("")) { ratio = ""; } else { - ratio = diEx.getUName(); + ratio = diEx.getUnitName(); ratio = ratio.substring(ratio.indexOf("(")); } //名称/型号/扩展信息/包装 @@ -182,7 +182,7 @@ public class DepotItemController { + ((diEx.getMStandard() == null || diEx.getMStandard().equals("")) ? "" : "(" + diEx.getMStandard() + ")") + ((diEx.getMModel() == null || diEx.getMModel().equals("")) ? "" : "(" + diEx.getMModel() + ")"); String materialOther = getOtherInfo(mpArr, diEx); - MaterialName = MaterialName + materialOther + ((diEx.getUName() == null || diEx.getUName().equals("")) ? "" : "(" + diEx.getUName() + ")") + ratio; + MaterialName = MaterialName + materialOther + ((diEx.getUnitName() == null || diEx.getUnitName().equals("")) ? "" : "(" + diEx.getUnitName() + ")") + ratio; item.put("MaterialName", MaterialName == null ? "" : MaterialName); BigDecimal stock = depotItemService.getStockByParam(diEx.getDepotid(),diEx.getMaterialid(),null,null,tenantId); item.put("Stock", stock); @@ -298,7 +298,7 @@ public class DepotItemController { String materialOther = getOtherInfo(mpArr, diEx); item.put("MaterialOther", materialOther); item.put("MaterialColor", diEx.getMColor()); - item.put("unitName", getUName(diEx.getMaterialUnit(), diEx.getUName())); + item.put("unitName", getUName(diEx.getMaterialUnit(), diEx.getUnitName())); item.put("prevSum", depotItemService.getStockByParam(depotId,mId,null,timeA,tenantId)); item.put("InSum", depotItemService.getInNumByParam(depotId,mId,timeA,timeB,tenantId)); @@ -468,7 +468,7 @@ public class DepotItemController { item.put("MaterialOther", materialOther); item.put("MaterialColor", diEx.getMColor()); item.put("MaterialUnit", diEx.getMaterialUnit()); - item.put("UName", diEx.getUName()); + item.put("UName", diEx.getUnitName()); item.put("InSum", InSum); item.put("OutSum", OutSum); item.put("InSumPrice", InSumPrice); @@ -536,7 +536,7 @@ public class DepotItemController { item.put("MaterialOther", materialOther); item.put("MaterialColor", diEx.getMColor()); item.put("MaterialUnit", diEx.getMaterialUnit()); - item.put("UName", diEx.getUName()); + item.put("UName", diEx.getUnitName()); item.put("OutSum", OutSumRetail.add(OutSum)); item.put("InSum", InSumRetail.add(InSum)); item.put("OutSumPrice", OutSumRetailPrice.add(OutSumPrice)); diff --git a/src/main/java/com/jsh/erp/controller/FunctionsController.java b/src/main/java/com/jsh/erp/controller/FunctionController.java similarity index 71% rename from src/main/java/com/jsh/erp/controller/FunctionsController.java rename to src/main/java/com/jsh/erp/controller/FunctionController.java index ecf6ed23..1b0f5a64 100644 --- a/src/main/java/com/jsh/erp/controller/FunctionsController.java +++ b/src/main/java/com/jsh/erp/controller/FunctionController.java @@ -3,21 +3,19 @@ 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.Function; 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.functions.FunctionService; 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; @@ -25,26 +23,26 @@ import java.util.List; * @author ji-sheng-hua jshERP */ @RestController -@RequestMapping(value = "/functions") -public class FunctionsController { - private Logger logger = LoggerFactory.getLogger(FunctionsController.class); +@RequestMapping(value = "/function") +public class FunctionController { + private Logger logger = LoggerFactory.getLogger(FunctionController.class); @Resource - private FunctionsService functionsService; + private FunctionService functionService; @Resource private UserBusinessService userBusinessService; @PostMapping(value = "/findMenu") public JSONArray findMenu(@RequestParam(value="pNumber") String pNumber, - @RequestParam(value="hasFunctions") String hasFunctions, + @RequestParam(value="hasFunction") String hasFunction, HttpServletRequest request)throws Exception { //存放数据json数组 JSONArray dataArray = new JSONArray(); try { //当前用户所拥有的功能列表,格式如:[1][2][5] - String fc = hasFunctions; - List dataList = functionsService.getRoleFunctions(pNumber); + String fc = hasFunction; + List dataList = functionService.getRoleFunction(pNumber); if (dataList.size() != 0) { dataArray = getMenuByFunction(dataList, fc); } @@ -54,14 +52,14 @@ public class FunctionsController { return dataArray; } - public JSONArray getMenuByFunction(List dataList, String fc) throws Exception { + public JSONArray getMenuByFunction(List dataList, String fc) throws Exception { JSONArray dataArray = new JSONArray(); - for (Functions functions : dataList) { + for (Function function : dataList) { JSONObject item = new JSONObject(); - List newList = functionsService.getRoleFunctions(functions.getNumber()); - item.put("id", functions.getId()); - item.put("text", functions.getName()); - item.put("icon", functions.getIcon()); + List newList = functionService.getRoleFunction(function.getNumber()); + item.put("id", function.getId()); + item.put("text", function.getName()); + item.put("icon", function.getIcon()); if (newList.size()>0) { JSONArray childrenArr = getMenuByFunction(newList, fc); if(childrenArr.size()>0) { @@ -69,8 +67,8 @@ public class FunctionsController { dataArray.add(item); } } else { - item.put("url", functions.getUrl()); - if (fc.indexOf("[" + functions.getId().toString() + "]") != -1) { + item.put("url", function.getUrl()); + if (fc.indexOf("[" + function.getId().toString() + "]") != -1) { dataArray.add(item); } } @@ -83,12 +81,12 @@ public class FunctionsController { * @param request * @return */ - @PostMapping(value = "/findRoleFunctions") - public JSONArray findRoleFunctions(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId, + @PostMapping(value = "/findRoleFunction") + public JSONArray findRoleFunction(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId, HttpServletRequest request)throws Exception { JSONArray arr = new JSONArray(); try { - List dataListFun = functionsService.findRoleFunctions("0"); + List dataListFun = functionService.findRoleFunction("0"); //开始拼接json数据 JSONObject outer = new JSONObject(); outer.put("id", 1); @@ -98,8 +96,8 @@ public class FunctionsController { JSONArray dataArray = new JSONArray(); if (null != dataListFun) { //根据条件从列表里面移除"系统管理" - List dataList = new ArrayList(); - for (Functions fun : dataListFun) { + List dataList = new ArrayList(); + for (Function fun : dataListFun) { //从session中获取租户id String loginName = null; Object userInfo = request.getSession().getAttribute("user"); @@ -125,23 +123,23 @@ public class FunctionsController { return arr; } - public JSONArray getFunctionList(List dataList, String type, String keyId) throws Exception { + public JSONArray getFunctionList(List dataList, String type, String keyId) throws Exception { JSONArray dataArray = new JSONArray(); if (null != dataList) { - for (Functions functions : dataList) { + for (Function function : dataList) { JSONObject item = new JSONObject(); - item.put("id", functions.getId()); - item.put("text", functions.getName()); + item.put("id", function.getId()); + item.put("text", function.getName()); Boolean flag = false; try { - flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions.getId().toString() + "]"); + flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + function.getId().toString() + "]"); } catch (Exception e) { logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!"); } if (flag == true) { item.put("checked", true); } - List funList = functionsService.findRoleFunctions(functions.getNumber()); + List funList = functionService.findRoleFunction(function.getNumber()); if(funList.size()>0) { JSONArray funArr = getFunctionList(funList, type, keyId); item.put("children", funArr); @@ -165,17 +163,17 @@ public class FunctionsController { HttpServletRequest request)throws Exception { BaseResponseInfo res = new BaseResponseInfo(); try { - List dataList = functionsService.findByIds(functionsIds); + List dataList = functionService.findByIds(functionsIds); JSONObject outer = new JSONObject(); outer.put("total", dataList.size()); //存放数据json数组 JSONArray dataArray = new JSONArray(); if (null != dataList) { - for (Functions functions : dataList) { + for (Function function : dataList) { JSONObject item = new JSONObject(); - item.put("Id", functions.getId()); - item.put("Name", functions.getName()); - item.put("PushBtn", functions.getPushbtn()); + item.put("Id", function.getId()); + item.put("Name", function.getName()); + item.put("PushBtn", function.getPushBtn()); item.put("op", 1); dataArray.add(item); } @@ -199,10 +197,10 @@ public class FunctionsController { * @Param: ids * @return java.lang.Object */ - @RequestMapping(value = "/batchDeleteFunctionsByIds") - public Object batchDeleteFunctionsByIds(@RequestParam("ids") String ids) throws Exception { + @RequestMapping(value = "/batchDeleteFunctionByIds") + public Object batchDeleteFunctionByIds(@RequestParam("ids") String ids) throws Exception { JSONObject result = ExceptionConstants.standardSuccess(); - int i= functionsService.batchDeleteFunctionsByIds(ids); + int i= functionService.batchDeleteFunctionByIds(ids); if(i<1){ logger.error("异常码[{}],异常提示[{}],参数,ids[{}]", ExceptionConstants.FUNCTIONS_DELETE_FAILED_CODE,ExceptionConstants.FUNCTIONS_DELETE_FAILED_MSG,ids); diff --git a/src/main/java/com/jsh/erp/controller/MaterialCategoryController.java b/src/main/java/com/jsh/erp/controller/MaterialCategoryController.java index 3c899c65..00b2f862 100644 --- a/src/main/java/com/jsh/erp/controller/MaterialCategoryController.java +++ b/src/main/java/com/jsh/erp/controller/MaterialCategoryController.java @@ -64,8 +64,8 @@ public class MaterialCategoryController { for (MaterialCategory mc : dataList) { outer.put("id", mc.getId()); outer.put("name", mc.getName()); - outer.put("parentId", mc.getParentid()); - List dataParentList = materialCategoryService.findById(mc.getParentid()); + outer.put("parentId", mc.getParentId()); + List dataParentList = materialCategoryService.findById(mc.getParentId()); if(dataParentList!=null&&dataParentList.size()>0){ outer.put("parentName", dataParentList.get(0).getName()); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/Account.java b/src/main/java/com/jsh/erp/datasource/entities/Account.java index dba8548c..8327926c 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Account.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Account.java @@ -3,290 +3,92 @@ package com.jsh.erp.datasource.entities; import java.math.BigDecimal; public class Account { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.Name - * - * @mbggenerated - */ private String name; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.SerialNo - * - * @mbggenerated - */ - private String serialno; + private String serialNo; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.InitialAmount - * - * @mbggenerated - */ - private BigDecimal initialamount; + private BigDecimal initialAmount; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.CurrentAmount - * - * @mbggenerated - */ - private BigDecimal currentamount; + private BigDecimal currentAmount; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.Remark - * - * @mbggenerated - */ private String remark; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.IsDefault - * - * @mbggenerated - */ - private Boolean isdefault; + private Boolean isDefault; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_account.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.Id - * - * @return the value of jsh_account.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.Id - * - * @param id the value for jsh_account.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_account.Name - * - * @return the value of jsh_account.Name - * - * @mbggenerated - */ public String getName() { return name; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.Name - * - * @param name the value for jsh_account.Name - * - * @mbggenerated - */ public void setName(String name) { this.name = name == null ? null : name.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.SerialNo - * - * @return the value of jsh_account.SerialNo - * - * @mbggenerated - */ - public String getSerialno() { - return serialno; + public String getSerialNo() { + return serialNo; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.SerialNo - * - * @param serialno the value for jsh_account.SerialNo - * - * @mbggenerated - */ - public void setSerialno(String serialno) { - this.serialno = serialno == null ? null : serialno.trim(); + public void setSerialNo(String serialNo) { + this.serialNo = serialNo == null ? null : serialNo.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.InitialAmount - * - * @return the value of jsh_account.InitialAmount - * - * @mbggenerated - */ - public BigDecimal getInitialamount() { - return initialamount; + public BigDecimal getInitialAmount() { + return initialAmount; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.InitialAmount - * - * @param initialamount the value for jsh_account.InitialAmount - * - * @mbggenerated - */ - public void setInitialamount(BigDecimal initialamount) { - this.initialamount = initialamount; + public void setInitialAmount(BigDecimal initialAmount) { + this.initialAmount = initialAmount; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.CurrentAmount - * - * @return the value of jsh_account.CurrentAmount - * - * @mbggenerated - */ - public BigDecimal getCurrentamount() { - return currentamount; + public BigDecimal getCurrentAmount() { + return currentAmount; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.CurrentAmount - * - * @param currentamount the value for jsh_account.CurrentAmount - * - * @mbggenerated - */ - public void setCurrentamount(BigDecimal currentamount) { - this.currentamount = currentamount; + public void setCurrentAmount(BigDecimal currentAmount) { + this.currentAmount = currentAmount; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.Remark - * - * @return the value of jsh_account.Remark - * - * @mbggenerated - */ public String getRemark() { return remark; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.Remark - * - * @param remark the value for jsh_account.Remark - * - * @mbggenerated - */ public void setRemark(String remark) { this.remark = remark == null ? null : remark.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.IsDefault - * - * @return the value of jsh_account.IsDefault - * - * @mbggenerated - */ - public Boolean getIsdefault() { - return isdefault; + public Boolean getIsDefault() { + return isDefault; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.IsDefault - * - * @param isdefault the value for jsh_account.IsDefault - * - * @mbggenerated - */ - public void setIsdefault(Boolean isdefault) { - this.isdefault = isdefault; + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_account.tenant_id - * - * @return the value of jsh_account.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_account.tenant_id - * - * @param tenantId the value for jsh_account.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_account.delete_Flag - * - * @return the value of jsh_account.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_account.delete_Flag - * - * @param deleteFlag the value for jsh_account.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/AccountExample.java b/src/main/java/com/jsh/erp/datasource/entities/AccountExample.java index f2e93bfb..9f751540 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/AccountExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/AccountExample.java @@ -5,118 +5,46 @@ import java.util.ArrayList; import java.util.List; public class AccountExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_account - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_account - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_account - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public AccountExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @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_account - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -125,41 +53,23 @@ public class AccountExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @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_account - * - * @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_account - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -196,452 +106,452 @@ public class AccountExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } - public Criteria andSerialnoIsNull() { - addCriterion("SerialNo is null"); + public Criteria andSerialNoIsNull() { + addCriterion("serial_no is null"); return (Criteria) this; } - public Criteria andSerialnoIsNotNull() { - addCriterion("SerialNo is not null"); + public Criteria andSerialNoIsNotNull() { + addCriterion("serial_no is not null"); return (Criteria) this; } - public Criteria andSerialnoEqualTo(String value) { - addCriterion("SerialNo =", value, "serialno"); + public Criteria andSerialNoEqualTo(String value) { + addCriterion("serial_no =", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoNotEqualTo(String value) { - addCriterion("SerialNo <>", value, "serialno"); + public Criteria andSerialNoNotEqualTo(String value) { + addCriterion("serial_no <>", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoGreaterThan(String value) { - addCriterion("SerialNo >", value, "serialno"); + public Criteria andSerialNoGreaterThan(String value) { + addCriterion("serial_no >", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoGreaterThanOrEqualTo(String value) { - addCriterion("SerialNo >=", value, "serialno"); + public Criteria andSerialNoGreaterThanOrEqualTo(String value) { + addCriterion("serial_no >=", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoLessThan(String value) { - addCriterion("SerialNo <", value, "serialno"); + public Criteria andSerialNoLessThan(String value) { + addCriterion("serial_no <", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoLessThanOrEqualTo(String value) { - addCriterion("SerialNo <=", value, "serialno"); + public Criteria andSerialNoLessThanOrEqualTo(String value) { + addCriterion("serial_no <=", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoLike(String value) { - addCriterion("SerialNo like", value, "serialno"); + public Criteria andSerialNoLike(String value) { + addCriterion("serial_no like", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoNotLike(String value) { - addCriterion("SerialNo not like", value, "serialno"); + public Criteria andSerialNoNotLike(String value) { + addCriterion("serial_no not like", value, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoIn(List values) { - addCriterion("SerialNo in", values, "serialno"); + public Criteria andSerialNoIn(List values) { + addCriterion("serial_no in", values, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoNotIn(List values) { - addCriterion("SerialNo not in", values, "serialno"); + public Criteria andSerialNoNotIn(List values) { + addCriterion("serial_no not in", values, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoBetween(String value1, String value2) { - addCriterion("SerialNo between", value1, value2, "serialno"); + public Criteria andSerialNoBetween(String value1, String value2) { + addCriterion("serial_no between", value1, value2, "serialNo"); return (Criteria) this; } - public Criteria andSerialnoNotBetween(String value1, String value2) { - addCriterion("SerialNo not between", value1, value2, "serialno"); + public Criteria andSerialNoNotBetween(String value1, String value2) { + addCriterion("serial_no not between", value1, value2, "serialNo"); return (Criteria) this; } - public Criteria andInitialamountIsNull() { - addCriterion("InitialAmount is null"); + public Criteria andInitialAmountIsNull() { + addCriterion("initial_amount is null"); return (Criteria) this; } - public Criteria andInitialamountIsNotNull() { - addCriterion("InitialAmount is not null"); + public Criteria andInitialAmountIsNotNull() { + addCriterion("initial_amount is not null"); return (Criteria) this; } - public Criteria andInitialamountEqualTo(BigDecimal value) { - addCriterion("InitialAmount =", value, "initialamount"); + public Criteria andInitialAmountEqualTo(BigDecimal value) { + addCriterion("initial_amount =", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountNotEqualTo(BigDecimal value) { - addCriterion("InitialAmount <>", value, "initialamount"); + public Criteria andInitialAmountNotEqualTo(BigDecimal value) { + addCriterion("initial_amount <>", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountGreaterThan(BigDecimal value) { - addCriterion("InitialAmount >", value, "initialamount"); + public Criteria andInitialAmountGreaterThan(BigDecimal value) { + addCriterion("initial_amount >", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("InitialAmount >=", value, "initialamount"); + public Criteria andInitialAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("initial_amount >=", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountLessThan(BigDecimal value) { - addCriterion("InitialAmount <", value, "initialamount"); + public Criteria andInitialAmountLessThan(BigDecimal value) { + addCriterion("initial_amount <", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountLessThanOrEqualTo(BigDecimal value) { - addCriterion("InitialAmount <=", value, "initialamount"); + public Criteria andInitialAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("initial_amount <=", value, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountIn(List values) { - addCriterion("InitialAmount in", values, "initialamount"); + public Criteria andInitialAmountIn(List values) { + addCriterion("initial_amount in", values, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountNotIn(List values) { - addCriterion("InitialAmount not in", values, "initialamount"); + public Criteria andInitialAmountNotIn(List values) { + addCriterion("initial_amount not in", values, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("InitialAmount between", value1, value2, "initialamount"); + public Criteria andInitialAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("initial_amount between", value1, value2, "initialAmount"); return (Criteria) this; } - public Criteria andInitialamountNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("InitialAmount not between", value1, value2, "initialamount"); + public Criteria andInitialAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("initial_amount not between", value1, value2, "initialAmount"); return (Criteria) this; } - public Criteria andCurrentamountIsNull() { - addCriterion("CurrentAmount is null"); + public Criteria andCurrentAmountIsNull() { + addCriterion("current_amount is null"); return (Criteria) this; } - public Criteria andCurrentamountIsNotNull() { - addCriterion("CurrentAmount is not null"); + public Criteria andCurrentAmountIsNotNull() { + addCriterion("current_amount is not null"); return (Criteria) this; } - public Criteria andCurrentamountEqualTo(BigDecimal value) { - addCriterion("CurrentAmount =", value, "currentamount"); + public Criteria andCurrentAmountEqualTo(BigDecimal value) { + addCriterion("current_amount =", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountNotEqualTo(BigDecimal value) { - addCriterion("CurrentAmount <>", value, "currentamount"); + public Criteria andCurrentAmountNotEqualTo(BigDecimal value) { + addCriterion("current_amount <>", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountGreaterThan(BigDecimal value) { - addCriterion("CurrentAmount >", value, "currentamount"); + public Criteria andCurrentAmountGreaterThan(BigDecimal value) { + addCriterion("current_amount >", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("CurrentAmount >=", value, "currentamount"); + public Criteria andCurrentAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("current_amount >=", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountLessThan(BigDecimal value) { - addCriterion("CurrentAmount <", value, "currentamount"); + public Criteria andCurrentAmountLessThan(BigDecimal value) { + addCriterion("current_amount <", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountLessThanOrEqualTo(BigDecimal value) { - addCriterion("CurrentAmount <=", value, "currentamount"); + public Criteria andCurrentAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("current_amount <=", value, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountIn(List values) { - addCriterion("CurrentAmount in", values, "currentamount"); + public Criteria andCurrentAmountIn(List values) { + addCriterion("current_amount in", values, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountNotIn(List values) { - addCriterion("CurrentAmount not in", values, "currentamount"); + public Criteria andCurrentAmountNotIn(List values) { + addCriterion("current_amount not in", values, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("CurrentAmount between", value1, value2, "currentamount"); + public Criteria andCurrentAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("current_amount between", value1, value2, "currentAmount"); return (Criteria) this; } - public Criteria andCurrentamountNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("CurrentAmount not between", value1, value2, "currentamount"); + public Criteria andCurrentAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("current_amount not between", value1, value2, "currentAmount"); return (Criteria) this; } public Criteria andRemarkIsNull() { - addCriterion("Remark is null"); + addCriterion("remark is null"); return (Criteria) this; } public Criteria andRemarkIsNotNull() { - addCriterion("Remark is not null"); + addCriterion("remark is not null"); return (Criteria) this; } public Criteria andRemarkEqualTo(String value) { - addCriterion("Remark =", value, "remark"); + addCriterion("remark =", value, "remark"); return (Criteria) this; } public Criteria andRemarkNotEqualTo(String value) { - addCriterion("Remark <>", value, "remark"); + addCriterion("remark <>", value, "remark"); return (Criteria) this; } public Criteria andRemarkGreaterThan(String value) { - addCriterion("Remark >", value, "remark"); + addCriterion("remark >", value, "remark"); return (Criteria) this; } public Criteria andRemarkGreaterThanOrEqualTo(String value) { - addCriterion("Remark >=", value, "remark"); + addCriterion("remark >=", value, "remark"); return (Criteria) this; } public Criteria andRemarkLessThan(String value) { - addCriterion("Remark <", value, "remark"); + addCriterion("remark <", value, "remark"); return (Criteria) this; } public Criteria andRemarkLessThanOrEqualTo(String value) { - addCriterion("Remark <=", value, "remark"); + addCriterion("remark <=", value, "remark"); return (Criteria) this; } public Criteria andRemarkLike(String value) { - addCriterion("Remark like", value, "remark"); + addCriterion("remark like", value, "remark"); return (Criteria) this; } public Criteria andRemarkNotLike(String value) { - addCriterion("Remark not like", value, "remark"); + addCriterion("remark not like", value, "remark"); return (Criteria) this; } public Criteria andRemarkIn(List values) { - addCriterion("Remark in", values, "remark"); + addCriterion("remark in", values, "remark"); return (Criteria) this; } public Criteria andRemarkNotIn(List values) { - addCriterion("Remark not in", values, "remark"); + addCriterion("remark not in", values, "remark"); return (Criteria) this; } public Criteria andRemarkBetween(String value1, String value2) { - addCriterion("Remark between", value1, value2, "remark"); + addCriterion("remark between", value1, value2, "remark"); return (Criteria) this; } public Criteria andRemarkNotBetween(String value1, String value2) { - addCriterion("Remark not between", value1, value2, "remark"); + addCriterion("remark not between", value1, value2, "remark"); return (Criteria) this; } - public Criteria andIsdefaultIsNull() { - addCriterion("IsDefault is null"); + public Criteria andIsDefaultIsNull() { + addCriterion("is_default is null"); return (Criteria) this; } - public Criteria andIsdefaultIsNotNull() { - addCriterion("IsDefault is not null"); + public Criteria andIsDefaultIsNotNull() { + addCriterion("is_default is not null"); return (Criteria) this; } - public Criteria andIsdefaultEqualTo(Boolean value) { - addCriterion("IsDefault =", value, "isdefault"); + public Criteria andIsDefaultEqualTo(Boolean value) { + addCriterion("is_default =", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultNotEqualTo(Boolean value) { - addCriterion("IsDefault <>", value, "isdefault"); + public Criteria andIsDefaultNotEqualTo(Boolean value) { + addCriterion("is_default <>", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultGreaterThan(Boolean value) { - addCriterion("IsDefault >", value, "isdefault"); + public Criteria andIsDefaultGreaterThan(Boolean value) { + addCriterion("is_default >", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultGreaterThanOrEqualTo(Boolean value) { - addCriterion("IsDefault >=", value, "isdefault"); + public Criteria andIsDefaultGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_default >=", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultLessThan(Boolean value) { - addCriterion("IsDefault <", value, "isdefault"); + public Criteria andIsDefaultLessThan(Boolean value) { + addCriterion("is_default <", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultLessThanOrEqualTo(Boolean value) { - addCriterion("IsDefault <=", value, "isdefault"); + public Criteria andIsDefaultLessThanOrEqualTo(Boolean value) { + addCriterion("is_default <=", value, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultIn(List values) { - addCriterion("IsDefault in", values, "isdefault"); + public Criteria andIsDefaultIn(List values) { + addCriterion("is_default in", values, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultNotIn(List values) { - addCriterion("IsDefault not in", values, "isdefault"); + public Criteria andIsDefaultNotIn(List values) { + addCriterion("is_default not in", values, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultBetween(Boolean value1, Boolean value2) { - addCriterion("IsDefault between", value1, value2, "isdefault"); + public Criteria andIsDefaultBetween(Boolean value1, Boolean value2) { + addCriterion("is_default between", value1, value2, "isDefault"); return (Criteria) this; } - public Criteria andIsdefaultNotBetween(Boolean value1, Boolean value2) { - addCriterion("IsDefault not between", value1, value2, "isdefault"); + public Criteria andIsDefaultNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_default not between", value1, value2, "isDefault"); return (Criteria) this; } @@ -706,95 +616,82 @@ public class AccountExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_account - * - * @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_account - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/DepotItemVo4WithInfoEx.java b/src/main/java/com/jsh/erp/datasource/entities/DepotItemVo4WithInfoEx.java index 79f3ea45..cb58c5a1 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/DepotItemVo4WithInfoEx.java +++ b/src/main/java/com/jsh/erp/datasource/entities/DepotItemVo4WithInfoEx.java @@ -30,7 +30,7 @@ public class DepotItemVo4WithInfoEx extends DepotItem{ private Long UnitId; - private String UName; + private String unitName; private BigDecimal presetPriceOne; @@ -144,12 +144,12 @@ public class DepotItemVo4WithInfoEx extends DepotItem{ UnitId = unitId; } - public String getUName() { - return UName; + public String getUnitName() { + return unitName; } - public void setUName(String UName) { - this.UName = UName; + public void setUnitName(String unitName) { + this.unitName = unitName; } public BigDecimal getPresetPriceOne() { diff --git a/src/main/java/com/jsh/erp/datasource/entities/Function.java b/src/main/java/com/jsh/erp/datasource/entities/Function.java new file mode 100644 index 00000000..b00aceff --- /dev/null +++ b/src/main/java/com/jsh/erp/datasource/entities/Function.java @@ -0,0 +1,123 @@ +package com.jsh.erp.datasource.entities; + +public class Function { + private Long id; + + private String number; + + private String name; + + private String parentNumber; + + private String url; + + private Boolean state; + + private String sort; + + private Boolean enabled; + + private String type; + + private String pushBtn; + + private String icon; + + private String deleteFlag; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number == null ? null : number.trim(); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getParentNumber() { + return parentNumber; + } + + public void setParentNumber(String parentNumber) { + this.parentNumber = parentNumber == null ? null : parentNumber.trim(); + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url == null ? null : url.trim(); + } + + public Boolean getState() { + return state; + } + + public void setState(Boolean state) { + this.state = state; + } + + public String getSort() { + return sort; + } + + public void setSort(String sort) { + this.sort = sort == null ? null : sort.trim(); + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type == null ? null : type.trim(); + } + + public String getPushBtn() { + return pushBtn; + } + + public void setPushBtn(String pushBtn) { + this.pushBtn = pushBtn == null ? null : pushBtn.trim(); + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon == null ? null : icon.trim(); + } + + public String getDeleteFlag() { + return deleteFlag; + } + + public void setDeleteFlag(String deleteFlag) { + this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/entities/FunctionsExample.java b/src/main/java/com/jsh/erp/datasource/entities/FunctionExample.java similarity index 60% rename from src/main/java/com/jsh/erp/datasource/entities/FunctionsExample.java rename to src/main/java/com/jsh/erp/datasource/entities/FunctionExample.java index 8fa60704..82ee2593 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/FunctionsExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/FunctionExample.java @@ -3,119 +3,47 @@ package com.jsh.erp.datasource.entities; import java.util.ArrayList; import java.util.List; -public class FunctionsExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_functions - * - * @mbggenerated - */ +public class FunctionExample { protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_functions - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_functions - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - public FunctionsExample() { - oredCriteria = new ArrayList(); + public FunctionExample() { + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @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_functions - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class FunctionsExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @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_functions - * - * @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_functions - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -195,672 +105,672 @@ public class FunctionsExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNumberIsNull() { - addCriterion("Number is null"); + addCriterion("number is null"); return (Criteria) this; } public Criteria andNumberIsNotNull() { - addCriterion("Number is not null"); + addCriterion("number is not null"); return (Criteria) this; } public Criteria andNumberEqualTo(String value) { - addCriterion("Number =", value, "number"); + addCriterion("number =", value, "number"); return (Criteria) this; } public Criteria andNumberNotEqualTo(String value) { - addCriterion("Number <>", value, "number"); + addCriterion("number <>", value, "number"); return (Criteria) this; } public Criteria andNumberGreaterThan(String value) { - addCriterion("Number >", value, "number"); + addCriterion("number >", value, "number"); return (Criteria) this; } public Criteria andNumberGreaterThanOrEqualTo(String value) { - addCriterion("Number >=", value, "number"); + addCriterion("number >=", value, "number"); return (Criteria) this; } public Criteria andNumberLessThan(String value) { - addCriterion("Number <", value, "number"); + addCriterion("number <", value, "number"); return (Criteria) this; } public Criteria andNumberLessThanOrEqualTo(String value) { - addCriterion("Number <=", value, "number"); + addCriterion("number <=", value, "number"); return (Criteria) this; } public Criteria andNumberLike(String value) { - addCriterion("Number like", value, "number"); + addCriterion("number like", value, "number"); return (Criteria) this; } public Criteria andNumberNotLike(String value) { - addCriterion("Number not like", value, "number"); + addCriterion("number not like", value, "number"); return (Criteria) this; } public Criteria andNumberIn(List values) { - addCriterion("Number in", values, "number"); + addCriterion("number in", values, "number"); return (Criteria) this; } public Criteria andNumberNotIn(List values) { - addCriterion("Number not in", values, "number"); + addCriterion("number not in", values, "number"); return (Criteria) this; } public Criteria andNumberBetween(String value1, String value2) { - addCriterion("Number between", value1, value2, "number"); + addCriterion("number between", value1, value2, "number"); return (Criteria) this; } public Criteria andNumberNotBetween(String value1, String value2) { - addCriterion("Number not between", value1, value2, "number"); + addCriterion("number not between", value1, value2, "number"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } - public Criteria andPnumberIsNull() { - addCriterion("PNumber is null"); + public Criteria andParentNumberIsNull() { + addCriterion("parent_number is null"); return (Criteria) this; } - public Criteria andPnumberIsNotNull() { - addCriterion("PNumber is not null"); + public Criteria andParentNumberIsNotNull() { + addCriterion("parent_number is not null"); return (Criteria) this; } - public Criteria andPnumberEqualTo(String value) { - addCriterion("PNumber =", value, "pnumber"); + public Criteria andParentNumberEqualTo(String value) { + addCriterion("parent_number =", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberNotEqualTo(String value) { - addCriterion("PNumber <>", value, "pnumber"); + public Criteria andParentNumberNotEqualTo(String value) { + addCriterion("parent_number <>", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberGreaterThan(String value) { - addCriterion("PNumber >", value, "pnumber"); + public Criteria andParentNumberGreaterThan(String value) { + addCriterion("parent_number >", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberGreaterThanOrEqualTo(String value) { - addCriterion("PNumber >=", value, "pnumber"); + public Criteria andParentNumberGreaterThanOrEqualTo(String value) { + addCriterion("parent_number >=", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberLessThan(String value) { - addCriterion("PNumber <", value, "pnumber"); + public Criteria andParentNumberLessThan(String value) { + addCriterion("parent_number <", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberLessThanOrEqualTo(String value) { - addCriterion("PNumber <=", value, "pnumber"); + public Criteria andParentNumberLessThanOrEqualTo(String value) { + addCriterion("parent_number <=", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberLike(String value) { - addCriterion("PNumber like", value, "pnumber"); + public Criteria andParentNumberLike(String value) { + addCriterion("parent_number like", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberNotLike(String value) { - addCriterion("PNumber not like", value, "pnumber"); + public Criteria andParentNumberNotLike(String value) { + addCriterion("parent_number not like", value, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberIn(List values) { - addCriterion("PNumber in", values, "pnumber"); + public Criteria andParentNumberIn(List values) { + addCriterion("parent_number in", values, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberNotIn(List values) { - addCriterion("PNumber not in", values, "pnumber"); + public Criteria andParentNumberNotIn(List values) { + addCriterion("parent_number not in", values, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberBetween(String value1, String value2) { - addCriterion("PNumber between", value1, value2, "pnumber"); + public Criteria andParentNumberBetween(String value1, String value2) { + addCriterion("parent_number between", value1, value2, "parentNumber"); return (Criteria) this; } - public Criteria andPnumberNotBetween(String value1, String value2) { - addCriterion("PNumber not between", value1, value2, "pnumber"); + public Criteria andParentNumberNotBetween(String value1, String value2) { + addCriterion("parent_number not between", value1, value2, "parentNumber"); return (Criteria) this; } public Criteria andUrlIsNull() { - addCriterion("URL is null"); + addCriterion("url is null"); return (Criteria) this; } public Criteria andUrlIsNotNull() { - addCriterion("URL is not null"); + addCriterion("url is not null"); return (Criteria) this; } public Criteria andUrlEqualTo(String value) { - addCriterion("URL =", value, "url"); + addCriterion("url =", value, "url"); return (Criteria) this; } public Criteria andUrlNotEqualTo(String value) { - addCriterion("URL <>", value, "url"); + addCriterion("url <>", value, "url"); return (Criteria) this; } public Criteria andUrlGreaterThan(String value) { - addCriterion("URL >", value, "url"); + addCriterion("url >", value, "url"); return (Criteria) this; } public Criteria andUrlGreaterThanOrEqualTo(String value) { - addCriterion("URL >=", value, "url"); + addCriterion("url >=", value, "url"); return (Criteria) this; } public Criteria andUrlLessThan(String value) { - addCriterion("URL <", value, "url"); + addCriterion("url <", value, "url"); return (Criteria) this; } public Criteria andUrlLessThanOrEqualTo(String value) { - addCriterion("URL <=", value, "url"); + addCriterion("url <=", value, "url"); return (Criteria) this; } public Criteria andUrlLike(String value) { - addCriterion("URL like", value, "url"); + addCriterion("url like", value, "url"); return (Criteria) this; } public Criteria andUrlNotLike(String value) { - addCriterion("URL not like", value, "url"); + addCriterion("url not like", value, "url"); return (Criteria) this; } public Criteria andUrlIn(List values) { - addCriterion("URL in", values, "url"); + addCriterion("url in", values, "url"); return (Criteria) this; } public Criteria andUrlNotIn(List values) { - addCriterion("URL not in", values, "url"); + addCriterion("url not in", values, "url"); return (Criteria) this; } public Criteria andUrlBetween(String value1, String value2) { - addCriterion("URL between", value1, value2, "url"); + addCriterion("url between", value1, value2, "url"); return (Criteria) this; } public Criteria andUrlNotBetween(String value1, String value2) { - addCriterion("URL not between", value1, value2, "url"); + addCriterion("url not between", value1, value2, "url"); return (Criteria) this; } public Criteria andStateIsNull() { - addCriterion("State is null"); + addCriterion("state is null"); return (Criteria) this; } public Criteria andStateIsNotNull() { - addCriterion("State is not null"); + addCriterion("state is not null"); return (Criteria) this; } public Criteria andStateEqualTo(Boolean value) { - addCriterion("State =", value, "state"); + addCriterion("state =", value, "state"); return (Criteria) this; } public Criteria andStateNotEqualTo(Boolean value) { - addCriterion("State <>", value, "state"); + addCriterion("state <>", value, "state"); return (Criteria) this; } public Criteria andStateGreaterThan(Boolean value) { - addCriterion("State >", value, "state"); + addCriterion("state >", value, "state"); return (Criteria) this; } public Criteria andStateGreaterThanOrEqualTo(Boolean value) { - addCriterion("State >=", value, "state"); + addCriterion("state >=", value, "state"); return (Criteria) this; } public Criteria andStateLessThan(Boolean value) { - addCriterion("State <", value, "state"); + addCriterion("state <", value, "state"); return (Criteria) this; } public Criteria andStateLessThanOrEqualTo(Boolean value) { - addCriterion("State <=", value, "state"); + addCriterion("state <=", value, "state"); return (Criteria) this; } public Criteria andStateIn(List values) { - addCriterion("State in", values, "state"); + addCriterion("state in", values, "state"); return (Criteria) this; } public Criteria andStateNotIn(List values) { - addCriterion("State not in", values, "state"); + addCriterion("state not in", values, "state"); return (Criteria) this; } public Criteria andStateBetween(Boolean value1, Boolean value2) { - addCriterion("State between", value1, value2, "state"); + addCriterion("state between", value1, value2, "state"); return (Criteria) this; } public Criteria andStateNotBetween(Boolean value1, Boolean value2) { - addCriterion("State not between", value1, value2, "state"); + addCriterion("state not between", value1, value2, "state"); return (Criteria) this; } public Criteria andSortIsNull() { - addCriterion("Sort is null"); + addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { - addCriterion("Sort is not null"); + addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(String value) { - addCriterion("Sort =", value, "sort"); + addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(String value) { - addCriterion("Sort <>", value, "sort"); + addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(String value) { - addCriterion("Sort >", value, "sort"); + addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(String value) { - addCriterion("Sort >=", value, "sort"); + addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(String value) { - addCriterion("Sort <", value, "sort"); + addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(String value) { - addCriterion("Sort <=", value, "sort"); + addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortLike(String value) { - addCriterion("Sort like", value, "sort"); + addCriterion("sort like", value, "sort"); return (Criteria) this; } public Criteria andSortNotLike(String value) { - addCriterion("Sort not like", value, "sort"); + addCriterion("sort not like", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List values) { - addCriterion("Sort in", values, "sort"); + addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List values) { - addCriterion("Sort not in", values, "sort"); + addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(String value1, String value2) { - addCriterion("Sort between", value1, value2, "sort"); + addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(String value1, String value2) { - addCriterion("Sort not between", value1, value2, "sort"); + addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } public Criteria andEnabledIsNull() { - addCriterion("Enabled is null"); + addCriterion("enabled is null"); return (Criteria) this; } public Criteria andEnabledIsNotNull() { - addCriterion("Enabled is not null"); + addCriterion("enabled is not null"); return (Criteria) this; } public Criteria andEnabledEqualTo(Boolean value) { - addCriterion("Enabled =", value, "enabled"); + addCriterion("enabled =", value, "enabled"); return (Criteria) this; } public Criteria andEnabledNotEqualTo(Boolean value) { - addCriterion("Enabled <>", value, "enabled"); + addCriterion("enabled <>", value, "enabled"); return (Criteria) this; } public Criteria andEnabledGreaterThan(Boolean value) { - addCriterion("Enabled >", value, "enabled"); + addCriterion("enabled >", value, "enabled"); return (Criteria) this; } public Criteria andEnabledGreaterThanOrEqualTo(Boolean value) { - addCriterion("Enabled >=", value, "enabled"); + addCriterion("enabled >=", value, "enabled"); return (Criteria) this; } public Criteria andEnabledLessThan(Boolean value) { - addCriterion("Enabled <", value, "enabled"); + addCriterion("enabled <", value, "enabled"); return (Criteria) this; } public Criteria andEnabledLessThanOrEqualTo(Boolean value) { - addCriterion("Enabled <=", value, "enabled"); + addCriterion("enabled <=", value, "enabled"); return (Criteria) this; } public Criteria andEnabledIn(List values) { - addCriterion("Enabled in", values, "enabled"); + addCriterion("enabled in", values, "enabled"); return (Criteria) this; } public Criteria andEnabledNotIn(List values) { - addCriterion("Enabled not in", values, "enabled"); + addCriterion("enabled not in", values, "enabled"); return (Criteria) this; } public Criteria andEnabledBetween(Boolean value1, Boolean value2) { - addCriterion("Enabled between", value1, value2, "enabled"); + addCriterion("enabled between", value1, value2, "enabled"); return (Criteria) this; } public Criteria andEnabledNotBetween(Boolean value1, Boolean value2) { - addCriterion("Enabled not between", value1, value2, "enabled"); + addCriterion("enabled not between", value1, value2, "enabled"); return (Criteria) this; } public Criteria andTypeIsNull() { - addCriterion("Type is null"); + addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { - addCriterion("Type is not null"); + addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(String value) { - addCriterion("Type =", value, "type"); + addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(String value) { - addCriterion("Type <>", value, "type"); + addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(String value) { - addCriterion("Type >", value, "type"); + addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("Type >=", value, "type"); + addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(String value) { - addCriterion("Type <", value, "type"); + addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("Type <=", value, "type"); + addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeLike(String value) { - addCriterion("Type like", value, "type"); + addCriterion("type like", value, "type"); return (Criteria) this; } public Criteria andTypeNotLike(String value) { - addCriterion("Type not like", value, "type"); + addCriterion("type not like", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List values) { - addCriterion("Type in", values, "type"); + addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List values) { - addCriterion("Type not in", values, "type"); + addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(String value1, String value2) { - addCriterion("Type between", value1, value2, "type"); + addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("Type not between", value1, value2, "type"); + addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } - public Criteria andPushbtnIsNull() { - addCriterion("PushBtn is null"); + public Criteria andPushBtnIsNull() { + addCriterion("push_btn is null"); return (Criteria) this; } - public Criteria andPushbtnIsNotNull() { - addCriterion("PushBtn is not null"); + public Criteria andPushBtnIsNotNull() { + addCriterion("push_btn is not null"); return (Criteria) this; } - public Criteria andPushbtnEqualTo(String value) { - addCriterion("PushBtn =", value, "pushbtn"); + public Criteria andPushBtnEqualTo(String value) { + addCriterion("push_btn =", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnNotEqualTo(String value) { - addCriterion("PushBtn <>", value, "pushbtn"); + public Criteria andPushBtnNotEqualTo(String value) { + addCriterion("push_btn <>", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnGreaterThan(String value) { - addCriterion("PushBtn >", value, "pushbtn"); + public Criteria andPushBtnGreaterThan(String value) { + addCriterion("push_btn >", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnGreaterThanOrEqualTo(String value) { - addCriterion("PushBtn >=", value, "pushbtn"); + public Criteria andPushBtnGreaterThanOrEqualTo(String value) { + addCriterion("push_btn >=", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnLessThan(String value) { - addCriterion("PushBtn <", value, "pushbtn"); + public Criteria andPushBtnLessThan(String value) { + addCriterion("push_btn <", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnLessThanOrEqualTo(String value) { - addCriterion("PushBtn <=", value, "pushbtn"); + public Criteria andPushBtnLessThanOrEqualTo(String value) { + addCriterion("push_btn <=", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnLike(String value) { - addCriterion("PushBtn like", value, "pushbtn"); + public Criteria andPushBtnLike(String value) { + addCriterion("push_btn like", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnNotLike(String value) { - addCriterion("PushBtn not like", value, "pushbtn"); + public Criteria andPushBtnNotLike(String value) { + addCriterion("push_btn not like", value, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnIn(List values) { - addCriterion("PushBtn in", values, "pushbtn"); + public Criteria andPushBtnIn(List values) { + addCriterion("push_btn in", values, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnNotIn(List values) { - addCriterion("PushBtn not in", values, "pushbtn"); + public Criteria andPushBtnNotIn(List values) { + addCriterion("push_btn not in", values, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnBetween(String value1, String value2) { - addCriterion("PushBtn between", value1, value2, "pushbtn"); + public Criteria andPushBtnBetween(String value1, String value2) { + addCriterion("push_btn between", value1, value2, "pushBtn"); return (Criteria) this; } - public Criteria andPushbtnNotBetween(String value1, String value2) { - addCriterion("PushBtn not between", value1, value2, "pushbtn"); + public Criteria andPushBtnNotBetween(String value1, String value2) { + addCriterion("push_btn not between", value1, value2, "pushBtn"); return (Criteria) this; } @@ -935,95 +845,82 @@ public class FunctionsExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_functions - * - * @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_functions - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/Functions.java b/src/main/java/com/jsh/erp/datasource/entities/Functions.java deleted file mode 100644 index 03a38583..00000000 --- a/src/main/java/com/jsh/erp/datasource/entities/Functions.java +++ /dev/null @@ -1,387 +0,0 @@ -package com.jsh.erp.datasource.entities; - -public class Functions { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Id - * - * @mbggenerated - */ - private Long id; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Number - * - * @mbggenerated - */ - private String number; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Name - * - * @mbggenerated - */ - private String name; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.PNumber - * - * @mbggenerated - */ - private String pnumber; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.URL - * - * @mbggenerated - */ - private String url; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.State - * - * @mbggenerated - */ - private Boolean state; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Sort - * - * @mbggenerated - */ - private String sort; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Enabled - * - * @mbggenerated - */ - private Boolean enabled; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.Type - * - * @mbggenerated - */ - private String type; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.PushBtn - * - * @mbggenerated - */ - private String pushbtn; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.icon - * - * @mbggenerated - */ - private String icon; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_functions.delete_Flag - * - * @mbggenerated - */ - private String deleteFlag; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.Id - * - * @return the value of jsh_functions.Id - * - * @mbggenerated - */ - public Long getId() { - return id; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Id - * - * @param id the value for jsh_functions.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_functions.Number - * - * @return the value of jsh_functions.Number - * - * @mbggenerated - */ - public String getNumber() { - return number; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Number - * - * @param number the value for jsh_functions.Number - * - * @mbggenerated - */ - public void setNumber(String number) { - this.number = number == null ? null : number.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.Name - * - * @return the value of jsh_functions.Name - * - * @mbggenerated - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Name - * - * @param name the value for jsh_functions.Name - * - * @mbggenerated - */ - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.PNumber - * - * @return the value of jsh_functions.PNumber - * - * @mbggenerated - */ - public String getPnumber() { - return pnumber; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.PNumber - * - * @param pnumber the value for jsh_functions.PNumber - * - * @mbggenerated - */ - public void setPnumber(String pnumber) { - this.pnumber = pnumber == null ? null : pnumber.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.URL - * - * @return the value of jsh_functions.URL - * - * @mbggenerated - */ - public String getUrl() { - return url; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.URL - * - * @param url the value for jsh_functions.URL - * - * @mbggenerated - */ - public void setUrl(String url) { - this.url = url == null ? null : url.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.State - * - * @return the value of jsh_functions.State - * - * @mbggenerated - */ - public Boolean getState() { - return state; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.State - * - * @param state the value for jsh_functions.State - * - * @mbggenerated - */ - public void setState(Boolean state) { - this.state = state; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.Sort - * - * @return the value of jsh_functions.Sort - * - * @mbggenerated - */ - public String getSort() { - return sort; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Sort - * - * @param sort the value for jsh_functions.Sort - * - * @mbggenerated - */ - public void setSort(String sort) { - this.sort = sort == null ? null : sort.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.Enabled - * - * @return the value of jsh_functions.Enabled - * - * @mbggenerated - */ - public Boolean getEnabled() { - return enabled; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Enabled - * - * @param enabled the value for jsh_functions.Enabled - * - * @mbggenerated - */ - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.Type - * - * @return the value of jsh_functions.Type - * - * @mbggenerated - */ - public String getType() { - return type; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.Type - * - * @param type the value for jsh_functions.Type - * - * @mbggenerated - */ - public void setType(String type) { - this.type = type == null ? null : type.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.PushBtn - * - * @return the value of jsh_functions.PushBtn - * - * @mbggenerated - */ - public String getPushbtn() { - return pushbtn; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.PushBtn - * - * @param pushbtn the value for jsh_functions.PushBtn - * - * @mbggenerated - */ - public void setPushbtn(String pushbtn) { - this.pushbtn = pushbtn == null ? null : pushbtn.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.icon - * - * @return the value of jsh_functions.icon - * - * @mbggenerated - */ - public String getIcon() { - return icon; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.icon - * - * @param icon the value for jsh_functions.icon - * - * @mbggenerated - */ - public void setIcon(String icon) { - this.icon = icon == null ? null : icon.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_functions.delete_Flag - * - * @return the value of jsh_functions.delete_Flag - * - * @mbggenerated - */ - public String getDeleteFlag() { - return deleteFlag; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_functions.delete_Flag - * - * @param deleteFlag the value for jsh_functions.delete_Flag - * - * @mbggenerated - */ - public void setDeleteFlag(String deleteFlag) { - this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); - } -} \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/entities/InOutItem.java b/src/main/java/com/jsh/erp/datasource/entities/InOutItem.java index 95bdf2e4..9c49c3fa 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/InOutItem.java +++ b/src/main/java/com/jsh/erp/datasource/entities/InOutItem.java @@ -1,194 +1,62 @@ package com.jsh.erp.datasource.entities; public class InOutItem { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.Name - * - * @mbggenerated - */ private String name; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.Type - * - * @mbggenerated - */ private String type; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.Remark - * - * @mbggenerated - */ private String remark; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_inoutitem.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_inoutitem.Id - * - * @return the value of jsh_inoutitem.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_inoutitem.Id - * - * @param id the value for jsh_inoutitem.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_inoutitem.Name - * - * @return the value of jsh_inoutitem.Name - * - * @mbggenerated - */ public String getName() { return name; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_inoutitem.Name - * - * @param name the value for jsh_inoutitem.Name - * - * @mbggenerated - */ public void setName(String name) { this.name = name == null ? null : name.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_inoutitem.Type - * - * @return the value of jsh_inoutitem.Type - * - * @mbggenerated - */ public String getType() { return type; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_inoutitem.Type - * - * @param type the value for jsh_inoutitem.Type - * - * @mbggenerated - */ public void setType(String type) { this.type = type == null ? null : type.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_inoutitem.Remark - * - * @return the value of jsh_inoutitem.Remark - * - * @mbggenerated - */ public String getRemark() { return remark; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_inoutitem.Remark - * - * @param remark the value for jsh_inoutitem.Remark - * - * @mbggenerated - */ public void setRemark(String remark) { this.remark = remark == null ? null : remark.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_inoutitem.tenant_id - * - * @return the value of jsh_inoutitem.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_inoutitem.tenant_id - * - * @param tenantId the value for jsh_inoutitem.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_inoutitem.delete_Flag - * - * @return the value of jsh_inoutitem.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_inoutitem.delete_Flag - * - * @param deleteFlag the value for jsh_inoutitem.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/InOutItemExample.java b/src/main/java/com/jsh/erp/datasource/entities/InOutItemExample.java index af0998d5..be8659c2 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/InOutItemExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/InOutItemExample.java @@ -4,118 +4,46 @@ import java.util.ArrayList; import java.util.List; public class InOutItemExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public InOutItemExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @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_inoutitem - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class InOutItemExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @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_inoutitem - * - * @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_inoutitem - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -195,272 +105,272 @@ public class InOutItemExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andTypeIsNull() { - addCriterion("Type is null"); + addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { - addCriterion("Type is not null"); + addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(String value) { - addCriterion("Type =", value, "type"); + addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(String value) { - addCriterion("Type <>", value, "type"); + addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(String value) { - addCriterion("Type >", value, "type"); + addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("Type >=", value, "type"); + addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(String value) { - addCriterion("Type <", value, "type"); + addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("Type <=", value, "type"); + addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeLike(String value) { - addCriterion("Type like", value, "type"); + addCriterion("type like", value, "type"); return (Criteria) this; } public Criteria andTypeNotLike(String value) { - addCriterion("Type not like", value, "type"); + addCriterion("type not like", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List values) { - addCriterion("Type in", values, "type"); + addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List values) { - addCriterion("Type not in", values, "type"); + addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(String value1, String value2) { - addCriterion("Type between", value1, value2, "type"); + addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("Type not between", value1, value2, "type"); + addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } public Criteria andRemarkIsNull() { - addCriterion("Remark is null"); + addCriterion("remark is null"); return (Criteria) this; } public Criteria andRemarkIsNotNull() { - addCriterion("Remark is not null"); + addCriterion("remark is not null"); return (Criteria) this; } public Criteria andRemarkEqualTo(String value) { - addCriterion("Remark =", value, "remark"); + addCriterion("remark =", value, "remark"); return (Criteria) this; } public Criteria andRemarkNotEqualTo(String value) { - addCriterion("Remark <>", value, "remark"); + addCriterion("remark <>", value, "remark"); return (Criteria) this; } public Criteria andRemarkGreaterThan(String value) { - addCriterion("Remark >", value, "remark"); + addCriterion("remark >", value, "remark"); return (Criteria) this; } public Criteria andRemarkGreaterThanOrEqualTo(String value) { - addCriterion("Remark >=", value, "remark"); + addCriterion("remark >=", value, "remark"); return (Criteria) this; } public Criteria andRemarkLessThan(String value) { - addCriterion("Remark <", value, "remark"); + addCriterion("remark <", value, "remark"); return (Criteria) this; } public Criteria andRemarkLessThanOrEqualTo(String value) { - addCriterion("Remark <=", value, "remark"); + addCriterion("remark <=", value, "remark"); return (Criteria) this; } public Criteria andRemarkLike(String value) { - addCriterion("Remark like", value, "remark"); + addCriterion("remark like", value, "remark"); return (Criteria) this; } public Criteria andRemarkNotLike(String value) { - addCriterion("Remark not like", value, "remark"); + addCriterion("remark not like", value, "remark"); return (Criteria) this; } public Criteria andRemarkIn(List values) { - addCriterion("Remark in", values, "remark"); + addCriterion("remark in", values, "remark"); return (Criteria) this; } public Criteria andRemarkNotIn(List values) { - addCriterion("Remark not in", values, "remark"); + addCriterion("remark not in", values, "remark"); return (Criteria) this; } public Criteria andRemarkBetween(String value1, String value2) { - addCriterion("Remark between", value1, value2, "remark"); + addCriterion("remark between", value1, value2, "remark"); return (Criteria) this; } public Criteria andRemarkNotBetween(String value1, String value2) { - addCriterion("Remark not between", value1, value2, "remark"); + addCriterion("remark not between", value1, value2, "remark"); return (Criteria) this; } @@ -525,95 +435,82 @@ public class InOutItemExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_inoutitem - * - * @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_inoutitem - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/Log.java b/src/main/java/com/jsh/erp/datasource/entities/Log.java index f7dbf55c..15284416 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Log.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Log.java @@ -3,290 +3,82 @@ package com.jsh.erp.datasource.entities; import java.util.Date; public class Log { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.userID - * - * @mbggenerated - */ - private Long userid; + private Long userId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.operation - * - * @mbggenerated - */ private String operation; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.clientIP - * - * @mbggenerated - */ - private String clientip; + private String clientIp; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.createtime - * - * @mbggenerated - */ - private Date createtime; + private Date createTime; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.status - * - * @mbggenerated - */ private Byte status; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.contentdetails - * - * @mbggenerated - */ - private String contentdetails; + private String content; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.remark - * - * @mbggenerated - */ - private String remark; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_log.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.id - * - * @return the value of jsh_log.id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.id - * - * @param id the value for jsh_log.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_log.userID - * - * @return the value of jsh_log.userID - * - * @mbggenerated - */ - public Long getUserid() { - return userid; + public Long getUserId() { + return userId; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.userID - * - * @param userid the value for jsh_log.userID - * - * @mbggenerated - */ - public void setUserid(Long userid) { - this.userid = userid; + public void setUserId(Long userId) { + this.userId = userId; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.operation - * - * @return the value of jsh_log.operation - * - * @mbggenerated - */ public String getOperation() { return operation; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.operation - * - * @param operation the value for jsh_log.operation - * - * @mbggenerated - */ public void setOperation(String operation) { this.operation = operation == null ? null : operation.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.clientIP - * - * @return the value of jsh_log.clientIP - * - * @mbggenerated - */ - public String getClientip() { - return clientip; + public String getClientIp() { + return clientIp; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.clientIP - * - * @param clientip the value for jsh_log.clientIP - * - * @mbggenerated - */ - public void setClientip(String clientip) { - this.clientip = clientip == null ? null : clientip.trim(); + public void setClientIp(String clientIp) { + this.clientIp = clientIp == null ? null : clientIp.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.createtime - * - * @return the value of jsh_log.createtime - * - * @mbggenerated - */ - public Date getCreatetime() { - return createtime; + public Date getCreateTime() { + return createTime; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.createtime - * - * @param createtime the value for jsh_log.createtime - * - * @mbggenerated - */ - public void setCreatetime(Date createtime) { - this.createtime = createtime; + public void setCreateTime(Date createTime) { + this.createTime = createTime; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.status - * - * @return the value of jsh_log.status - * - * @mbggenerated - */ public Byte getStatus() { return status; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.status - * - * @param status the value for jsh_log.status - * - * @mbggenerated - */ public void setStatus(Byte status) { this.status = status; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.contentdetails - * - * @return the value of jsh_log.contentdetails - * - * @mbggenerated - */ - public String getContentdetails() { - return contentdetails; + public String getContent() { + return content; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.contentdetails - * - * @param contentdetails the value for jsh_log.contentdetails - * - * @mbggenerated - */ - public void setContentdetails(String contentdetails) { - this.contentdetails = contentdetails == null ? null : contentdetails.trim(); + public void setContent(String content) { + this.content = content == null ? null : content.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.remark - * - * @return the value of jsh_log.remark - * - * @mbggenerated - */ - public String getRemark() { - return remark; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_log.remark - * - * @param remark the value for jsh_log.remark - * - * @mbggenerated - */ - public void setRemark(String remark) { - this.remark = remark == null ? null : remark.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_log.tenant_id - * - * @return the value of jsh_log.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_log.tenant_id - * - * @param tenantId the value for jsh_log.tenant_id - * - * @mbggenerated - */ public void setTenantId(Long tenantId) { this.tenantId = tenantId; } diff --git a/src/main/java/com/jsh/erp/datasource/entities/LogExample.java b/src/main/java/com/jsh/erp/datasource/entities/LogExample.java index 55e1ea6a..8a616e5f 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/LogExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/LogExample.java @@ -5,118 +5,46 @@ import java.util.Date; import java.util.List; public class LogExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_log - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_log - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_log - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public LogExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @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_log - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -125,41 +53,23 @@ public class LogExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @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_log - * - * @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_log - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -255,63 +165,63 @@ public class LogExample { return (Criteria) this; } - public Criteria andUseridIsNull() { - addCriterion("userID is null"); + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); return (Criteria) this; } - public Criteria andUseridIsNotNull() { - addCriterion("userID is not null"); + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); return (Criteria) this; } - public Criteria andUseridEqualTo(Long value) { - addCriterion("userID =", value, "userid"); + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); return (Criteria) this; } - public Criteria andUseridNotEqualTo(Long value) { - addCriterion("userID <>", value, "userid"); + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); return (Criteria) this; } - public Criteria andUseridGreaterThan(Long value) { - addCriterion("userID >", value, "userid"); + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); return (Criteria) this; } - public Criteria andUseridGreaterThanOrEqualTo(Long value) { - addCriterion("userID >=", value, "userid"); + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); return (Criteria) this; } - public Criteria andUseridLessThan(Long value) { - addCriterion("userID <", value, "userid"); + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); return (Criteria) this; } - public Criteria andUseridLessThanOrEqualTo(Long value) { - addCriterion("userID <=", value, "userid"); + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); return (Criteria) this; } - public Criteria andUseridIn(List values) { - addCriterion("userID in", values, "userid"); + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); return (Criteria) this; } - public Criteria andUseridNotIn(List values) { - addCriterion("userID not in", values, "userid"); + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); return (Criteria) this; } - public Criteria andUseridBetween(Long value1, Long value2) { - addCriterion("userID between", value1, value2, "userid"); + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); return (Criteria) this; } - public Criteria andUseridNotBetween(Long value1, Long value2) { - addCriterion("userID not between", value1, value2, "userid"); + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } @@ -385,133 +295,133 @@ public class LogExample { return (Criteria) this; } - public Criteria andClientipIsNull() { - addCriterion("clientIP is null"); + public Criteria andClientIpIsNull() { + addCriterion("client_ip is null"); return (Criteria) this; } - public Criteria andClientipIsNotNull() { - addCriterion("clientIP is not null"); + public Criteria andClientIpIsNotNull() { + addCriterion("client_ip is not null"); return (Criteria) this; } - public Criteria andClientipEqualTo(String value) { - addCriterion("clientIP =", value, "clientip"); + public Criteria andClientIpEqualTo(String value) { + addCriterion("client_ip =", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipNotEqualTo(String value) { - addCriterion("clientIP <>", value, "clientip"); + public Criteria andClientIpNotEqualTo(String value) { + addCriterion("client_ip <>", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipGreaterThan(String value) { - addCriterion("clientIP >", value, "clientip"); + public Criteria andClientIpGreaterThan(String value) { + addCriterion("client_ip >", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipGreaterThanOrEqualTo(String value) { - addCriterion("clientIP >=", value, "clientip"); + public Criteria andClientIpGreaterThanOrEqualTo(String value) { + addCriterion("client_ip >=", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipLessThan(String value) { - addCriterion("clientIP <", value, "clientip"); + public Criteria andClientIpLessThan(String value) { + addCriterion("client_ip <", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipLessThanOrEqualTo(String value) { - addCriterion("clientIP <=", value, "clientip"); + public Criteria andClientIpLessThanOrEqualTo(String value) { + addCriterion("client_ip <=", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipLike(String value) { - addCriterion("clientIP like", value, "clientip"); + public Criteria andClientIpLike(String value) { + addCriterion("client_ip like", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipNotLike(String value) { - addCriterion("clientIP not like", value, "clientip"); + public Criteria andClientIpNotLike(String value) { + addCriterion("client_ip not like", value, "clientIp"); return (Criteria) this; } - public Criteria andClientipIn(List values) { - addCriterion("clientIP in", values, "clientip"); + public Criteria andClientIpIn(List values) { + addCriterion("client_ip in", values, "clientIp"); return (Criteria) this; } - public Criteria andClientipNotIn(List values) { - addCriterion("clientIP not in", values, "clientip"); + public Criteria andClientIpNotIn(List values) { + addCriterion("client_ip not in", values, "clientIp"); return (Criteria) this; } - public Criteria andClientipBetween(String value1, String value2) { - addCriterion("clientIP between", value1, value2, "clientip"); + public Criteria andClientIpBetween(String value1, String value2) { + addCriterion("client_ip between", value1, value2, "clientIp"); return (Criteria) this; } - public Criteria andClientipNotBetween(String value1, String value2) { - addCriterion("clientIP not between", value1, value2, "clientip"); + public Criteria andClientIpNotBetween(String value1, String value2) { + addCriterion("client_ip not between", value1, value2, "clientIp"); return (Criteria) this; } - public Criteria andCreatetimeIsNull() { - addCriterion("createtime is null"); + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); return (Criteria) this; } - public Criteria andCreatetimeIsNotNull() { - addCriterion("createtime is not null"); + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); return (Criteria) this; } - public Criteria andCreatetimeEqualTo(Date value) { - addCriterion("createtime =", value, "createtime"); + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeNotEqualTo(Date value) { - addCriterion("createtime <>", value, "createtime"); + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeGreaterThan(Date value) { - addCriterion("createtime >", value, "createtime"); + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { - addCriterion("createtime >=", value, "createtime"); + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeLessThan(Date value) { - addCriterion("createtime <", value, "createtime"); + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeLessThanOrEqualTo(Date value) { - addCriterion("createtime <=", value, "createtime"); + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeIn(List values) { - addCriterion("createtime in", values, "createtime"); + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeNotIn(List values) { - addCriterion("createtime not in", values, "createtime"); + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } - public Criteria andCreatetimeBetween(Date value1, Date value2) { - addCriterion("createtime between", value1, value2, "createtime"); + 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("createtime not between", value1, value2, "createtime"); + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } @@ -575,143 +485,73 @@ public class LogExample { return (Criteria) this; } - public Criteria andContentdetailsIsNull() { - addCriterion("contentdetails is null"); + public Criteria andContentIsNull() { + addCriterion("content is null"); return (Criteria) this; } - public Criteria andContentdetailsIsNotNull() { - addCriterion("contentdetails is not null"); + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); return (Criteria) this; } - public Criteria andContentdetailsEqualTo(String value) { - addCriterion("contentdetails =", value, "contentdetails"); + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsNotEqualTo(String value) { - addCriterion("contentdetails <>", value, "contentdetails"); + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsGreaterThan(String value) { - addCriterion("contentdetails >", value, "contentdetails"); + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsGreaterThanOrEqualTo(String value) { - addCriterion("contentdetails >=", value, "contentdetails"); + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsLessThan(String value) { - addCriterion("contentdetails <", value, "contentdetails"); + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsLessThanOrEqualTo(String value) { - addCriterion("contentdetails <=", value, "contentdetails"); + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsLike(String value) { - addCriterion("contentdetails like", value, "contentdetails"); + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsNotLike(String value) { - addCriterion("contentdetails not like", value, "contentdetails"); + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); return (Criteria) this; } - public Criteria andContentdetailsIn(List values) { - addCriterion("contentdetails in", values, "contentdetails"); + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); return (Criteria) this; } - public Criteria andContentdetailsNotIn(List values) { - addCriterion("contentdetails not in", values, "contentdetails"); + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); return (Criteria) this; } - public Criteria andContentdetailsBetween(String value1, String value2) { - addCriterion("contentdetails between", value1, value2, "contentdetails"); + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); return (Criteria) this; } - public Criteria andContentdetailsNotBetween(String value1, String value2) { - addCriterion("contentdetails not between", value1, value2, "contentdetails"); - return (Criteria) this; - } - - public Criteria andRemarkIsNull() { - addCriterion("remark is null"); - return (Criteria) this; - } - - public Criteria andRemarkIsNotNull() { - addCriterion("remark is not null"); - return (Criteria) this; - } - - public Criteria andRemarkEqualTo(String value) { - addCriterion("remark =", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkNotEqualTo(String value) { - addCriterion("remark <>", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkGreaterThan(String value) { - addCriterion("remark >", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkGreaterThanOrEqualTo(String value) { - addCriterion("remark >=", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkLessThan(String value) { - addCriterion("remark <", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkLessThanOrEqualTo(String value) { - addCriterion("remark <=", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkLike(String value) { - addCriterion("remark like", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkNotLike(String value) { - addCriterion("remark not like", value, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkIn(List values) { - addCriterion("remark in", values, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkNotIn(List values) { - addCriterion("remark not in", values, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkBetween(String value1, String value2) { - addCriterion("remark between", value1, value2, "remark"); - return (Criteria) this; - } - - public Criteria andRemarkNotBetween(String value1, String value2) { - addCriterion("remark not between", value1, value2, "remark"); + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); return (Criteria) this; } @@ -776,25 +616,12 @@ public class LogExample { } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_log - * - * @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_log - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/MaterialCategory.java b/src/main/java/com/jsh/erp/datasource/entities/MaterialCategory.java index 3bbb7402..4ff4c6fa 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/MaterialCategory.java +++ b/src/main/java/com/jsh/erp/datasource/entities/MaterialCategory.java @@ -3,418 +3,132 @@ package com.jsh.erp.datasource.entities; import java.util.Date; public class MaterialCategory { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.Name - * - * @mbggenerated - */ private String name; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.CategoryLevel - * - * @mbggenerated - */ - private Short categorylevel; + private Short categoryLevel; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.ParentId - * - * @mbggenerated - */ - private Long parentid; + private Long parentId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.sort - * - * @mbggenerated - */ private String sort; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.status - * - * @mbggenerated - */ private String status; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.serial_no - * - * @mbggenerated - */ private String serialNo; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.remark - * - * @mbggenerated - */ private String remark; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.create_time - * - * @mbggenerated - */ private Date createTime; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.creator - * - * @mbggenerated - */ private Long creator; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.update_time - * - * @mbggenerated - */ private Date updateTime; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.updater - * - * @mbggenerated - */ private Long updater; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialcategory.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.Id - * - * @return the value of jsh_materialcategory.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.Id - * - * @param id the value for jsh_materialcategory.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_materialcategory.Name - * - * @return the value of jsh_materialcategory.Name - * - * @mbggenerated - */ public String getName() { return name; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.Name - * - * @param name the value for jsh_materialcategory.Name - * - * @mbggenerated - */ public void setName(String name) { this.name = name == null ? null : name.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.CategoryLevel - * - * @return the value of jsh_materialcategory.CategoryLevel - * - * @mbggenerated - */ - public Short getCategorylevel() { - return categorylevel; + public Short getCategoryLevel() { + return categoryLevel; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.CategoryLevel - * - * @param categorylevel the value for jsh_materialcategory.CategoryLevel - * - * @mbggenerated - */ - public void setCategorylevel(Short categorylevel) { - this.categorylevel = categorylevel; + public void setCategoryLevel(Short categoryLevel) { + this.categoryLevel = categoryLevel; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.ParentId - * - * @return the value of jsh_materialcategory.ParentId - * - * @mbggenerated - */ - public Long getParentid() { - return parentid; + public Long getParentId() { + return parentId; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.ParentId - * - * @param parentid the value for jsh_materialcategory.ParentId - * - * @mbggenerated - */ - public void setParentid(Long parentid) { - this.parentid = parentid; + public void setParentId(Long parentId) { + this.parentId = parentId; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.sort - * - * @return the value of jsh_materialcategory.sort - * - * @mbggenerated - */ public String getSort() { return sort; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.sort - * - * @param sort the value for jsh_materialcategory.sort - * - * @mbggenerated - */ public void setSort(String sort) { this.sort = sort == null ? null : sort.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.status - * - * @return the value of jsh_materialcategory.status - * - * @mbggenerated - */ public String getStatus() { return status; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.status - * - * @param status the value for jsh_materialcategory.status - * - * @mbggenerated - */ public void setStatus(String status) { this.status = status == null ? null : status.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.serial_no - * - * @return the value of jsh_materialcategory.serial_no - * - * @mbggenerated - */ public String getSerialNo() { return serialNo; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.serial_no - * - * @param serialNo the value for jsh_materialcategory.serial_no - * - * @mbggenerated - */ public void setSerialNo(String serialNo) { this.serialNo = serialNo == null ? null : serialNo.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.remark - * - * @return the value of jsh_materialcategory.remark - * - * @mbggenerated - */ public String getRemark() { return remark; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.remark - * - * @param remark the value for jsh_materialcategory.remark - * - * @mbggenerated - */ public void setRemark(String remark) { this.remark = remark == null ? null : remark.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.create_time - * - * @return the value of jsh_materialcategory.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_materialcategory.create_time - * - * @param createTime the value for jsh_materialcategory.create_time - * - * @mbggenerated - */ public void setCreateTime(Date createTime) { this.createTime = createTime; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.creator - * - * @return the value of jsh_materialcategory.creator - * - * @mbggenerated - */ public Long getCreator() { return creator; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.creator - * - * @param creator the value for jsh_materialcategory.creator - * - * @mbggenerated - */ public void setCreator(Long creator) { this.creator = creator; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.update_time - * - * @return the value of jsh_materialcategory.update_time - * - * @mbggenerated - */ public Date getUpdateTime() { return updateTime; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.update_time - * - * @param updateTime the value for jsh_materialcategory.update_time - * - * @mbggenerated - */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.updater - * - * @return the value of jsh_materialcategory.updater - * - * @mbggenerated - */ public Long getUpdater() { return updater; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialcategory.updater - * - * @param updater the value for jsh_materialcategory.updater - * - * @mbggenerated - */ public void setUpdater(Long updater) { this.updater = updater; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialcategory.tenant_id - * - * @return the value of jsh_materialcategory.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_materialcategory.tenant_id - * - * @param tenantId the value for jsh_materialcategory.tenant_id - * - * @mbggenerated - */ public void setTenantId(Long tenantId) { this.tenantId = tenantId; } diff --git a/src/main/java/com/jsh/erp/datasource/entities/MaterialCategoryExample.java b/src/main/java/com/jsh/erp/datasource/entities/MaterialCategoryExample.java index 97cc8f0b..fc1694f6 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/MaterialCategoryExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/MaterialCategoryExample.java @@ -5,118 +5,46 @@ import java.util.Date; import java.util.List; public class MaterialCategoryExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public MaterialCategoryExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @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_materialcategory - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -125,41 +53,23 @@ public class MaterialCategoryExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @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_materialcategory - * - * @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_materialcategory - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -196,252 +106,252 @@ public class MaterialCategoryExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } - public Criteria andCategorylevelIsNull() { - addCriterion("CategoryLevel is null"); + public Criteria andCategoryLevelIsNull() { + addCriterion("category_level is null"); return (Criteria) this; } - public Criteria andCategorylevelIsNotNull() { - addCriterion("CategoryLevel is not null"); + public Criteria andCategoryLevelIsNotNull() { + addCriterion("category_level is not null"); return (Criteria) this; } - public Criteria andCategorylevelEqualTo(Short value) { - addCriterion("CategoryLevel =", value, "categorylevel"); + public Criteria andCategoryLevelEqualTo(Short value) { + addCriterion("category_level =", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelNotEqualTo(Short value) { - addCriterion("CategoryLevel <>", value, "categorylevel"); + public Criteria andCategoryLevelNotEqualTo(Short value) { + addCriterion("category_level <>", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelGreaterThan(Short value) { - addCriterion("CategoryLevel >", value, "categorylevel"); + public Criteria andCategoryLevelGreaterThan(Short value) { + addCriterion("category_level >", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelGreaterThanOrEqualTo(Short value) { - addCriterion("CategoryLevel >=", value, "categorylevel"); + public Criteria andCategoryLevelGreaterThanOrEqualTo(Short value) { + addCriterion("category_level >=", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelLessThan(Short value) { - addCriterion("CategoryLevel <", value, "categorylevel"); + public Criteria andCategoryLevelLessThan(Short value) { + addCriterion("category_level <", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelLessThanOrEqualTo(Short value) { - addCriterion("CategoryLevel <=", value, "categorylevel"); + public Criteria andCategoryLevelLessThanOrEqualTo(Short value) { + addCriterion("category_level <=", value, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelIn(List values) { - addCriterion("CategoryLevel in", values, "categorylevel"); + public Criteria andCategoryLevelIn(List values) { + addCriterion("category_level in", values, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelNotIn(List values) { - addCriterion("CategoryLevel not in", values, "categorylevel"); + public Criteria andCategoryLevelNotIn(List values) { + addCriterion("category_level not in", values, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelBetween(Short value1, Short value2) { - addCriterion("CategoryLevel between", value1, value2, "categorylevel"); + public Criteria andCategoryLevelBetween(Short value1, Short value2) { + addCriterion("category_level between", value1, value2, "categoryLevel"); return (Criteria) this; } - public Criteria andCategorylevelNotBetween(Short value1, Short value2) { - addCriterion("CategoryLevel not between", value1, value2, "categorylevel"); + public Criteria andCategoryLevelNotBetween(Short value1, Short value2) { + addCriterion("category_level not between", value1, value2, "categoryLevel"); return (Criteria) this; } - public Criteria andParentidIsNull() { - addCriterion("ParentId is null"); + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); return (Criteria) this; } - public Criteria andParentidIsNotNull() { - addCriterion("ParentId is not null"); + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); return (Criteria) this; } - public Criteria andParentidEqualTo(Long value) { - addCriterion("ParentId =", value, "parentid"); + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); return (Criteria) this; } - public Criteria andParentidNotEqualTo(Long value) { - addCriterion("ParentId <>", value, "parentid"); + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); return (Criteria) this; } - public Criteria andParentidGreaterThan(Long value) { - addCriterion("ParentId >", value, "parentid"); + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); return (Criteria) this; } - public Criteria andParentidGreaterThanOrEqualTo(Long value) { - addCriterion("ParentId >=", value, "parentid"); + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); return (Criteria) this; } - public Criteria andParentidLessThan(Long value) { - addCriterion("ParentId <", value, "parentid"); + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); return (Criteria) this; } - public Criteria andParentidLessThanOrEqualTo(Long value) { - addCriterion("ParentId <=", value, "parentid"); + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); return (Criteria) this; } - public Criteria andParentidIn(List values) { - addCriterion("ParentId in", values, "parentid"); + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); return (Criteria) this; } - public Criteria andParentidNotIn(List values) { - addCriterion("ParentId not in", values, "parentid"); + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); return (Criteria) this; } - public Criteria andParentidBetween(Long value1, Long value2) { - addCriterion("ParentId between", value1, value2, "parentid"); + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); return (Criteria) this; } - public Criteria andParentidNotBetween(Long value1, Long value2) { - addCriterion("ParentId not between", value1, value2, "parentid"); + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); return (Criteria) this; } @@ -1026,25 +936,12 @@ public class MaterialCategoryExample { } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_materialcategory - * - * @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_materialcategory - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/MaterialProperty.java b/src/main/java/com/jsh/erp/datasource/entities/MaterialProperty.java index 4ad6a4da..53be4d14 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/MaterialProperty.java +++ b/src/main/java/com/jsh/erp/datasource/entities/MaterialProperty.java @@ -1,194 +1,62 @@ package com.jsh.erp.datasource.entities; public class MaterialProperty { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.nativeName - * - * @mbggenerated - */ - private String nativename; + private String nativeName; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.enabled - * - * @mbggenerated - */ private Boolean enabled; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.sort - * - * @mbggenerated - */ private String sort; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.anotherName - * - * @mbggenerated - */ - private String anothername; + private String anotherName; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_materialproperty.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialproperty.id - * - * @return the value of jsh_materialproperty.id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.id - * - * @param id the value for jsh_materialproperty.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_materialproperty.nativeName - * - * @return the value of jsh_materialproperty.nativeName - * - * @mbggenerated - */ - public String getNativename() { - return nativename; + public String getNativeName() { + return nativeName; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.nativeName - * - * @param nativename the value for jsh_materialproperty.nativeName - * - * @mbggenerated - */ - public void setNativename(String nativename) { - this.nativename = nativename == null ? null : nativename.trim(); + public void setNativeName(String nativeName) { + this.nativeName = nativeName == null ? null : nativeName.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialproperty.enabled - * - * @return the value of jsh_materialproperty.enabled - * - * @mbggenerated - */ public Boolean getEnabled() { return enabled; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.enabled - * - * @param enabled the value for jsh_materialproperty.enabled - * - * @mbggenerated - */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialproperty.sort - * - * @return the value of jsh_materialproperty.sort - * - * @mbggenerated - */ public String getSort() { return sort; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.sort - * - * @param sort the value for jsh_materialproperty.sort - * - * @mbggenerated - */ public void setSort(String sort) { this.sort = sort == null ? null : sort.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialproperty.anotherName - * - * @return the value of jsh_materialproperty.anotherName - * - * @mbggenerated - */ - public String getAnothername() { - return anothername; + public String getAnotherName() { + return anotherName; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.anotherName - * - * @param anothername the value for jsh_materialproperty.anotherName - * - * @mbggenerated - */ - public void setAnothername(String anothername) { - this.anothername = anothername == null ? null : anothername.trim(); + public void setAnotherName(String anotherName) { + this.anotherName = anotherName == null ? null : anotherName.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_materialproperty.delete_Flag - * - * @return the value of jsh_materialproperty.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_materialproperty.delete_Flag - * - * @param deleteFlag the value for jsh_materialproperty.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/MaterialPropertyExample.java b/src/main/java/com/jsh/erp/datasource/entities/MaterialPropertyExample.java index 64b3e60d..6c2fe016 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/MaterialPropertyExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/MaterialPropertyExample.java @@ -4,118 +4,46 @@ import java.util.ArrayList; import java.util.List; public class MaterialPropertyExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public MaterialPropertyExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @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_materialproperty - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class MaterialPropertyExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @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_materialproperty - * - * @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_materialproperty - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -254,73 +164,73 @@ public class MaterialPropertyExample { return (Criteria) this; } - public Criteria andNativenameIsNull() { - addCriterion("nativeName is null"); + public Criteria andNativeNameIsNull() { + addCriterion("native_name is null"); return (Criteria) this; } - public Criteria andNativenameIsNotNull() { - addCriterion("nativeName is not null"); + public Criteria andNativeNameIsNotNull() { + addCriterion("native_name is not null"); return (Criteria) this; } - public Criteria andNativenameEqualTo(String value) { - addCriterion("nativeName =", value, "nativename"); + public Criteria andNativeNameEqualTo(String value) { + addCriterion("native_name =", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameNotEqualTo(String value) { - addCriterion("nativeName <>", value, "nativename"); + public Criteria andNativeNameNotEqualTo(String value) { + addCriterion("native_name <>", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameGreaterThan(String value) { - addCriterion("nativeName >", value, "nativename"); + public Criteria andNativeNameGreaterThan(String value) { + addCriterion("native_name >", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameGreaterThanOrEqualTo(String value) { - addCriterion("nativeName >=", value, "nativename"); + public Criteria andNativeNameGreaterThanOrEqualTo(String value) { + addCriterion("native_name >=", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameLessThan(String value) { - addCriterion("nativeName <", value, "nativename"); + public Criteria andNativeNameLessThan(String value) { + addCriterion("native_name <", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameLessThanOrEqualTo(String value) { - addCriterion("nativeName <=", value, "nativename"); + public Criteria andNativeNameLessThanOrEqualTo(String value) { + addCriterion("native_name <=", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameLike(String value) { - addCriterion("nativeName like", value, "nativename"); + public Criteria andNativeNameLike(String value) { + addCriterion("native_name like", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameNotLike(String value) { - addCriterion("nativeName not like", value, "nativename"); + public Criteria andNativeNameNotLike(String value) { + addCriterion("native_name not like", value, "nativeName"); return (Criteria) this; } - public Criteria andNativenameIn(List values) { - addCriterion("nativeName in", values, "nativename"); + public Criteria andNativeNameIn(List values) { + addCriterion("native_name in", values, "nativeName"); return (Criteria) this; } - public Criteria andNativenameNotIn(List values) { - addCriterion("nativeName not in", values, "nativename"); + public Criteria andNativeNameNotIn(List values) { + addCriterion("native_name not in", values, "nativeName"); return (Criteria) this; } - public Criteria andNativenameBetween(String value1, String value2) { - addCriterion("nativeName between", value1, value2, "nativename"); + public Criteria andNativeNameBetween(String value1, String value2) { + addCriterion("native_name between", value1, value2, "nativeName"); return (Criteria) this; } - public Criteria andNativenameNotBetween(String value1, String value2) { - addCriterion("nativeName not between", value1, value2, "nativename"); + public Criteria andNativeNameNotBetween(String value1, String value2) { + addCriterion("native_name not between", value1, value2, "nativeName"); return (Criteria) this; } @@ -454,166 +364,153 @@ public class MaterialPropertyExample { return (Criteria) this; } - public Criteria andAnothernameIsNull() { - addCriterion("anotherName is null"); + public Criteria andAnotherNameIsNull() { + addCriterion("another_name is null"); return (Criteria) this; } - public Criteria andAnothernameIsNotNull() { - addCriterion("anotherName is not null"); + public Criteria andAnotherNameIsNotNull() { + addCriterion("another_name is not null"); return (Criteria) this; } - public Criteria andAnothernameEqualTo(String value) { - addCriterion("anotherName =", value, "anothername"); + public Criteria andAnotherNameEqualTo(String value) { + addCriterion("another_name =", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameNotEqualTo(String value) { - addCriterion("anotherName <>", value, "anothername"); + public Criteria andAnotherNameNotEqualTo(String value) { + addCriterion("another_name <>", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameGreaterThan(String value) { - addCriterion("anotherName >", value, "anothername"); + public Criteria andAnotherNameGreaterThan(String value) { + addCriterion("another_name >", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameGreaterThanOrEqualTo(String value) { - addCriterion("anotherName >=", value, "anothername"); + public Criteria andAnotherNameGreaterThanOrEqualTo(String value) { + addCriterion("another_name >=", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameLessThan(String value) { - addCriterion("anotherName <", value, "anothername"); + public Criteria andAnotherNameLessThan(String value) { + addCriterion("another_name <", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameLessThanOrEqualTo(String value) { - addCriterion("anotherName <=", value, "anothername"); + public Criteria andAnotherNameLessThanOrEqualTo(String value) { + addCriterion("another_name <=", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameLike(String value) { - addCriterion("anotherName like", value, "anothername"); + public Criteria andAnotherNameLike(String value) { + addCriterion("another_name like", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameNotLike(String value) { - addCriterion("anotherName not like", value, "anothername"); + public Criteria andAnotherNameNotLike(String value) { + addCriterion("another_name not like", value, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameIn(List values) { - addCriterion("anotherName in", values, "anothername"); + public Criteria andAnotherNameIn(List values) { + addCriterion("another_name in", values, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameNotIn(List values) { - addCriterion("anotherName not in", values, "anothername"); + public Criteria andAnotherNameNotIn(List values) { + addCriterion("another_name not in", values, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameBetween(String value1, String value2) { - addCriterion("anotherName between", value1, value2, "anothername"); + public Criteria andAnotherNameBetween(String value1, String value2) { + addCriterion("another_name between", value1, value2, "anotherName"); return (Criteria) this; } - public Criteria andAnothernameNotBetween(String value1, String value2) { - addCriterion("anotherName not between", value1, value2, "anothername"); + public Criteria andAnotherNameNotBetween(String value1, String value2) { + addCriterion("another_name not between", value1, value2, "anotherName"); return (Criteria) this; } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_materialproperty - * - * @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_materialproperty - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/Person.java b/src/main/java/com/jsh/erp/datasource/entities/Person.java index 1ade5650..9ebbc88f 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Person.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Person.java @@ -1,162 +1,52 @@ package com.jsh.erp.datasource.entities; public class Person { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_person.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_person.Type - * - * @mbggenerated - */ private String type; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_person.Name - * - * @mbggenerated - */ private String name; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_person.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_person.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_person.Id - * - * @return the value of jsh_person.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_person.Id - * - * @param id the value for jsh_person.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_person.Type - * - * @return the value of jsh_person.Type - * - * @mbggenerated - */ public String getType() { return type; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_person.Type - * - * @param type the value for jsh_person.Type - * - * @mbggenerated - */ public void setType(String type) { this.type = type == null ? null : type.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_person.Name - * - * @return the value of jsh_person.Name - * - * @mbggenerated - */ public String getName() { return name; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_person.Name - * - * @param name the value for jsh_person.Name - * - * @mbggenerated - */ public void setName(String name) { this.name = name == null ? null : name.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_person.tenant_id - * - * @return the value of jsh_person.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_person.tenant_id - * - * @param tenantId the value for jsh_person.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_person.delete_Flag - * - * @return the value of jsh_person.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_person.delete_Flag - * - * @param deleteFlag the value for jsh_person.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/PersonExample.java b/src/main/java/com/jsh/erp/datasource/entities/PersonExample.java index ca31f8cc..91c3136f 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/PersonExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/PersonExample.java @@ -4,118 +4,46 @@ import java.util.ArrayList; import java.util.List; public class PersonExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_person - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_person - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_person - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public PersonExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @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_person - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class PersonExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @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_person - * - * @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_person - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -195,202 +105,202 @@ public class PersonExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andTypeIsNull() { - addCriterion("Type is null"); + addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { - addCriterion("Type is not null"); + addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(String value) { - addCriterion("Type =", value, "type"); + addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(String value) { - addCriterion("Type <>", value, "type"); + addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(String value) { - addCriterion("Type >", value, "type"); + addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("Type >=", value, "type"); + addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(String value) { - addCriterion("Type <", value, "type"); + addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("Type <=", value, "type"); + addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeLike(String value) { - addCriterion("Type like", value, "type"); + addCriterion("type like", value, "type"); return (Criteria) this; } public Criteria andTypeNotLike(String value) { - addCriterion("Type not like", value, "type"); + addCriterion("type not like", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List values) { - addCriterion("Type in", values, "type"); + addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List values) { - addCriterion("Type not in", values, "type"); + addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(String value1, String value2) { - addCriterion("Type between", value1, value2, "type"); + addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("Type not between", value1, value2, "type"); + addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } @@ -455,95 +365,82 @@ public class PersonExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_person - * - * @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_person - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/Role.java b/src/main/java/com/jsh/erp/datasource/entities/Role.java index 98daf777..a68474be 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Role.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Role.java @@ -1,226 +1,72 @@ package com.jsh.erp.datasource.entities; public class Role { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.Name - * - * @mbggenerated - */ private String name; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.type - * - * @mbggenerated - */ private String type; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.value - * - * @mbggenerated - */ private String value; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.description - * - * @mbggenerated - */ private String description; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_role.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_role.Id - * - * @return the value of jsh_role.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.Id - * - * @param id the value for jsh_role.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_role.Name - * - * @return the value of jsh_role.Name - * - * @mbggenerated - */ public String getName() { return name; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.Name - * - * @param name the value for jsh_role.Name - * - * @mbggenerated - */ public void setName(String name) { this.name = name == null ? null : name.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_role.type - * - * @return the value of jsh_role.type - * - * @mbggenerated - */ public String getType() { return type; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.type - * - * @param type the value for jsh_role.type - * - * @mbggenerated - */ public void setType(String type) { this.type = type == null ? null : type.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_role.value - * - * @return the value of jsh_role.value - * - * @mbggenerated - */ public String getValue() { return value; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.value - * - * @param value the value for jsh_role.value - * - * @mbggenerated - */ public void setValue(String value) { this.value = value == null ? null : value.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_role.description - * - * @return the value of jsh_role.description - * - * @mbggenerated - */ public String getDescription() { return description; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.description - * - * @param description the value for jsh_role.description - * - * @mbggenerated - */ public void setDescription(String description) { this.description = description == null ? null : description.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_role.tenant_id - * - * @return the value of jsh_role.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_role.tenant_id - * - * @param tenantId the value for jsh_role.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_role.delete_Flag - * - * @return the value of jsh_role.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_role.delete_Flag - * - * @param deleteFlag the value for jsh_role.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/RoleExample.java b/src/main/java/com/jsh/erp/datasource/entities/RoleExample.java index 47a2faff..2cb98cca 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/RoleExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/RoleExample.java @@ -4,118 +4,46 @@ import java.util.ArrayList; import java.util.List; public class RoleExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_role - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_role - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_role - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public RoleExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @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_role - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class RoleExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @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_role - * - * @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_role - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -195,132 +105,132 @@ public class RoleExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("Name is null"); + addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("Name is not null"); + addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("Name =", value, "name"); + addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("Name <>", value, "name"); + addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("Name >", value, "name"); + addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("Name >=", value, "name"); + addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("Name <", value, "name"); + addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("Name <=", value, "name"); + addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("Name like", value, "name"); + addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("Name not like", value, "name"); + addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("Name in", values, "name"); + addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("Name not in", values, "name"); + addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("Name between", value1, value2, "name"); + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("Name not between", value1, value2, "name"); + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } @@ -595,95 +505,82 @@ public class RoleExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_role - * - * @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_role - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/SerialNumber.java b/src/main/java/com/jsh/erp/datasource/entities/SerialNumber.java index 8daa2ec9..3a90195f 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/SerialNumber.java +++ b/src/main/java/com/jsh/erp/datasource/entities/SerialNumber.java @@ -3,386 +3,122 @@ package com.jsh.erp.datasource.entities; import java.util.Date; public class SerialNumber { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.material_Id - * - * @mbggenerated - */ private Long materialId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.serial_Number - * - * @mbggenerated - */ private String serialNumber; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.is_Sell - * - * @mbggenerated - */ private String isSell; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.remark - * - * @mbggenerated - */ private String remark; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.create_Time - * - * @mbggenerated - */ private Date createTime; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.creator - * - * @mbggenerated - */ private Long creator; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.update_Time - * - * @mbggenerated - */ private Date updateTime; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.updater - * - * @mbggenerated - */ private Long updater; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.depothead_Id - * - * @mbggenerated - */ - private Long depotheadId; + private Long depotHeadId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_serial_number.tenant_id - * - * @mbggenerated - */ private Long tenantId; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.id - * - * @return the value of jsh_serial_number.id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.id - * - * @param id the value for jsh_serial_number.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_serial_number.material_Id - * - * @return the value of jsh_serial_number.material_Id - * - * @mbggenerated - */ public Long getMaterialId() { return materialId; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.material_Id - * - * @param materialId the value for jsh_serial_number.material_Id - * - * @mbggenerated - */ public void setMaterialId(Long materialId) { this.materialId = materialId; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.serial_Number - * - * @return the value of jsh_serial_number.serial_Number - * - * @mbggenerated - */ public String getSerialNumber() { return serialNumber; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.serial_Number - * - * @param serialNumber the value for jsh_serial_number.serial_Number - * - * @mbggenerated - */ public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber == null ? null : serialNumber.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.is_Sell - * - * @return the value of jsh_serial_number.is_Sell - * - * @mbggenerated - */ public String getIsSell() { return isSell; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.is_Sell - * - * @param isSell the value for jsh_serial_number.is_Sell - * - * @mbggenerated - */ public void setIsSell(String isSell) { this.isSell = isSell == null ? null : isSell.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.remark - * - * @return the value of jsh_serial_number.remark - * - * @mbggenerated - */ public String getRemark() { return remark; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.remark - * - * @param remark the value for jsh_serial_number.remark - * - * @mbggenerated - */ public void setRemark(String remark) { this.remark = remark == null ? null : remark.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.delete_Flag - * - * @return the value of jsh_serial_number.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.delete_Flag - * - * @param deleteFlag the value for jsh_serial_number.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.create_Time - * - * @return the value of jsh_serial_number.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_serial_number.create_Time - * - * @param createTime the value for jsh_serial_number.create_Time - * - * @mbggenerated - */ public void setCreateTime(Date createTime) { this.createTime = createTime; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.creator - * - * @return the value of jsh_serial_number.creator - * - * @mbggenerated - */ public Long getCreator() { return creator; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.creator - * - * @param creator the value for jsh_serial_number.creator - * - * @mbggenerated - */ public void setCreator(Long creator) { this.creator = creator; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.update_Time - * - * @return the value of jsh_serial_number.update_Time - * - * @mbggenerated - */ public Date getUpdateTime() { return updateTime; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.update_Time - * - * @param updateTime the value for jsh_serial_number.update_Time - * - * @mbggenerated - */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.updater - * - * @return the value of jsh_serial_number.updater - * - * @mbggenerated - */ public Long getUpdater() { return updater; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.updater - * - * @param updater the value for jsh_serial_number.updater - * - * @mbggenerated - */ public void setUpdater(Long updater) { this.updater = updater; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.depothead_Id - * - * @return the value of jsh_serial_number.depothead_Id - * - * @mbggenerated - */ - public Long getDepotheadId() { - return depotheadId; + public Long getDepotHeadId() { + return depotHeadId; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_serial_number.depothead_Id - * - * @param depotheadId the value for jsh_serial_number.depothead_Id - * - * @mbggenerated - */ - public void setDepotheadId(Long depotheadId) { - this.depotheadId = depotheadId; + public void setDepotHeadId(Long depotHeadId) { + this.depotHeadId = depotHeadId; } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_serial_number.tenant_id - * - * @return the value of jsh_serial_number.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_serial_number.tenant_id - * - * @param tenantId the value for jsh_serial_number.tenant_id - * - * @mbggenerated - */ public void setTenantId(Long tenantId) { this.tenantId = tenantId; } diff --git a/src/main/java/com/jsh/erp/datasource/entities/SerialNumberExample.java b/src/main/java/com/jsh/erp/datasource/entities/SerialNumberExample.java index f6b9e119..57976147 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/SerialNumberExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/SerialNumberExample.java @@ -5,118 +5,46 @@ import java.util.Date; import java.util.List; public class SerialNumberExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public SerialNumberExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @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_serial_number - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -125,41 +53,23 @@ public class SerialNumberExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @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_serial_number - * - * @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_serial_number - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -256,202 +166,202 @@ public class SerialNumberExample { } public Criteria andMaterialIdIsNull() { - addCriterion("material_Id is null"); + addCriterion("material_id is null"); return (Criteria) this; } public Criteria andMaterialIdIsNotNull() { - addCriterion("material_Id is not null"); + addCriterion("material_id is not null"); return (Criteria) this; } public Criteria andMaterialIdEqualTo(Long value) { - addCriterion("material_Id =", value, "materialId"); + addCriterion("material_id =", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdNotEqualTo(Long value) { - addCriterion("material_Id <>", value, "materialId"); + addCriterion("material_id <>", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdGreaterThan(Long value) { - addCriterion("material_Id >", value, "materialId"); + addCriterion("material_id >", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdGreaterThanOrEqualTo(Long value) { - addCriterion("material_Id >=", value, "materialId"); + addCriterion("material_id >=", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdLessThan(Long value) { - addCriterion("material_Id <", value, "materialId"); + addCriterion("material_id <", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdLessThanOrEqualTo(Long value) { - addCriterion("material_Id <=", value, "materialId"); + addCriterion("material_id <=", value, "materialId"); return (Criteria) this; } public Criteria andMaterialIdIn(List values) { - addCriterion("material_Id in", values, "materialId"); + addCriterion("material_id in", values, "materialId"); return (Criteria) this; } public Criteria andMaterialIdNotIn(List values) { - addCriterion("material_Id not in", values, "materialId"); + addCriterion("material_id not in", values, "materialId"); return (Criteria) this; } public Criteria andMaterialIdBetween(Long value1, Long value2) { - addCriterion("material_Id between", value1, value2, "materialId"); + addCriterion("material_id between", value1, value2, "materialId"); return (Criteria) this; } public Criteria andMaterialIdNotBetween(Long value1, Long value2) { - addCriterion("material_Id not between", value1, value2, "materialId"); + addCriterion("material_id not between", value1, value2, "materialId"); return (Criteria) this; } public Criteria andSerialNumberIsNull() { - addCriterion("serial_Number is null"); + addCriterion("serial_number is null"); return (Criteria) this; } public Criteria andSerialNumberIsNotNull() { - addCriterion("serial_Number is not null"); + addCriterion("serial_number is not null"); return (Criteria) this; } public Criteria andSerialNumberEqualTo(String value) { - addCriterion("serial_Number =", value, "serialNumber"); + addCriterion("serial_number =", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberNotEqualTo(String value) { - addCriterion("serial_Number <>", value, "serialNumber"); + addCriterion("serial_number <>", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberGreaterThan(String value) { - addCriterion("serial_Number >", value, "serialNumber"); + addCriterion("serial_number >", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberGreaterThanOrEqualTo(String value) { - addCriterion("serial_Number >=", value, "serialNumber"); + addCriterion("serial_number >=", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberLessThan(String value) { - addCriterion("serial_Number <", value, "serialNumber"); + addCriterion("serial_number <", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberLessThanOrEqualTo(String value) { - addCriterion("serial_Number <=", value, "serialNumber"); + addCriterion("serial_number <=", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberLike(String value) { - addCriterion("serial_Number like", value, "serialNumber"); + addCriterion("serial_number like", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberNotLike(String value) { - addCriterion("serial_Number not like", value, "serialNumber"); + addCriterion("serial_number not like", value, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberIn(List values) { - addCriterion("serial_Number in", values, "serialNumber"); + addCriterion("serial_number in", values, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberNotIn(List values) { - addCriterion("serial_Number not in", values, "serialNumber"); + addCriterion("serial_number not in", values, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberBetween(String value1, String value2) { - addCriterion("serial_Number between", value1, value2, "serialNumber"); + addCriterion("serial_number between", value1, value2, "serialNumber"); return (Criteria) this; } public Criteria andSerialNumberNotBetween(String value1, String value2) { - addCriterion("serial_Number not between", value1, value2, "serialNumber"); + addCriterion("serial_number not between", value1, value2, "serialNumber"); return (Criteria) this; } public Criteria andIsSellIsNull() { - addCriterion("is_Sell is null"); + addCriterion("is_sell is null"); return (Criteria) this; } public Criteria andIsSellIsNotNull() { - addCriterion("is_Sell is not null"); + addCriterion("is_sell is not null"); return (Criteria) this; } public Criteria andIsSellEqualTo(String value) { - addCriterion("is_Sell =", value, "isSell"); + addCriterion("is_sell =", value, "isSell"); return (Criteria) this; } public Criteria andIsSellNotEqualTo(String value) { - addCriterion("is_Sell <>", value, "isSell"); + addCriterion("is_sell <>", value, "isSell"); return (Criteria) this; } public Criteria andIsSellGreaterThan(String value) { - addCriterion("is_Sell >", value, "isSell"); + addCriterion("is_sell >", value, "isSell"); return (Criteria) this; } public Criteria andIsSellGreaterThanOrEqualTo(String value) { - addCriterion("is_Sell >=", value, "isSell"); + addCriterion("is_sell >=", value, "isSell"); return (Criteria) this; } public Criteria andIsSellLessThan(String value) { - addCriterion("is_Sell <", value, "isSell"); + addCriterion("is_sell <", value, "isSell"); return (Criteria) this; } public Criteria andIsSellLessThanOrEqualTo(String value) { - addCriterion("is_Sell <=", value, "isSell"); + addCriterion("is_sell <=", value, "isSell"); return (Criteria) this; } public Criteria andIsSellLike(String value) { - addCriterion("is_Sell like", value, "isSell"); + addCriterion("is_sell like", value, "isSell"); return (Criteria) this; } public Criteria andIsSellNotLike(String value) { - addCriterion("is_Sell not like", value, "isSell"); + addCriterion("is_sell not like", value, "isSell"); return (Criteria) this; } public Criteria andIsSellIn(List values) { - addCriterion("is_Sell in", values, "isSell"); + addCriterion("is_sell in", values, "isSell"); return (Criteria) this; } public Criteria andIsSellNotIn(List values) { - addCriterion("is_Sell not in", values, "isSell"); + addCriterion("is_sell not in", values, "isSell"); return (Criteria) this; } public Criteria andIsSellBetween(String value1, String value2) { - addCriterion("is_Sell between", value1, value2, "isSell"); + addCriterion("is_sell between", value1, value2, "isSell"); return (Criteria) this; } public Criteria andIsSellNotBetween(String value1, String value2) { - addCriterion("is_Sell not between", value1, value2, "isSell"); + addCriterion("is_sell not between", value1, value2, "isSell"); return (Criteria) this; } @@ -526,132 +436,132 @@ public class SerialNumberExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { - addCriterion("create_Time is null"); + addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { - addCriterion("create_Time is not null"); + addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { - addCriterion("create_Time =", value, "createTime"); + addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { - addCriterion("create_Time <>", value, "createTime"); + addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { - addCriterion("create_Time >", value, "createTime"); + addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { - addCriterion("create_Time >=", value, "createTime"); + addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { - addCriterion("create_Time <", value, "createTime"); + addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { - addCriterion("create_Time <=", value, "createTime"); + addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List values) { - addCriterion("create_Time in", values, "createTime"); + addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List values) { - addCriterion("create_Time not in", values, "createTime"); + addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { - addCriterion("create_Time between", value1, value2, "createTime"); + 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"); + addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } @@ -716,62 +626,62 @@ public class SerialNumberExample { } public Criteria andUpdateTimeIsNull() { - addCriterion("update_Time is null"); + addCriterion("update_time is null"); return (Criteria) this; } public Criteria andUpdateTimeIsNotNull() { - addCriterion("update_Time is not null"); + addCriterion("update_time is not null"); return (Criteria) this; } public Criteria andUpdateTimeEqualTo(Date value) { - addCriterion("update_Time =", value, "updateTime"); + addCriterion("update_time =", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeNotEqualTo(Date value) { - addCriterion("update_Time <>", value, "updateTime"); + addCriterion("update_time <>", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeGreaterThan(Date value) { - addCriterion("update_Time >", value, "updateTime"); + addCriterion("update_time >", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { - addCriterion("update_Time >=", value, "updateTime"); + addCriterion("update_time >=", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeLessThan(Date value) { - addCriterion("update_Time <", value, "updateTime"); + addCriterion("update_time <", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { - addCriterion("update_Time <=", value, "updateTime"); + addCriterion("update_time <=", value, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeIn(List values) { - addCriterion("update_Time in", values, "updateTime"); + addCriterion("update_time in", values, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeNotIn(List values) { - addCriterion("update_Time not in", values, "updateTime"); + addCriterion("update_time not in", values, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeBetween(Date value1, Date value2) { - addCriterion("update_Time between", value1, value2, "updateTime"); + addCriterion("update_time between", value1, value2, "updateTime"); return (Criteria) this; } public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { - addCriterion("update_Time not between", value1, value2, "updateTime"); + addCriterion("update_time not between", value1, value2, "updateTime"); return (Criteria) this; } @@ -835,63 +745,63 @@ public class SerialNumberExample { return (Criteria) this; } - public Criteria andDepotheadIdIsNull() { - addCriterion("depothead_Id is null"); + public Criteria andDepotHeadIdIsNull() { + addCriterion("depot_head_id is null"); return (Criteria) this; } - public Criteria andDepotheadIdIsNotNull() { - addCriterion("depothead_Id is not null"); + public Criteria andDepotHeadIdIsNotNull() { + addCriterion("depot_head_id is not null"); return (Criteria) this; } - public Criteria andDepotheadIdEqualTo(Long value) { - addCriterion("depothead_Id =", value, "depotheadId"); + public Criteria andDepotHeadIdEqualTo(Long value) { + addCriterion("depot_head_id =", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdNotEqualTo(Long value) { - addCriterion("depothead_Id <>", value, "depotheadId"); + public Criteria andDepotHeadIdNotEqualTo(Long value) { + addCriterion("depot_head_id <>", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdGreaterThan(Long value) { - addCriterion("depothead_Id >", value, "depotheadId"); + public Criteria andDepotHeadIdGreaterThan(Long value) { + addCriterion("depot_head_id >", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdGreaterThanOrEqualTo(Long value) { - addCriterion("depothead_Id >=", value, "depotheadId"); + public Criteria andDepotHeadIdGreaterThanOrEqualTo(Long value) { + addCriterion("depot_head_id >=", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdLessThan(Long value) { - addCriterion("depothead_Id <", value, "depotheadId"); + public Criteria andDepotHeadIdLessThan(Long value) { + addCriterion("depot_head_id <", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdLessThanOrEqualTo(Long value) { - addCriterion("depothead_Id <=", value, "depotheadId"); + public Criteria andDepotHeadIdLessThanOrEqualTo(Long value) { + addCriterion("depot_head_id <=", value, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdIn(List values) { - addCriterion("depothead_Id in", values, "depotheadId"); + public Criteria andDepotHeadIdIn(List values) { + addCriterion("depot_head_id in", values, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdNotIn(List values) { - addCriterion("depothead_Id not in", values, "depotheadId"); + public Criteria andDepotHeadIdNotIn(List values) { + addCriterion("depot_head_id not in", values, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdBetween(Long value1, Long value2) { - addCriterion("depothead_Id between", value1, value2, "depotheadId"); + public Criteria andDepotHeadIdBetween(Long value1, Long value2) { + addCriterion("depot_head_id between", value1, value2, "depotHeadId"); return (Criteria) this; } - public Criteria andDepotheadIdNotBetween(Long value1, Long value2) { - addCriterion("depothead_Id not between", value1, value2, "depotheadId"); + public Criteria andDepotHeadIdNotBetween(Long value1, Long value2) { + addCriterion("depot_head_id not between", value1, value2, "depotHeadId"); return (Criteria) this; } @@ -956,25 +866,12 @@ public class SerialNumberExample { } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_serial_number - * - * @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_serial_number - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/entities/SystemConfigExample.java b/src/main/java/com/jsh/erp/datasource/entities/SystemConfigExample.java index 02697f8a..3bd0f12b 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/SystemConfigExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/SystemConfigExample.java @@ -855,72 +855,72 @@ public class SystemConfigExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } diff --git a/src/main/java/com/jsh/erp/datasource/entities/Unit.java b/src/main/java/com/jsh/erp/datasource/entities/Unit.java index 75f6121b..f5cc3acd 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/Unit.java +++ b/src/main/java/com/jsh/erp/datasource/entities/Unit.java @@ -3,7 +3,7 @@ package com.jsh.erp.datasource.entities; public class Unit { private Long id; - private String uname; + private String name; private String basicUnit; @@ -23,12 +23,12 @@ public class Unit { this.id = id; } - public String getUname() { - return uname; + public String getName() { + return name; } - public void setUname(String uname) { - this.uname = uname == null ? null : uname.trim(); + public void setName(String name) { + this.name = name == null ? null : name.trim(); } public String getBasicUnit() { diff --git a/src/main/java/com/jsh/erp/datasource/entities/UnitExample.java b/src/main/java/com/jsh/erp/datasource/entities/UnitExample.java index 976bd8bd..eb03bc18 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/UnitExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/UnitExample.java @@ -164,73 +164,73 @@ public class UnitExample { return (Criteria) this; } - public Criteria andUnameIsNull() { - addCriterion("UName is null"); + public Criteria andNameIsNull() { + addCriterion("name is null"); return (Criteria) this; } - public Criteria andUnameIsNotNull() { - addCriterion("UName is not null"); + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); return (Criteria) this; } - public Criteria andUnameEqualTo(String value) { - addCriterion("UName =", value, "uname"); + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); return (Criteria) this; } - public Criteria andUnameNotEqualTo(String value) { - addCriterion("UName <>", value, "uname"); + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); return (Criteria) this; } - public Criteria andUnameGreaterThan(String value) { - addCriterion("UName >", value, "uname"); + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); return (Criteria) this; } - public Criteria andUnameGreaterThanOrEqualTo(String value) { - addCriterion("UName >=", value, "uname"); + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); return (Criteria) this; } - public Criteria andUnameLessThan(String value) { - addCriterion("UName <", value, "uname"); + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); return (Criteria) this; } - public Criteria andUnameLessThanOrEqualTo(String value) { - addCriterion("UName <=", value, "uname"); + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); return (Criteria) this; } - public Criteria andUnameLike(String value) { - addCriterion("UName like", value, "uname"); + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); return (Criteria) this; } - public Criteria andUnameNotLike(String value) { - addCriterion("UName not like", value, "uname"); + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); return (Criteria) this; } - public Criteria andUnameIn(List values) { - addCriterion("UName in", values, "uname"); + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); return (Criteria) this; } - public Criteria andUnameNotIn(List values) { - addCriterion("UName not in", values, "uname"); + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); return (Criteria) this; } - public Criteria andUnameBetween(String value1, String value2) { - addCriterion("UName between", value1, value2, "uname"); + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); return (Criteria) this; } - public Criteria andUnameNotBetween(String value1, String value2) { - addCriterion("UName not between", value1, value2, "uname"); + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } @@ -495,72 +495,72 @@ public class UnitExample { } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } diff --git a/src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java b/src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java index 2f6fe048..baf73408 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java +++ b/src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java @@ -1,194 +1,62 @@ package com.jsh.erp.datasource.entities; public class UserBusiness { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.Id - * - * @mbggenerated - */ private Long id; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.Type - * - * @mbggenerated - */ private String type; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.KeyId - * - * @mbggenerated - */ - private String keyid; + private String keyId; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.Value - * - * @mbggenerated - */ private String value; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.BtnStr - * - * @mbggenerated - */ - private String btnstr; + private String btnStr; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column jsh_userbusiness.delete_Flag - * - * @mbggenerated - */ private String deleteFlag; - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_userbusiness.Id - * - * @return the value of jsh_userbusiness.Id - * - * @mbggenerated - */ public Long getId() { return id; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.Id - * - * @param id the value for jsh_userbusiness.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_userbusiness.Type - * - * @return the value of jsh_userbusiness.Type - * - * @mbggenerated - */ public String getType() { return type; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.Type - * - * @param type the value for jsh_userbusiness.Type - * - * @mbggenerated - */ public void setType(String type) { this.type = type == null ? null : type.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_userbusiness.KeyId - * - * @return the value of jsh_userbusiness.KeyId - * - * @mbggenerated - */ - public String getKeyid() { - return keyid; + public String getKeyId() { + return keyId; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.KeyId - * - * @param keyid the value for jsh_userbusiness.KeyId - * - * @mbggenerated - */ - public void setKeyid(String keyid) { - this.keyid = keyid == null ? null : keyid.trim(); + public void setKeyId(String keyId) { + this.keyId = keyId == null ? null : keyId.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_userbusiness.Value - * - * @return the value of jsh_userbusiness.Value - * - * @mbggenerated - */ public String getValue() { return value; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.Value - * - * @param value the value for jsh_userbusiness.Value - * - * @mbggenerated - */ public void setValue(String value) { this.value = value == null ? null : value.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_userbusiness.BtnStr - * - * @return the value of jsh_userbusiness.BtnStr - * - * @mbggenerated - */ - public String getBtnstr() { - return btnstr; + public String getBtnStr() { + return btnStr; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.BtnStr - * - * @param btnstr the value for jsh_userbusiness.BtnStr - * - * @mbggenerated - */ - public void setBtnstr(String btnstr) { - this.btnstr = btnstr == null ? null : btnstr.trim(); + public void setBtnStr(String btnStr) { + this.btnStr = btnStr == null ? null : btnStr.trim(); } - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column jsh_userbusiness.delete_Flag - * - * @return the value of jsh_userbusiness.delete_Flag - * - * @mbggenerated - */ public String getDeleteFlag() { return deleteFlag; } - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column jsh_userbusiness.delete_Flag - * - * @param deleteFlag the value for jsh_userbusiness.delete_Flag - * - * @mbggenerated - */ public void setDeleteFlag(String deleteFlag) { this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim(); } diff --git a/src/main/java/com/jsh/erp/datasource/entities/UserBusinessExample.java b/src/main/java/com/jsh/erp/datasource/entities/UserBusinessExample.java index 615c5c70..3895486c 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/UserBusinessExample.java +++ b/src/main/java/com/jsh/erp/datasource/entities/UserBusinessExample.java @@ -4,118 +4,46 @@ import java.util.ArrayList; import java.util.List; public class UserBusinessExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ protected String orderByClause; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ protected boolean distinct; - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ protected List oredCriteria; - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public UserBusinessExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public String getOrderByClause() { return orderByClause; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public void setDistinct(boolean distinct) { this.distinct = distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public boolean isDistinct() { return distinct; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public List getOredCriteria() { return oredCriteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ public void or(Criteria criteria) { oredCriteria.add(criteria); } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @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_userbusiness - * - * @mbggenerated - */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -124,41 +52,23 @@ public class UserBusinessExample { return criteria; } - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @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_userbusiness - * - * @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_userbusiness - * - * @mbggenerated - */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -195,435 +105,422 @@ public class UserBusinessExample { } public Criteria andIdIsNull() { - addCriterion("Id is null"); + addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { - addCriterion("Id is not null"); + addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { - addCriterion("Id =", value, "id"); + addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { - addCriterion("Id <>", value, "id"); + addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { - addCriterion("Id >", value, "id"); + addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("Id >=", value, "id"); + addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { - addCriterion("Id <", value, "id"); + addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("Id <=", value, "id"); + addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List values) { - addCriterion("Id in", values, "id"); + addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List values) { - addCriterion("Id not in", values, "id"); + addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("Id between", value1, value2, "id"); + addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("Id not between", value1, value2, "id"); + addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andTypeIsNull() { - addCriterion("Type is null"); + addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { - addCriterion("Type is not null"); + addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(String value) { - addCriterion("Type =", value, "type"); + addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(String value) { - addCriterion("Type <>", value, "type"); + addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(String value) { - addCriterion("Type >", value, "type"); + addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("Type >=", value, "type"); + addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(String value) { - addCriterion("Type <", value, "type"); + addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("Type <=", value, "type"); + addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeLike(String value) { - addCriterion("Type like", value, "type"); + addCriterion("type like", value, "type"); return (Criteria) this; } public Criteria andTypeNotLike(String value) { - addCriterion("Type not like", value, "type"); + addCriterion("type not like", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List values) { - addCriterion("Type in", values, "type"); + addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List values) { - addCriterion("Type not in", values, "type"); + addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(String value1, String value2) { - addCriterion("Type between", value1, value2, "type"); + addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("Type not between", value1, value2, "type"); + addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } - public Criteria andKeyidIsNull() { - addCriterion("KeyId is null"); + public Criteria andKeyIdIsNull() { + addCriterion("key_id is null"); return (Criteria) this; } - public Criteria andKeyidIsNotNull() { - addCriterion("KeyId is not null"); + public Criteria andKeyIdIsNotNull() { + addCriterion("key_id is not null"); return (Criteria) this; } - public Criteria andKeyidEqualTo(String value) { - addCriterion("KeyId =", value, "keyid"); + public Criteria andKeyIdEqualTo(String value) { + addCriterion("key_id =", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidNotEqualTo(String value) { - addCriterion("KeyId <>", value, "keyid"); + public Criteria andKeyIdNotEqualTo(String value) { + addCriterion("key_id <>", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidGreaterThan(String value) { - addCriterion("KeyId >", value, "keyid"); + public Criteria andKeyIdGreaterThan(String value) { + addCriterion("key_id >", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidGreaterThanOrEqualTo(String value) { - addCriterion("KeyId >=", value, "keyid"); + public Criteria andKeyIdGreaterThanOrEqualTo(String value) { + addCriterion("key_id >=", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidLessThan(String value) { - addCriterion("KeyId <", value, "keyid"); + public Criteria andKeyIdLessThan(String value) { + addCriterion("key_id <", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidLessThanOrEqualTo(String value) { - addCriterion("KeyId <=", value, "keyid"); + public Criteria andKeyIdLessThanOrEqualTo(String value) { + addCriterion("key_id <=", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidLike(String value) { - addCriterion("KeyId like", value, "keyid"); + public Criteria andKeyIdLike(String value) { + addCriterion("key_id like", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidNotLike(String value) { - addCriterion("KeyId not like", value, "keyid"); + public Criteria andKeyIdNotLike(String value) { + addCriterion("key_id not like", value, "keyId"); return (Criteria) this; } - public Criteria andKeyidIn(List values) { - addCriterion("KeyId in", values, "keyid"); + public Criteria andKeyIdIn(List values) { + addCriterion("key_id in", values, "keyId"); return (Criteria) this; } - public Criteria andKeyidNotIn(List values) { - addCriterion("KeyId not in", values, "keyid"); + public Criteria andKeyIdNotIn(List values) { + addCriterion("key_id not in", values, "keyId"); return (Criteria) this; } - public Criteria andKeyidBetween(String value1, String value2) { - addCriterion("KeyId between", value1, value2, "keyid"); + public Criteria andKeyIdBetween(String value1, String value2) { + addCriterion("key_id between", value1, value2, "keyId"); return (Criteria) this; } - public Criteria andKeyidNotBetween(String value1, String value2) { - addCriterion("KeyId not between", value1, value2, "keyid"); + public Criteria andKeyIdNotBetween(String value1, String value2) { + addCriterion("key_id not between", value1, value2, "keyId"); return (Criteria) this; } public Criteria andValueIsNull() { - addCriterion("Value is null"); + addCriterion("value is null"); return (Criteria) this; } public Criteria andValueIsNotNull() { - addCriterion("Value is not null"); + addCriterion("value is not null"); return (Criteria) this; } public Criteria andValueEqualTo(String value) { - addCriterion("Value =", value, "value"); + addCriterion("value =", value, "value"); return (Criteria) this; } public Criteria andValueNotEqualTo(String value) { - addCriterion("Value <>", value, "value"); + addCriterion("value <>", value, "value"); return (Criteria) this; } public Criteria andValueGreaterThan(String value) { - addCriterion("Value >", value, "value"); + addCriterion("value >", value, "value"); return (Criteria) this; } public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("Value >=", value, "value"); + addCriterion("value >=", value, "value"); return (Criteria) this; } public Criteria andValueLessThan(String value) { - addCriterion("Value <", value, "value"); + addCriterion("value <", value, "value"); return (Criteria) this; } public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("Value <=", value, "value"); + addCriterion("value <=", value, "value"); return (Criteria) this; } public Criteria andValueLike(String value) { - addCriterion("Value like", value, "value"); + addCriterion("value like", value, "value"); return (Criteria) this; } public Criteria andValueNotLike(String value) { - addCriterion("Value not like", value, "value"); + addCriterion("value not like", value, "value"); return (Criteria) this; } public Criteria andValueIn(List values) { - addCriterion("Value in", values, "value"); + addCriterion("value in", values, "value"); return (Criteria) this; } public Criteria andValueNotIn(List values) { - addCriterion("Value not in", values, "value"); + addCriterion("value not in", values, "value"); return (Criteria) this; } public Criteria andValueBetween(String value1, String value2) { - addCriterion("Value between", value1, value2, "value"); + addCriterion("value between", value1, value2, "value"); return (Criteria) this; } public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("Value not between", value1, value2, "value"); + addCriterion("value not between", value1, value2, "value"); return (Criteria) this; } - public Criteria andBtnstrIsNull() { - addCriterion("BtnStr is null"); + public Criteria andBtnStrIsNull() { + addCriterion("btn_str is null"); return (Criteria) this; } - public Criteria andBtnstrIsNotNull() { - addCriterion("BtnStr is not null"); + public Criteria andBtnStrIsNotNull() { + addCriterion("btn_str is not null"); return (Criteria) this; } - public Criteria andBtnstrEqualTo(String value) { - addCriterion("BtnStr =", value, "btnstr"); + public Criteria andBtnStrEqualTo(String value) { + addCriterion("btn_str =", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrNotEqualTo(String value) { - addCriterion("BtnStr <>", value, "btnstr"); + public Criteria andBtnStrNotEqualTo(String value) { + addCriterion("btn_str <>", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrGreaterThan(String value) { - addCriterion("BtnStr >", value, "btnstr"); + public Criteria andBtnStrGreaterThan(String value) { + addCriterion("btn_str >", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrGreaterThanOrEqualTo(String value) { - addCriterion("BtnStr >=", value, "btnstr"); + public Criteria andBtnStrGreaterThanOrEqualTo(String value) { + addCriterion("btn_str >=", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrLessThan(String value) { - addCriterion("BtnStr <", value, "btnstr"); + public Criteria andBtnStrLessThan(String value) { + addCriterion("btn_str <", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrLessThanOrEqualTo(String value) { - addCriterion("BtnStr <=", value, "btnstr"); + public Criteria andBtnStrLessThanOrEqualTo(String value) { + addCriterion("btn_str <=", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrLike(String value) { - addCriterion("BtnStr like", value, "btnstr"); + public Criteria andBtnStrLike(String value) { + addCriterion("btn_str like", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrNotLike(String value) { - addCriterion("BtnStr not like", value, "btnstr"); + public Criteria andBtnStrNotLike(String value) { + addCriterion("btn_str not like", value, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrIn(List values) { - addCriterion("BtnStr in", values, "btnstr"); + public Criteria andBtnStrIn(List values) { + addCriterion("btn_str in", values, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrNotIn(List values) { - addCriterion("BtnStr not in", values, "btnstr"); + public Criteria andBtnStrNotIn(List values) { + addCriterion("btn_str not in", values, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrBetween(String value1, String value2) { - addCriterion("BtnStr between", value1, value2, "btnstr"); + public Criteria andBtnStrBetween(String value1, String value2) { + addCriterion("btn_str between", value1, value2, "btnStr"); return (Criteria) this; } - public Criteria andBtnstrNotBetween(String value1, String value2) { - addCriterion("BtnStr not between", value1, value2, "btnstr"); + public Criteria andBtnStrNotBetween(String value1, String value2) { + addCriterion("btn_str not between", value1, value2, "btnStr"); return (Criteria) this; } public Criteria andDeleteFlagIsNull() { - addCriterion("delete_Flag is null"); + addCriterion("delete_flag is null"); return (Criteria) this; } public Criteria andDeleteFlagIsNotNull() { - addCriterion("delete_Flag is not null"); + addCriterion("delete_flag is not null"); return (Criteria) this; } public Criteria andDeleteFlagEqualTo(String value) { - addCriterion("delete_Flag =", value, "deleteFlag"); + addCriterion("delete_flag =", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotEqualTo(String value) { - addCriterion("delete_Flag <>", value, "deleteFlag"); + addCriterion("delete_flag <>", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThan(String value) { - addCriterion("delete_Flag >", value, "deleteFlag"); + addCriterion("delete_flag >", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) { - addCriterion("delete_Flag >=", value, "deleteFlag"); + addCriterion("delete_flag >=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThan(String value) { - addCriterion("delete_Flag <", value, "deleteFlag"); + addCriterion("delete_flag <", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLessThanOrEqualTo(String value) { - addCriterion("delete_Flag <=", value, "deleteFlag"); + addCriterion("delete_flag <=", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagLike(String value) { - addCriterion("delete_Flag like", value, "deleteFlag"); + addCriterion("delete_flag like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotLike(String value) { - addCriterion("delete_Flag not like", value, "deleteFlag"); + addCriterion("delete_flag not like", value, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagIn(List values) { - addCriterion("delete_Flag in", values, "deleteFlag"); + addCriterion("delete_flag in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotIn(List values) { - addCriterion("delete_Flag not in", values, "deleteFlag"); + addCriterion("delete_flag not in", values, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagBetween(String value1, String value2) { - addCriterion("delete_Flag between", value1, value2, "deleteFlag"); + addCriterion("delete_flag between", value1, value2, "deleteFlag"); return (Criteria) this; } public Criteria andDeleteFlagNotBetween(String value1, String value2) { - addCriterion("delete_Flag not between", value1, value2, "deleteFlag"); + addCriterion("delete_flag not between", value1, value2, "deleteFlag"); return (Criteria) this; } } - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table jsh_userbusiness - * - * @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_userbusiness - * - * @mbggenerated - */ public static class Criterion { private String condition; diff --git a/src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java index f8f8327c..8471428d 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface AccountMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ - int countByExample(AccountExample example); + long countByExample(AccountExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int deleteByExample(AccountExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int insert(Account record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int insertSelective(Account record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ List selectByExample(AccountExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ Account selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") Account record, @Param("example") AccountExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int updateByExample(@Param("record") Account record, @Param("example") AccountExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int updateByPrimaryKeySelective(Account record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_account - * - * @mbggenerated - */ int updateByPrimaryKey(Account record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/FunctionMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/FunctionMapper.java new file mode 100644 index 00000000..ed3eb54d --- /dev/null +++ b/src/main/java/com/jsh/erp/datasource/mappers/FunctionMapper.java @@ -0,0 +1,30 @@ +package com.jsh.erp.datasource.mappers; + +import com.jsh.erp.datasource.entities.Function; +import com.jsh.erp.datasource.entities.FunctionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FunctionMapper { + long countByExample(FunctionExample example); + + int deleteByExample(FunctionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Function record); + + int insertSelective(Function record); + + List selectByExample(FunctionExample example); + + Function selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Function record, @Param("example") FunctionExample example); + + int updateByExample(@Param("record") Function record, @Param("example") FunctionExample example); + + int updateByPrimaryKeySelective(Function record); + + int updateByPrimaryKey(Function record); +} \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapperEx.java b/src/main/java/com/jsh/erp/datasource/mappers/FunctionMapperEx.java similarity index 50% rename from src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapperEx.java rename to src/main/java/com/jsh/erp/datasource/mappers/FunctionMapperEx.java index 2b4b8369..ae76f703 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapperEx.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/FunctionMapperEx.java @@ -1,23 +1,22 @@ package com.jsh.erp.datasource.mappers; -import com.jsh.erp.datasource.entities.Functions; -import com.jsh.erp.datasource.entities.FunctionsExample; +import com.jsh.erp.datasource.entities.Function; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; -public interface FunctionsMapperEx { +public interface FunctionMapperEx { - List selectByConditionFunctions( + List selectByConditionFunction( @Param("name") String name, @Param("type") String type, @Param("offset") Integer offset, @Param("rows") Integer rows); - Long countsByFunctions( + Long countsByFunction( @Param("name") String name, @Param("type") String type); - int batchDeleteFunctionsByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]); + int batchDeleteFunctionByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapper.java deleted file mode 100644 index c3995b78..00000000 --- a/src/main/java/com/jsh/erp/datasource/mappers/FunctionsMapper.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.jsh.erp.datasource.mappers; - -import com.jsh.erp.datasource.entities.Functions; -import com.jsh.erp.datasource.entities.FunctionsExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface FunctionsMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int countByExample(FunctionsExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int deleteByExample(FunctionsExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int deleteByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int insert(Functions record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int insertSelective(Functions record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - List selectByExample(FunctionsExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - Functions selectByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int updateByExampleSelective(@Param("record") Functions record, @Param("example") FunctionsExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int updateByExample(@Param("record") Functions record, @Param("example") FunctionsExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int updateByPrimaryKeySelective(Functions record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_functions - * - * @mbggenerated - */ - int updateByPrimaryKey(Functions record); -} \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/InOutItemMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/InOutItemMapper.java index 086013a0..1ce4b173 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/InOutItemMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/InOutItemMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface InOutItemMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ - int countByExample(InOutItemExample example); + long countByExample(InOutItemExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int deleteByExample(InOutItemExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int insert(InOutItem record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int insertSelective(InOutItem record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ List selectByExample(InOutItemExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ InOutItem selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") InOutItem record, @Param("example") InOutItemExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int updateByExample(@Param("record") InOutItem record, @Param("example") InOutItemExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int updateByPrimaryKeySelective(InOutItem record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_inoutitem - * - * @mbggenerated - */ int updateByPrimaryKey(InOutItem record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java index 8672c003..343b759b 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface LogMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ - int countByExample(LogExample example); + long countByExample(LogExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int deleteByExample(LogExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int insert(Log record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int insertSelective(Log record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ List selectByExample(LogExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ Log selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") Log record, @Param("example") LogExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int updateByExample(@Param("record") Log record, @Param("example") LogExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int updateByPrimaryKeySelective(Log record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_log - * - * @mbggenerated - */ int updateByPrimaryKey(Log record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/LogMapperEx.java b/src/main/java/com/jsh/erp/datasource/mappers/LogMapperEx.java index 9047323e..655c73cc 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/LogMapperEx.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/LogMapperEx.java @@ -11,21 +11,21 @@ public interface LogMapperEx { List selectByConditionLog( @Param("operation") String operation, - @Param("usernameID") Integer usernameID, + @Param("userId") Integer userId, @Param("clientIp") String clientIp, @Param("status") Integer status, @Param("beginTime") String beginTime, @Param("endTime") String endTime, - @Param("contentdetails") String contentdetails, + @Param("content") String content, @Param("offset") Integer offset, @Param("rows") Integer rows); Long countsByLog( @Param("operation") String operation, - @Param("usernameID") Integer usernameID, + @Param("userId") Integer userId, @Param("clientIp") String clientIp, @Param("status") Integer status, @Param("beginTime") String beginTime, @Param("endTime") String endTime, - @Param("contentdetails") String contentdetails); + @Param("content") String content); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/MaterialCategoryMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/MaterialCategoryMapper.java index 8ad1290b..c8685667 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/MaterialCategoryMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/MaterialCategoryMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface MaterialCategoryMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ - int countByExample(MaterialCategoryExample example); + long countByExample(MaterialCategoryExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int deleteByExample(MaterialCategoryExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int insert(MaterialCategory record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int insertSelective(MaterialCategory record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ List selectByExample(MaterialCategoryExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ MaterialCategory selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") MaterialCategory record, @Param("example") MaterialCategoryExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int updateByExample(@Param("record") MaterialCategory record, @Param("example") MaterialCategoryExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int updateByPrimaryKeySelective(MaterialCategory record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialcategory - * - * @mbggenerated - */ int updateByPrimaryKey(MaterialCategory record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/MaterialPropertyMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/MaterialPropertyMapper.java index baf2a45c..dc3e5880 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/MaterialPropertyMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/MaterialPropertyMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface MaterialPropertyMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ - int countByExample(MaterialPropertyExample example); + long countByExample(MaterialPropertyExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int deleteByExample(MaterialPropertyExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int insert(MaterialProperty record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int insertSelective(MaterialProperty record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ List selectByExample(MaterialPropertyExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ MaterialProperty selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") MaterialProperty record, @Param("example") MaterialPropertyExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int updateByExample(@Param("record") MaterialProperty record, @Param("example") MaterialPropertyExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int updateByPrimaryKeySelective(MaterialProperty record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_materialproperty - * - * @mbggenerated - */ int updateByPrimaryKey(MaterialProperty record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java index 75df967d..8b852cb2 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface PersonMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ - int countByExample(PersonExample example); + long countByExample(PersonExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int deleteByExample(PersonExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int insert(Person record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int insertSelective(Person record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ List selectByExample(PersonExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ Person selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") Person record, @Param("example") PersonExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int updateByExample(@Param("record") Person record, @Param("example") PersonExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int updateByPrimaryKeySelective(Person record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_person - * - * @mbggenerated - */ int updateByPrimaryKey(Person record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java index e5abffe6..18cd6a54 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface RoleMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ - int countByExample(RoleExample example); + long countByExample(RoleExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int deleteByExample(RoleExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int insert(Role record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int insertSelective(Role record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ List selectByExample(RoleExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ Role selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int updateByExample(@Param("record") Role record, @Param("example") RoleExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int updateByPrimaryKeySelective(Role record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_role - * - * @mbggenerated - */ int updateByPrimaryKey(Role record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/SerialNumberMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/SerialNumberMapper.java index f1b7a47c..3480e124 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/SerialNumberMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/SerialNumberMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface SerialNumberMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ - int countByExample(SerialNumberExample example); + long countByExample(SerialNumberExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int deleteByExample(SerialNumberExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int insert(SerialNumber record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int insertSelective(SerialNumber record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ List selectByExample(SerialNumberExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ SerialNumber selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") SerialNumber record, @Param("example") SerialNumberExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int updateByExample(@Param("record") SerialNumber record, @Param("example") SerialNumberExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int updateByPrimaryKeySelective(SerialNumber record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_serial_number - * - * @mbggenerated - */ int updateByPrimaryKey(SerialNumber record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapper.java b/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapper.java index ad6238ef..73ccc5ba 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapper.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapper.java @@ -6,91 +6,25 @@ import java.util.List; import org.apache.ibatis.annotations.Param; public interface UserBusinessMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ - int countByExample(UserBusinessExample example); + long countByExample(UserBusinessExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int deleteByExample(UserBusinessExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int deleteByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int insert(UserBusiness record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int insertSelective(UserBusiness record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ List selectByExample(UserBusinessExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ UserBusiness selectByPrimaryKey(Long id); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int updateByExampleSelective(@Param("record") UserBusiness record, @Param("example") UserBusinessExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int updateByExample(@Param("record") UserBusiness record, @Param("example") UserBusinessExample example); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int updateByPrimaryKeySelective(UserBusiness record); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table jsh_userbusiness - * - * @mbggenerated - */ int updateByPrimaryKey(UserBusiness record); } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapperEx.java b/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapperEx.java index 8e135be7..d1396672 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapperEx.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/UserBusinessMapperEx.java @@ -9,5 +9,7 @@ import java.util.Date; /** * @Date: 2019/3/29 15:09 */ public interface UserBusinessMapperEx { + int batchDeleteUserBusinessByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]); + } diff --git a/src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java b/src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java index 649cd480..c96bf0af 100644 --- a/src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java +++ b/src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java @@ -4,13 +4,13 @@ import com.jsh.erp.datasource.entities.Account; public class AccountVo4List extends Account{ - private String thismonthamount; + private String thisMonthAmount; - public String getThismonthamount() { - return thismonthamount; + public String getThisMonthAmount() { + return thisMonthAmount; } - public void setThismonthamount(String thismonthamount) { - this.thismonthamount = thismonthamount; + public void setThisMonthAmount(String thisMonthAmount) { + this.thisMonthAmount = thisMonthAmount; } } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/vo/LogVo4List.java b/src/main/java/com/jsh/erp/datasource/vo/LogVo4List.java index 67f75349..c69a0fce 100644 --- a/src/main/java/com/jsh/erp/datasource/vo/LogVo4List.java +++ b/src/main/java/com/jsh/erp/datasource/vo/LogVo4List.java @@ -4,16 +4,16 @@ import com.jsh.erp.datasource.entities.Log; public class LogVo4List extends Log { - private String username; + private String userName; private String createTimeStr; - public String getUsername() { - return username; + public String getUserName() { + return userName; } - public void setUsername(String username) { - this.username = username; + public void setUserName(String userName) { + this.userName = userName; } public String getCreateTimeStr() { diff --git a/src/main/java/com/jsh/erp/service/account/AccountService.java b/src/main/java/com/jsh/erp/service/account/AccountService.java index 40508367..60b7c69f 100644 --- a/src/main/java/com/jsh/erp/service/account/AccountService.java +++ b/src/main/java/com/jsh/erp/service/account/AccountService.java @@ -104,9 +104,9 @@ public class AccountService { if ((thisMonthAmount.compareTo(BigDecimal.ZERO))!=0) { thisMonthAmountFmt = df.format(thisMonthAmount); } - al.setThismonthamount(thisMonthAmountFmt); //本月发生额 - BigDecimal currentAmount = getAccountSum(al.getId(), "", "month").add(getAccountSumByHead(al.getId(), "", "month")).add(getAccountSumByDetail(al.getId(), "", "month")).add(getManyAccountSum(al.getId(), "", "month")) .add(al.getInitialamount()) ; - al.setCurrentamount(currentAmount); + al.setThisMonthAmount(thisMonthAmountFmt); //本月发生额 + BigDecimal currentAmount = getAccountSum(al.getId(), "", "month").add(getAccountSumByHead(al.getId(), "", "month")).add(getAccountSumByDetail(al.getId(), "", "month")).add(getManyAccountSum(al.getId(), "", "month")) .add(al.getInitialAmount()) ; + al.setCurrentAmount(currentAmount); resList.add(al); } } @@ -126,10 +126,10 @@ public class AccountService { @Transactional(value = "transactionManager", rollbackFor = Exception.class) public int insertAccount(String beanJson, HttpServletRequest request)throws Exception { Account account = JSONObject.parseObject(beanJson, Account.class); - if(account.getInitialamount() == null) { - account.setInitialamount(BigDecimal.ZERO); + if(account.getInitialAmount() == null) { + account.setInitialAmount(BigDecimal.ZERO); } - account.setIsdefault(false); + account.setIsDefault(false); int result=0; try{ result = accountMapper.insertSelective(account); @@ -442,7 +442,7 @@ public class AccountService { logService.insertLog("账户",BusinessConstants.LOG_OPERATION_TYPE_EDIT+accountId, ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); Account account = new Account(); - account.setIsdefault(isDefault); + account.setIsDefault(isDefault); AccountExample example = new AccountExample(); example.createCriteria().andIdEqualTo(accountId); int result=0; @@ -561,7 +561,7 @@ public class AccountService { BigDecimal monthAmount = getAccountSum(a.getId(), timeStr, "month").add(getAccountSumByHead(a.getId(), timeStr, "month")) .add(getAccountSumByDetail(a.getId(), timeStr, "month")).add(getManyAccountSum(a.getId(), timeStr, "month")); BigDecimal currentAmount = getAccountSum(a.getId(), "", "month").add(getAccountSumByHead(a.getId(), "", "month")) - .add(getAccountSumByDetail(a.getId(), "", "month")).add(getManyAccountSum(a.getId(), "", "month")).add(a.getInitialamount()); + .add(getAccountSumByDetail(a.getId(), "", "month")).add(getManyAccountSum(a.getId(), "", "month")).add(a.getInitialAmount()); allMonthAmount = allMonthAmount.add(monthAmount); allCurrentAmount = allCurrentAmount.add(currentAmount); } diff --git a/src/main/java/com/jsh/erp/service/functions/FunctionsComponent.java b/src/main/java/com/jsh/erp/service/functions/FunctionComponent.java similarity index 66% rename from src/main/java/com/jsh/erp/service/functions/FunctionsComponent.java rename to src/main/java/com/jsh/erp/service/functions/FunctionComponent.java index c1620745..2406ee0d 100644 --- a/src/main/java/com/jsh/erp/service/functions/FunctionsComponent.java +++ b/src/main/java/com/jsh/erp/service/functions/FunctionComponent.java @@ -1,7 +1,6 @@ package com.jsh.erp.service.functions; import com.jsh.erp.service.ICommonQuery; -import com.jsh.erp.service.functions.FunctionsService; import com.jsh.erp.utils.Constants; import com.jsh.erp.utils.QueryUtils; import com.jsh.erp.utils.StringUtil; @@ -12,16 +11,16 @@ import javax.servlet.http.HttpServletRequest; import java.util.List; import java.util.Map; -@Service(value = "functions_component") -@FunctionsResource -public class FunctionsComponent implements ICommonQuery { +@Service(value = "function_component") +@FunctionResource +public class FunctionComponent implements ICommonQuery { @Resource - private FunctionsService functionsService; + private FunctionService functionService; @Override public Object selectOne(Long id) throws Exception { - return functionsService.getFunctions(id); + return functionService.getFunction(id); } @Override @@ -34,7 +33,7 @@ public class FunctionsComponent implements ICommonQuery { String name = StringUtil.getInfo(search, "name"); String type = StringUtil.getInfo(search, "type"); String order = QueryUtils.order(map); - return functionsService.select(name, type, QueryUtils.offset(map), QueryUtils.rows(map)); + return functionService.select(name, type, QueryUtils.offset(map), QueryUtils.rows(map)); } @Override @@ -42,32 +41,32 @@ public class FunctionsComponent implements ICommonQuery { String search = map.get(Constants.SEARCH); String name = StringUtil.getInfo(search, "name"); String type = StringUtil.getInfo(search, "type"); - return functionsService.countFunctions(name, type); + return functionService.countFunction(name, type); } @Override public int insert(String beanJson, HttpServletRequest request)throws Exception { - return functionsService.insertFunctions(beanJson, request); + return functionService.insertFunction(beanJson, request); } @Override public int update(String beanJson, Long id, HttpServletRequest request)throws Exception { - return functionsService.updateFunctions(beanJson, id, request); + return functionService.updateFunction(beanJson, id, request); } @Override public int delete(Long id, HttpServletRequest request)throws Exception { - return functionsService.deleteFunctions(id, request); + return functionService.deleteFunction(id, request); } @Override public int batchDelete(String ids, HttpServletRequest request)throws Exception { - return functionsService.batchDeleteFunctions(ids, request); + return functionService.batchDeleteFunction(ids, request); } @Override public int checkIsNameExist(Long id, String name)throws Exception { - return functionsService.checkIsNameExist(id, name); + return functionService.checkIsNameExist(id, name); } } diff --git a/src/main/java/com/jsh/erp/service/functions/FunctionsResource.java b/src/main/java/com/jsh/erp/service/functions/FunctionResource.java similarity index 74% rename from src/main/java/com/jsh/erp/service/functions/FunctionsResource.java rename to src/main/java/com/jsh/erp/service/functions/FunctionResource.java index 4f54e11a..70344843 100644 --- a/src/main/java/com/jsh/erp/service/functions/FunctionsResource.java +++ b/src/main/java/com/jsh/erp/service/functions/FunctionResource.java @@ -7,9 +7,9 @@ import java.lang.annotation.*; /** * @author jishenghua qq752718920 2018-10-7 15:26:27 */ -@ResourceInfo(value = "functions") +@ResourceInfo(value = "function") @Inherited @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) -public @interface FunctionsResource { +public @interface FunctionResource { } diff --git a/src/main/java/com/jsh/erp/service/functions/FunctionsService.java b/src/main/java/com/jsh/erp/service/functions/FunctionService.java similarity index 66% rename from src/main/java/com/jsh/erp/service/functions/FunctionsService.java rename to src/main/java/com/jsh/erp/service/functions/FunctionService.java index fe4a8f46..1934869b 100644 --- a/src/main/java/com/jsh/erp/service/functions/FunctionsService.java +++ b/src/main/java/com/jsh/erp/service/functions/FunctionService.java @@ -2,14 +2,11 @@ package com.jsh.erp.service.functions; import com.alibaba.fastjson.JSONObject; import com.jsh.erp.constants.BusinessConstants; -import com.jsh.erp.constants.ExceptionConstants; -import com.jsh.erp.datasource.entities.DepotItem; -import com.jsh.erp.datasource.entities.Functions; -import com.jsh.erp.datasource.entities.FunctionsExample; +import com.jsh.erp.datasource.entities.Function; +import com.jsh.erp.datasource.entities.FunctionExample; import com.jsh.erp.datasource.entities.User; -import com.jsh.erp.datasource.mappers.FunctionsMapper; -import com.jsh.erp.datasource.mappers.FunctionsMapperEx; -import com.jsh.erp.exception.BusinessRunTimeException; +import com.jsh.erp.datasource.mappers.FunctionMapper; +import com.jsh.erp.datasource.mappers.FunctionMapperEx; import com.jsh.erp.exception.JshException; import com.jsh.erp.service.log.LogService; import com.jsh.erp.service.user.UserService; @@ -28,21 +25,21 @@ import java.util.Date; import java.util.List; @Service -public class FunctionsService { - private Logger logger = LoggerFactory.getLogger(FunctionsService.class); +public class FunctionService { + private Logger logger = LoggerFactory.getLogger(FunctionService.class); @Resource - private FunctionsMapper functionsMapper; + private FunctionMapper functionsMapper; @Resource - private FunctionsMapperEx functionsMapperEx; + private FunctionMapperEx functionMapperEx; @Resource private UserService userService; @Resource private LogService logService; - public Functions getFunctions(long id)throws Exception { - Functions result=null; + public Function getFunction(long id)throws Exception { + Function result=null; try{ result=functionsMapper.selectByPrimaryKey(id); }catch(Exception e){ @@ -51,11 +48,11 @@ public class FunctionsService { return result; } - public List getFunctionsListByIds(String ids)throws Exception { + public List getFunctionListByIds(String ids)throws Exception { List idList = StringUtil.strToLongList(ids); - List list = new ArrayList<>(); + List list = new ArrayList<>(); try{ - FunctionsExample example = new FunctionsExample(); + FunctionExample example = new FunctionExample(); example.createCriteria().andIdIn(idList); list = functionsMapper.selectByExample(example); }catch(Exception e){ @@ -64,10 +61,10 @@ public class FunctionsService { return list; } - public List getFunctions()throws Exception { - FunctionsExample example = new FunctionsExample(); + public List getFunction()throws Exception { + FunctionExample example = new FunctionExample(); example.createCriteria().andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); - List list=null; + List list=null; try{ list=functionsMapper.selectByExample(example); }catch(Exception e){ @@ -76,20 +73,20 @@ public class FunctionsService { return list; } - public List select(String name, String type, int offset, int rows)throws Exception { - List list=null; + public List select(String name, String type, int offset, int rows)throws Exception { + List list=null; try{ - list=functionsMapperEx.selectByConditionFunctions(name, type, offset, rows); + list= functionMapperEx.selectByConditionFunction(name, type, offset, rows); }catch(Exception e){ JshException.readFail(logger, e); } return list; } - public Long countFunctions(String name, String type)throws Exception { + public Long countFunction(String name, String type)throws Exception { Long result=null; try{ - result=functionsMapperEx.countsByFunctions(name, type); + result= functionMapperEx.countsByFunction(name, type); }catch(Exception e){ JshException.readFail(logger, e); } @@ -97,8 +94,8 @@ public class FunctionsService { } @Transactional(value = "transactionManager", rollbackFor = Exception.class) - public int insertFunctions(String beanJson, HttpServletRequest request)throws Exception { - Functions functions = JSONObject.parseObject(beanJson, Functions.class); + public int insertFunction(String beanJson, HttpServletRequest request)throws Exception { + Function functions = JSONObject.parseObject(beanJson, Function.class); int result=0; try{ result=functionsMapper.insertSelective(functions); @@ -111,8 +108,8 @@ public class FunctionsService { } @Transactional(value = "transactionManager", rollbackFor = Exception.class) - public int updateFunctions(String beanJson, Long id, HttpServletRequest request) throws Exception{ - Functions functions = JSONObject.parseObject(beanJson, Functions.class); + public int updateFunction(String beanJson, Long id, HttpServletRequest request) throws Exception{ + Function functions = JSONObject.parseObject(beanJson, Function.class); functions.setId(id); int result=0; try{ @@ -126,7 +123,7 @@ public class FunctionsService { } @Transactional(value = "transactionManager", rollbackFor = Exception.class) - public int deleteFunctions(Long id, HttpServletRequest request)throws Exception { + public int deleteFunction(Long id, HttpServletRequest request)throws Exception { int result=0; try{ result=functionsMapper.deleteByPrimaryKey(id); @@ -139,9 +136,9 @@ public class FunctionsService { } @Transactional(value = "transactionManager", rollbackFor = Exception.class) - public int batchDeleteFunctions(String ids, HttpServletRequest request)throws Exception { + public int batchDeleteFunction(String ids, HttpServletRequest request)throws Exception { List idList = StringUtil.strToLongList(ids); - FunctionsExample example = new FunctionsExample(); + FunctionExample example = new FunctionExample(); example.createCriteria().andIdIn(idList); int result=0; try{ @@ -154,9 +151,9 @@ public class FunctionsService { } public int checkIsNameExist(Long id, String name)throws Exception { - FunctionsExample example = new FunctionsExample(); + FunctionExample example = new FunctionExample(); example.createCriteria().andIdNotEqualTo(id).andNameEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); - List list=null; + List list=null; try{ list = functionsMapper.selectByExample(example); }catch(Exception e){ @@ -165,12 +162,12 @@ public class FunctionsService { return list==null?0:list.size(); } - public List getRoleFunctions(String pNumber)throws Exception { - FunctionsExample example = new FunctionsExample(); - example.createCriteria().andEnabledEqualTo(true).andPnumberEqualTo(pNumber) + public List getRoleFunction(String pNumber)throws Exception { + FunctionExample example = new FunctionExample(); + example.createCriteria().andEnabledEqualTo(true).andParentNumberEqualTo(pNumber) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); example.setOrderByClause("Sort"); - List list=null; + List list=null; try{ list = functionsMapper.selectByExample(example); }catch(Exception e){ @@ -179,12 +176,12 @@ public class FunctionsService { return list; } - public List findRoleFunctions(String pnumber)throws Exception{ - FunctionsExample example = new FunctionsExample(); - example.createCriteria().andEnabledEqualTo(true).andPnumberEqualTo(pnumber) + public List findRoleFunction(String pnumber)throws Exception{ + FunctionExample example = new FunctionExample(); + example.createCriteria().andEnabledEqualTo(true).andParentNumberEqualTo(pnumber) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); example.setOrderByClause("Sort"); - List list=null; + List list=null; try{ list =functionsMapper.selectByExample(example); }catch(Exception e){ @@ -193,13 +190,13 @@ public class FunctionsService { return list; } - public List findByIds(String functionsIds)throws Exception{ + public List findByIds(String functionsIds)throws Exception{ List idList = StringUtil.strToLongList(functionsIds); - FunctionsExample example = new FunctionsExample(); + FunctionExample example = new FunctionExample(); example.createCriteria().andEnabledEqualTo(true).andIdIn(idList) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); example.setOrderByClause("Sort asc"); - List list=null; + List list=null; try{ list =functionsMapper.selectByExample(example); }catch(Exception e){ @@ -209,11 +206,11 @@ public class FunctionsService { } @Transactional(value = "transactionManager", rollbackFor = Exception.class) - public int batchDeleteFunctionsByIds(String ids)throws Exception { + public int batchDeleteFunctionByIds(String ids)throws Exception { StringBuffer sb = new StringBuffer(); sb.append(BusinessConstants.LOG_OPERATION_TYPE_DELETE); - List list = getFunctionsListByIds(ids); - for(Functions functions: list){ + List list = getFunctionListByIds(ids); + for(Function functions: list){ sb.append("[").append(functions.getName()).append("]"); } logService.insertLog("功能", sb.toString(), @@ -222,7 +219,7 @@ public class FunctionsService { String [] idArray=ids.split(","); int result=0; try{ - result =functionsMapperEx.batchDeleteFunctionsByIds(new Date(),userInfo==null?null:userInfo.getId(),idArray); + result = functionMapperEx.batchDeleteFunctionByIds(new Date(),userInfo==null?null:userInfo.getId(),idArray); }catch(Exception e){ JshException.writeFail(logger, e); } diff --git a/src/main/java/com/jsh/erp/service/log/LogComponent.java b/src/main/java/com/jsh/erp/service/log/LogComponent.java index 211c81d1..606f521d 100644 --- a/src/main/java/com/jsh/erp/service/log/LogComponent.java +++ b/src/main/java/com/jsh/erp/service/log/LogComponent.java @@ -25,20 +25,19 @@ public class LogComponent implements ICommonQuery { @Override public List select(Map map)throws Exception { - return getUserList(map); + return getLogList(map); } - private List getUserList(Map map)throws Exception { + private List getLogList(Map map)throws Exception { String search = map.get(Constants.SEARCH); String operation = StringUtil.getInfo(search, "operation"); - Integer usernameID = StringUtil.parseInteger(StringUtil.getInfo(search, "usernameID")); + Integer userId = StringUtil.parseInteger(StringUtil.getInfo(search, "userId")); String clientIp = StringUtil.getInfo(search, "clientIp"); Integer status = StringUtil.parseInteger(StringUtil.getInfo(search, "status")); String beginTime = StringUtil.getInfo(search, "beginTime"); String endTime = StringUtil.getInfo(search, "endTime"); - String contentdetails = StringUtil.getInfo(search, "contentdetails"); - String order = QueryUtils.order(map); - return logService.select(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails, + String content = StringUtil.getInfo(search, "content"); + return logService.select(operation, userId, clientIp, status, beginTime, endTime, content, QueryUtils.offset(map), QueryUtils.rows(map)); } @@ -46,13 +45,13 @@ public class LogComponent implements ICommonQuery { public Long counts(Map map)throws Exception { String search = map.get(Constants.SEARCH); String operation = StringUtil.getInfo(search, "operation"); - Integer usernameID = StringUtil.parseInteger(StringUtil.getInfo(search, "usernameID")); + Integer userId = StringUtil.parseInteger(StringUtil.getInfo(search, "userId")); String clientIp = StringUtil.getInfo(search, "clientIp"); Integer status = StringUtil.parseInteger(StringUtil.getInfo(search, "status")); String beginTime = StringUtil.getInfo(search, "beginTime"); String endTime = StringUtil.getInfo(search, "endTime"); - String contentdetails = StringUtil.getInfo(search, "contentdetails"); - return logService.countLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails); + String content = StringUtil.getInfo(search, "content"); + return logService.countLog(operation, userId, clientIp, status, beginTime, endTime, content); } @Override diff --git a/src/main/java/com/jsh/erp/service/log/LogService.java b/src/main/java/com/jsh/erp/service/log/LogService.java index 728607b5..afb8e522 100644 --- a/src/main/java/com/jsh/erp/service/log/LogService.java +++ b/src/main/java/com/jsh/erp/service/log/LogService.java @@ -55,15 +55,15 @@ public class LogService { return list; } - public List select(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime, - String contentdetails, int offset, int rows)throws Exception { + public List select(String operation, Integer userId, String clientIp, Integer status, String beginTime, String endTime, + String content, int offset, int rows)throws Exception { List list=null; try{ - list=logMapperEx.selectByConditionLog(operation, usernameID, clientIp, status, beginTime, endTime, - contentdetails, offset, rows); + list=logMapperEx.selectByConditionLog(operation, userId, clientIp, status, beginTime, endTime, + content, offset, rows); if (null != list) { for (LogVo4List log : list) { - log.setCreateTimeStr(Tools.getCenternTime(log.getCreatetime())); + log.setCreateTimeStr(Tools.getCenternTime(log.getCreateTime())); } } }catch(Exception e){ @@ -72,11 +72,11 @@ public class LogService { return list; } - public Long countLog(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime, - String contentdetails)throws Exception { + public Long countLog(String operation, Integer userId, String clientIp, Integer status, String beginTime, String endTime, + String content)throws Exception { Long result=null; try{ - result=logMapperEx.countsByLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails); + result=logMapperEx.countsByLog(operation, userId, clientIp, status, beginTime, endTime, content); }catch(Exception e){ JshException.readFail(logger, e); } @@ -153,13 +153,13 @@ public class LogService { Long userId = getUserId(request); if(userId!=null) { Log log = new Log(); - log.setUserid(userId); + log.setUserId(userId); log.setOperation(moduleName); - log.setClientip(getLocalIp(request)); - log.setCreatetime(new Date()); + log.setClientIp(getLocalIp(request)); + log.setCreateTime(new Date()); Byte status = 0; log.setStatus(status); - log.setContentdetails(content); + log.setContent(content); logMapper.insertSelective(log); } }catch(Exception e){ diff --git a/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java b/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java index 8e48ae62..2ce4540a 100644 --- a/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java +++ b/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java @@ -90,7 +90,7 @@ public class MaterialCategoryService { List res= new ArrayList(); List list=null; MaterialCategoryExample example = new MaterialCategoryExample(); - example.createCriteria().andParentidEqualTo(parentId).andIdNotEqualTo(1l); + example.createCriteria().andParentIdEqualTo(parentId).andIdNotEqualTo(1L); example.setOrderByClause("id"); list=materialCategoryMapper.selectByExample(example); if(list!=null && list.size()>0) { @@ -230,9 +230,9 @@ public class MaterialCategoryService { if(mc==null){ return 0; } - if(mc.getParentid()==null){ + if(mc.getParentId()==null){ //没有给定父级目录的id,默认设置父级目录为根目录的父目录 - mc.setParentid(BusinessConstants.MATERIAL_CATEGORY_ROOT_PARENT_ID); + mc.setParentId(BusinessConstants.MATERIAL_CATEGORY_ROOT_PARENT_ID); } //检查商品类型编号是否已存在 checkMaterialCategorySerialNo(mc); @@ -288,9 +288,9 @@ public class MaterialCategoryService { logService.insertLog("商品类型", new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(mc.getName()).toString(), ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); - if(mc.getParentid()==null){ + if(mc.getParentId()==null){ //没有给定父级目录的id,默认设置父级目录为根目录的父目录 - mc.setParentid(BusinessConstants.MATERIAL_CATEGORY_ROOT_PARENT_ID); + mc.setParentId(BusinessConstants.MATERIAL_CATEGORY_ROOT_PARENT_ID); } //检查商品类型编号是否已存在 checkMaterialCategorySerialNo(mc); @@ -362,7 +362,7 @@ public class MaterialCategoryService { /** * 校验 * 1、产品表 jsh_material - * 2、产品类型表 jsh_materialcategory + * 2、产品类型表 jsh_material_category * 是否有相关数据 * */ int deleteTotal=0; @@ -386,7 +386,7 @@ public class MaterialCategoryService { ExceptionConstants.DELETE_FORCE_CONFIRM_MSG); } /** - * 校验产品类型表 jsh_materialcategory + * 校验产品类型表 jsh_material_category * */ List materialCategoryList=null; try{ @@ -412,7 +412,7 @@ public class MaterialCategoryService { * @param name */ public Long getCategoryIdByName(String name){ - Long categoryId = 0l; + Long categoryId = 0L; MaterialCategoryExample example = new MaterialCategoryExample(); example.createCriteria().andNameEqualTo(name).andStatusNotEqualTo(BusinessConstants.DELETE_TYPE_FORCE); List list = materialCategoryMapper.selectByExample(example); diff --git a/src/main/java/com/jsh/erp/service/materialProperty/MaterialPropertyService.java b/src/main/java/com/jsh/erp/service/materialProperty/MaterialPropertyService.java index 797fc27e..22e9d912 100644 --- a/src/main/java/com/jsh/erp/service/materialProperty/MaterialPropertyService.java +++ b/src/main/java/com/jsh/erp/service/materialProperty/MaterialPropertyService.java @@ -88,7 +88,7 @@ public class MaterialPropertyService { try{ result=materialPropertyMapper.insertSelective(materialProperty); logService.insertLog("商品属性", - new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(materialProperty.getNativename()).toString(), request); + new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(materialProperty.getNativeName()).toString(), request); }catch(Exception e){ JshException.writeFail(logger, e); } @@ -103,7 +103,7 @@ public class MaterialPropertyService { try{ result=materialPropertyMapper.updateByPrimaryKeySelective(materialProperty); logService.insertLog("商品属性", - new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(materialProperty.getNativename()).toString(), request); + new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(materialProperty.getNativeName()).toString(), request); }catch(Exception e){ JshException.writeFail(logger, e); } diff --git a/src/main/java/com/jsh/erp/service/person/PersonService.java b/src/main/java/com/jsh/erp/service/person/PersonService.java index 48f24a45..b3e6b816 100644 --- a/src/main/java/com/jsh/erp/service/person/PersonService.java +++ b/src/main/java/com/jsh/erp/service/person/PersonService.java @@ -173,7 +173,7 @@ public class PersonService { List ids = StringUtil.strToLongList(personIDs); PersonExample example = new PersonExample(); example.createCriteria().andIdIn(ids).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); - example.setOrderByClause("Id asc"); + example.setOrderByClause("id asc"); List list =null; try{ list=personMapper.selectByExample(example); @@ -192,7 +192,7 @@ public class PersonService { public List getPersonByType(String type)throws Exception { PersonExample example = new PersonExample(); example.createCriteria().andTypeEqualTo(type).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); - example.setOrderByClause("Id asc"); + example.setOrderByClause("id asc"); List list =null; try{ list=personMapper.selectByExample(example); diff --git a/src/main/java/com/jsh/erp/service/unit/UnitService.java b/src/main/java/com/jsh/erp/service/unit/UnitService.java index 866b0441..c65ec3c3 100644 --- a/src/main/java/com/jsh/erp/service/unit/UnitService.java +++ b/src/main/java/com/jsh/erp/service/unit/UnitService.java @@ -104,7 +104,7 @@ public class UnitService { try{ result=unitMapper.insertSelective(unit); logService.insertLog("计量单位", - new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(unit.getUname()).toString(), request); + new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(unit.getName()).toString(), request); }catch(Exception e){ JshException.writeFail(logger, e); } @@ -119,7 +119,7 @@ public class UnitService { try{ result=unitMapper.updateByPrimaryKeySelective(unit); logService.insertLog("计量单位", - new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(unit.getUname()).toString(), request); + new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(unit.getName()).toString(), request); }catch(Exception e){ JshException.writeFail(logger, e); } @@ -156,7 +156,7 @@ public class UnitService { public int checkIsNameExist(Long id, String name)throws Exception { UnitExample example = new UnitExample(); - example.createCriteria().andIdNotEqualTo(id).andUnameEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); + example.createCriteria().andIdNotEqualTo(id).andNameEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list=null; try{ list=unitMapper.selectByExample(example); @@ -171,7 +171,7 @@ public class UnitService { sb.append(BusinessConstants.LOG_OPERATION_TYPE_DELETE); List list = getUnitListByIds(ids); for(Unit unit: list){ - sb.append("[").append(unit.getUname()).append("]"); + sb.append("[").append(unit.getName()).append("]"); } logService.insertLog("计量单位", sb.toString(), ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); @@ -234,9 +234,9 @@ public class UnitService { * @param name */ public Long getUnitIdByName(String name){ - Long unitId = 0l; + Long unitId = 0L; UnitExample example = new UnitExample(); - example.createCriteria().andUnameEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); + example.createCriteria().andNameEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list = unitMapper.selectByExample(example); if(list!=null && list.size()>0) { unitId = list.get(0).getId(); diff --git a/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java b/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java index 3dbc7807..533215fc 100644 --- a/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java +++ b/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java @@ -2,14 +2,12 @@ package com.jsh.erp.service.userBusiness; import com.alibaba.fastjson.JSONObject; import com.jsh.erp.constants.BusinessConstants; -import com.jsh.erp.constants.ExceptionConstants; import com.jsh.erp.datasource.entities.*; import com.jsh.erp.datasource.mappers.UserBusinessMapper; import com.jsh.erp.datasource.mappers.UserBusinessMapperEx; -import com.jsh.erp.exception.BusinessRunTimeException; import com.jsh.erp.exception.JshException; import com.jsh.erp.service.CommonQueryManager; -import com.jsh.erp.service.functions.FunctionsService; +import com.jsh.erp.service.functions.FunctionService; import com.jsh.erp.service.log.LogService; import com.jsh.erp.service.user.UserService; import com.jsh.erp.utils.StringUtil; @@ -17,7 +15,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import org.springframework.util.CollectionUtils; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; @@ -39,7 +36,7 @@ public class UserBusinessService { private UserService userService; @Resource - private FunctionsService functionsService; + private FunctionService functionService; @Resource private CommonQueryManager configResourceManager; @@ -127,7 +124,7 @@ public class UserBusinessService { public List getBasicData(String keyId, String type)throws Exception{ UserBusinessExample example = new UserBusinessExample(); - example.createCriteria().andKeyidEqualTo(keyId).andTypeEqualTo(type) + example.createCriteria().andKeyIdEqualTo(keyId).andTypeEqualTo(type) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list=null; try{ @@ -140,7 +137,7 @@ public class UserBusinessService { public Long checkIsValueExist(String type, String keyId)throws Exception { UserBusinessExample example = new UserBusinessExample(); - example.createCriteria().andTypeEqualTo(type).andKeyidEqualTo(keyId) + example.createCriteria().andTypeEqualTo(type).andKeyIdEqualTo(keyId) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list=null; try{ @@ -159,7 +156,7 @@ public class UserBusinessService { UserBusinessExample example = new UserBusinessExample(); String newVaule = "%" + UBValue + "%"; if(TypeVale !=null && KeyIdValue !=null) { - example.createCriteria().andTypeEqualTo(TypeVale).andKeyidEqualTo(KeyIdValue).andValueLike(newVaule) + example.createCriteria().andTypeEqualTo(TypeVale).andKeyIdEqualTo(KeyIdValue).andValueLike(newVaule) .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); } else { example.createCriteria().andValueLike(newVaule) @@ -184,7 +181,7 @@ public class UserBusinessService { new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(userBusinessId).toString(), ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); UserBusiness userBusiness = new UserBusiness(); - userBusiness.setBtnstr(btnStr); + userBusiness.setBtnStr(btnStr); UserBusinessExample example = new UserBusinessExample(); example.createCriteria().andIdEqualTo(userBusinessId); int result=0; @@ -198,7 +195,7 @@ public class UserBusinessService { public List findRoleByUserId(String userId)throws Exception{ UserBusinessExample example = new UserBusinessExample(); - example.createCriteria().andKeyidEqualTo(userId).andTypeEqualTo("UserRole") + example.createCriteria().andKeyIdEqualTo(userId).andTypeEqualTo("UserRole") .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list=null; try{ @@ -212,7 +209,7 @@ public class UserBusinessService { public List findAppByRoles(String roles)throws Exception{ List rolesList = StringUtil.strToStringList(roles); UserBusinessExample example = new UserBusinessExample(); - example.createCriteria().andKeyidIn(rolesList).andTypeEqualTo("RoleAPP") + example.createCriteria().andKeyIdIn(rolesList).andTypeEqualTo("RoleAPP") .andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); List list=null; try{ diff --git a/src/main/resources/mapper_xml/AccountMapper.xml b/src/main/resources/mapper_xml/AccountMapper.xml index 39462f94..ce6e500a 100644 --- a/src/main/resources/mapper_xml/AccountMapper.xml +++ b/src/main/resources/mapper_xml/AccountMapper.xml @@ -1,335 +1,276 @@ - - - - - - - - - - - - - - - - - - - - - - - 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, Name, SerialNo, InitialAmount, CurrentAmount, Remark, IsDefault, tenant_id, delete_Flag - - - - - - delete from jsh_account - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_account - - - - - - - insert into jsh_account (Id, Name, SerialNo, - InitialAmount, CurrentAmount, Remark, - IsDefault, tenant_id, delete_Flag - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{serialno,jdbcType=VARCHAR}, - #{initialamount,jdbcType=DECIMAL}, #{currentamount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, - #{isdefault,jdbcType=BIT}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} - ) - - - - insert into jsh_account - - - Id, - - - Name, - - - SerialNo, - - - InitialAmount, - - - CurrentAmount, - - - Remark, - - - IsDefault, - - - tenant_id, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{serialno,jdbcType=VARCHAR}, - - - #{initialamount,jdbcType=DECIMAL}, - - - #{currentamount,jdbcType=DECIMAL}, - - - #{remark,jdbcType=VARCHAR}, - - - #{isdefault,jdbcType=BIT}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_account - - - Id = #{record.id,jdbcType=BIGINT}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - SerialNo = #{record.serialno,jdbcType=VARCHAR}, - - - InitialAmount = #{record.initialamount,jdbcType=DECIMAL}, - - - CurrentAmount = #{record.currentamount,jdbcType=DECIMAL}, - - - Remark = #{record.remark,jdbcType=VARCHAR}, - - - IsDefault = #{record.isdefault,jdbcType=BIT}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_account - set Id = #{record.id,jdbcType=BIGINT}, - Name = #{record.name,jdbcType=VARCHAR}, - SerialNo = #{record.serialno,jdbcType=VARCHAR}, - InitialAmount = #{record.initialamount,jdbcType=DECIMAL}, - CurrentAmount = #{record.currentamount,jdbcType=DECIMAL}, - Remark = #{record.remark,jdbcType=VARCHAR}, - IsDefault = #{record.isdefault,jdbcType=BIT}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_account - - - Name = #{name,jdbcType=VARCHAR}, - - - SerialNo = #{serialno,jdbcType=VARCHAR}, - - - InitialAmount = #{initialamount,jdbcType=DECIMAL}, - - - CurrentAmount = #{currentamount,jdbcType=DECIMAL}, - - - Remark = #{remark,jdbcType=VARCHAR}, - - - IsDefault = #{isdefault,jdbcType=BIT}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_account - set Name = #{name,jdbcType=VARCHAR}, - SerialNo = #{serialno,jdbcType=VARCHAR}, - InitialAmount = #{initialamount,jdbcType=DECIMAL}, - CurrentAmount = #{currentamount,jdbcType=DECIMAL}, - Remark = #{remark,jdbcType=VARCHAR}, - IsDefault = #{isdefault,jdbcType=BIT}, - tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, name, serial_no, initial_amount, current_amount, remark, is_default, tenant_id, + delete_flag + + + + + delete from jsh_account + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_account + + + + + + insert into jsh_account (id, name, serial_no, + initial_amount, current_amount, remark, + is_default, tenant_id, delete_flag + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{serialNo,jdbcType=VARCHAR}, + #{initialAmount,jdbcType=DECIMAL}, #{currentAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, + #{isDefault,jdbcType=BIT}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} + ) + + + insert into jsh_account + + + id, + + + name, + + + serial_no, + + + initial_amount, + + + current_amount, + + + remark, + + + is_default, + + + tenant_id, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{serialNo,jdbcType=VARCHAR}, + + + #{initialAmount,jdbcType=DECIMAL}, + + + #{currentAmount,jdbcType=DECIMAL}, + + + #{remark,jdbcType=VARCHAR}, + + + #{isDefault,jdbcType=BIT}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_account + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + serial_no = #{record.serialNo,jdbcType=VARCHAR}, + + + initial_amount = #{record.initialAmount,jdbcType=DECIMAL}, + + + current_amount = #{record.currentAmount,jdbcType=DECIMAL}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + is_default = #{record.isDefault,jdbcType=BIT}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_account + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + serial_no = #{record.serialNo,jdbcType=VARCHAR}, + initial_amount = #{record.initialAmount,jdbcType=DECIMAL}, + current_amount = #{record.currentAmount,jdbcType=DECIMAL}, + remark = #{record.remark,jdbcType=VARCHAR}, + is_default = #{record.isDefault,jdbcType=BIT}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_account + + + name = #{name,jdbcType=VARCHAR}, + + + serial_no = #{serialNo,jdbcType=VARCHAR}, + + + initial_amount = #{initialAmount,jdbcType=DECIMAL}, + + + current_amount = #{currentAmount,jdbcType=DECIMAL}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + is_default = #{isDefault,jdbcType=BIT}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_account + set name = #{name,jdbcType=VARCHAR}, + serial_no = #{serialNo,jdbcType=VARCHAR}, + initial_amount = #{initialAmount,jdbcType=DECIMAL}, + current_amount = #{currentAmount,jdbcType=DECIMAL}, + remark = #{remark,jdbcType=VARCHAR}, + is_default = #{isDefault,jdbcType=BIT}, + tenant_id = #{tenantId,jdbcType=BIGINT}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/AccountMapperEx.xml b/src/main/resources/mapper_xml/AccountMapperEx.xml index ef1d2e75..740ab83b 100644 --- a/src/main/resources/mapper_xml/AccountMapperEx.xml +++ b/src/main/resources/mapper_xml/AccountMapperEx.xml @@ -2,7 +2,7 @@ - + @@ -23,12 +23,12 @@ and name like '%${name}%' - and SerialNo like '%${serialNo}%' + and serial_no like '%${serialNo}%' and remark like '%${remark}%' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' limit #{offset},#{rows} @@ -43,12 +43,12 @@ and name like '%${name}%' - and SerialNo like '%${serialNo}%' + and serial_no like '%${serialNo}%' and remark like '%${remark}%' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' update jsh_account - set delete_Flag='1' + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/DepotHeadMapperEx.xml b/src/main/resources/mapper_xml/DepotHeadMapperEx.xml index c03ff273..8e672403 100644 --- a/src/main/resources/mapper_xml/DepotHeadMapperEx.xml +++ b/src/main/resources/mapper_xml/DepotHeadMapperEx.xml @@ -207,9 +207,9 @@ ) priceSum from jsh_depothead dh INNER JOIN jsh_depotitem di on dh.id=di.HeaderId and ifnull(di.delete_Flag,'0') !='1' - INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_materialcategory.`Name` categoryName + INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_material_category.`Name` categoryName from jsh_material - LEFT JOIN jsh_materialcategory on jsh_material.CategoryId=jsh_materialcategory.Id and ifnull(jsh_materialcategory.status,'0') !='2' + LEFT JOIN jsh_material_category on jsh_material.CategoryId=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2' where ifnull(jsh_material.delete_Flag,'0') !='1' ) m on m.Id=di.MaterialId where dh.type='${type}' and dh.OperTime >='${beginTime}' and dh.OperTime <='${endTime}' @@ -233,9 +233,9 @@ select count(1) from (select di.MaterialId, m.mName,m.Model,m.categoryName from jsh_depothead dh INNER JOIN jsh_depotitem di on dh.id=di.HeaderId and ifnull(di.delete_Flag,'0') !='1' - INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_materialcategory.`Name` categoryName + INNER JOIN (SELECT jsh_material.id,jsh_material.name mName, Model,jsh_material_category.`Name` categoryName from jsh_material - LEFT JOIN jsh_materialcategory on jsh_material.CategoryId=jsh_materialcategory.Id and ifnull(jsh_materialcategory.status,'0') !='2' + LEFT JOIN jsh_material_category on jsh_material.CategoryId=jsh_material_category.Id and ifnull(jsh_material_category.status,'0') !='2' where ifnull(jsh_material.delete_Flag,'0') !='1' ) m on m.Id=di.MaterialId where dh.type='${type}' and dh.OperTime >='${beginTime}' and dh.OperTime <='${endTime}' diff --git a/src/main/resources/mapper_xml/DepotItemMapperEx.xml b/src/main/resources/mapper_xml/DepotItemMapperEx.xml index f02e6d3f..280d11d7 100644 --- a/src/main/resources/mapper_xml/DepotItemMapperEx.xml +++ b/src/main/resources/mapper_xml/DepotItemMapperEx.xml @@ -28,16 +28,17 @@ - + + - + @@ -139,7 +140,7 @@ - - select - - distinct - - - from jsh_functions - - - - - order by ${orderByClause} - - - - - - delete from jsh_functions - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_functions - - - - - - - insert into jsh_functions (Id, Number, Name, - PNumber, URL, State, Sort, - Enabled, Type, PushBtn, - icon, delete_Flag) - values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{pnumber,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{state,jdbcType=BIT}, #{sort,jdbcType=VARCHAR}, - #{enabled,jdbcType=BIT}, #{type,jdbcType=VARCHAR}, #{pushbtn,jdbcType=VARCHAR}, - #{icon,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}) - - - - insert into jsh_functions - - - Id, - - - Number, - - - Name, - - - PNumber, - - - URL, - - - State, - - - Sort, - - - Enabled, - - - Type, - - - PushBtn, - - - icon, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{number,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{pnumber,jdbcType=VARCHAR}, - - - #{url,jdbcType=VARCHAR}, - - - #{state,jdbcType=BIT}, - - - #{sort,jdbcType=VARCHAR}, - - - #{enabled,jdbcType=BIT}, - - - #{type,jdbcType=VARCHAR}, - - - #{pushbtn,jdbcType=VARCHAR}, - - - #{icon,jdbcType=VARCHAR}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_functions - - - Id = #{record.id,jdbcType=BIGINT}, - - - Number = #{record.number,jdbcType=VARCHAR}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - PNumber = #{record.pnumber,jdbcType=VARCHAR}, - - - URL = #{record.url,jdbcType=VARCHAR}, - - - State = #{record.state,jdbcType=BIT}, - - - Sort = #{record.sort,jdbcType=VARCHAR}, - - - Enabled = #{record.enabled,jdbcType=BIT}, - - - Type = #{record.type,jdbcType=VARCHAR}, - - - PushBtn = #{record.pushbtn,jdbcType=VARCHAR}, - - - icon = #{record.icon,jdbcType=VARCHAR}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_functions - set Id = #{record.id,jdbcType=BIGINT}, - Number = #{record.number,jdbcType=VARCHAR}, - Name = #{record.name,jdbcType=VARCHAR}, - PNumber = #{record.pnumber,jdbcType=VARCHAR}, - URL = #{record.url,jdbcType=VARCHAR}, - State = #{record.state,jdbcType=BIT}, - Sort = #{record.sort,jdbcType=VARCHAR}, - Enabled = #{record.enabled,jdbcType=BIT}, - Type = #{record.type,jdbcType=VARCHAR}, - PushBtn = #{record.pushbtn,jdbcType=VARCHAR}, - icon = #{record.icon,jdbcType=VARCHAR}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_functions - - - Number = #{number,jdbcType=VARCHAR}, - - - Name = #{name,jdbcType=VARCHAR}, - - - PNumber = #{pnumber,jdbcType=VARCHAR}, - - - URL = #{url,jdbcType=VARCHAR}, - - - State = #{state,jdbcType=BIT}, - - - Sort = #{sort,jdbcType=VARCHAR}, - - - Enabled = #{enabled,jdbcType=BIT}, - - - Type = #{type,jdbcType=VARCHAR}, - - - PushBtn = #{pushbtn,jdbcType=VARCHAR}, - - - icon = #{icon,jdbcType=VARCHAR}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_functions - set Number = #{number,jdbcType=VARCHAR}, - Name = #{name,jdbcType=VARCHAR}, - PNumber = #{pnumber,jdbcType=VARCHAR}, - URL = #{url,jdbcType=VARCHAR}, - State = #{state,jdbcType=BIT}, - Sort = #{sort,jdbcType=VARCHAR}, - Enabled = #{enabled,jdbcType=BIT}, - Type = #{type,jdbcType=VARCHAR}, - PushBtn = #{pushbtn,jdbcType=VARCHAR}, - icon = #{icon,jdbcType=VARCHAR}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, number, name, parent_number, url, state, sort, enabled, type, push_btn, icon, + delete_flag + + + + + delete from jsh_function + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_function + + + + + + insert into jsh_function (id, number, name, + parent_number, url, state, + sort, enabled, type, push_btn, + icon, delete_flag) + values (#{id,jdbcType=BIGINT}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{parentNumber,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{state,jdbcType=BIT}, + #{sort,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT}, #{type,jdbcType=VARCHAR}, #{pushBtn,jdbcType=VARCHAR}, + #{icon,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}) + + + insert into jsh_function + + + id, + + + number, + + + name, + + + parent_number, + + + url, + + + state, + + + sort, + + + enabled, + + + type, + + + push_btn, + + + icon, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{number,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{parentNumber,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{state,jdbcType=BIT}, + + + #{sort,jdbcType=VARCHAR}, + + + #{enabled,jdbcType=BIT}, + + + #{type,jdbcType=VARCHAR}, + + + #{pushBtn,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_function + + + id = #{record.id,jdbcType=BIGINT}, + + + number = #{record.number,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + parent_number = #{record.parentNumber,jdbcType=VARCHAR}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + state = #{record.state,jdbcType=BIT}, + + + sort = #{record.sort,jdbcType=VARCHAR}, + + + enabled = #{record.enabled,jdbcType=BIT}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + push_btn = #{record.pushBtn,jdbcType=VARCHAR}, + + + icon = #{record.icon,jdbcType=VARCHAR}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_function + set id = #{record.id,jdbcType=BIGINT}, + number = #{record.number,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + parent_number = #{record.parentNumber,jdbcType=VARCHAR}, + url = #{record.url,jdbcType=VARCHAR}, + state = #{record.state,jdbcType=BIT}, + sort = #{record.sort,jdbcType=VARCHAR}, + enabled = #{record.enabled,jdbcType=BIT}, + type = #{record.type,jdbcType=VARCHAR}, + push_btn = #{record.pushBtn,jdbcType=VARCHAR}, + icon = #{record.icon,jdbcType=VARCHAR}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_function + + + number = #{number,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + parent_number = #{parentNumber,jdbcType=VARCHAR}, + + + url = #{url,jdbcType=VARCHAR}, + + + state = #{state,jdbcType=BIT}, + + + sort = #{sort,jdbcType=VARCHAR}, + + + enabled = #{enabled,jdbcType=BIT}, + + + type = #{type,jdbcType=VARCHAR}, + + + push_btn = #{pushBtn,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_function + set number = #{number,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + parent_number = #{parentNumber,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR}, + state = #{state,jdbcType=BIT}, + sort = #{sort,jdbcType=VARCHAR}, + enabled = #{enabled,jdbcType=BIT}, + type = #{type,jdbcType=VARCHAR}, + push_btn = #{pushBtn,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/FunctionsMapperEx.xml b/src/main/resources/mapper_xml/FunctionMapperEx.xml similarity index 61% rename from src/main/resources/mapper_xml/FunctionsMapperEx.xml rename to src/main/resources/mapper_xml/FunctionMapperEx.xml index e3ed78f1..095ab593 100644 --- a/src/main/resources/mapper_xml/FunctionsMapperEx.xml +++ b/src/main/resources/mapper_xml/FunctionMapperEx.xml @@ -1,9 +1,9 @@ - - select * - FROM jsh_functions + FROM jsh_function where 1=1 and name like '%${name}%' @@ -11,16 +11,16 @@ and type='${type}' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' order by sort asc limit #{offset},#{rows} - SELECT COUNT(id) - FROM jsh_functions + FROM jsh_function WHERE 1=1 and name like '%${name}%' @@ -28,11 +28,11 @@ and type='${type}' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' - - update jsh_functions - set delete_Flag='1' + + update jsh_function + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/InOutItemMapper.xml b/src/main/resources/mapper_xml/InOutItemMapper.xml index c203a252..50c2d949 100644 --- a/src/main/resources/mapper_xml/InOutItemMapper.xml +++ b/src/main/resources/mapper_xml/InOutItemMapper.xml @@ -1,288 +1,228 @@ - - - - - - - - - - - - - - - - - - - - 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, Name, Type, Remark, tenant_id, delete_Flag - - - - - - delete from jsh_inoutitem - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_inoutitem - - - - - - - insert into jsh_inoutitem (Id, Name, Type, - Remark, tenant_id, delete_Flag - ) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, - #{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} - ) - - - - insert into jsh_inoutitem - - - Id, - - - Name, - - - Type, - - - Remark, - - - tenant_id, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{type,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_inoutitem - - - Id = #{record.id,jdbcType=BIGINT}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - Type = #{record.type,jdbcType=VARCHAR}, - - - Remark = #{record.remark,jdbcType=VARCHAR}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_inoutitem - set Id = #{record.id,jdbcType=BIGINT}, - Name = #{record.name,jdbcType=VARCHAR}, - Type = #{record.type,jdbcType=VARCHAR}, - Remark = #{record.remark,jdbcType=VARCHAR}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_inoutitem - - - Name = #{name,jdbcType=VARCHAR}, - - - Type = #{type,jdbcType=VARCHAR}, - - - Remark = #{remark,jdbcType=VARCHAR}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_inoutitem - set Name = #{name,jdbcType=VARCHAR}, - Type = #{type,jdbcType=VARCHAR}, - Remark = #{remark,jdbcType=VARCHAR}, - tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, name, type, remark, tenant_id, delete_flag + + + + + delete from jsh_in_out_item + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_in_out_item + + + + + + insert into jsh_in_out_item (id, name, type, + remark, tenant_id, delete_flag + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, + #{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} + ) + + + insert into jsh_in_out_item + + + id, + + + name, + + + type, + + + remark, + + + tenant_id, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{type,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_in_out_item + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_in_out_item + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_in_out_item + + + name = #{name,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_in_out_item + set name = #{name,jdbcType=VARCHAR}, + type = #{type,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=BIGINT}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/InOutItemMapperEx.xml b/src/main/resources/mapper_xml/InOutItemMapperEx.xml index c3dc04a4..d3315ec5 100644 --- a/src/main/resources/mapper_xml/InOutItemMapperEx.xml +++ b/src/main/resources/mapper_xml/InOutItemMapperEx.xml @@ -3,7 +3,7 @@ SELECT COUNT(id) - FROM jsh_inoutitem + FROM jsh_in_out_item WHERE 1=1 and name like '%${name}%' @@ -33,11 +33,11 @@ and remark like '%${remark}%' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' - update jsh_inoutitem - set delete_Flag='1' + update jsh_in_out_item + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/LogMapper.xml b/src/main/resources/mapper_xml/LogMapper.xml index 4893588f..81c4e344 100644 --- a/src/main/resources/mapper_xml/LogMapper.xml +++ b/src/main/resources/mapper_xml/LogMapper.xml @@ -1,335 +1,258 @@ - - - - - - - - - - - - - - - - - - - - - - - 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, userID, operation, clientIP, createtime, status, contentdetails, remark, tenant_id - - - - - - delete from jsh_log - where id = #{id,jdbcType=BIGINT} - - - - delete from jsh_log - - - - - - - insert into jsh_log (id, userID, operation, - clientIP, createtime, status, - contentdetails, remark, tenant_id - ) - values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, #{operation,jdbcType=VARCHAR}, - #{clientip,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, - #{contentdetails,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT} - ) - - - - insert into jsh_log - - - id, - - - userID, - - - operation, - - - clientIP, - - - createtime, - - - status, - - - contentdetails, - - - remark, - - - tenant_id, - - - - - #{id,jdbcType=BIGINT}, - - - #{userid,jdbcType=BIGINT}, - - - #{operation,jdbcType=VARCHAR}, - - - #{clientip,jdbcType=VARCHAR}, - - - #{createtime,jdbcType=TIMESTAMP}, - - - #{status,jdbcType=TINYINT}, - - - #{contentdetails,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{tenantId,jdbcType=BIGINT}, - - - - - - - update jsh_log - - - id = #{record.id,jdbcType=BIGINT}, - - - userID = #{record.userid,jdbcType=BIGINT}, - - - operation = #{record.operation,jdbcType=VARCHAR}, - - - clientIP = #{record.clientip,jdbcType=VARCHAR}, - - - createtime = #{record.createtime,jdbcType=TIMESTAMP}, - - - status = #{record.status,jdbcType=TINYINT}, - - - contentdetails = #{record.contentdetails,jdbcType=VARCHAR}, - - - remark = #{record.remark,jdbcType=VARCHAR}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - - - - - - - update jsh_log - set id = #{record.id,jdbcType=BIGINT}, - userID = #{record.userid,jdbcType=BIGINT}, - operation = #{record.operation,jdbcType=VARCHAR}, - clientIP = #{record.clientip,jdbcType=VARCHAR}, - createtime = #{record.createtime,jdbcType=TIMESTAMP}, - status = #{record.status,jdbcType=TINYINT}, - contentdetails = #{record.contentdetails,jdbcType=VARCHAR}, - remark = #{record.remark,jdbcType=VARCHAR}, - tenant_id = #{record.tenantId,jdbcType=BIGINT} - - - - - - - update jsh_log - - - userID = #{userid,jdbcType=BIGINT}, - - - operation = #{operation,jdbcType=VARCHAR}, - - - clientIP = #{clientip,jdbcType=VARCHAR}, - - - createtime = #{createtime,jdbcType=TIMESTAMP}, - - - status = #{status,jdbcType=TINYINT}, - - - contentdetails = #{contentdetails,jdbcType=VARCHAR}, - - - remark = #{remark,jdbcType=VARCHAR}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - where id = #{id,jdbcType=BIGINT} - - - - update jsh_log - set userID = #{userid,jdbcType=BIGINT}, - operation = #{operation,jdbcType=VARCHAR}, - clientIP = #{clientip,jdbcType=VARCHAR}, - createtime = #{createtime,jdbcType=TIMESTAMP}, - status = #{status,jdbcType=TINYINT}, - contentdetails = #{contentdetails,jdbcType=VARCHAR}, - remark = #{remark,jdbcType=VARCHAR}, - tenant_id = #{tenantId,jdbcType=BIGINT} - 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, user_id, operation, client_ip, create_time, status, content, tenant_id + + + + + delete from jsh_log + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_log + + + + + + insert into jsh_log (id, user_id, operation, + client_ip, create_time, status, + content, tenant_id) + values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{operation,jdbcType=VARCHAR}, + #{clientIp,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, + #{content,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}) + + + insert into jsh_log + + + id, + + + user_id, + + + operation, + + + client_ip, + + + create_time, + + + status, + + + content, + + + tenant_id, + + + + + #{id,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{operation,jdbcType=VARCHAR}, + + + #{clientIp,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=TINYINT}, + + + #{content,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=BIGINT}, + + + + + + update jsh_log + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + operation = #{record.operation,jdbcType=VARCHAR}, + + + client_ip = #{record.clientIp,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + status = #{record.status,jdbcType=TINYINT}, + + + content = #{record.content,jdbcType=VARCHAR}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + + + + + + update jsh_log + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + operation = #{record.operation,jdbcType=VARCHAR}, + client_ip = #{record.clientIp,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + status = #{record.status,jdbcType=TINYINT}, + content = #{record.content,jdbcType=VARCHAR}, + tenant_id = #{record.tenantId,jdbcType=BIGINT} + + + + + + update jsh_log + + + user_id = #{userId,jdbcType=BIGINT}, + + + operation = #{operation,jdbcType=VARCHAR}, + + + client_ip = #{clientIp,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=TINYINT}, + + + content = #{content,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_log + set user_id = #{userId,jdbcType=BIGINT}, + operation = #{operation,jdbcType=VARCHAR}, + client_ip = #{clientIp,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=TINYINT}, + content = #{content,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/LogMapperEx.xml b/src/main/resources/mapper_xml/LogMapperEx.xml index 968edbf4..6473ca86 100644 --- a/src/main/resources/mapper_xml/LogMapperEx.xml +++ b/src/main/resources/mapper_xml/LogMapperEx.xml @@ -2,36 +2,36 @@ - + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/MaterialCategoryMapper.xml b/src/main/resources/mapper_xml/MaterialCategoryMapper.xml index cca04365..f3661c32 100644 --- a/src/main/resources/mapper_xml/MaterialCategoryMapper.xml +++ b/src/main/resources/mapper_xml/MaterialCategoryMapper.xml @@ -1,398 +1,338 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - 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, Name, CategoryLevel, ParentId, sort, status, serial_no, remark, create_time, - creator, update_time, updater, tenant_id - - - - - - delete from jsh_materialcategory - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_materialcategory - - - - - - - insert into jsh_materialcategory (Id, Name, CategoryLevel, - ParentId, sort, status, - serial_no, remark, create_time, - creator, update_time, updater, - tenant_id) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{categorylevel,jdbcType=SMALLINT}, - #{parentid,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, - #{serialNo,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, - #{creator,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{updater,jdbcType=BIGINT}, - #{tenantId,jdbcType=BIGINT}) - - - - insert into jsh_materialcategory - - - Id, - - - Name, - - - CategoryLevel, - - - ParentId, - - - sort, - - - status, - - - serial_no, - - - remark, - - - create_time, - - - creator, - - - update_time, - - - updater, - - - tenant_id, - - - - - #{id,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{categorylevel,jdbcType=SMALLINT}, - - - #{parentid,jdbcType=BIGINT}, - - - #{sort,jdbcType=VARCHAR}, - - - #{status,jdbcType=VARCHAR}, - - - #{serialNo,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{creator,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{updater,jdbcType=BIGINT}, - - - #{tenantId,jdbcType=BIGINT}, - - - - - - - update jsh_materialcategory - - - Id = #{record.id,jdbcType=BIGINT}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - CategoryLevel = #{record.categorylevel,jdbcType=SMALLINT}, - - - ParentId = #{record.parentid,jdbcType=BIGINT}, - - - sort = #{record.sort,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=VARCHAR}, - - - serial_no = #{record.serialNo,jdbcType=VARCHAR}, - - - remark = #{record.remark,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - creator = #{record.creator,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - updater = #{record.updater,jdbcType=BIGINT}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - - - - - - - update jsh_materialcategory - set Id = #{record.id,jdbcType=BIGINT}, - Name = #{record.name,jdbcType=VARCHAR}, - CategoryLevel = #{record.categorylevel,jdbcType=SMALLINT}, - ParentId = #{record.parentid,jdbcType=BIGINT}, - sort = #{record.sort,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=VARCHAR}, - serial_no = #{record.serialNo,jdbcType=VARCHAR}, - remark = #{record.remark,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - creator = #{record.creator,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - updater = #{record.updater,jdbcType=BIGINT}, - tenant_id = #{record.tenantId,jdbcType=BIGINT} - - - - - - - update jsh_materialcategory - - - Name = #{name,jdbcType=VARCHAR}, - - - CategoryLevel = #{categorylevel,jdbcType=SMALLINT}, - - - ParentId = #{parentid,jdbcType=BIGINT}, - - - sort = #{sort,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=VARCHAR}, - - - serial_no = #{serialNo,jdbcType=VARCHAR}, - - - remark = #{remark,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - creator = #{creator,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - updater = #{updater,jdbcType=BIGINT}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_materialcategory - set Name = #{name,jdbcType=VARCHAR}, - CategoryLevel = #{categorylevel,jdbcType=SMALLINT}, - ParentId = #{parentid,jdbcType=BIGINT}, - sort = #{sort,jdbcType=VARCHAR}, - status = #{status,jdbcType=VARCHAR}, - serial_no = #{serialNo,jdbcType=VARCHAR}, - remark = #{remark,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - creator = #{creator,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - updater = #{updater,jdbcType=BIGINT}, - tenant_id = #{tenantId,jdbcType=BIGINT} - 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, name, category_level, parent_id, sort, status, serial_no, remark, create_time, + creator, update_time, updater, tenant_id + + + + + delete from jsh_material_category + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_material_category + + + + + + insert into jsh_material_category (id, name, category_level, + parent_id, sort, status, + serial_no, remark, create_time, + creator, update_time, updater, + tenant_id) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{categoryLevel,jdbcType=SMALLINT}, + #{parentId,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, + #{serialNo,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{creator,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{updater,jdbcType=BIGINT}, + #{tenantId,jdbcType=BIGINT}) + + + insert into jsh_material_category + + + id, + + + name, + + + category_level, + + + parent_id, + + + sort, + + + status, + + + serial_no, + + + remark, + + + create_time, + + + creator, + + + update_time, + + + updater, + + + tenant_id, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{categoryLevel,jdbcType=SMALLINT}, + + + #{parentId,jdbcType=BIGINT}, + + + #{sort,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{serialNo,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{creator,jdbcType=BIGINT}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{updater,jdbcType=BIGINT}, + + + #{tenantId,jdbcType=BIGINT}, + + + + + + update jsh_material_category + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + category_level = #{record.categoryLevel,jdbcType=SMALLINT}, + + + parent_id = #{record.parentId,jdbcType=BIGINT}, + + + sort = #{record.sort,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=VARCHAR}, + + + serial_no = #{record.serialNo,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + creator = #{record.creator,jdbcType=BIGINT}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + updater = #{record.updater,jdbcType=BIGINT}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + + + + + + update jsh_material_category + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + category_level = #{record.categoryLevel,jdbcType=SMALLINT}, + parent_id = #{record.parentId,jdbcType=BIGINT}, + sort = #{record.sort,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=VARCHAR}, + serial_no = #{record.serialNo,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + creator = #{record.creator,jdbcType=BIGINT}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + updater = #{record.updater,jdbcType=BIGINT}, + tenant_id = #{record.tenantId,jdbcType=BIGINT} + + + + + + update jsh_material_category + + + name = #{name,jdbcType=VARCHAR}, + + + category_level = #{categoryLevel,jdbcType=SMALLINT}, + + + parent_id = #{parentId,jdbcType=BIGINT}, + + + sort = #{sort,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=VARCHAR}, + + + serial_no = #{serialNo,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + creator = #{creator,jdbcType=BIGINT}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + updater = #{updater,jdbcType=BIGINT}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_material_category + set name = #{name,jdbcType=VARCHAR}, + category_level = #{categoryLevel,jdbcType=SMALLINT}, + parent_id = #{parentId,jdbcType=BIGINT}, + sort = #{sort,jdbcType=VARCHAR}, + status = #{status,jdbcType=VARCHAR}, + serial_no = #{serialNo,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + creator = #{creator,jdbcType=BIGINT}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + updater = #{updater,jdbcType=BIGINT}, + tenant_id = #{tenantId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/MaterialCategoryMapperEx.xml b/src/main/resources/mapper_xml/MaterialCategoryMapperEx.xml index b2563ed8..275a98fc 100644 --- a/src/main/resources/mapper_xml/MaterialCategoryMapperEx.xml +++ b/src/main/resources/mapper_xml/MaterialCategoryMapperEx.xml @@ -3,14 +3,14 @@ SELECT COUNT(id) - FROM jsh_materialcategory + FROM jsh_material_category WHERE 1=1 and ifnull(status,'0') !='2' and name like '%${name}%' - and parentId = ${parentId} + and parent_id = ${parentId} and Id !=1 @@ -53,8 +53,8 @@ SELECT ,#{currentId} as currentId - FROM jsh_materialcategory - WHERE ParentId = -1 + FROM jsh_material_category + WHERE parent_id = -1 and ifnull(status,'0') !='2' and id !=#{currentId} @@ -75,17 +75,17 @@ - insert into jsh_materialcategory - (Name, CategoryLevel, ParentId, sort,status,serial_no,remark, - create_Time, creator,update_Time, updater) + insert into jsh_material_category + (name, category_level, parent_id, sort,status,serial_no,remark, + create_time, creator,update_time, updater) values - (#{name},#{categorylevel},#{parentid},#{sort},#{status},#{serialNo},#{remark}, + (#{name},#{categoryLevel},#{parentId},#{sort},#{status},#{serialNo},#{remark}, #{createTime},#{creator},#{updateTime},#{updater} ) - update jsh_materialcategory - set update_Time=#{updateTime},updater=#{updater},status='2' + update jsh_material_category + set update_time=#{updateTime},updater=#{updater},status='2' where id in ( #{id} @@ -93,16 +93,16 @@ ) - update jsh_materialcategory - set update_Time=#{updateTime},updater=#{updater}, - ParentId=#{parentid},sort=#{sort},serial_no=#{serialNo}, + update jsh_material_category + set update_time=#{updateTime},updater=#{updater}, + parent_id=#{parentId},sort=#{sort},serial_no=#{serialNo}, name=#{name},remark=#{remark} where id =#{id} select - from jsh_materialcategory + from jsh_material_category where 1=1 - and parentId in ( + and parent_id in ( #{parentId} diff --git a/src/main/resources/mapper_xml/MaterialMapperEx.xml b/src/main/resources/mapper_xml/MaterialMapperEx.xml index ac6ace68..6beb2a68 100644 --- a/src/main/resources/mapper_xml/MaterialMapperEx.xml +++ b/src/main/resources/mapper_xml/MaterialMapperEx.xml @@ -13,16 +13,16 @@ - + - - select - - distinct - - - from jsh_materialproperty - - - - - order by ${orderByClause} - - - - - - delete from jsh_materialproperty - where id = #{id,jdbcType=BIGINT} - - - - delete from jsh_materialproperty - - - - - - - insert into jsh_materialproperty (id, nativeName, enabled, - sort, anotherName, delete_Flag - ) - values (#{id,jdbcType=BIGINT}, #{nativename,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT}, - #{sort,jdbcType=VARCHAR}, #{anothername,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR} - ) - - - - insert into jsh_materialproperty - - - id, - - - nativeName, - - - enabled, - - - sort, - - - anotherName, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{nativename,jdbcType=VARCHAR}, - - - #{enabled,jdbcType=BIT}, - - - #{sort,jdbcType=VARCHAR}, - - - #{anothername,jdbcType=VARCHAR}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_materialproperty - - - id = #{record.id,jdbcType=BIGINT}, - - - nativeName = #{record.nativename,jdbcType=VARCHAR}, - - - enabled = #{record.enabled,jdbcType=BIT}, - - - sort = #{record.sort,jdbcType=VARCHAR}, - - - anotherName = #{record.anothername,jdbcType=VARCHAR}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_materialproperty - set id = #{record.id,jdbcType=BIGINT}, - nativeName = #{record.nativename,jdbcType=VARCHAR}, - enabled = #{record.enabled,jdbcType=BIT}, - sort = #{record.sort,jdbcType=VARCHAR}, - anotherName = #{record.anothername,jdbcType=VARCHAR}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_materialproperty - - - nativeName = #{nativename,jdbcType=VARCHAR}, - - - enabled = #{enabled,jdbcType=BIT}, - - - sort = #{sort,jdbcType=VARCHAR}, - - - anotherName = #{anothername,jdbcType=VARCHAR}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - - update jsh_materialproperty - set nativeName = #{nativename,jdbcType=VARCHAR}, - enabled = #{enabled,jdbcType=BIT}, - sort = #{sort,jdbcType=VARCHAR}, - anotherName = #{anothername,jdbcType=VARCHAR}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, native_name, enabled, sort, another_name, delete_flag + + + + + delete from jsh_material_property + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_material_property + + + + + + insert into jsh_material_property (id, native_name, enabled, + sort, another_name, delete_flag + ) + values (#{id,jdbcType=BIGINT}, #{nativeName,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT}, + #{sort,jdbcType=VARCHAR}, #{anotherName,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR} + ) + + + insert into jsh_material_property + + + id, + + + native_name, + + + enabled, + + + sort, + + + another_name, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{nativeName,jdbcType=VARCHAR}, + + + #{enabled,jdbcType=BIT}, + + + #{sort,jdbcType=VARCHAR}, + + + #{anotherName,jdbcType=VARCHAR}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_material_property + + + id = #{record.id,jdbcType=BIGINT}, + + + native_name = #{record.nativeName,jdbcType=VARCHAR}, + + + enabled = #{record.enabled,jdbcType=BIT}, + + + sort = #{record.sort,jdbcType=VARCHAR}, + + + another_name = #{record.anotherName,jdbcType=VARCHAR}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_material_property + set id = #{record.id,jdbcType=BIGINT}, + native_name = #{record.nativeName,jdbcType=VARCHAR}, + enabled = #{record.enabled,jdbcType=BIT}, + sort = #{record.sort,jdbcType=VARCHAR}, + another_name = #{record.anotherName,jdbcType=VARCHAR}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_material_property + + + native_name = #{nativeName,jdbcType=VARCHAR}, + + + enabled = #{enabled,jdbcType=BIT}, + + + sort = #{sort,jdbcType=VARCHAR}, + + + another_name = #{anotherName,jdbcType=VARCHAR}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_material_property + set native_name = #{nativeName,jdbcType=VARCHAR}, + enabled = #{enabled,jdbcType=BIT}, + sort = #{sort,jdbcType=VARCHAR}, + another_name = #{anotherName,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/MaterialPropertyMapperEx.xml b/src/main/resources/mapper_xml/MaterialPropertyMapperEx.xml index eb5f8a81..16893ec2 100644 --- a/src/main/resources/mapper_xml/MaterialPropertyMapperEx.xml +++ b/src/main/resources/mapper_xml/MaterialPropertyMapperEx.xml @@ -3,12 +3,12 @@ SELECT COUNT(id) - FROM jsh_materialproperty + FROM jsh_material_property WHERE 1=1 - and nativeName like '%${name}%' + and native_name like '%${name}%' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' - update jsh_materialproperty - set delete_Flag='1' + update jsh_material_property + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/PersonMapper.xml b/src/main/resources/mapper_xml/PersonMapper.xml index 2299b74e..e6b2efb3 100644 --- a/src/main/resources/mapper_xml/PersonMapper.xml +++ b/src/main/resources/mapper_xml/PersonMapper.xml @@ -1,271 +1,211 @@ - - - - - - - - - - - - - - - - - - - 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, Type, Name, tenant_id, delete_Flag - - - - - - delete from jsh_person - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_person - - - - - - - insert into jsh_person (Id, Type, Name, - tenant_id, delete_Flag) - values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}) - - - - insert into jsh_person - - - Id, - - - Type, - - - Name, - - - tenant_id, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{type,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_person - - - Id = #{record.id,jdbcType=BIGINT}, - - - Type = #{record.type,jdbcType=VARCHAR}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_person - set Id = #{record.id,jdbcType=BIGINT}, - Type = #{record.type,jdbcType=VARCHAR}, - Name = #{record.name,jdbcType=VARCHAR}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_person - - - Type = #{type,jdbcType=VARCHAR}, - - - Name = #{name,jdbcType=VARCHAR}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_person - set Type = #{type,jdbcType=VARCHAR}, - Name = #{name,jdbcType=VARCHAR}, - tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, type, name, tenant_id, delete_flag + + + + + delete from jsh_person + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_person + + + + + + insert into jsh_person (id, type, name, + tenant_id, delete_flag) + values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}) + + + insert into jsh_person + + + id, + + + type, + + + name, + + + tenant_id, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{type,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_person + + + id = #{record.id,jdbcType=BIGINT}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_person + set id = #{record.id,jdbcType=BIGINT}, + type = #{record.type,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_person + + + type = #{type,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_person + set type = #{type,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=BIGINT}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/PersonMapperEx.xml b/src/main/resources/mapper_xml/PersonMapperEx.xml index 39d8b013..1f39b1e4 100644 --- a/src/main/resources/mapper_xml/PersonMapperEx.xml +++ b/src/main/resources/mapper_xml/PersonMapperEx.xml @@ -11,7 +11,7 @@ and type='${type}' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' limit #{offset},#{rows} @@ -27,11 +27,11 @@ and type='${type}' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' update jsh_person - set delete_Flag='1' + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/RoleMapper.xml b/src/main/resources/mapper_xml/RoleMapper.xml index 26f3472d..24ec93cb 100644 --- a/src/main/resources/mapper_xml/RoleMapper.xml +++ b/src/main/resources/mapper_xml/RoleMapper.xml @@ -1,303 +1,243 @@ - - - - - - - - - - - - - - - - - - - - - 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, Name, type, value, description, tenant_id, delete_Flag - - - - - - delete from jsh_role - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_role - - - - - - - insert into jsh_role (Id, Name, type, - value, description, tenant_id, - delete_Flag) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, - #{value,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, - #{deleteFlag,jdbcType=VARCHAR}) - - - - insert into jsh_role - - - Id, - - - Name, - - - type, - - - value, - - - description, - - - tenant_id, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{type,jdbcType=VARCHAR}, - - - #{value,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_role - - - Id = #{record.id,jdbcType=BIGINT}, - - - Name = #{record.name,jdbcType=VARCHAR}, - - - type = #{record.type,jdbcType=VARCHAR}, - - - value = #{record.value,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_role - set Id = #{record.id,jdbcType=BIGINT}, - Name = #{record.name,jdbcType=VARCHAR}, - type = #{record.type,jdbcType=VARCHAR}, - value = #{record.value,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_role - - - Name = #{name,jdbcType=VARCHAR}, - - - type = #{type,jdbcType=VARCHAR}, - - - value = #{value,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_role - set Name = #{name,jdbcType=VARCHAR}, - type = #{type,jdbcType=VARCHAR}, - value = #{value,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, name, type, value, description, tenant_id, delete_flag + + + + + delete from jsh_role + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_role + + + + + + insert into jsh_role (id, name, type, + value, description, tenant_id, + delete_flag) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, + #{value,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, + #{deleteFlag,jdbcType=VARCHAR}) + + + insert into jsh_role + + + id, + + + name, + + + type, + + + value, + + + description, + + + tenant_id, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{type,jdbcType=VARCHAR}, + + + #{value,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_role + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_role + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=VARCHAR}, + value = #{record.value,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_role + + + name = #{name,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=VARCHAR}, + + + value = #{value,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_role + set name = #{name,jdbcType=VARCHAR}, + type = #{type,jdbcType=VARCHAR}, + value = #{value,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=BIGINT}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/RoleMapperEx.xml b/src/main/resources/mapper_xml/RoleMapperEx.xml index b7485492..ea94451a 100644 --- a/src/main/resources/mapper_xml/RoleMapperEx.xml +++ b/src/main/resources/mapper_xml/RoleMapperEx.xml @@ -5,7 +5,7 @@ SELECT * FROM jsh_role WHERE 1=1 - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' and name like '%${name}%' @@ -18,14 +18,14 @@ COUNT(id) FROM jsh_role WHERE 1=1 - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' and name like '%${name}%' update jsh_role - set delete_Flag='1' + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/SerialNumberMapper.xml b/src/main/resources/mapper_xml/SerialNumberMapper.xml index d0dafe2b..870e537c 100644 --- a/src/main/resources/mapper_xml/SerialNumberMapper.xml +++ b/src/main/resources/mapper_xml/SerialNumberMapper.xml @@ -1,383 +1,323 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - 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, material_Id, serial_Number, is_Sell, remark, delete_Flag, create_Time, creator, - update_Time, updater, depothead_Id, tenant_id - - - - - - delete from jsh_serial_number - where id = #{id,jdbcType=BIGINT} - - - - delete from jsh_serial_number - - - - - - - insert into jsh_serial_number (id, material_Id, serial_Number, - is_Sell, remark, delete_Flag, - create_Time, creator, update_Time, - updater, depothead_Id, tenant_id - ) - values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{serialNumber,jdbcType=VARCHAR}, - #{isSell,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}, - #{createTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, - #{updater,jdbcType=BIGINT}, #{depotheadId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT} - ) - - - - insert into jsh_serial_number - - - id, - - - material_Id, - - - serial_Number, - - - is_Sell, - - - remark, - - - delete_Flag, - - - create_Time, - - - creator, - - - update_Time, - - - updater, - - - depothead_Id, - - - tenant_id, - - - - - #{id,jdbcType=BIGINT}, - - - #{materialId,jdbcType=BIGINT}, - - - #{serialNumber,jdbcType=VARCHAR}, - - - #{isSell,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{creator,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{updater,jdbcType=BIGINT}, - - - #{depotheadId,jdbcType=BIGINT}, - - - #{tenantId,jdbcType=BIGINT}, - - - - - - - update jsh_serial_number - - - id = #{record.id,jdbcType=BIGINT}, - - - material_Id = #{record.materialId,jdbcType=BIGINT}, - - - serial_Number = #{record.serialNumber,jdbcType=VARCHAR}, - - - is_Sell = #{record.isSell,jdbcType=VARCHAR}, - - - remark = #{record.remark,jdbcType=VARCHAR}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - create_Time = #{record.createTime,jdbcType=TIMESTAMP}, - - - creator = #{record.creator,jdbcType=BIGINT}, - - - update_Time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - updater = #{record.updater,jdbcType=BIGINT}, - - - depothead_Id = #{record.depotheadId,jdbcType=BIGINT}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - - - - - - - update jsh_serial_number - set id = #{record.id,jdbcType=BIGINT}, - material_Id = #{record.materialId,jdbcType=BIGINT}, - serial_Number = #{record.serialNumber,jdbcType=VARCHAR}, - is_Sell = #{record.isSell,jdbcType=VARCHAR}, - remark = #{record.remark,jdbcType=VARCHAR}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - create_Time = #{record.createTime,jdbcType=TIMESTAMP}, - creator = #{record.creator,jdbcType=BIGINT}, - update_Time = #{record.updateTime,jdbcType=TIMESTAMP}, - updater = #{record.updater,jdbcType=BIGINT}, - depothead_Id = #{record.depotheadId,jdbcType=BIGINT}, - tenant_id = #{record.tenantId,jdbcType=BIGINT} - - - - - - - update jsh_serial_number - - - material_Id = #{materialId,jdbcType=BIGINT}, - - - serial_Number = #{serialNumber,jdbcType=VARCHAR}, - - - is_Sell = #{isSell,jdbcType=VARCHAR}, - - - remark = #{remark,jdbcType=VARCHAR}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - create_Time = #{createTime,jdbcType=TIMESTAMP}, - - - creator = #{creator,jdbcType=BIGINT}, - - - update_Time = #{updateTime,jdbcType=TIMESTAMP}, - - - updater = #{updater,jdbcType=BIGINT}, - - - depothead_Id = #{depotheadId,jdbcType=BIGINT}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - where id = #{id,jdbcType=BIGINT} - - - - update jsh_serial_number - set material_Id = #{materialId,jdbcType=BIGINT}, - serial_Number = #{serialNumber,jdbcType=VARCHAR}, - is_Sell = #{isSell,jdbcType=VARCHAR}, - remark = #{remark,jdbcType=VARCHAR}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - create_Time = #{createTime,jdbcType=TIMESTAMP}, - creator = #{creator,jdbcType=BIGINT}, - update_Time = #{updateTime,jdbcType=TIMESTAMP}, - updater = #{updater,jdbcType=BIGINT}, - depothead_Id = #{depotheadId,jdbcType=BIGINT}, - tenant_id = #{tenantId,jdbcType=BIGINT} - 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, material_id, serial_number, is_sell, remark, delete_flag, create_time, creator, + update_time, updater, depot_head_id, tenant_id + + + + + delete from jsh_serial_number + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_serial_number + + + + + + insert into jsh_serial_number (id, material_id, serial_number, + is_sell, remark, delete_flag, + create_time, creator, update_time, + updater, depot_head_id, tenant_id + ) + values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{serialNumber,jdbcType=VARCHAR}, + #{isSell,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, + #{updater,jdbcType=BIGINT}, #{depotHeadId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT} + ) + + + insert into jsh_serial_number + + + id, + + + material_id, + + + serial_number, + + + is_sell, + + + remark, + + + delete_flag, + + + create_time, + + + creator, + + + update_time, + + + updater, + + + depot_head_id, + + + tenant_id, + + + + + #{id,jdbcType=BIGINT}, + + + #{materialId,jdbcType=BIGINT}, + + + #{serialNumber,jdbcType=VARCHAR}, + + + #{isSell,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{creator,jdbcType=BIGINT}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{updater,jdbcType=BIGINT}, + + + #{depotHeadId,jdbcType=BIGINT}, + + + #{tenantId,jdbcType=BIGINT}, + + + + + + update jsh_serial_number + + + id = #{record.id,jdbcType=BIGINT}, + + + material_id = #{record.materialId,jdbcType=BIGINT}, + + + serial_number = #{record.serialNumber,jdbcType=VARCHAR}, + + + is_sell = #{record.isSell,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + creator = #{record.creator,jdbcType=BIGINT}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + updater = #{record.updater,jdbcType=BIGINT}, + + + depot_head_id = #{record.depotHeadId,jdbcType=BIGINT}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + + + + + + update jsh_serial_number + set id = #{record.id,jdbcType=BIGINT}, + material_id = #{record.materialId,jdbcType=BIGINT}, + serial_number = #{record.serialNumber,jdbcType=VARCHAR}, + is_sell = #{record.isSell,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + creator = #{record.creator,jdbcType=BIGINT}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + updater = #{record.updater,jdbcType=BIGINT}, + depot_head_id = #{record.depotHeadId,jdbcType=BIGINT}, + tenant_id = #{record.tenantId,jdbcType=BIGINT} + + + + + + update jsh_serial_number + + + material_id = #{materialId,jdbcType=BIGINT}, + + + serial_number = #{serialNumber,jdbcType=VARCHAR}, + + + is_sell = #{isSell,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + creator = #{creator,jdbcType=BIGINT}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + updater = #{updater,jdbcType=BIGINT}, + + + depot_head_id = #{depotHeadId,jdbcType=BIGINT}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_serial_number + set material_id = #{materialId,jdbcType=BIGINT}, + serial_number = #{serialNumber,jdbcType=VARCHAR}, + is_sell = #{isSell,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + creator = #{creator,jdbcType=BIGINT}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + updater = #{updater,jdbcType=BIGINT}, + depot_head_id = #{depotHeadId,jdbcType=BIGINT}, + tenant_id = #{tenantId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/SerialNumberMapperEx.xml b/src/main/resources/mapper_xml/SerialNumberMapperEx.xml index 2a4a0c4c..a35965a4 100644 --- a/src/main/resources/mapper_xml/SerialNumberMapperEx.xml +++ b/src/main/resources/mapper_xml/SerialNumberMapperEx.xml @@ -11,22 +11,22 @@ insert into jsh_serial_number - (material_Id, serial_Number, is_Sell, remark,delete_Flag, - create_Time, creator,update_Time, updater,depothead_Id) + (material_id, serial_number, is_sell, remark,delete_flag, + create_time, creator,update_time, updater,depot_head_id) values (#{materialId},#{serialNumber},#{isSell},#{remark},#{deleteFlag}, - #{createTime},#{creator},#{updateTime},#{updater},#{depotheadId} + #{createTime},#{creator},#{updateTime},#{updater},#{depotHeadId} ) update jsh_serial_number - material_Id = #{materialId,jdbcType=BIGINT}, + material_id = #{materialId,jdbcType=BIGINT}, - serial_Number = #{serialNumber,jdbcType=VARCHAR}, + serial_number = #{serialNumber,jdbcType=VARCHAR}, - is_Sell = #{isSell,jdbcType=VARCHAR}, + is_sell = #{isSell,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, - update_Time = #{updateTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, updater = #{updater,jdbcType=BIGINT}, - - depothead_Id = #{depotheadId,jdbcType=BIGINT}, + + depot_head_id = #{depotHeadId,jdbcType=BIGINT}, where id = #{id,jdbcType=BIGINT} @@ -124,8 +124,8 @@ and ser.material_Id=#{materialId} - and ifnull(ser.delete_Flag,'0') !='1' - and ser.is_Sell !='1' + and ifnull(ser.delete_flag,'0') !='1' + and ser.is_sell !='1' update jsh_serial_number - is_Sell = '1', - - depothead_Id = #{depotheadId}, + is_sell = '1', + + depot_head_id = #{depotHeadId}, - update_Time = #{updateTime}, + update_time = #{updateTime}, updater = #{updater}, @@ -157,10 +157,10 @@ where 1=1 - and material_Id = #{materialId} + and material_id = #{materialId} - and is_Sell != '1' - and ifnull(delete_Flag,'0') !='1' + and is_sell != '1' + and ifnull(delete_flag,'0') !='1' and id in ( select batchSN.id from @@ -169,8 +169,8 @@ and selFrom.material_Id = #{materialId} - and selFrom.is_Sell != '1' - and ifnull(selFrom.delete_Flag,'0') !='1' + and selFrom.is_sell != '1' + and ifnull(selFrom.delete_flag,'0') !='1' limit 0,#{count} ) batchSN ) @@ -180,9 +180,9 @@ update jsh_serial_number - is_Sell = '0', + is_sell = '0', - update_Time = #{updateTime}, + update_time = #{updateTime}, updater = #{updater}, @@ -190,26 +190,26 @@ where 1=1 - and material_Id = #{materialId} + and material_id = #{materialId} - - and depothead_Id = #{depotheadId,jdbcType=BIGINT} + + and depot_head_id = #{depotHeadId,jdbcType=BIGINT} - and is_Sell != '0' - and ifnull(delete_Flag,'0') !='1' + and is_sell != '0' + and ifnull(delete_flag,'0') !='1' and id in ( select batchSN.id from ( select selFrom.id from jsh_serial_number selFrom where 1=1 - and selFrom.material_Id = #{materialId} + and selFrom.material_id = #{materialId} - - and selFrom.depothead_Id = #{depotheadId,jdbcType=BIGINT} + + and selFrom.depot_head_id = #{depotHeadId,jdbcType=BIGINT} - and selFrom.is_Sell !='0' - and ifnull(selFrom.delete_Flag,'0') !='1' + and selFrom.is_sell !='0' + and ifnull(selFrom.delete_flag,'0') !='1' limit 0,#{count} ) batchSN ) @@ -218,8 +218,8 @@ insert into jsh_serial_number - (material_Id, serial_Number, is_Sell, remark,delete_Flag, - create_Time, creator,update_Time, updater) + (material_id, serial_number, is_sell, remark,delete_flag, + create_time, creator,update_time, updater) values (#{each.materialId},#{each.serialNumber},'0',#{each.remark},'0', @@ -229,7 +229,7 @@ update jsh_serial_number - set update_Time=#{updateTime},updater=#{updater},delete_Flag='1' + set update_time=#{updateTime},updater=#{updater},delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/SystemConfigMapper.xml b/src/main/resources/mapper_xml/SystemConfigMapper.xml index ffcf8e8b..38d9d30e 100644 --- a/src/main/resources/mapper_xml/SystemConfigMapper.xml +++ b/src/main/resources/mapper_xml/SystemConfigMapper.xml @@ -13,7 +13,7 @@ - + @@ -75,7 +75,7 @@ id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code, - depot_flag, customer_flag, minus_stock_flag, tenant_id, delete_Flag + depot_flag, customer_flag, minus_stock_flag, tenant_id, delete_flag select - from jsh_systemconfig + from jsh_system_config where id = #{id,jdbcType=BIGINT} - delete from jsh_systemconfig + delete from jsh_system_config where id = #{id,jdbcType=BIGINT} - delete from jsh_systemconfig + delete from jsh_system_config - insert into jsh_systemconfig (id, company_name, company_contacts, + insert into jsh_system_config (id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code, depot_flag, customer_flag, - minus_stock_flag, tenant_id, delete_Flag + minus_stock_flag, tenant_id, delete_flag ) values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR}, #{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR}, @@ -120,7 +120,7 @@ ) - insert into jsh_systemconfig + insert into jsh_system_config id, @@ -156,7 +156,7 @@ tenant_id, - delete_Flag, + delete_flag, @@ -199,13 +199,13 @@ - update jsh_systemconfig + update jsh_system_config id = #{record.id,jdbcType=BIGINT}, @@ -241,7 +241,7 @@ tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, @@ -249,7 +249,7 @@ - update jsh_systemconfig + update jsh_system_config set id = #{record.id,jdbcType=BIGINT}, company_name = #{record.companyName,jdbcType=VARCHAR}, company_contacts = #{record.companyContacts,jdbcType=VARCHAR}, @@ -261,13 +261,13 @@ customer_flag = #{record.customerFlag,jdbcType=VARCHAR}, minus_stock_flag = #{record.minusStockFlag,jdbcType=VARCHAR}, tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} - update jsh_systemconfig + update jsh_system_config company_name = #{companyName,jdbcType=VARCHAR}, @@ -300,13 +300,13 @@ tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, where id = #{id,jdbcType=BIGINT} - update jsh_systemconfig + update jsh_system_config set company_name = #{companyName,jdbcType=VARCHAR}, company_contacts = #{companyContacts,jdbcType=VARCHAR}, company_address = #{companyAddress,jdbcType=VARCHAR}, @@ -317,7 +317,7 @@ customer_flag = #{customerFlag,jdbcType=VARCHAR}, minus_stock_flag = #{minusStockFlag,jdbcType=VARCHAR}, tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} + delete_flag = #{deleteFlag,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/src/main/resources/mapper_xml/SystemConfigMapperEx.xml b/src/main/resources/mapper_xml/SystemConfigMapperEx.xml index b0867a48..44df159b 100644 --- a/src/main/resources/mapper_xml/SystemConfigMapperEx.xml +++ b/src/main/resources/mapper_xml/SystemConfigMapperEx.xml @@ -3,12 +3,12 @@ SELECT COUNT(id) - FROM jsh_systemconfig + FROM jsh_system_config WHERE 1=1 and company_name like '%${companyName}%' - and ifnull(delete_Flag,'0') !='1' + and ifnull(delete_flag,'0') !='1' - update jsh_systemconfig - set delete_Flag='1' + update jsh_system_config + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/UnitMapper.xml b/src/main/resources/mapper_xml/UnitMapper.xml index aa0f2364..5dab0881 100644 --- a/src/main/resources/mapper_xml/UnitMapper.xml +++ b/src/main/resources/mapper_xml/UnitMapper.xml @@ -3,12 +3,12 @@ - + - + @@ -69,7 +69,7 @@ - id, UName, basic_unit, other_unit, ratio, tenant_id, delete_Flag + id, name, basic_unit, other_unit, ratio, tenant_id, delete_flag update jsh_unit - set delete_Flag='1' + set delete_flag='1' where 1=1 and id in ( diff --git a/src/main/resources/mapper_xml/UserBusinessMapper.xml b/src/main/resources/mapper_xml/UserBusinessMapper.xml index 9077f36e..16307f58 100644 --- a/src/main/resources/mapper_xml/UserBusinessMapper.xml +++ b/src/main/resources/mapper_xml/UserBusinessMapper.xml @@ -1,288 +1,228 @@ - - - - - - - - - - - - - - - - - - - - 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, Type, KeyId, Value, BtnStr, delete_Flag - - - - - - delete from jsh_userbusiness - where Id = #{id,jdbcType=BIGINT} - - - - delete from jsh_userbusiness - - - - - - - insert into jsh_userbusiness (Id, Type, KeyId, - Value, BtnStr, delete_Flag - ) - values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyid,jdbcType=VARCHAR}, - #{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR} - ) - - - - insert into jsh_userbusiness - - - Id, - - - Type, - - - KeyId, - - - Value, - - - BtnStr, - - - delete_Flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{type,jdbcType=VARCHAR}, - - - #{keyid,jdbcType=VARCHAR}, - - - #{value,jdbcType=VARCHAR}, - - - #{btnstr,jdbcType=VARCHAR}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - - update jsh_userbusiness - - - Id = #{record.id,jdbcType=BIGINT}, - - - Type = #{record.type,jdbcType=VARCHAR}, - - - KeyId = #{record.keyid,jdbcType=VARCHAR}, - - - Value = #{record.value,jdbcType=VARCHAR}, - - - BtnStr = #{record.btnstr,jdbcType=VARCHAR}, - - - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - - update jsh_userbusiness - set Id = #{record.id,jdbcType=BIGINT}, - Type = #{record.type,jdbcType=VARCHAR}, - KeyId = #{record.keyid,jdbcType=VARCHAR}, - Value = #{record.value,jdbcType=VARCHAR}, - BtnStr = #{record.btnstr,jdbcType=VARCHAR}, - delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - - update jsh_userbusiness - - - Type = #{type,jdbcType=VARCHAR}, - - - KeyId = #{keyid,jdbcType=VARCHAR}, - - - Value = #{value,jdbcType=VARCHAR}, - - - BtnStr = #{btnstr,jdbcType=VARCHAR}, - - - delete_Flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where Id = #{id,jdbcType=BIGINT} - - - - update jsh_userbusiness - set Type = #{type,jdbcType=VARCHAR}, - KeyId = #{keyid,jdbcType=VARCHAR}, - Value = #{value,jdbcType=VARCHAR}, - BtnStr = #{btnstr,jdbcType=VARCHAR}, - delete_Flag = #{deleteFlag,jdbcType=VARCHAR} - 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, type, key_id, value, btn_str, delete_flag + + + + + delete from jsh_user_business + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_user_business + + + + + + insert into jsh_user_business (id, type, key_id, + value, btn_str, delete_flag + ) + values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyId,jdbcType=VARCHAR}, + #{value,jdbcType=VARCHAR}, #{btnStr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR} + ) + + + insert into jsh_user_business + + + id, + + + type, + + + key_id, + + + value, + + + btn_str, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{type,jdbcType=VARCHAR}, + + + #{keyId,jdbcType=VARCHAR}, + + + #{value,jdbcType=VARCHAR}, + + + #{btnStr,jdbcType=VARCHAR}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_user_business + + + id = #{record.id,jdbcType=BIGINT}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + key_id = #{record.keyId,jdbcType=VARCHAR}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + btn_str = #{record.btnStr,jdbcType=VARCHAR}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_user_business + set id = #{record.id,jdbcType=BIGINT}, + type = #{record.type,jdbcType=VARCHAR}, + key_id = #{record.keyId,jdbcType=VARCHAR}, + value = #{record.value,jdbcType=VARCHAR}, + btn_str = #{record.btnStr,jdbcType=VARCHAR}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_user_business + + + type = #{type,jdbcType=VARCHAR}, + + + key_id = #{keyId,jdbcType=VARCHAR}, + + + value = #{value,jdbcType=VARCHAR}, + + + btn_str = #{btnStr,jdbcType=VARCHAR}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_user_business + set type = #{type,jdbcType=VARCHAR}, + key_id = #{keyId,jdbcType=VARCHAR}, + value = #{value,jdbcType=VARCHAR}, + btn_str = #{btnStr,jdbcType=VARCHAR}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_xml/UserBusinessMapperEx.xml b/src/main/resources/mapper_xml/UserBusinessMapperEx.xml index 74f73c09..10752ecb 100644 --- a/src/main/resources/mapper_xml/UserBusinessMapperEx.xml +++ b/src/main/resources/mapper_xml/UserBusinessMapperEx.xml @@ -2,8 +2,8 @@ - update jsh_serial_number - set delete_Flag='1' + update jsh_user_business + set delete_flag='1' where 1=1 and id in ( diff --git a/src/test/resources/generatorConfig.xml b/src/test/resources/generatorConfig.xml index cdcc331f..b8a92be5 100644 --- a/src/test/resources/generatorConfig.xml +++ b/src/test/resources/generatorConfig.xml @@ -47,22 +47,22 @@
-
+
-
-
+
+
-
+
-
+