Commit 9c908849 authored by 赵啸非's avatar 赵啸非

添加新闻来源

parent 9b48b0b5
Pipeline #2379 canceled with stages
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50731
Source Host : localhost:3306
Source Database : doc-transform-platform
Target Server Type : MYSQL
Target Server Version : 50731
File Encoding : 65001
Date: 2022-09-29 11:35:46
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for mortals_xhx_area
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_area`;
CREATE TABLE `mortals_xhx_area` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增长',
`parentId` bigint(20) DEFAULT NULL COMMENT '上级区域ID',
`name` varchar(100) DEFAULT NULL COMMENT '区域名称',
`level` tinyint(4) DEFAULT NULL COMMENT '区域级别,按所处树的节点层次',
`code` varchar(20) DEFAULT NULL COMMENT '区域编码,按全国省市编码',
`contactsPeople` varchar(50) DEFAULT NULL COMMENT '区域负责人',
`contactsMobile` varchar(21) DEFAULT NULL COMMENT '区域负责人电话',
`childSize` int(11) DEFAULT '0' COMMENT '子区域数量,默认0',
`maxChildId` int(11) DEFAULT '0' COMMENT '子区域的最大ID,默认0',
`status` tinyint(4) DEFAULT '1' COMMENT '状态,0停用,1启用',
`remark` varchar(200) DEFAULT NULL COMMENT '描述',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户ID',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='区域信息';
-- ----------------------------
-- Table structure for mortals_xhx_idgenerator
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_idgenerator`;
CREATE TABLE `mortals_xhx_idgenerator` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`idType` varchar(50) NOT NULL COMMENT 'id类型',
`idMaxValue` bigint(20) unsigned NOT NULL COMMENT 'id值',
`remark` varchar(100) NOT NULL COMMENT '备注',
`versionNum` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '版本号,默认0',
`gmtModify` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='主键Id生成器';
-- ----------------------------
-- Table structure for mortals_xhx_matter
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_matter`;
CREATE TABLE `mortals_xhx_matter` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增长',
`siteId` bigint(20) DEFAULT NULL COMMENT '站点ID',
`tid` varchar(128) DEFAULT NULL COMMENT '从政务系统来的事项id',
`tcode` varchar(128) DEFAULT NULL COMMENT '从政务系统来的事项code',
`tname` varchar(255) DEFAULT NULL COMMENT '从政务系统来的事项name',
`matterName` varchar(64) DEFAULT NULL COMMENT '事项名称',
`englishName` varchar(256) DEFAULT NULL COMMENT '英语事项名',
`matterNo` varchar(64) DEFAULT NULL COMMENT '事项编号',
`matterFullName` varchar(64) DEFAULT NULL COMMENT '事项全称',
`deptId` bigint(20) DEFAULT NULL COMMENT '部门ID',
`total` int(8) DEFAULT NULL COMMENT '填单次数',
`sort` int(4) DEFAULT NULL COMMENT '排序',
`isRecommend` tinyint(2) DEFAULT NULL COMMENT '是否推荐(0.未推荐,1.推荐)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`updateTime` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事项申请材料';
-- ----------------------------
-- Table structure for mortals_xhx_matter_datum
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_matter_datum`;
CREATE TABLE `mortals_xhx_matter_datum` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增长',
`matterId` bigint(20) DEFAULT NULL COMMENT '事项matter id',
`materialName` varchar(1024) NOT NULL COMMENT '材料名',
`materiaFullName` varchar(1024) NOT NULL COMMENT '材料全名',
`source` tinyint(2) DEFAULT NULL COMMENT '事项来源(0.政务网,1.自定义)',
`isRecommend` tinyint(2) DEFAULT NULL COMMENT '是否推荐(0.未推荐,1.推荐)',
`total` int(8) DEFAULT NULL COMMENT '填单次数',
`sort` int(4) DEFAULT NULL COMMENT '排序',
`fileName` varchar(255) DEFAULT NULL COMMENT '填单的附件名称',
`fileUrl` varchar(255) DEFAULT NULL COMMENT '填单的附件下载地址',
`samplePath` varchar(255) DEFAULT NULL COMMENT '样表地址',
`templatePath` varchar(255) DEFAULT NULL COMMENT '模板地址',
`preViewPath` varchar(255) DEFAULT NULL COMMENT '样表预览地址',
`formContent` mediumtext COMMENT '表单内容',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`updateTime` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='事项申请材料';
-- ----------------------------
-- Table structure for mortals_xhx_menu
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_menu`;
CREATE TABLE `mortals_xhx_menu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
`url` varchar(256) DEFAULT NULL COMMENT '连接地址',
`parentId` bigint(20) DEFAULT NULL COMMENT '父菜单ID,一级菜单的该字段值为-1',
`orderId` int(11) DEFAULT NULL COMMENT '排序编号',
`status` tinyint(2) DEFAULT '1' COMMENT '菜单状态,0:禁用,1:启用,默认1',
`linkType` tinyint(2) DEFAULT '0' COMMENT '链接方式,0:普通,1:弹出,2:脚本(JavaScript),默认0',
`groupId` int(11) DEFAULT '1' COMMENT '分组编号,使用菜单分隔符按该值分隔,默认1',
`groupName` varchar(255) DEFAULT NULL,
`imgPath` varchar(128) DEFAULT NULL COMMENT '主菜单图标,主菜单图标的css样式名',
`buttonImgPath` varchar(128) DEFAULT NULL COMMENT '按钮图标,按钮图标的css样式名',
`imgCommPath` varchar(128) DEFAULT NULL COMMENT '常用菜单图标,常用菜单图标的css样式名',
`commMenu` tinyint(2) DEFAULT '0' COMMENT '是否常用菜单,0:非常用,1:常用,默认0',
`menuType` tinyint(2) DEFAULT '0' COMMENT '菜单类型,0:主菜单,1:非主菜单(功能操作组),默认0',
`authType` tinyint(2) DEFAULT '3' COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9135 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单信息';
-- ----------------------------
-- Table structure for mortals_xhx_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_oper_log`;
CREATE TABLE `mortals_xhx_oper_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`platformMark` varchar(50) DEFAULT NULL COMMENT '平台标识',
`userId` bigint(20) DEFAULT NULL COMMENT '用户id',
`userName` varchar(50) DEFAULT NULL COMMENT '用户名称',
`loginName` varchar(50) DEFAULT NULL COMMENT '用户登录名',
`requestUrl` varchar(200) DEFAULT NULL COMMENT '请求地址',
`content` varchar(2000) DEFAULT NULL COMMENT '操作内容,记录操作具体信息,如修改前修改或的数据',
`ip` varchar(30) DEFAULT NULL COMMENT '操作IP地址',
`logDate` datetime DEFAULT NULL COMMENT '操作时间',
`operType` tinyint(2) DEFAULT NULL COMMENT '操作类型,0:新增,1:修改,2:删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12276 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='操作日志';
-- ----------------------------
-- Table structure for mortals_xhx_param
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_param`;
CREATE TABLE `mortals_xhx_param` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(100) DEFAULT NULL COMMENT '参数名称',
`firstOrganize` varchar(100) DEFAULT NULL COMMENT '一级组织,如:平台配置',
`secondOrganize` varchar(100) DEFAULT NULL COMMENT '二级组织,如:基础配置',
`paramKey` varchar(100) DEFAULT NULL COMMENT '参数键,全局唯一',
`paramValue` varchar(2000) DEFAULT NULL COMMENT '参数值',
`validStatus` tinyint(2) DEFAULT '1' COMMENT '参数有效状态,0:禁用,1:启用,默认1',
`modStatus` tinyint(2) DEFAULT '4' COMMENT '参数修改状态,0:隐藏,1:页面仅查看,2:页面可修改,3:页面可删除,4:页面可修改删除,默认4',
`displayType` tinyint(2) DEFAULT '0' COMMENT '展现类型,0:普通文本框,1:多行文本框,2:开关,3:块输入框,默认:0',
`remark` varchar(200) DEFAULT NULL COMMENT '备注',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1815 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='参数信息';
-- ----------------------------
-- Table structure for mortals_xhx_platform
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_platform`;
CREATE TABLE `mortals_xhx_platform` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`name` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '名称',
`platformSn` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '业务系统标识,唯一',
`remark` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '系统备注',
`callbackUrl` varchar(255) DEFAULT NULL COMMENT '申报表单提交地址',
`redirectUrl` varchar(255) DEFAULT NULL COMMENT '成功后页面跳转地址',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `sn_unique_index` (`platformSn`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='平台用户';
-- ----------------------------
-- Table structure for mortals_xhx_resource
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_resource`;
CREATE TABLE `mortals_xhx_resource` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`name` varchar(50) DEFAULT NULL COMMENT '名称',
`url` varchar(2000) DEFAULT NULL COMMENT '连接地址,多个地址以逗号分隔',
`authType` tinyint(2) DEFAULT '3' COMMENT '权限类型,0:无限制,1:无需登录查看,2:需要登录查看,3:需要角色权限查看,默认3',
`sourceType` tinyint(2) DEFAULT '0' COMMENT '资源类型,0:系统资源,1:开放资源,默认0',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
`userType` tinyint(2) DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=150025 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='资源信息';
-- ----------------------------
-- Table structure for mortals_xhx_role
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role`;
CREATE TABLE `mortals_xhx_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(50) DEFAULT NULL COMMENT '角色名称',
`remark` varchar(200) DEFAULT NULL COMMENT '备注',
`roleType` tinyint(2) DEFAULT '2' COMMENT '角色类型,0:系统内置角色(不可删除),1:默认系统角色,2:普通角色,默认2',
`customerId` bigint(20) DEFAULT NULL COMMENT '归属客户ID',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
`userType` tinyint(2) DEFAULT NULL COMMENT '用户类型,0:系统用户 1:代理商用户 2:品牌商用户',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色信息';
-- ----------------------------
-- Table structure for mortals_xhx_role_auth
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role_auth`;
CREATE TABLE `mortals_xhx_role_auth` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`roleId` bigint(20) DEFAULT NULL COMMENT '角色ID',
`resourceId` bigint(20) DEFAULT NULL COMMENT '资源ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色资源权限';
-- ----------------------------
-- Table structure for mortals_xhx_role_user
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_role_user`;
CREATE TABLE `mortals_xhx_role_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`roleId` bigint(20) DEFAULT NULL COMMENT '角色ID',
`userId` bigint(20) DEFAULT NULL COMMENT '用户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色用户';
-- ----------------------------
-- Table structure for mortals_xhx_sheet_matter
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_sheet_matter`;
CREATE TABLE `mortals_xhx_sheet_matter` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`siteId` bigint(20) DEFAULT NULL COMMENT '站点ID',
`tid` varchar(128) DEFAULT NULL COMMENT '从政务系统来的事项id',
`tcode` varchar(128) DEFAULT NULL COMMENT '从政务系统来的事项code',
`tname` varchar(255) DEFAULT NULL COMMENT '从政务系统来的事项name',
`matterName` varchar(64) DEFAULT NULL COMMENT '事项名称',
`englishName` varchar(256) DEFAULT NULL COMMENT '英语事项名',
`matterNo` varchar(64) DEFAULT NULL COMMENT '事项编号',
`appoveObjectShow` varchar(16) DEFAULT NULL COMMENT '服务对象 (1.事业法人,2.社会组织法人,3.非法人企业,4.企业法人,5.自然人,6.其他组织)',
`operatScopeShow` varchar(64) DEFAULT NULL COMMENT '通办范围 (1.无,2.全国,3.全省,4.全市,5.全县,6.全镇[乡、街道],7.跨村[社区])',
`appoveTimeLimitShow` varchar(16) DEFAULT NULL COMMENT '办件类型(1.网络办件,2.行政审批一般件,3.综合窗口件)',
`handleType` varchar(12) DEFAULT NULL COMMENT '办理形式(1.窗口办理,2.网上办理)',
`legalTimeLimitShow` varchar(32) DEFAULT NULL COMMENT '法定办结时限',
`legalEndExplain` varchar(255) DEFAULT NULL COMMENT '法定时限办结说明',
`promiseTimeLimitShow` varchar(32) DEFAULT NULL COMMENT '承诺办结时限',
`promiseEndExplain` varchar(255) DEFAULT NULL COMMENT '承诺时限办结说明',
`isChargesShow` varchar(16) DEFAULT NULL COMMENT '是否收费(0.否,1.是)',
`certificationLevelsShow` varchar(64) DEFAULT NULL COMMENT '认证等级需求(1.实名认证,2.单次面签,3.每次面签)',
`planTakeTime` datetime DEFAULT NULL COMMENT '计划生效日期',
`promiseTakeTime` datetime DEFAULT NULL COMMENT '承诺生效日期',
`specialProcedure` varchar(64) DEFAULT NULL COMMENT '特别程序',
`windowToTheSceneNum` tinyint(2) DEFAULT NULL COMMENT '窗口到现场次数',
`isOnlineSubscribeShow` varchar(64) DEFAULT NULL COMMENT '是否网上预约,窗口办理选(0.否,1.是)',
`isExpressTakeShow` varchar(16) DEFAULT NULL COMMENT '物流快递,窗口办理选(0.否,1.是)',
`isProvinceAcquisitionShow` varchar(16) DEFAULT NULL COMMENT '是否支持全省范围就近取件(0.否,1.是)',
`isApplyProvinceShow` varchar(16) DEFAULT NULL COMMENT '是否支持全省范围就近办理(0.否,1.是)',
`mustSceneExplain` varchar(512) DEFAULT NULL COMMENT '必须到现场原因',
`onlineType` varchar(32) DEFAULT NULL COMMENT '网办类型(1.原件预审,2.原件核验,3.全程网办)',
`onlineToTheSceneNum` tinyint(2) DEFAULT NULL COMMENT '网办到现场次数',
`onlineOperatDeep` varchar(16) DEFAULT NULL COMMENT '网络办理深度(1.互联网咨询,2.互联网收件,3.互联网预审,4.互联网受理,5.互联网办理,6.互联网办理结果信息反馈,7.其他)',
`isExpressTakeOnlineShow` varchar(16) DEFAULT NULL COMMENT '物流快递,网上办理选(0.否,1.是)',
`isDoorTakeShow` varchar(16) DEFAULT NULL COMMENT '是否支持上门收取申请(0.否,1.是)',
`onlineMustSceneExplain` varchar(512) DEFAULT NULL COMMENT '网上必须到现场原因',
`performDeptType` varchar(64) DEFAULT NULL COMMENT '实施主体',
`matterEdition` varchar(32) DEFAULT NULL COMMENT '事项版本',
`eventTypeShow` varchar(128) DEFAULT NULL COMMENT '事项类型名称(1A.行政许可,1B.行政处罚,1C.行政强制,1D.行政征收,1G.行政给付,1I.行政检查,1F.行政确认,1H.行政奖励,1E.行政裁决,1Z.其他行政权力,2A.主动服务,2B.依申请服务,2C.咨询查询,3A.未归类事项)',
`performHierarchyShow` varchar(128) DEFAULT NULL COMMENT '行使层级名称(1.省级,2.市级,3.县级,4.镇[乡、街道],5.村[社区]级)',
`powerSourceShow` varchar(64) DEFAULT NULL COMMENT '权力来源(1.法定本级行使,2.上级下放,3.上级授权,4.同级授权,5.上级委托,6.同级委托)',
`performDeptTypeShow` varchar(64) DEFAULT NULL COMMENT '实施主体性质(1.法定机关,2.授权组织,3.受委托组织)',
`goveServiceCenterShow` varchar(16) DEFAULT NULL COMMENT '是否进驻中心(0.否,1.是)',
`isConvenientCenterShow` varchar(16) DEFAULT NULL COMMENT '是否纳入便民服务中心(0.否,1.是)',
`terminalHandle` tinyint(2) DEFAULT NULL COMMENT '自助终端办理 (0.否,1.是)',
`isOnline` tinyint(2) DEFAULT NULL COMMENT '是否网办 (0.否,1.是)',
`isOnlinePayShow` varchar(16) DEFAULT NULL COMMENT '支持网上支付(0.否,1.是)',
`entrustmentDepartmen` varchar(64) DEFAULT NULL COMMENT '委托部门(0.否,1.是)',
`jointInfoShow` varchar(128) DEFAULT NULL COMMENT '联办机构',
`matterStatus` varchar(32) DEFAULT NULL COMMENT '事项状态(0.停用,1.在用)',
`numberLimit` int(11) DEFAULT NULL COMMENT '数量限制',
`type` varchar(32) DEFAULT NULL COMMENT '主题类型(1.法定机关,2.授权组织,3.受委托组织)',
`baseCode` varchar(128) DEFAULT NULL COMMENT '基本编码',
`implementCode` varchar(128) DEFAULT NULL COMMENT '实施编码',
`implementBodyCode` varchar(128) DEFAULT NULL COMMENT '实施主体编码',
`operateItemCode` varchar(128) DEFAULT NULL COMMENT '办理项编码',
`townshipName` varchar(128) DEFAULT NULL COMMENT '乡镇街道名称',
`townshipCode` varchar(128) DEFAULT NULL COMMENT '乡镇街道代码',
`villageName` varchar(128) DEFAULT NULL COMMENT '村居社区名称',
`villageCode` varchar(128) DEFAULT NULL COMMENT '村居社区代码',
`operateTime` varchar(128) DEFAULT NULL COMMENT '办理时间',
`operateSite` varchar(128) DEFAULT NULL COMMENT '办理地点',
`cousultingShow` varchar(64) DEFAULT NULL COMMENT '咨询方式',
`cousultingTelephoneShow` varchar(64) DEFAULT NULL COMMENT '咨询电话',
`superviseShow` varchar(64) DEFAULT NULL COMMENT '监督方式',
`mattertype` int(1) DEFAULT NULL COMMENT '是否样表展示(0.否,1.是)',
`deptCode` varchar(128) DEFAULT NULL COMMENT '部门编号',
`dirListCode` varchar(128) DEFAULT NULL COMMENT '目录清单编码',
`runSystemShow` varchar(128) DEFAULT NULL COMMENT '运行系统名称',
`jointReviewInfoShow` varchar(128) DEFAULT NULL COMMENT '联审信息',
`doThingTypeShow` varchar(32) DEFAULT NULL COMMENT '办理类型',
`pubTimeShow` varchar(64) DEFAULT NULL COMMENT '公示时限',
`supervisoryTelephoneShow` varchar(64) DEFAULT NULL COMMENT '投诉电话',
`handleTimeShow` varchar(64) DEFAULT NULL COMMENT '办公时间',
`handlePlaceShow` varchar(128) DEFAULT NULL COMMENT '办公地址',
`daysTypeShow` varchar(16) DEFAULT NULL COMMENT '节日类型',
`tradeShow` varchar(64) DEFAULT NULL COMMENT '行业',
`eventSourceShow` varchar(64) DEFAULT NULL COMMENT '事项来源',
`applyresultTypeShow` varchar(64) DEFAULT NULL COMMENT '审批结果类型',
`typeOfReview` varchar(255) DEFAULT NULL COMMENT '审查类型',
`enforcement` varchar(64) DEFAULT NULL COMMENT '实施机构',
`serviceClassification` varchar(128) DEFAULT NULL COMMENT '服务主题分类',
`licenseNumber` varchar(64) DEFAULT NULL COMMENT '许可数量',
`number` int(5) DEFAULT NULL COMMENT '办事者到办理现场次数',
`inquire` varchar(255) DEFAULT NULL COMMENT '办理查询',
`handlingresultNames` varchar(255) DEFAULT NULL COMMENT '办理结果名称',
`sampleApprovalResults` varchar(255) DEFAULT NULL COMMENT '审批结果样本',
`performDeptName` varchar(255) DEFAULT NULL COMMENT '实施主题',
`html` varchar(128) DEFAULT NULL COMMENT 'html存储地址',
`eventType` char(5) DEFAULT NULL COMMENT '全债清单类型',
`shardKey` int(11) DEFAULT NULL,
`parson` tinyint(1) DEFAULT NULL COMMENT '个人1',
`lengal` tinyint(1) DEFAULT NULL COMMENT '法人 1',
`materialRemark` text COMMENT '总材料说明',
`codeurl` varchar(128) DEFAULT NULL COMMENT '事项二维码',
`applyObject` varchar(64) DEFAULT NULL COMMENT '行使方式',
`isUniteAccept` varchar(64) DEFAULT NULL COMMENT '统一受理模式',
`sort` int(4) DEFAULT NULL COMMENT '排序',
`isRecommend` tinyint(2) DEFAULT NULL COMMENT '是否推荐(0.未推荐,1.推荐)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`updateTime` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='基础事项';
-- ----------------------------
-- Table structure for mortals_xhx_site
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_site`;
CREATE TABLE `mortals_xhx_site` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长',
`siteName` varchar(64) NOT NULL COMMENT '站点名',
`parentId` bigint(11) NOT NULL COMMENT '父级id',
`ancestors` varchar(255) DEFAULT '' COMMENT '祖级列表,逗号分隔',
`address` varchar(255) NOT NULL COMMENT '地址',
`mobile` varchar(32) NOT NULL COMMENT '电话',
`introduce` text NOT NULL COMMENT '单位介绍',
`workday1` tinyint(1) DEFAULT NULL COMMENT '周一 1上班 0不上',
`workday2` tinyint(1) DEFAULT NULL COMMENT '周二 1上班 0不上',
`workday3` tinyint(1) DEFAULT NULL COMMENT '周三 1上班 0不上',
`workday4` tinyint(1) DEFAULT NULL COMMENT '周四 1上班 0不上',
`workday5` tinyint(1) DEFAULT NULL COMMENT '周五 1上班 0不上',
`workday6` tinyint(1) DEFAULT NULL COMMENT '周六 1上班 0不上',
`workday7` tinyint(1) DEFAULT NULL COMMENT '周日 1上班 0不上',
`number` varchar(32) NOT NULL COMMENT '站点编号',
`summary` text NOT NULL COMMENT '中心介绍',
`orderNum` int(9) DEFAULT '0' COMMENT '排序字段',
`status` tinyint(2) DEFAULT '1' COMMENT '站点状态 ,0,停用,1,正常 默认1',
`updateTime` datetime DEFAULT NULL COMMENT '变更时间',
`updateUser` varchar(50) DEFAULT NULL COMMENT '变更用户loginName',
`createTime` datetime NOT NULL COMMENT '创建时间',
`createUser` varchar(50) NOT NULL COMMENT '创建用户loginName',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='站点信息表';
-- ----------------------------
-- Table structure for mortals_xhx_table_index
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_table_index`;
CREATE TABLE `mortals_xhx_table_index` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`tableName` varchar(100) DEFAULT NULL COMMENT '表名称',
`tableMark` varchar(100) DEFAULT NULL COMMENT '表标识',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='分表索引信息';
-- ----------------------------
-- Table structure for mortals_xhx_task
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_task`;
CREATE TABLE `mortals_xhx_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`name` varchar(100) DEFAULT NULL COMMENT '任务名称',
`taskKey` varchar(100) DEFAULT NULL COMMENT '任务关键字,区分任务执行流程',
`status` tinyint(2) DEFAULT '0' COMMENT '任务状态,0:未启动,1:执行中,默认0',
`excuteService` varchar(100) DEFAULT NULL COMMENT '任务执行服务',
`excuteParam` text COMMENT '任务执行参数',
`excuteHost` varchar(200) DEFAULT NULL COMMENT '任务执行主机,为空表示不限制任务的执行主机,多个用逗号分隔',
`excuteStrategy` tinyint(2) DEFAULT '1' COMMENT '执行策略,1:按日,2:按周,3:按月,4:按间隔时间,默认1',
`excuteDate` int(11) DEFAULT '0' COMMENT '执行日期,按日:则为0;按周:则为1-7;按月:则为:1-31;按间隔时间:则为间隔时间,单位:秒;默认0',
`excuteTime` varchar(10) DEFAULT '00' COMMENT '执行时间,格式:HH:mm,默认:00:00',
`remark` varchar(200) DEFAULT NULL COMMENT '备注',
`lastExcuteHost` varchar(32) DEFAULT NULL COMMENT '最后执行主机',
`lastExcuteTime` datetime DEFAULT NULL COMMENT '最后执行时间',
`interimExcuteStatus` tinyint(2) DEFAULT '0' COMMENT '临时执行状态,0:未启用,1:立即执行并保留,2:立即执行并删除,默认0',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) DEFAULT NULL COMMENT '创建用户名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='任务信息';
-- ----------------------------
-- Table structure for mortals_xhx_uploadfile
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_uploadfile`;
CREATE TABLE `mortals_xhx_uploadfile` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,主键,自增长',
`fileName` varchar(50) DEFAULT NULL COMMENT '文件名称',
`filePath` varchar(100) DEFAULT NULL COMMENT '文件路径',
`fileType` tinyint(2) DEFAULT NULL COMMENT '文件类型,1 excel ,2 img,3 zip, 4 pdf',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUser` varchar(50) DEFAULT NULL COMMENT '创建用户',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='上传文件';
-- ----------------------------
-- Table structure for mortals_xhx_user
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_user`;
CREATE TABLE `mortals_xhx_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID,主键,自增长',
`loginName` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '登录名',
`loginPwd` varchar(128) CHARACTER SET utf8 DEFAULT NULL COMMENT '登录密码,使用md5双次加密',
`loginPwd1` varchar(128) CHARACTER SET utf8 DEFAULT NULL COMMENT '最近一次使用密码,使用md5双次加密',
`loginPwd2` varchar(128) CHARACTER SET utf8 DEFAULT NULL COMMENT '最近二次使用密码,使用md5双次加密',
`loginPwd3` varchar(128) CHARACTER SET utf8 DEFAULT NULL COMMENT '最近三次使用密码,使用md5双次加密',
`loginLimitAddress` varchar(200) CHARACTER SET utf8 DEFAULT NULL COMMENT '登录限制地址,多个IP地址用逗号分隔,可以使用IP段匹配,如:172.17.*非空:则只能该值内的IP可以登录',
`realName` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户名',
`mobile` varchar(21) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户手机号',
`phone` varchar(21) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户联系电话',
`email` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户邮箱',
`qq` varchar(20) CHARACTER SET utf8 DEFAULT NULL COMMENT 'QQ号码',
`userType` tinyint(2) DEFAULT NULL COMMENT '用户类型,0:系统用户 1:普通用户 2:工作人员,默认2',
`siteId` bigint(20) DEFAULT '0' COMMENT '站点id',
`status` tinyint(2) DEFAULT '1' COMMENT '用户状态,0:停用,1:正常,2:冻结,3:销户,4:离职,默认1',
`customerId` bigint(20) DEFAULT NULL COMMENT '客户ID',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`createUserId` bigint(20) DEFAULT NULL COMMENT '创建用户',
`createUserName` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '创建用户名称',
`lastLoginTime` datetime DEFAULT NULL COMMENT '最后一次登录时间',
`lastLoginAddress` varchar(21) CHARACTER SET utf8 DEFAULT NULL COMMENT '最后一次登录地址',
`lastModPwdTime` datetime DEFAULT NULL COMMENT '最后修改密码时间',
`lastModPwdAddr` varchar(21) CHARACTER SET utf8 DEFAULT NULL COMMENT '最后修改密码地址',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `idx_loginName` (`loginName`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=ujis ROW_FORMAT=DYNAMIC COMMENT='用户信息';
-- ----------------------------
-- Table structure for mortals_xhx_valid_code
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_valid_code`;
CREATE TABLE `mortals_xhx_valid_code` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID,主键,自增长',
`code` varchar(10) DEFAULT NULL COMMENT '验证码',
`url` varchar(500) DEFAULT NULL COMMENT '校验地址,email校验使用',
`mobile` varchar(21) DEFAULT NULL COMMENT '校验手机号',
`email` varchar(50) DEFAULT NULL COMMENT '校验邮箱',
`type` tinyint(2) DEFAULT '0' COMMENT '校验方式,0:图片校验,1:手机校验,2:邮箱校验,默认0',
`sessionId` varchar(50) DEFAULT NULL COMMENT '会话ID',
`ip` varchar(50) DEFAULT NULL COMMENT 'IP地址',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`lapseTime` datetime DEFAULT NULL COMMENT '失效时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=330 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='验证码信息';
......@@ -150,10 +150,11 @@ CREATE TABLE mortals_xhx_hotword(
`siteId` bigint(20) COMMENT '站点ID',
`hotwords` varchar(512) COMMENT '热门词汇',
`printDisplay` int(4) COMMENT '空白打印材料展示数量',
`newsSource` tinyint(4) COMMENT '新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建用户',
`updateTime` datetime COMMENT '修改时间',
PRIMARY KEY (`id`)
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='热门词汇业务';
-- ----------------------------
......
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)枚举类
*
* @author zxfei
*/
public enum NewsSourceEnum {
热点新闻(1, "热点新闻"),
本地要闻(2, "本地要闻"),
政策发布(3, "政策发布"),
通知公告(4, "通知公告");
private Integer value;
private String desc;
NewsSourceEnum(Integer value, String desc) {
this.value = value;
this.desc = desc;
}
public Integer getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static NewsSourceEnum getByValue(Integer value) {
for (NewsSourceEnum newsSourceEnum : NewsSourceEnum.values()) {
if (newsSourceEnum.getValue() == value) {
return newsSourceEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(Integer... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (NewsSourceEnum item : NewsSourceEnum.values()) {
try {
boolean hasE = false;
for (Integer e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
......@@ -191,6 +191,9 @@ public class HomeController extends BaseJsonBodyController {
.flatMap(item -> StrUtil.split(item, ",".charAt(0)).stream())
.collect(Collectors.toList());
model.put("hotWords", hotwordEntities);
MatterQuery matterQuery = new MatterQuery();
matterQuery.setSiteId(homeQueryPdu.getSiteId());
int matterCont = matterService.count(matterQuery, this.getContext());
......@@ -215,6 +218,7 @@ public class HomeController extends BaseJsonBodyController {
HotwordEntity hotwordEntity = hotwordService.selectOne(new HotwordQuery().siteId(homeQueryPdu.getSiteId()));
model.put("blankCount", hotwordEntity==null?20:hotwordEntity.getPrintDisplay()); //空白样表数量
model.put("newsSource", hotwordEntity==null?1:hotwordEntity.getNewsSource()); //新闻来源
model.put("message_info", busiDesc + "成功");
this.recordSysLog(this.request, busiDesc + " 【成功】");
} catch (Exception var9) {
......
......@@ -2,13 +2,13 @@ package com.mortals.xhx.module.hotword.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import java.util.List;
/**
* 热门词汇业务Dao
* 热门词汇业务 DAO接口
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
public interface HotwordDao extends ICRUDDao<HotwordEntity,Long>{
......
package com.mortals.xhx.module.hotword.dao.ibatis;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.hotword.dao.HotwordDao;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import org.springframework.stereotype.Repository;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 热门词汇业务DaoImpl DAO接口
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
@Repository("hotwordDao")
public class HotwordDaoImpl extends BaseCRUDDaoMybatis<HotwordEntity,Long> implements HotwordDao {
......
package com.mortals.xhx.module.hotword.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.hotword.model.vo.HotwordVo;
/**
* 热门词汇业务实体对象
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
public class HotwordEntity extends HotwordVo {
......@@ -23,6 +28,10 @@ public class HotwordEntity extends HotwordVo {
* 空白打印材料展示数量
*/
private Integer printDisplay;
/**
* 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
*/
private Integer newsSource;
......@@ -69,6 +78,20 @@ public class HotwordEntity extends HotwordVo {
public void setPrintDisplay(Integer printDisplay){
this.printDisplay = printDisplay;
}
/**
* 获取 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @return Integer
*/
public Integer getNewsSource(){
return newsSource;
}
/**
* 设置 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSource
*/
public void setNewsSource(Integer newsSource){
this.newsSource = newsSource;
}
......@@ -94,6 +117,7 @@ public class HotwordEntity extends HotwordVo {
sb.append(",siteId:").append(getSiteId());
sb.append(",hotwords:").append(getHotwords());
sb.append(",printDisplay:").append(getPrintDisplay());
sb.append(",newsSource:").append(getNewsSource());
return sb.toString();
}
......@@ -101,8 +125,10 @@ public class HotwordEntity extends HotwordVo {
this.siteId = null;
this.hotwords = "";
this.hotwords = null;
this.printDisplay = null;
this.printDisplay = 0;
this.newsSource = null;
}
}
\ No newline at end of file
package com.mortals.xhx.module.hotword.model;
import java.util.List;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
/**
* 热门词汇业务查询对象
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
public class HotwordQuery extends HotwordEntity {
/** 开始 主键,自增长 */
......@@ -48,6 +48,18 @@ public class HotwordQuery extends HotwordEntity {
/** 空白打印材料展示数量列表 */
private List <Integer> printDisplayList;
/** 开始 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告) */
private Integer newsSourceStart;
/** 结束 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告) */
private Integer newsSourceEnd;
/** 增加 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告) */
private Integer newsSourceIncrement;
/** 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)列表 */
private List <Integer> newsSourceList;
/** 开始 创建时间 */
private String createTimeStart;
......@@ -287,6 +299,70 @@ public class HotwordQuery extends HotwordEntity {
this.printDisplayList = printDisplayList;
}
/**
* 获取 开始 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @return newsSourceStart
*/
public Integer getNewsSourceStart(){
return this.newsSourceStart;
}
/**
* 设置 开始 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceStart
*/
public void setNewsSourceStart(Integer newsSourceStart){
this.newsSourceStart = newsSourceStart;
}
/**
* 获取 结束 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @return $newsSourceEnd
*/
public Integer getNewsSourceEnd(){
return this.newsSourceEnd;
}
/**
* 设置 结束 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceEnd
*/
public void setNewsSourceEnd(Integer newsSourceEnd){
this.newsSourceEnd = newsSourceEnd;
}
/**
* 获取 增加 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @return newsSourceIncrement
*/
public Integer getNewsSourceIncrement(){
return this.newsSourceIncrement;
}
/**
* 设置 增加 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceIncrement
*/
public void setNewsSourceIncrement(Integer newsSourceIncrement){
this.newsSourceIncrement = newsSourceIncrement;
}
/**
* 获取 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @return newsSourceList
*/
public List<Integer> getNewsSourceList(){
return this.newsSourceList;
}
/**
* 设置 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceList
*/
public void setNewsSourceList(List<Integer> newsSourceList){
this.newsSourceList = newsSourceList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
......@@ -569,6 +645,51 @@ public class HotwordQuery extends HotwordEntity {
return this;
}
/**
* 设置 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSource
*/
public HotwordQuery newsSource(Integer newsSource){
setNewsSource(newsSource);
return this;
}
/**
* 设置 开始 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceStart
*/
public HotwordQuery newsSourceStart(Integer newsSourceStart){
this.newsSourceStart = newsSourceStart;
return this;
}
/**
* 设置 结束 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceEnd
*/
public HotwordQuery newsSourceEnd(Integer newsSourceEnd){
this.newsSourceEnd = newsSourceEnd;
return this;
}
/**
* 设置 增加 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceIncrement
*/
public HotwordQuery newsSourceIncrement(Integer newsSourceIncrement){
this.newsSourceIncrement = newsSourceIncrement;
return this;
}
/**
* 设置 新闻来源(1.热点新闻,2.本地要闻,3.政策发布,4.通知公告)
* @param newsSourceList
*/
public HotwordQuery newsSourceList(List<Integer> newsSourceList){
this.newsSourceList = newsSourceList;
return this;
}
/**
* 设置 创建用户
......
package com.mortals.xhx.module.hotword.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 热门词汇业务视图对象
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
public class HotwordVo extends BaseEntityLong {
......
......@@ -7,7 +7,7 @@ import com.mortals.xhx.module.hotword.model.HotwordEntity;
* 热门词汇业务 service接口
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
public interface HotwordService extends ICRUDService<HotwordEntity,Long>{
......
package com.mortals.xhx.module.hotword.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.hotword.dao.HotwordDao;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import com.mortals.xhx.module.hotword.service.HotwordService;
import org.springframework.stereotype.Service;
/**
* HotwordService
* 热门词汇业务 service实现
*
* @author zxfei
* @date 2022-11-17
* @date 2022-12-06
*/
@Service("hotwordService")
public class HotwordServiceImpl extends AbstractCRUDServiceImpl<HotwordDao, HotwordEntity, Long> implements HotwordService {
}
\ No newline at end of file
package com.mortals.xhx.module.hotword.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import com.mortals.xhx.module.hotword.model.HotwordQuery;
import com.mortals.xhx.module.hotword.service.HotwordService;
import com.mortals.xhx.common.code.NewsSourceEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.hotword.model.HotwordEntity;
import com.mortals.xhx.module.hotword.service.HotwordService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 热门词汇业务
*
* @author zxfei
* @date 2022-11-17
*/
* 热门词汇业务
*
* @author zxfei
* @date 2022-12-06
*/
@RestController
@RequestMapping("hotword")
public class HotwordController extends BaseCRUDJsonBodyMappingController<HotwordService,HotwordEntity,Long> {
@Autowired
private ParamService paramService;
public class HotwordController extends BaseCRUDJsonBodyMappingController<HotwordService, HotwordEntity, Long> {
public HotwordController(){
super.setModuleDesc( "热门词汇业务");
public HotwordController() {
super.setModuleDesc("热门词汇业务");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "newsSource", NewsSourceEnum.getEnumMap());
super.init(model, context);
}
@Override
protected void saveBefore(HotwordEntity entity, Map<String, Object> model, Context context) throws AppException {
HotwordEntity hotwordEntity = this.service.selectOne(new HotwordQuery().siteId(entity.getSiteId()));
if(!ObjectUtils.isEmpty(hotwordEntity)){
entity.setId(hotwordEntity.getId());
}
super.saveBefore(entity, model, context);
}
}
\ No newline at end of file
......@@ -75,7 +75,6 @@ import java.util.stream.Collectors;
@Service("matterDatumService")
public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumDao, MatterDatumEntity, Long> implements MatterDatumService {
@Value("${upload.path}")
private String filePath;
@Value("${upload.url:http://localhost:17215/fsm/file/commonupload?prePath=/file/uploadfile}")
......@@ -83,8 +82,6 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
@Autowired
private UploadService uploadService;
@Autowired
private ParamService paramService;
@Autowired
private MatterService matterService;
@Autowired
......@@ -496,8 +493,6 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
// for (int i = 0; i <strings.length ; i++) {
// System.out.println(strings[i]);
// }
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.hotword.dao.ibatis.HotwordDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="HotwordEntity" id="HotwordEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="hotwords" column="hotwords" />
<result property="printDisplay" column="printDisplay" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="hotwords" column="hotwords" />
<result property="printDisplay" column="printDisplay" />
<result property="newsSource" column="newsSource" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('hotwords') or colPickMode == 1 and data.containsKey('hotwords')))">
a.hotwords,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('printDisplay') or colPickMode == 1 and data.containsKey('printDisplay')))">
a.printDisplay,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('hotwords') or colPickMode == 1 and data.containsKey('hotwords')))">
a.hotwords,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('printDisplay') or colPickMode == 1 and data.containsKey('printDisplay')))">
a.printDisplay,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('newsSource') or colPickMode == 1 and data.containsKey('newsSource')))">
a.newsSource,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="HotwordEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_hotword
(siteId,hotwords,printDisplay,createTime,createUserId,updateTime)
(siteId,hotwords,printDisplay,newsSource,createTime,createUserId,updateTime)
VALUES
(#{siteId},#{hotwords},#{printDisplay},#{createTime},#{createUserId},#{updateTime})
(#{siteId},#{hotwords},#{printDisplay},#{newsSource},#{createTime},#{createUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_hotword
(siteId,hotwords,printDisplay,createTime,createUserId,updateTime)
(siteId,hotwords,printDisplay,newsSource,createTime,createUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.hotwords},#{item.printDisplay},#{item.createTime},#{item.createUserId},#{item.updateTime})
(#{item.siteId},#{item.hotwords},#{item.printDisplay},#{item.newsSource},#{item.createTime},#{item.createUserId},#{item.updateTime})
</foreach>
</insert>
......@@ -81,6 +85,12 @@
<if test="(colPickMode==0 and data.containsKey('printDisplayIncrement')) or (colPickMode==1 and !data.containsKey('printDisplayIncrement'))">
a.printDisplay=ifnull(a.printDisplay,0) + #{data.printDisplayIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('newsSource')) or (colPickMode==1 and !data.containsKey('newsSource'))">
a.newsSource=#{data.newsSource},
</if>
<if test="(colPickMode==0 and data.containsKey('newsSourceIncrement')) or (colPickMode==1 and !data.containsKey('newsSourceIncrement'))">
a.newsSource=ifnull(a.newsSource,0) + #{data.newsSourceIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
......@@ -105,63 +115,75 @@
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_hotword as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<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>
</choose>
</foreach>
</trim>
<trim prefix="hotwords=(case" suffix="ELSE hotwords end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('hotwords')) or (colPickMode==1 and !item.containsKey('hotwords'))">
when a.id=#{item.id} then #{item.hotwords}
</if>
</foreach>
</trim>
<trim prefix="printDisplay=(case" suffix="ELSE printDisplay end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('printDisplay')) or (colPickMode==1 and !item.containsKey('printDisplay'))">
when a.id=#{item.id} then #{item.printDisplay}
</when>
<when test="(colPickMode==0 and item.containsKey('printDisplayIncrement')) or (colPickMode==1 and !item.containsKey('printDisplayIncrement'))">
when a.id=#{item.id} then ifnull(a.printDisplay,0) + #{item.printDisplayIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<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>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<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>
</choose>
</foreach>
</trim>
<trim prefix="hotwords=(case" suffix="ELSE hotwords end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('hotwords')) or (colPickMode==1 and !item.containsKey('hotwords'))">
when a.id=#{item.id} then #{item.hotwords}
</if>
</foreach>
</trim>
<trim prefix="printDisplay=(case" suffix="ELSE printDisplay end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('printDisplay')) or (colPickMode==1 and !item.containsKey('printDisplay'))">
when a.id=#{item.id} then #{item.printDisplay}
</when>
<when test="(colPickMode==0 and item.containsKey('printDisplayIncrement')) or (colPickMode==1 and !item.containsKey('printDisplayIncrement'))">
when a.id=#{item.id} then ifnull(a.printDisplay,0) + #{item.printDisplayIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="newsSource=(case" suffix="ELSE newsSource end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('newsSource')) or (colPickMode==1 and !item.containsKey('newsSource'))">
when a.id=#{item.id} then #{item.newsSource}
</when>
<when test="(colPickMode==0 and item.containsKey('newsSourceIncrement')) or (colPickMode==1 and !item.containsKey('newsSourceIncrement'))">
when a.id=#{item.id} then ifnull(a.newsSource,0) + #{item.newsSourceIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<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>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
......@@ -278,183 +300,209 @@
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
<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>
<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.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
<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>
<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('hotwords')">
<if test="conditionParamRef.hotwords != null and conditionParamRef.hotwords != ''">
${_conditionType_} a.hotwords like #{${_conditionParam_}.hotwords}
<if test="conditionParamRef.containsKey('hotwords')">
<if test="conditionParamRef.hotwords != null and conditionParamRef.hotwords != ''">
${_conditionType_} a.hotwords like #{${_conditionParam_}.hotwords}
</if>
<if test="conditionParamRef.hotwords == null">
${_conditionType_} a.hotwords is null
</if>
</if>
<if test="conditionParamRef.containsKey('hotwordsList')">
${_conditionType_} a.hotwords in
<foreach collection="conditionParamRef.hotwordsList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('printDisplay')">
<if test="conditionParamRef.printDisplay != null ">
${_conditionType_} a.printDisplay = #{${_conditionParam_}.printDisplay}
</if>
<if test="conditionParamRef.printDisplay == null">
${_conditionType_} a.printDisplay is null
</if>
</if>
<if test="conditionParamRef.containsKey('printDisplayList')">
${_conditionType_} a.printDisplay in
<foreach collection="conditionParamRef.printDisplayList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('printDisplayStart') and conditionParamRef.printDisplayStart != null">
${_conditionType_} a.printDisplay <![CDATA[ >= ]]> #{${_conditionParam_}.printDisplayStart}
</if>
<if test="conditionParamRef.containsKey('printDisplayEnd') and conditionParamRef.printDisplayEnd != null">
${_conditionType_} a.printDisplay <![CDATA[ <= ]]> #{${_conditionParam_}.printDisplayEnd}
</if>
<if test="conditionParamRef.containsKey('newsSource')">
<if test="conditionParamRef.newsSource != null ">
${_conditionType_} a.newsSource = #{${_conditionParam_}.newsSource}
</if>
<if test="conditionParamRef.newsSource == null">
${_conditionType_} a.newsSource is null
</if>
</if>
<if test="conditionParamRef.hotwords == null">
${_conditionType_} a.hotwords is null
<if test="conditionParamRef.containsKey('newsSourceList')">
${_conditionType_} a.newsSource in
<foreach collection="conditionParamRef.newsSourceList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</if>
<if test="conditionParamRef.containsKey('hotwordsList')">
${_conditionType_} a.hotwords in
<foreach collection="conditionParamRef.hotwordsList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('printDisplay')">
<if test="conditionParamRef.printDisplay != null ">
${_conditionType_} a.printDisplay = #{${_conditionParam_}.printDisplay}
<if test="conditionParamRef.containsKey('newsSourceStart') and conditionParamRef.newsSourceStart != null">
${_conditionType_} a.newsSource <![CDATA[ >= ]]> #{${_conditionParam_}.newsSourceStart}
</if>
<if test="conditionParamRef.printDisplay == null">
${_conditionType_} a.printDisplay is null
<if test="conditionParamRef.containsKey('newsSourceEnd') and conditionParamRef.newsSourceEnd != null">
${_conditionType_} a.newsSource <![CDATA[ <= ]]> #{${_conditionParam_}.newsSourceEnd}
</if>
</if>
<if test="conditionParamRef.containsKey('printDisplayList')">
${_conditionType_} a.printDisplay in
<foreach collection="conditionParamRef.printDisplayList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('printDisplayStart') and conditionParamRef.printDisplayStart != null">
${_conditionType_} a.printDisplay <![CDATA[ >= ]]> #{${_conditionParam_}.printDisplayStart}
</if>
<if test="conditionParamRef.containsKey('printDisplayEnd') and conditionParamRef.printDisplayEnd != null">
${_conditionType_} a.printDisplay <![CDATA[ <= ]]> #{${_conditionParam_}.printDisplayEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</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>
<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.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
<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>
</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 id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('hotwords')">
a.hotwords
<if test='orderCol.hotwords != null and "DESC".equalsIgnoreCase(orderCol.hotwords)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('printDisplay')">
a.printDisplay
<if test='orderCol.printDisplay != null and "DESC".equalsIgnoreCase(orderCol.printDisplay)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('hotwords')">
a.hotwords
<if test='orderCol.hotwords != null and "DESC".equalsIgnoreCase(orderCol.hotwords)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('printDisplay')">
a.printDisplay
<if test='orderCol.printDisplay != null and "DESC".equalsIgnoreCase(orderCol.printDisplay)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('newsSource')">
a.newsSource
<if test='orderCol.newsSource != null and "DESC".equalsIgnoreCase(orderCol.newsSource)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</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