Commit 89a118bb authored by 赵啸非's avatar 赵啸非

添加级联删除事项材料

parent bd781956
...@@ -2,21 +2,19 @@ DROP database if exists `sample-form-platform`; ...@@ -2,21 +2,19 @@ DROP database if exists `sample-form-platform`;
CREATE database `sample-form-platform` default charset=utf8; CREATE database `sample-form-platform` default charset=utf8;
use `sample-form-platform`; use `sample-form-platform`;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------- -- ----------------------------
-- Table structure for mortals_xhx_idgenerator -- Table structure for mortals_xhx_idgenerator
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_idgenerator`; DROP TABLE IF EXISTS `mortals_xhx_idgenerator`;
CREATE TABLE `mortals_xhx_idgenerator` ( CREATE TABLE `mortals_xhx_idgenerator` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`idType` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'id类型', `idType` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'id类型',
`idMaxValue` bigint(20) UNSIGNED NOT NULL COMMENT 'id值', `idMaxValue` bigint(20) UNSIGNED NOT NULL COMMENT 'id值',
`remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注', `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注',
`versionNum` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '版本号,默认0', `versionNum` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '版本号,默认0',
`gmtModify` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间', `gmtModify` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '主键Id生成器' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '主键Id生成器' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -29,25 +27,25 @@ INSERT INTO `mortals_xhx_idgenerator` VALUES (1, 'INFO_VERSION_KEY', 1, '基础 ...@@ -29,25 +27,25 @@ INSERT INTO `mortals_xhx_idgenerator` VALUES (1, 'INFO_VERSION_KEY', 1, '基础
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_menu`; DROP TABLE IF EXISTS `mortals_xhx_menu`;
CREATE TABLE `mortals_xhx_menu` ( CREATE TABLE `mortals_xhx_menu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单名称', `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单名称',
`url` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '连接地址', `url` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '连接地址',
`parentId` bigint(20) NULL DEFAULT NULL COMMENT '父菜单ID,一级菜单的该字段值为-1', `parentId` bigint(20) NULL DEFAULT NULL COMMENT '父菜单ID,一级菜单的该字段值为-1',
`orderId` int(11) NULL DEFAULT NULL COMMENT '排序编号', `orderId` int(11) NULL DEFAULT NULL COMMENT '排序编号',
`status` tinyint(2) NULL DEFAULT 1 COMMENT '菜单状态,0:禁用,1:启用,默认1', `status` tinyint(2) NULL DEFAULT 1 COMMENT '菜单状态,0:禁用,1:启用,默认1',
`linkType` tinyint(2) NULL DEFAULT 0 COMMENT '链接方式,0:普通,1:弹出,2:脚本(JavaScript),默认0', `linkType` tinyint(2) NULL DEFAULT 0 COMMENT '链接方式,0:普通,1:弹出,2:脚本(JavaScript),默认0',
`groupId` int(11) NULL DEFAULT 1 COMMENT '分组编号,使用菜单分隔符按该值分隔,默认1', `groupId` int(11) NULL DEFAULT 1 COMMENT '分组编号,使用菜单分隔符按该值分隔,默认1',
`groupName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `groupName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`imgPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主菜单图标,主菜单图标的css样式名', `imgPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主菜单图标,主菜单图标的css样式名',
`buttonImgPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '按钮图标,按钮图标的css样式名', `buttonImgPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '按钮图标,按钮图标的css样式名',
`imgCommPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '常用菜单图标,常用菜单图标的css样式名', `imgCommPath` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '常用菜单图标,常用菜单图标的css样式名',
`commMenu` tinyint(2) NULL DEFAULT 0 COMMENT '是否常用菜单,0:非常用,1:常用,默认0', `commMenu` tinyint(2) NULL DEFAULT 0 COMMENT '是否常用菜单,0:非常用,1:常用,默认0',
`menuType` tinyint(2) NULL DEFAULT 0 COMMENT '菜单类型,0:主菜单,1:非主菜单(功能操作组),默认0', `menuType` tinyint(2) NULL DEFAULT 0 COMMENT '菜单类型,0:主菜单,1:非主菜单(功能操作组),默认0',
`authType` tinyint(2) NULL DEFAULT 3 COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3', `authType` tinyint(2) NULL DEFAULT 3 COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户', `createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -70,17 +68,17 @@ INSERT INTO `mortals_xhx_menu` VALUES (9107, '操作日志', '/oper/log/list', 9 ...@@ -70,17 +68,17 @@ INSERT INTO `mortals_xhx_menu` VALUES (9107, '操作日志', '/oper/log/list', 9
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_oper_log`; DROP TABLE IF EXISTS `mortals_xhx_oper_log`;
CREATE TABLE `mortals_xhx_oper_log` ( CREATE TABLE `mortals_xhx_oper_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`platformMark` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '平台标识', `platformMark` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '平台标识',
`userId` bigint(20) NULL DEFAULT NULL COMMENT '用户id', `userId` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
`userName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名称', `userName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名称',
`loginName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户登录名', `loginName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户登录名',
`requestUrl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求地址', `requestUrl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求地址',
`content` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作内容,记录操作具体信息,如修改前修改或的数据', `content` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作内容,记录操作具体信息,如修改前修改或的数据',
`ip` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作IP地址', `ip` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作IP地址',
`logDate` datetime(0) NULL DEFAULT NULL COMMENT '操作时间', `logDate` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
`operType` tinyint(2) NULL DEFAULT NULL COMMENT '操作类型,0:新增,1:修改,2:删除', `operType` tinyint(2) NULL DEFAULT NULL COMMENT '操作类型,0:新增,1:修改,2:删除',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '操作日志' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '操作日志' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -88,20 +86,20 @@ CREATE TABLE `mortals_xhx_oper_log` ( ...@@ -88,20 +86,20 @@ CREATE TABLE `mortals_xhx_oper_log` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_param`; DROP TABLE IF EXISTS `mortals_xhx_param`;
CREATE TABLE `mortals_xhx_param` ( CREATE TABLE `mortals_xhx_param` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数名称', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数名称',
`firstOrganize` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '一级组织,如:平台配置', `firstOrganize` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '一级组织,如:平台配置',
`secondOrganize` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '二级组织,如:基础配置', `secondOrganize` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '二级组织,如:基础配置',
`paramKey` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数键,全局唯一', `paramKey` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数键,全局唯一',
`paramValue` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数值', `paramValue` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数值',
`validStatus` tinyint(2) NULL DEFAULT 1 COMMENT '参数有效状态,0:禁用,1:启用,默认1', `validStatus` tinyint(2) NULL DEFAULT 1 COMMENT '参数有效状态,0:禁用,1:启用,默认1',
`modStatus` tinyint(2) NULL DEFAULT 4 COMMENT '参数修改状态,0:隐藏,1:页面仅查看,2:页面可修改,3:页面可删除,4:页面可修改删除,默认4', `modStatus` tinyint(2) NULL DEFAULT 4 COMMENT '参数修改状态,0:隐藏,1:页面仅查看,2:页面可修改,3:页面可删除,4:页面可修改删除,默认4',
`displayType` tinyint(2) NULL DEFAULT 0 COMMENT '展现类型,0:普通文本框,1:多行文本框,2:开关,3:块输入框,默认:0', `displayType` tinyint(2) NULL DEFAULT 0 COMMENT '展现类型,0:普通文本框,1:多行文本框,2:开关,3:块输入框,默认:0',
`remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户', `createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -109,16 +107,16 @@ CREATE TABLE `mortals_xhx_param` ( ...@@ -109,16 +107,16 @@ CREATE TABLE `mortals_xhx_param` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_resource`; DROP TABLE IF EXISTS `mortals_xhx_resource`;
CREATE TABLE `mortals_xhx_resource` ( CREATE TABLE `mortals_xhx_resource` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
`url` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '连接地址,多个地址以逗号分隔', `url` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '连接地址,多个地址以逗号分隔',
`authType` tinyint(2) NULL DEFAULT 3 COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3', `authType` tinyint(2) NULL DEFAULT 3 COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3',
`sourceType` tinyint(2) NULL DEFAULT 0 COMMENT '资源类型,0:系统资源,1:开放资源,默认0', `sourceType` tinyint(2) NULL DEFAULT 0 COMMENT '资源类型,0:系统资源,1:开放资源,默认0',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户', `createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`userType` tinyint(2) NULL DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户', `userType` tinyint(2) NULL DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -147,16 +145,16 @@ INSERT INTO `mortals_xhx_resource` VALUES (150001, '公共资源', '/area/list', ...@@ -147,16 +145,16 @@ INSERT INTO `mortals_xhx_resource` VALUES (150001, '公共资源', '/area/list',
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role`; DROP TABLE IF EXISTS `mortals_xhx_role`;
CREATE TABLE `mortals_xhx_role` ( CREATE TABLE `mortals_xhx_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '角色名称', `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '角色名称',
`remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`roleType` tinyint(2) NULL DEFAULT 2 COMMENT '角色类型,0:系统内置角色(不可删除),1:默认系统角色,2:普通角色,默认2', `roleType` tinyint(2) NULL DEFAULT 2 COMMENT '角色类型,0:系统内置角色(不可删除),1:默认系统角色,2:普通角色,默认2',
`customerId` bigint(20) NULL DEFAULT NULL COMMENT '归属客户ID', `customerId` bigint(20) NULL DEFAULT NULL COMMENT '归属客户ID',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户', `createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`userType` tinyint(2) NULL DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户', `userType` tinyint(2) NULL DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -169,10 +167,10 @@ INSERT INTO `mortals_xhx_role` VALUES (1, '管理员', '类似admin', 0, NULL, ' ...@@ -169,10 +167,10 @@ INSERT INTO `mortals_xhx_role` VALUES (1, '管理员', '类似admin', 0, NULL, '
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role_auth`; DROP TABLE IF EXISTS `mortals_xhx_role_auth`;
CREATE TABLE `mortals_xhx_role_auth` ( CREATE TABLE `mortals_xhx_role_auth` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`roleId` bigint(20) NULL DEFAULT NULL COMMENT '角色ID', `roleId` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
`resourceId` bigint(20) NULL DEFAULT NULL COMMENT '资源ID', `resourceId` bigint(20) NULL DEFAULT NULL COMMENT '资源ID',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色资源权限' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色资源权限' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -180,10 +178,10 @@ CREATE TABLE `mortals_xhx_role_auth` ( ...@@ -180,10 +178,10 @@ CREATE TABLE `mortals_xhx_role_auth` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role_user`; DROP TABLE IF EXISTS `mortals_xhx_role_user`;
CREATE TABLE `mortals_xhx_role_user` ( CREATE TABLE `mortals_xhx_role_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`roleId` bigint(20) NULL DEFAULT NULL COMMENT '角色ID', `roleId` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
`userId` bigint(20) NULL DEFAULT NULL COMMENT '用户ID', `userId` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色用户' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色用户' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -191,29 +189,29 @@ CREATE TABLE `mortals_xhx_role_user` ( ...@@ -191,29 +189,29 @@ CREATE TABLE `mortals_xhx_role_user` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_site`; DROP TABLE IF EXISTS `mortals_xhx_site`;
CREATE TABLE `mortals_xhx_site` ( CREATE TABLE `mortals_xhx_site` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长',
`siteName` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点名', `siteName` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点名',
`parentId` bigint(11) NOT NULL COMMENT '父级id', `parentId` bigint(11) NOT NULL COMMENT '父级id',
`ancestors` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '祖级列表,逗号分隔', `ancestors` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '祖级列表,逗号分隔',
`address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地址', `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地址',
`mobile` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '电话', `mobile` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '电话',
`introduce` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位介绍', `introduce` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位介绍',
`workday1` tinyint(1) NULL DEFAULT NULL COMMENT '周一 1上班 0不上', `workday1` tinyint(1) NULL DEFAULT NULL COMMENT '周一 1上班 0不上',
`workday2` tinyint(1) NULL DEFAULT NULL COMMENT '周二 1上班 0不上', `workday2` tinyint(1) NULL DEFAULT NULL COMMENT '周二 1上班 0不上',
`workday3` tinyint(1) NULL DEFAULT NULL COMMENT '周三 1上班 0不上', `workday3` tinyint(1) NULL DEFAULT NULL COMMENT '周三 1上班 0不上',
`workday4` tinyint(1) NULL DEFAULT NULL COMMENT '周四 1上班 0不上', `workday4` tinyint(1) NULL DEFAULT NULL COMMENT '周四 1上班 0不上',
`workday5` tinyint(1) NULL DEFAULT NULL COMMENT '周五 1上班 0不上', `workday5` tinyint(1) NULL DEFAULT NULL COMMENT '周五 1上班 0不上',
`workday6` tinyint(1) NULL DEFAULT NULL COMMENT '周六 1上班 0不上', `workday6` tinyint(1) NULL DEFAULT NULL COMMENT '周六 1上班 0不上',
`workday7` tinyint(1) NULL DEFAULT NULL COMMENT '周日 1上班 0不上', `workday7` tinyint(1) NULL DEFAULT NULL COMMENT '周日 1上班 0不上',
`number` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编号', `number` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编号',
`summary` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '中心介绍', `summary` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '中心介绍',
`orderNum` int(9) NULL DEFAULT 0 COMMENT '排序字段', `orderNum` int(9) NULL DEFAULT 0 COMMENT '排序字段',
`status` tinyint(2) NULL DEFAULT 1 COMMENT '站点状态 ,0,停用,1,正常 默认1', `status` tinyint(2) NULL DEFAULT 1 COMMENT '站点状态 ,0,停用,1,正常 默认1',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '变更时间', `updateTime` datetime(0) NULL DEFAULT NULL COMMENT '变更时间',
`updateUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变更用户loginName', `updateUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变更用户loginName',
`createTime` datetime(0) NOT NULL COMMENT '创建时间', `createTime` datetime(0) NOT NULL COMMENT '创建时间',
`createUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建用户loginName', `createUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建用户loginName',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '站点信息表' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '站点信息表' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -221,11 +219,11 @@ CREATE TABLE `mortals_xhx_site` ( ...@@ -221,11 +219,11 @@ CREATE TABLE `mortals_xhx_site` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_table_index`; DROP TABLE IF EXISTS `mortals_xhx_table_index`;
CREATE TABLE `mortals_xhx_table_index` ( CREATE TABLE `mortals_xhx_table_index` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`tableName` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表名称', `tableName` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表名称',
`tableMark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表标识', `tableMark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表标识',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '分表索引信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '分表索引信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -233,24 +231,24 @@ CREATE TABLE `mortals_xhx_table_index` ( ...@@ -233,24 +231,24 @@ CREATE TABLE `mortals_xhx_table_index` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_task`; DROP TABLE IF EXISTS `mortals_xhx_task`;
CREATE TABLE `mortals_xhx_task` ( CREATE TABLE `mortals_xhx_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务名称', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务名称',
`taskKey` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务关键字,区分任务执行流程', `taskKey` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务关键字,区分任务执行流程',
`status` tinyint(2) NULL DEFAULT 0 COMMENT '任务状态,0:未启动,1:执行中,默认0', `status` tinyint(2) NULL DEFAULT 0 COMMENT '任务状态,0:未启动,1:执行中,默认0',
`excuteService` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务执行服务', `excuteService` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务执行服务',
`excuteParam` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '任务执行参数', `excuteParam` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '任务执行参数',
`excuteHost` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务执行主机,为空表示不限制任务的执行主机,多个用逗号分隔', `excuteHost` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务执行主机,为空表示不限制任务的执行主机,多个用逗号分隔',
`excuteStrategy` tinyint(2) NULL DEFAULT 1 COMMENT '执行策略,1:按日,2:按周,3:按月,4:按间隔时间,默认1', `excuteStrategy` tinyint(2) NULL DEFAULT 1 COMMENT '执行策略,1:按日,2:按周,3:按月,4:按间隔时间,默认1',
`excuteDate` int(11) NULL DEFAULT 0 COMMENT '执行日期,按日:则为0;按周:则为1-7;按月:则为:1-31;按间隔时间:则为间隔时间,单位:秒;默认0', `excuteDate` int(11) NULL DEFAULT 0 COMMENT '执行日期,按日:则为0;按周:则为1-7;按月:则为:1-31;按间隔时间:则为间隔时间,单位:秒;默认0',
`excuteTime` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '00' COMMENT '执行时间,格式:HH:mm,默认:00:00', `excuteTime` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '00' COMMENT '执行时间,格式:HH:mm,默认:00:00',
`remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`lastExcuteHost` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后执行主机', `lastExcuteHost` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后执行主机',
`lastExcuteTime` datetime(0) NULL DEFAULT NULL COMMENT '最后执行时间', `lastExcuteTime` datetime(0) NULL DEFAULT NULL COMMENT '最后执行时间',
`interimExcuteStatus` tinyint(2) NULL DEFAULT 0 COMMENT '临时执行状态,0:未启用,1:立即执行并保留,2:立即执行并删除,默认0', `interimExcuteStatus` tinyint(2) NULL DEFAULT 0 COMMENT '临时执行状态,0:未启用,1:立即执行并保留,2:立即执行并删除,默认0',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户', `createUserId` bigint(20) NULL DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务信息' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -263,13 +261,13 @@ INSERT INTO `mortals_xhx_task` VALUES (2, '分表创建任务', 'tableIndexServi ...@@ -263,13 +261,13 @@ INSERT INTO `mortals_xhx_task` VALUES (2, '分表创建任务', 'tableIndexServi
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_uploadfile`; DROP TABLE IF EXISTS `mortals_xhx_uploadfile`;
CREATE TABLE `mortals_xhx_uploadfile` ( CREATE TABLE `mortals_xhx_uploadfile` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长',
`fileName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称', `fileName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
`filePath` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件路径', `filePath` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件路径',
`fileType` tinyint(2) NULL DEFAULT NULL COMMENT '文件类型,1 excel ,2 img,3 zip, 4 pdf', `fileType` tinyint(2) NULL DEFAULT NULL COMMENT '文件类型,1 excel ,2 img,3 zip, 4 pdf',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`createUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户', `createUser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '上传文件' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '上传文件' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
...@@ -277,25 +275,25 @@ CREATE TABLE `mortals_xhx_uploadfile` ( ...@@ -277,25 +275,25 @@ CREATE TABLE `mortals_xhx_uploadfile` (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_user`; DROP TABLE IF EXISTS `mortals_xhx_user`;
CREATE TABLE mortals_xhx_user( CREATE TABLE mortals_xhx_user(
`id` bigint(20) AUTO_INCREMENT COMMENT '用户ID,主键,自增长', `id` bigint(20) AUTO_INCREMENT COMMENT '用户ID,主键,自增长',
`loginName` varchar(50) COMMENT '登录名', `loginName` varchar(50) COMMENT '登录名',
`loginPwd` varchar(128) COMMENT '登录密码,使用md5双次加密', `loginPwd` varchar(128) COMMENT '登录密码,使用md5双次加密',
`loginLimitAddress` varchar(200) COMMENT '登录限制地址,多个IP地址用逗号分隔,可以使用IP段匹配,如:172.17.*非空:则只能该值内的IP可以登录', `loginLimitAddress` varchar(200) COMMENT '登录限制地址,多个IP地址用逗号分隔,可以使用IP段匹配,如:172.17.*非空:则只能该值内的IP可以登录',
`realName` varchar(64) COMMENT '用户名', `realName` varchar(64) COMMENT '用户名',
`mobile` varchar(21) COMMENT '用户手机号', `mobile` varchar(21) COMMENT '用户手机号',
`phone` varchar(21) COMMENT '用户联系电话', `phone` varchar(21) COMMENT '用户联系电话',
`email` varchar(50) COMMENT '用户邮箱', `email` varchar(50) COMMENT '用户邮箱',
`qq` varchar(20) COMMENT 'QQ号码', `qq` varchar(20) COMMENT 'QQ号码',
`userType` tinyint(2) COMMENT '用户类型(0.系统用户,1.普通用户,2.工作人员)', `userType` tinyint(2) COMMENT '用户类型(0.系统用户,1.普通用户,2.工作人员)',
`siteIds` varchar(512) COMMENT '所属站点id,多个逗号分隔', `siteIds` varchar(512) COMMENT '所属站点id,多个逗号分隔',
`areaCodes` varchar(512) COMMENT '所属区域code,多个逗号分隔', `areaCodes` varchar(512) COMMENT '所属区域code,多个逗号分隔',
`status` tinyint(2) COMMENT '用户状态(0.停用,1.正常,2.冻结,3.销户,4.离职)', `status` tinyint(2) COMMENT '用户状态(0.停用,1.正常,2.冻结,3.销户,4.离职)',
`createTime` datetime COMMENT '创建时间', `createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建用户', `createUserId` bigint(20) COMMENT '创建用户',
`createUserName` varchar(50) COMMENT '创建用户名称', `createUserName` varchar(50) COMMENT '创建用户名称',
`lastLoginTime` datetime COMMENT '最后一次登录时间', `lastLoginTime` datetime COMMENT '最后一次登录时间',
`lastLoginAddress` varchar(21) COMMENT '最后一次登录地址', `lastLoginAddress` varchar(21) COMMENT '最后一次登录地址',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息业务'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息业务';
...@@ -309,17 +307,17 @@ INSERT INTO `mortals_xhx_user`(`id`, `loginName`, `loginPwd`, `loginLimitAddress ...@@ -309,17 +307,17 @@ INSERT INTO `mortals_xhx_user`(`id`, `loginName`, `loginPwd`, `loginLimitAddress
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_valid_code`; DROP TABLE IF EXISTS `mortals_xhx_valid_code`;
CREATE TABLE `mortals_xhx_valid_code` ( CREATE TABLE `mortals_xhx_valid_code` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '验证码', `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '验证码',
`url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验地址,email校验使用', `url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验地址,email校验使用',
`mobile` varchar(21) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验手机号', `mobile` varchar(21) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验手机号',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验邮箱', `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验邮箱',
`type` tinyint(2) NULL DEFAULT 0 COMMENT '校验方式,0:图片校验,1:手机校验,2:邮箱校验,默认0', `type` tinyint(2) NULL DEFAULT 0 COMMENT '校验方式,0:图片校验,1:手机校验,2:邮箱校验,默认0',
`sessionId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '会话ID', `sessionId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '会话ID',
`ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'IP地址', `ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'IP地址',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`lapseTime` datetime(0) NULL DEFAULT NULL COMMENT '失效时间', `lapseTime` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '验证码信息' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '验证码信息' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
...@@ -331,20 +329,20 @@ SET FOREIGN_KEY_CHECKS = 1; ...@@ -331,20 +329,20 @@ SET FOREIGN_KEY_CHECKS = 1;
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_area`; DROP TABLE IF EXISTS `mortals_xhx_area`;
CREATE TABLE `mortals_xhx_area` ( CREATE TABLE `mortals_xhx_area` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增长',
`parentId` bigint(20) DEFAULT NULL COMMENT '上级区域ID', `parentId` bigint(20) DEFAULT NULL COMMENT '上级区域ID',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域名称', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域名称',
`level` tinyint(4) DEFAULT NULL COMMENT '区域级别,按所处树的节点层次', `level` tinyint(4) DEFAULT NULL COMMENT '区域级别,按所处树的节点层次',
`code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域编码,按全国省市编码', `code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域编码,按全国省市编码',
`contactsPeople` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域负责人', `contactsPeople` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域负责人',
`contactsMobile` varchar(21) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域负责人电话', `contactsMobile` varchar(21) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域负责人电话',
`childSize` int(11) DEFAULT '0' COMMENT '子区域数量,默认0', `childSize` int(11) DEFAULT '0' COMMENT '子区域数量,默认0',
`maxChildId` int(11) DEFAULT '0' COMMENT '子区域的最大ID,默认0', `maxChildId` int(11) DEFAULT '0' COMMENT '子区域的最大ID,默认0',
`status` tinyint(4) DEFAULT '1' COMMENT '状态,0停用,1启用', `status` tinyint(4) DEFAULT '1' COMMENT '状态,0停用,1启用',
`remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述', `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述',
`createTime` datetime DEFAULT NULL COMMENT '创建时间', `createTime` datetime DEFAULT NULL COMMENT '创建时间',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间', `updateTime` datetime DEFAULT NULL COMMENT '更新时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户ID', `createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户ID',
`createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建用户名称', `createUserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='区域信息'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='区域信息';
package com.mortals.xhx.module.matter.model; package com.mortals.xhx.module.matter.model;
import java.util.List;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.matter.model.vo.MatterVo; import com.mortals.xhx.module.matter.model.vo.MatterVo;
import com.mortals.xhx.module.matter.model.MatterDatumEntity;
/** /**
* 事项申请材料业务实体对象 * 事项申请材料业务实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-11-10 * @date 2022-11-17
*/ */
public class MatterEntity extends MatterVo { public class MatterEntity extends MatterVo {
...@@ -77,6 +78,10 @@ public class MatterEntity extends MatterVo { ...@@ -77,6 +78,10 @@ public class MatterEntity extends MatterVo {
*/ */
private Integer source; private Integer source;
/**
* 事项申请材料业务信息
*/
private List<MatterDatumEntity> matterDatumList=new ArrayList<>();;
public MatterEntity(){} public MatterEntity(){}
...@@ -292,6 +297,13 @@ public class MatterEntity extends MatterVo { ...@@ -292,6 +297,13 @@ public class MatterEntity extends MatterVo {
} }
public List<MatterDatumEntity> getMatterDatumList(){
return matterDatumList;
}
public void setMatterDatumList(List<MatterDatumEntity> matterDatumList){
this.matterDatumList = matterDatumList;
}
@Override @Override
......
package com.mortals.xhx.module.matter.model; package com.mortals.xhx.module.matter.model;
import java.util.List;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.matter.model.MatterEntity; import com.mortals.xhx.module.matter.model.MatterEntity;
/** /**
* 事项申请材料业务查询对象 * 事项申请材料业务查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-11-10 * @date 2022-11-17
*/ */
public class MatterQuery extends MatterEntity { public class MatterQuery extends MatterEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
......
...@@ -18,6 +18,4 @@ public class MatterVo extends BaseEntityLong { ...@@ -18,6 +18,4 @@ public class MatterVo extends BaseEntityLong {
/** 材料数量 */ /** 材料数量 */
private Integer datumCount; private Integer datumCount;
private List<MatterDatumEntity> matterDatumList;
} }
\ No newline at end of file
...@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service; ...@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -132,4 +133,11 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter ...@@ -132,4 +133,11 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
this.update(matterEntity, context); this.update(matterEntity, context);
return Rest.ok(msg); return Rest.ok(msg);
} }
@Override
protected void removeAfter(Long[] ids, Context context, int result) throws AppException {
List<MatterDatumEntity> matterDatumlist = matterDatumService.find(new MatterDatumQuery().matterIdList(Arrays.asList(ids)));
matterDatumService.removeList(matterDatumlist,context);
super.removeAfter(ids, context, result);
}
} }
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.matter.dao.ibatis.MatterDaoImpl"> <mapper namespace="com.mortals.xhx.module.matter.dao.ibatis.MatterDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
<resultMap type="MatterEntity" id="MatterEntity-Map"> <resultMap type="MatterEntity" id="MatterEntity-Map">
<id property="id" column="id" /> <id property="id" column="id" />
<result property="siteId" column="siteId" /> <result property="siteId" column="siteId" />
<result property="tid" column="tid" /> <result property="tid" column="tid" />
<result property="tcode" column="tcode" /> <result property="tcode" column="tcode" />
<result property="tname" column="tname" /> <result property="tname" column="tname" />
<result property="matterName" column="matterName" /> <result property="matterName" column="matterName" />
<result property="englishName" column="englishName" /> <result property="englishName" column="englishName" />
<result property="matterNo" column="matterNo" /> <result property="matterNo" column="matterNo" />
<result property="matterFullName" column="matterFullName" /> <result property="matterFullName" column="matterFullName" />
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptCode" column="deptCode" /> <result property="deptCode" column="deptCode" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="total" column="total" /> <result property="total" column="total" />
<result property="sort" column="sort" /> <result property="sort" column="sort" />
<result property="isRecommend" column="isRecommend" /> <result property="isRecommend" column="isRecommend" />
<result property="source" column="source" /> <result property="source" column="source" />
<result property="createTime" column="createTime" /> <result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" /> <result property="updateTime" column="updateTime" />
<collection property="matterDatumList" column="id" ofType="MatterDatumEntity" javaType="ArrayList" select="getMatterDatumByMatterId"></collection>
</resultMap>
<resultMap type="MatterDatumEntity" id="MatterDatumEntity-Map">
<result property="id" column="id" />
<result property="matterId" column="matterId" />
<result property="siteId" column="siteId" />
<result property="deptId" column="deptId" />
<result property="deptCode" column="deptCode" />
<result property="deptName" column="deptName" />
<result property="materialName" column="materialName" />
<result property="materiaFullName" column="materiaFullName" />
<result property="source" column="source" />
<result property="isRecommend" column="isRecommend" />
<result property="total" column="total" />
<result property="sort" column="sort" />
<result property="sampleName" column="sampleName" />
<result property="samplePath" column="samplePath" />
<result property="preViewPath" column="preViewPath" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
</resultMap> </resultMap>
<!-- 表所有列 --> <!-- 表所有列 -->
<sql id="_columns"> <sql id="_columns">
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id, a.id,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId, a.siteId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tid') or colPickMode == 1 and data.containsKey('tid')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tid') or colPickMode == 1 and data.containsKey('tid')))">
a.tid, a.tid,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tcode') or colPickMode == 1 and data.containsKey('tcode')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tcode') or colPickMode == 1 and data.containsKey('tcode')))">
a.tcode, a.tcode,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tname') or colPickMode == 1 and data.containsKey('tname')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('tname') or colPickMode == 1 and data.containsKey('tname')))">
a.tname, a.tname,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterName') or colPickMode == 1 and data.containsKey('matterName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterName') or colPickMode == 1 and data.containsKey('matterName')))">
a.matterName, a.matterName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('englishName') or colPickMode == 1 and data.containsKey('englishName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('englishName') or colPickMode == 1 and data.containsKey('englishName')))">
a.englishName, a.englishName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterNo') or colPickMode == 1 and data.containsKey('matterNo')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterNo') or colPickMode == 1 and data.containsKey('matterNo')))">
a.matterNo, a.matterNo,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterFullName') or colPickMode == 1 and data.containsKey('matterFullName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('matterFullName') or colPickMode == 1 and data.containsKey('matterFullName')))">
a.matterFullName, a.matterFullName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptId') or colPickMode == 1 and data.containsKey('deptId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptId') or colPickMode == 1 and data.containsKey('deptId')))">
a.deptId, a.deptId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptCode') or colPickMode == 1 and data.containsKey('deptCode')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptCode') or colPickMode == 1 and data.containsKey('deptCode')))">
a.deptCode, a.deptCode,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deptName') or colPickMode == 1 and data.containsKey('deptName')))">
a.deptName, a.deptName,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('total') or colPickMode == 1 and data.containsKey('total')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('total') or colPickMode == 1 and data.containsKey('total')))">
a.total, a.total,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sort') or colPickMode == 1 and data.containsKey('sort')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('sort') or colPickMode == 1 and data.containsKey('sort')))">
a.sort, a.sort,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('isRecommend') or colPickMode == 1 and data.containsKey('isRecommend')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('isRecommend') or colPickMode == 1 and data.containsKey('isRecommend')))">
a.isRecommend, a.isRecommend,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))">
a.source, a.source,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime, a.createTime,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId, a.createUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime, a.updateTime,
</if> </if>
</trim>
</sql>
<!-- 子表所有列 -->
<sql id="_columns_sub">
<trim suffixOverrides="," suffix="">
b.id,b.matterId,b.siteId,b.deptId,b.deptCode,b.deptName,b.materialName,b.materiaFullName,b.source,b.isRecommend,b.total,b.sort,b.sampleName,b.samplePath,b.preViewPath,b.createTime,b.createUserId,b.updateTime,
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
...@@ -201,167 +227,167 @@ ...@@ -201,167 +227,167 @@
<update id="updateBatch" parameterType="paramDto"> <update id="updateBatch" parameterType="paramDto">
update mortals_xhx_matter as a update mortals_xhx_matter as a
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),"> <trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))"> <when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId} when a.id=#{item.id} then #{item.siteId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement} when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="tid=(case" suffix="ELSE tid end),"> <trim prefix="tid=(case" suffix="ELSE tid end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('tid')) or (colPickMode==1 and !item.containsKey('tid'))"> <if test="(colPickMode==0 and item.containsKey('tid')) or (colPickMode==1 and !item.containsKey('tid'))">
when a.id=#{item.id} then #{item.tid} when a.id=#{item.id} then #{item.tid}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="tcode=(case" suffix="ELSE tcode end),"> <trim prefix="tcode=(case" suffix="ELSE tcode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('tcode')) or (colPickMode==1 and !item.containsKey('tcode'))"> <if test="(colPickMode==0 and item.containsKey('tcode')) or (colPickMode==1 and !item.containsKey('tcode'))">
when a.id=#{item.id} then #{item.tcode} when a.id=#{item.id} then #{item.tcode}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="tname=(case" suffix="ELSE tname end),"> <trim prefix="tname=(case" suffix="ELSE tname end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('tname')) or (colPickMode==1 and !item.containsKey('tname'))"> <if test="(colPickMode==0 and item.containsKey('tname')) or (colPickMode==1 and !item.containsKey('tname'))">
when a.id=#{item.id} then #{item.tname} when a.id=#{item.id} then #{item.tname}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="matterName=(case" suffix="ELSE matterName end),"> <trim prefix="matterName=(case" suffix="ELSE matterName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('matterName')) or (colPickMode==1 and !item.containsKey('matterName'))"> <if test="(colPickMode==0 and item.containsKey('matterName')) or (colPickMode==1 and !item.containsKey('matterName'))">
when a.id=#{item.id} then #{item.matterName} when a.id=#{item.id} then #{item.matterName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="englishName=(case" suffix="ELSE englishName end),"> <trim prefix="englishName=(case" suffix="ELSE englishName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('englishName')) or (colPickMode==1 and !item.containsKey('englishName'))"> <if test="(colPickMode==0 and item.containsKey('englishName')) or (colPickMode==1 and !item.containsKey('englishName'))">
when a.id=#{item.id} then #{item.englishName} when a.id=#{item.id} then #{item.englishName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="matterNo=(case" suffix="ELSE matterNo end),"> <trim prefix="matterNo=(case" suffix="ELSE matterNo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('matterNo')) or (colPickMode==1 and !item.containsKey('matterNo'))"> <if test="(colPickMode==0 and item.containsKey('matterNo')) or (colPickMode==1 and !item.containsKey('matterNo'))">
when a.id=#{item.id} then #{item.matterNo} when a.id=#{item.id} then #{item.matterNo}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="matterFullName=(case" suffix="ELSE matterFullName end),"> <trim prefix="matterFullName=(case" suffix="ELSE matterFullName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('matterFullName')) or (colPickMode==1 and !item.containsKey('matterFullName'))"> <if test="(colPickMode==0 and item.containsKey('matterFullName')) or (colPickMode==1 and !item.containsKey('matterFullName'))">
when a.id=#{item.id} then #{item.matterFullName} when a.id=#{item.id} then #{item.matterFullName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="deptId=(case" suffix="ELSE deptId end),"> <trim prefix="deptId=(case" suffix="ELSE deptId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('deptId')) or (colPickMode==1 and !item.containsKey('deptId'))"> <when test="(colPickMode==0 and item.containsKey('deptId')) or (colPickMode==1 and !item.containsKey('deptId'))">
when a.id=#{item.id} then #{item.deptId} when a.id=#{item.id} then #{item.deptId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('deptIdIncrement')) or (colPickMode==1 and !item.containsKey('deptIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('deptIdIncrement')) or (colPickMode==1 and !item.containsKey('deptIdIncrement'))">
when a.id=#{item.id} then ifnull(a.deptId,0) + #{item.deptIdIncrement} when a.id=#{item.id} then ifnull(a.deptId,0) + #{item.deptIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="deptCode=(case" suffix="ELSE deptCode end),"> <trim prefix="deptCode=(case" suffix="ELSE deptCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptCode')) or (colPickMode==1 and !item.containsKey('deptCode'))"> <if test="(colPickMode==0 and item.containsKey('deptCode')) or (colPickMode==1 and !item.containsKey('deptCode'))">
when a.id=#{item.id} then #{item.deptCode} when a.id=#{item.id} then #{item.deptCode}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="deptName=(case" suffix="ELSE deptName end),"> <trim prefix="deptName=(case" suffix="ELSE deptName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('deptName')) or (colPickMode==1 and !item.containsKey('deptName'))"> <if test="(colPickMode==0 and item.containsKey('deptName')) or (colPickMode==1 and !item.containsKey('deptName'))">
when a.id=#{item.id} then #{item.deptName} when a.id=#{item.id} then #{item.deptName}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="total=(case" suffix="ELSE total end),"> <trim prefix="total=(case" suffix="ELSE total end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('total')) or (colPickMode==1 and !item.containsKey('total'))"> <when test="(colPickMode==0 and item.containsKey('total')) or (colPickMode==1 and !item.containsKey('total'))">
when a.id=#{item.id} then #{item.total} when a.id=#{item.id} then #{item.total}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('totalIncrement')) or (colPickMode==1 and !item.containsKey('totalIncrement'))"> <when test="(colPickMode==0 and item.containsKey('totalIncrement')) or (colPickMode==1 and !item.containsKey('totalIncrement'))">
when a.id=#{item.id} then ifnull(a.total,0) + #{item.totalIncrement} when a.id=#{item.id} then ifnull(a.total,0) + #{item.totalIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="sort=(case" suffix="ELSE sort end),"> <trim prefix="sort=(case" suffix="ELSE sort end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('sort')) or (colPickMode==1 and !item.containsKey('sort'))"> <when test="(colPickMode==0 and item.containsKey('sort')) or (colPickMode==1 and !item.containsKey('sort'))">
when a.id=#{item.id} then #{item.sort} when a.id=#{item.id} then #{item.sort}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('sortIncrement')) or (colPickMode==1 and !item.containsKey('sortIncrement'))"> <when test="(colPickMode==0 and item.containsKey('sortIncrement')) or (colPickMode==1 and !item.containsKey('sortIncrement'))">
when a.id=#{item.id} then ifnull(a.sort,0) + #{item.sortIncrement} when a.id=#{item.id} then ifnull(a.sort,0) + #{item.sortIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="isRecommend=(case" suffix="ELSE isRecommend end),"> <trim prefix="isRecommend=(case" suffix="ELSE isRecommend end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('isRecommend')) or (colPickMode==1 and !item.containsKey('isRecommend'))"> <when test="(colPickMode==0 and item.containsKey('isRecommend')) or (colPickMode==1 and !item.containsKey('isRecommend'))">
when a.id=#{item.id} then #{item.isRecommend} when a.id=#{item.id} then #{item.isRecommend}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('isRecommendIncrement')) or (colPickMode==1 and !item.containsKey('isRecommendIncrement'))"> <when test="(colPickMode==0 and item.containsKey('isRecommendIncrement')) or (colPickMode==1 and !item.containsKey('isRecommendIncrement'))">
when a.id=#{item.id} then ifnull(a.isRecommend,0) + #{item.isRecommendIncrement} when a.id=#{item.id} then ifnull(a.isRecommend,0) + #{item.isRecommendIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="source=(case" suffix="ELSE source end),"> <trim prefix="source=(case" suffix="ELSE source end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('source')) or (colPickMode==1 and !item.containsKey('source'))"> <when test="(colPickMode==0 and item.containsKey('source')) or (colPickMode==1 and !item.containsKey('source'))">
when a.id=#{item.id} then #{item.source} when a.id=#{item.id} then #{item.source}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('sourceIncrement')) or (colPickMode==1 and !item.containsKey('sourceIncrement'))"> <when test="(colPickMode==0 and item.containsKey('sourceIncrement')) or (colPickMode==1 and !item.containsKey('sourceIncrement'))">
when a.id=#{item.id} then ifnull(a.source,0) + #{item.sourceIncrement} when a.id=#{item.id} then ifnull(a.source,0) + #{item.sourceIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),"> <trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))"> <if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime} when a.id=#{item.id} then #{item.createTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),"> <trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))"> <when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId} when a.id=#{item.id} then #{item.createUserId}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))"> <when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement} when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),"> <trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))"> <if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime} when a.id=#{item.id} then #{item.updateTime}
</if> </if>
</foreach> </foreach>
</trim> </trim>
</trim> </trim>
where id in where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
...@@ -407,6 +433,14 @@ ...@@ -407,6 +433,14 @@
</trim> </trim>
<include refid="_orderCols_"/> <include refid="_orderCols_"/>
</select> </select>
<!-- 获取子列表 -->
<select id="getMatterDatumByMatterId" parameterType="java.lang.Long" resultMap="MatterDatumEntity-Map">
select <include refid="_columns_sub"/>
from mortals_xhx_matter_datum as b
<trim suffixOverrides="where" suffix="">
where b.matterId = #{id}
</trim>
</select>
...@@ -463,447 +497,447 @@ ...@@ -463,447 +497,447 @@
${_conditionType_} a.id=#{${_conditionParam_}.id} ${_conditionType_} a.id=#{${_conditionParam_}.id}
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('id')"> <if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null "> <if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id} ${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if> </if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null"> <if test="conditionParamRef.id == null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd} ${_conditionType_} a.id is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')"> <if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null "> <if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId} ${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList')">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null"> <if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart} ${_conditionType_} a.siteId is null
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if> </if>
</if>
<if test="conditionParamRef.containsKey('siteIdList')">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('tid')"> <if test="conditionParamRef.containsKey('tid')">
<if test="conditionParamRef.tid != null and conditionParamRef.tid != ''"> <if test="conditionParamRef.tid != null and conditionParamRef.tid != ''">
${_conditionType_} a.tid like #{${_conditionParam_}.tid} ${_conditionType_} a.tid like #{${_conditionParam_}.tid}
</if>
<if test="conditionParamRef.tid == null">
${_conditionType_} a.tid is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('tidList')"> <if test="conditionParamRef.tid == null">
${_conditionType_} a.tid in ${_conditionType_} a.tid is null
<foreach collection="conditionParamRef.tidList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('tidList')">
${_conditionType_} a.tid in
<foreach collection="conditionParamRef.tidList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('tcode')"> <if test="conditionParamRef.containsKey('tcode')">
<if test="conditionParamRef.tcode != null and conditionParamRef.tcode != ''"> <if test="conditionParamRef.tcode != null and conditionParamRef.tcode != ''">
${_conditionType_} a.tcode like #{${_conditionParam_}.tcode} ${_conditionType_} a.tcode like #{${_conditionParam_}.tcode}
</if>
<if test="conditionParamRef.tcode == null">
${_conditionType_} a.tcode is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('tcodeList')"> <if test="conditionParamRef.tcode == null">
${_conditionType_} a.tcode in ${_conditionType_} a.tcode is null
<foreach collection="conditionParamRef.tcodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('tcodeList')">
${_conditionType_} a.tcode in
<foreach collection="conditionParamRef.tcodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('tname')"> <if test="conditionParamRef.containsKey('tname')">
<if test="conditionParamRef.tname != null and conditionParamRef.tname != ''"> <if test="conditionParamRef.tname != null and conditionParamRef.tname != ''">
${_conditionType_} a.tname like #{${_conditionParam_}.tname} ${_conditionType_} a.tname like #{${_conditionParam_}.tname}
</if>
<if test="conditionParamRef.tname == null">
${_conditionType_} a.tname is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('tnameList')"> <if test="conditionParamRef.tname == null">
${_conditionType_} a.tname in ${_conditionType_} a.tname is null
<foreach collection="conditionParamRef.tnameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('tnameList')">
${_conditionType_} a.tname in
<foreach collection="conditionParamRef.tnameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterName')"> <if test="conditionParamRef.containsKey('matterName')">
<if test="conditionParamRef.matterName != null and conditionParamRef.matterName != ''"> <if test="conditionParamRef.matterName != null and conditionParamRef.matterName != ''">
${_conditionType_} a.matterName like #{${_conditionParam_}.matterName} ${_conditionType_} a.matterName like #{${_conditionParam_}.matterName}
</if>
<if test="conditionParamRef.matterName == null">
${_conditionType_} a.matterName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('matterNameList')"> <if test="conditionParamRef.matterName == null">
${_conditionType_} a.matterName in ${_conditionType_} a.matterName is null
<foreach collection="conditionParamRef.matterNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('matterNameList')">
${_conditionType_} a.matterName in
<foreach collection="conditionParamRef.matterNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('englishName')"> <if test="conditionParamRef.containsKey('englishName')">
<if test="conditionParamRef.englishName != null and conditionParamRef.englishName != ''"> <if test="conditionParamRef.englishName != null and conditionParamRef.englishName != ''">
${_conditionType_} a.englishName like #{${_conditionParam_}.englishName} ${_conditionType_} a.englishName like #{${_conditionParam_}.englishName}
</if>
<if test="conditionParamRef.englishName == null">
${_conditionType_} a.englishName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('englishNameList')"> <if test="conditionParamRef.englishName == null">
${_conditionType_} a.englishName in ${_conditionType_} a.englishName is null
<foreach collection="conditionParamRef.englishNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('englishNameList')">
${_conditionType_} a.englishName in
<foreach collection="conditionParamRef.englishNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterNo')"> <if test="conditionParamRef.containsKey('matterNo')">
<if test="conditionParamRef.matterNo != null and conditionParamRef.matterNo != ''"> <if test="conditionParamRef.matterNo != null and conditionParamRef.matterNo != ''">
${_conditionType_} a.matterNo like #{${_conditionParam_}.matterNo} ${_conditionType_} a.matterNo like #{${_conditionParam_}.matterNo}
</if>
<if test="conditionParamRef.matterNo == null">
${_conditionType_} a.matterNo is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('matterNoList')"> <if test="conditionParamRef.matterNo == null">
${_conditionType_} a.matterNo in ${_conditionType_} a.matterNo is null
<foreach collection="conditionParamRef.matterNoList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('matterNoList')">
${_conditionType_} a.matterNo in
<foreach collection="conditionParamRef.matterNoList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('matterFullName')"> <if test="conditionParamRef.containsKey('matterFullName')">
<if test="conditionParamRef.matterFullName != null and conditionParamRef.matterFullName != ''"> <if test="conditionParamRef.matterFullName != null and conditionParamRef.matterFullName != ''">
${_conditionType_} a.matterFullName like #{${_conditionParam_}.matterFullName} ${_conditionType_} a.matterFullName like #{${_conditionParam_}.matterFullName}
</if>
<if test="conditionParamRef.matterFullName == null">
${_conditionType_} a.matterFullName is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('matterFullNameList')"> <if test="conditionParamRef.matterFullName == null">
${_conditionType_} a.matterFullName in ${_conditionType_} a.matterFullName is null
<foreach collection="conditionParamRef.matterFullNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('deptId')"> </if>
<if test="conditionParamRef.deptId != null "> <if test="conditionParamRef.containsKey('matterFullNameList')">
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId} ${_conditionType_} a.matterFullName in
</if> <foreach collection="conditionParamRef.matterFullNameList" open="(" close=")" index="index" item="item" separator=",">
<if test="conditionParamRef.deptId == null"> #{item}
${_conditionType_} a.deptId is null </foreach>
</if> </if>
</if> <if test="conditionParamRef.containsKey('deptId')">
<if test="conditionParamRef.containsKey('deptIdList')"> <if test="conditionParamRef.deptId != null ">
${_conditionType_} a.deptId in ${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null">
${_conditionType_} a.deptId <![CDATA[ >= ]]> #{${_conditionParam_}.deptIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null"> <if test="conditionParamRef.deptId == null">
${_conditionType_} a.deptId <![CDATA[ <= ]]> #{${_conditionParam_}.deptIdEnd} ${_conditionType_} a.deptId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('deptIdList')">
${_conditionType_} a.deptId in
<foreach collection="conditionParamRef.deptIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null">
${_conditionType_} a.deptId <![CDATA[ >= ]]> #{${_conditionParam_}.deptIdStart}
</if>
<if test="conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null">
${_conditionType_} a.deptId <![CDATA[ <= ]]> #{${_conditionParam_}.deptIdEnd}
</if>
<if test="conditionParamRef.containsKey('deptCode')"> <if test="conditionParamRef.containsKey('deptCode')">
<if test="conditionParamRef.deptCode != null and conditionParamRef.deptCode != ''"> <if test="conditionParamRef.deptCode != null and conditionParamRef.deptCode != ''">
${_conditionType_} a.deptCode like #{${_conditionParam_}.deptCode} ${_conditionType_} a.deptCode like #{${_conditionParam_}.deptCode}
</if>
<if test="conditionParamRef.deptCode == null">
${_conditionType_} a.deptCode is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('deptCodeList')"> <if test="conditionParamRef.deptCode == null">
${_conditionType_} a.deptCode in ${_conditionType_} a.deptCode is null
<foreach collection="conditionParamRef.deptCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
</if>
<if test="conditionParamRef.containsKey('deptCodeList')">
${_conditionType_} a.deptCode in
<foreach collection="conditionParamRef.deptCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deptName')"> <if test="conditionParamRef.containsKey('deptName')">
<if test="conditionParamRef.deptName != null and conditionParamRef.deptName != ''"> <if test="conditionParamRef.deptName != null and conditionParamRef.deptName != ''">
${_conditionType_} a.deptName like #{${_conditionParam_}.deptName} ${_conditionType_} a.deptName like #{${_conditionParam_}.deptName}
</if>
<if test="conditionParamRef.deptName == null">
${_conditionType_} a.deptName is null
</if>
</if>
<if test="conditionParamRef.containsKey('deptNameList')">
${_conditionType_} a.deptName in
<foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('total')">
<if test="conditionParamRef.total != null ">
${_conditionType_} a.total = #{${_conditionParam_}.total}
</if>
<if test="conditionParamRef.total == null">
${_conditionType_} a.total is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('totalList')"> <if test="conditionParamRef.deptName == null">
${_conditionType_} a.total in ${_conditionType_} a.deptName is null
<foreach collection="conditionParamRef.totalList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if> </if>
<if test="conditionParamRef.containsKey('totalStart') and conditionParamRef.totalStart != null"> </if>
${_conditionType_} a.total <![CDATA[ >= ]]> #{${_conditionParam_}.totalStart} <if test="conditionParamRef.containsKey('deptNameList')">
${_conditionType_} a.deptName in
<foreach collection="conditionParamRef.deptNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('total')">
<if test="conditionParamRef.total != null ">
${_conditionType_} a.total = #{${_conditionParam_}.total}
</if> </if>
<if test="conditionParamRef.containsKey('totalEnd') and conditionParamRef.totalEnd != null"> <if test="conditionParamRef.total == null">
${_conditionType_} a.total <![CDATA[ <= ]]> #{${_conditionParam_}.totalEnd} ${_conditionType_} a.total is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('totalList')">
${_conditionType_} a.total in
<foreach collection="conditionParamRef.totalList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalStart') and conditionParamRef.totalStart != null">
${_conditionType_} a.total <![CDATA[ >= ]]> #{${_conditionParam_}.totalStart}
</if>
<if test="conditionParamRef.containsKey('totalEnd') and conditionParamRef.totalEnd != null">
${_conditionType_} a.total <![CDATA[ <= ]]> #{${_conditionParam_}.totalEnd}
</if>
<if test="conditionParamRef.containsKey('sort')"> <if test="conditionParamRef.containsKey('sort')">
<if test="conditionParamRef.sort != null "> <if test="conditionParamRef.sort != null ">
${_conditionType_} a.sort = #{${_conditionParam_}.sort} ${_conditionType_} a.sort = #{${_conditionParam_}.sort}
</if>
<if test="conditionParamRef.sort == null">
${_conditionType_} a.sort is null
</if>
</if>
<if test="conditionParamRef.containsKey('sortList')">
${_conditionType_} a.sort in
<foreach collection="conditionParamRef.sortList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sortStart') and conditionParamRef.sortStart != null">
${_conditionType_} a.sort <![CDATA[ >= ]]> #{${_conditionParam_}.sortStart}
</if> </if>
<if test="conditionParamRef.containsKey('sortEnd') and conditionParamRef.sortEnd != null"> <if test="conditionParamRef.sort == null">
${_conditionType_} a.sort <![CDATA[ <= ]]> #{${_conditionParam_}.sortEnd} ${_conditionType_} a.sort is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('sortList')">
${_conditionType_} a.sort in
<foreach collection="conditionParamRef.sortList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sortStart') and conditionParamRef.sortStart != null">
${_conditionType_} a.sort <![CDATA[ >= ]]> #{${_conditionParam_}.sortStart}
</if>
<if test="conditionParamRef.containsKey('sortEnd') and conditionParamRef.sortEnd != null">
${_conditionType_} a.sort <![CDATA[ <= ]]> #{${_conditionParam_}.sortEnd}
</if>
<if test="conditionParamRef.containsKey('isRecommend')"> <if test="conditionParamRef.containsKey('isRecommend')">
<if test="conditionParamRef.isRecommend != null "> <if test="conditionParamRef.isRecommend != null ">
${_conditionType_} a.isRecommend = #{${_conditionParam_}.isRecommend} ${_conditionType_} a.isRecommend = #{${_conditionParam_}.isRecommend}
</if>
<if test="conditionParamRef.isRecommend == null">
${_conditionType_} a.isRecommend is null
</if>
</if>
<if test="conditionParamRef.containsKey('isRecommendList')">
${_conditionType_} a.isRecommend in
<foreach collection="conditionParamRef.isRecommendList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('isRecommendStart') and conditionParamRef.isRecommendStart != null">
${_conditionType_} a.isRecommend <![CDATA[ >= ]]> #{${_conditionParam_}.isRecommendStart}
</if> </if>
<if test="conditionParamRef.containsKey('isRecommendEnd') and conditionParamRef.isRecommendEnd != null"> <if test="conditionParamRef.isRecommend == null">
${_conditionType_} a.isRecommend <![CDATA[ <= ]]> #{${_conditionParam_}.isRecommendEnd} ${_conditionType_} a.isRecommend is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('isRecommendList')">
${_conditionType_} a.isRecommend in
<foreach collection="conditionParamRef.isRecommendList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('isRecommendStart') and conditionParamRef.isRecommendStart != null">
${_conditionType_} a.isRecommend <![CDATA[ >= ]]> #{${_conditionParam_}.isRecommendStart}
</if>
<if test="conditionParamRef.containsKey('isRecommendEnd') and conditionParamRef.isRecommendEnd != null">
${_conditionType_} a.isRecommend <![CDATA[ <= ]]> #{${_conditionParam_}.isRecommendEnd}
</if>
<if test="conditionParamRef.containsKey('source')"> <if test="conditionParamRef.containsKey('source')">
<if test="conditionParamRef.source != null "> <if test="conditionParamRef.source != null ">
${_conditionType_} a.source = #{${_conditionParam_}.source} ${_conditionType_} a.source = #{${_conditionParam_}.source}
</if>
<if test="conditionParamRef.source == null">
${_conditionType_} a.source is null
</if>
</if>
<if test="conditionParamRef.containsKey('sourceList')">
${_conditionType_} a.source in
<foreach collection="conditionParamRef.sourceList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceStart') and conditionParamRef.sourceStart != null">
${_conditionType_} a.source <![CDATA[ >= ]]> #{${_conditionParam_}.sourceStart}
</if> </if>
<if test="conditionParamRef.containsKey('sourceEnd') and conditionParamRef.sourceEnd != null"> <if test="conditionParamRef.source == null">
${_conditionType_} a.source <![CDATA[ <= ]]> #{${_conditionParam_}.sourceEnd} ${_conditionType_} a.source is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('sourceList')">
${_conditionType_} a.source in
<foreach collection="conditionParamRef.sourceList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('sourceStart') and conditionParamRef.sourceStart != null">
${_conditionType_} a.source <![CDATA[ >= ]]> #{${_conditionParam_}.sourceStart}
</if>
<if test="conditionParamRef.containsKey('sourceEnd') and conditionParamRef.sourceEnd != null">
${_conditionType_} a.source <![CDATA[ <= ]]> #{${_conditionParam_}.sourceEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')"> <if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null "> <if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime} ${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''"> <if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.createTime is null
</if> </if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''"> </if>
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') <if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
</if> ${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
<if test="conditionParamRef.containsKey('createUserId')"> </if>
<if test="conditionParamRef.createUserId != null "> <if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId} ${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if> </if>
<if test="conditionParamRef.createUserId == null"> <if test="conditionParamRef.containsKey('createUserId')">
${_conditionType_} a.createUserId is null <if test="conditionParamRef.createUserId != null ">
</if> ${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if> </if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null"> <if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd} ${_conditionType_} a.createUserId is null
</if> </if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')"> <if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null "> <if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime} ${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if> </if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''"> <if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s') ${_conditionType_} a.updateTime is null
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if> </if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql> </sql>
<sql id="_orderCols_"> <sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=","> <foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind} ${item.colName} ${item.sortKind}
</foreach> </foreach>
</trim> </trim>
</if> </if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"> <if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')"> <if test="orderCol.containsKey('id')">
a.id a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if> <if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('siteId')"> <if test="orderCol.containsKey('siteId')">
a.siteId a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if> <if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('tid')"> <if test="orderCol.containsKey('tid')">
a.tid a.tid
<if test='orderCol.tid != null and "DESC".equalsIgnoreCase(orderCol.tid)'>DESC</if> <if test='orderCol.tid != null and "DESC".equalsIgnoreCase(orderCol.tid)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('tcode')"> <if test="orderCol.containsKey('tcode')">
a.tcode a.tcode
<if test='orderCol.tcode != null and "DESC".equalsIgnoreCase(orderCol.tcode)'>DESC</if> <if test='orderCol.tcode != null and "DESC".equalsIgnoreCase(orderCol.tcode)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('tname')"> <if test="orderCol.containsKey('tname')">
a.tname a.tname
<if test='orderCol.tname != null and "DESC".equalsIgnoreCase(orderCol.tname)'>DESC</if> <if test='orderCol.tname != null and "DESC".equalsIgnoreCase(orderCol.tname)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('matterName')"> <if test="orderCol.containsKey('matterName')">
a.matterName a.matterName
<if test='orderCol.matterName != null and "DESC".equalsIgnoreCase(orderCol.matterName)'>DESC</if> <if test='orderCol.matterName != null and "DESC".equalsIgnoreCase(orderCol.matterName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('englishName')"> <if test="orderCol.containsKey('englishName')">
a.englishName a.englishName
<if test='orderCol.englishName != null and "DESC".equalsIgnoreCase(orderCol.englishName)'>DESC</if> <if test='orderCol.englishName != null and "DESC".equalsIgnoreCase(orderCol.englishName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('matterNo')"> <if test="orderCol.containsKey('matterNo')">
a.matterNo a.matterNo
<if test='orderCol.matterNo != null and "DESC".equalsIgnoreCase(orderCol.matterNo)'>DESC</if> <if test='orderCol.matterNo != null and "DESC".equalsIgnoreCase(orderCol.matterNo)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('matterFullName')"> <if test="orderCol.containsKey('matterFullName')">
a.matterFullName a.matterFullName
<if test='orderCol.matterFullName != null and "DESC".equalsIgnoreCase(orderCol.matterFullName)'>DESC</if> <if test='orderCol.matterFullName != null and "DESC".equalsIgnoreCase(orderCol.matterFullName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deptId')"> <if test="orderCol.containsKey('deptId')">
a.deptId a.deptId
<if test='orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'>DESC</if> <if test='orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deptCode')"> <if test="orderCol.containsKey('deptCode')">
a.deptCode a.deptCode
<if test='orderCol.deptCode != null and "DESC".equalsIgnoreCase(orderCol.deptCode)'>DESC</if> <if test='orderCol.deptCode != null and "DESC".equalsIgnoreCase(orderCol.deptCode)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('deptName')"> <if test="orderCol.containsKey('deptName')">
a.deptName a.deptName
<if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if> <if test='orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('total')"> <if test="orderCol.containsKey('total')">
a.total a.total
<if test='orderCol.total != null and "DESC".equalsIgnoreCase(orderCol.total)'>DESC</if> <if test='orderCol.total != null and "DESC".equalsIgnoreCase(orderCol.total)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('sort')"> <if test="orderCol.containsKey('sort')">
a.sort a.sort
<if test='orderCol.sort != null and "DESC".equalsIgnoreCase(orderCol.sort)'>DESC</if> <if test='orderCol.sort != null and "DESC".equalsIgnoreCase(orderCol.sort)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('isRecommend')"> <if test="orderCol.containsKey('isRecommend')">
a.isRecommend a.isRecommend
<if test='orderCol.isRecommend != null and "DESC".equalsIgnoreCase(orderCol.isRecommend)'>DESC</if> <if test='orderCol.isRecommend != null and "DESC".equalsIgnoreCase(orderCol.isRecommend)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('source')"> <if test="orderCol.containsKey('source')">
a.source a.source
<if test='orderCol.source != null and "DESC".equalsIgnoreCase(orderCol.source)'>DESC</if> <if test='orderCol.source != null and "DESC".equalsIgnoreCase(orderCol.source)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createTime')"> <if test="orderCol.containsKey('createTime')">
a.createTime a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if> <if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('createUserId')"> <if test="orderCol.containsKey('createUserId')">
a.createUserId a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if> <if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('updateTime')"> <if test="orderCol.containsKey('updateTime')">
a.updateTime a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if> <if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
, ,
</if> </if>
</trim> </trim>
</if> </if>
</sql> </sql>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment