From 04656ebd6d0000dd4653eaf000bf73cb2bd4f521 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期四, 17 十一月 2022 11:14:14 +0800 Subject: [PATCH] 数据库修改 --- ycl-platform/src/main/java/com/ycl/service/NewsInformationService.java | 30 ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java | 38 ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java | 157 ycl-platform/src/main/java/com/ycl/service/NewsColumnInformationService.java | 30 ycl-platform/src/main/java/com/ycl/controller/NewsChannelColumnController.java | 184 - ycl-platform/src/main/resources/mapper/NewsDepartmentDao.xml | 29 ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java | 38 ycl-platform/src/main/java/com/ycl/controller/NewsDepartmentController.java | 88 ycl-platform/src/main/java/com/ycl/controller/NewsColumnInformationController.java | 176 logs/ycl/platform/normal/2022-11-17/0.log | 40 ycl-platform/src/main/java/com/ycl/service/impl/NewsAdminServiceImpl.java | 19 ycl-platform/src/main/java/com/ycl/entity/NewsChannelColumn.java | 114 ycl-platform/src/main/java/com/ycl/dao/NewsColumnInformationDao.java | 35 ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java | 94 ycl-platform/src/main/java/com/ycl/entity/NewsDuty.java | 155 ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java | 38 ycl-platform/src/main/java/com/ycl/controller/NewsColumnController.java | 176 ycl-platform/src/main/java/com/ycl/entity/NewsAdmin.java | 147 + ycl-platform/src/main/java/com/ycl/entity/NewsIp.java | 114 ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java | 88 ycl-platform/src/main/java/com/ycl/dao/NewsInformationDao.java | 35 ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml | 60 ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java | 38 ycl-platform/src/main/resources/mapper/NewsInformationDao.xml | 71 ycl-platform/src/main/java/com/ycl/controller/NewsChannelController.java | 176 ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java | 38 ycl-platform/src/main/java/com/ycl/entity/NewsChannel.java | 135 .idea/compiler.xml | 40 ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml | 64 ycl-platform/src/main/java/com/ycl/dao/NewsDutyDao.java | 35 ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml | 60 ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java | 38 ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentServiceImpl.java | 19 ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java | 40 ycl-platform/src/main/java/com/ycl/dao/NewsIpDao.java | 35 ycl-platform/src/main/java/com/ycl/entity/NewsColumnInformation.java | 114 ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java | 38 .idea/vcs.xml | 6 ycl-platform/src/main/resources/mapper/NewsIpDao.xml | 60 ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java | 32 ycl-platform/src/main/resources/mapper/NewsColumnDao.xml | 58 ycl-platform/src/main/resources/mapper/NewsDutyDao.xml | 64 .idea/easyCodeTableSetting.xml | 1019 +++++----- ycl-platform/src/main/java/com/ycl/dao/NewsChannelDao.java | 35 ycl-platform/src/main/java/com/ycl/dao/NewsChannelColumnDao.java | 35 ycl-platform/src/main/java/com/ycl/entity/NewsDepartment.java | 47 ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java | 225 +- ycl-platform/src/main/java/com/ycl/service/NewsColumnService.java | 30 ycl-platform/src/main/java/com/ycl/controller/NewsDutyController.java | 176 ycl-platform/src/main/java/com/ycl/controller/NewsInformationController.java | 176 ycl-platform/src/main/resources/mapper/NewsAdminDao.xml | 39 ycl-platform/src/main/java/com/ycl/dao/NewsAdminDao.java | 35 ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java | 35 ycl-platform/src/main/java/com/ycl/service/NewsChannelColumnService.java | 30 ycl-platform/src/main/java/com/ycl/service/NewsDepartmentService.java | 15 logs/ycl/platform/error/2022-11-17/0.log | 0 ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java | 176 ycl-platform/src/main/java/com/ycl/service/NewsChannelService.java | 30 ycl-platform/src/main/java/com/ycl/service/NewsAdminService.java | 15 ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java | 178 ycl-platform/src/main/java/com/ycl/dao/NewsColumnDao.java | 35 ycl-platform/src/main/java/com/ycl/service/NewsIpService.java | 30 ycl-platform/src/main/java/com/ycl/dao/NewsPoliceDao.java | 36 ycl-platform/src/main/resources/mapper/NewsChannelDao.xml | 62 ycl-platform/src/main/java/com/ycl/service/NewsDutyService.java | 30 65 files changed, 3,209 insertions(+), 2,326 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 9e701e3..5c2e59d 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,21 +1,21 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="CompilerConfiguration"> - <annotationProcessing> - <profile default="true" name="Default" enabled="true" /> - <profile name="Maven default annotation processors profile" enabled="true"> - <sourceOutputDir name="target/generated-sources/annotations" /> - <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> - <outputRelativeToContentRoot value="true" /> - <module name="ycl-common" /> - <module name="ycl-platform" /> - </profile> - </annotationProcessing> - </component> - <component name="JavacSettings"> - <option name="ADDITIONAL_OPTIONS_OVERRIDE"> - <module name="ycl-common" options="-parameters" /> - <module name="ycl-platform" options="-parameters" /> - </option> - </component> +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <annotationProcessing> + <profile default="true" name="Default" enabled="true" /> + <profile name="Maven default annotation processors profile" enabled="true"> + <sourceOutputDir name="target/generated-sources/annotations" /> + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> + <outputRelativeToContentRoot value="true" /> + <module name="ycl-platform" /> + <module name="ycl-common" /> + </profile> + </annotationProcessing> + </component> + <component name="JavacSettings"> + <option name="ADDITIONAL_OPTIONS_OVERRIDE"> + <module name="ycl-common" options="-parameters" /> + <module name="ycl-platform" options="-parameters" /> + </option> + </component> </project> \ No newline at end of file diff --git a/.idea/easyCodeTableSetting.xml b/.idea/easyCodeTableSetting.xml index 85ed0c7..6c1548c 100644 --- a/.idea/easyCodeTableSetting.xml +++ b/.idea/easyCodeTableSetting.xml @@ -1,520 +1,501 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="EasyCodeTableSetting"> - <option name="tableInfoMap"> - <map> - <entry key="news_website.news_admin"> - <value> - <TableInfoDTO> - <option name="comment" value="鍚庡彴鐢ㄦ埛琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Long" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鐢ㄦ埛濮撳悕" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="username" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="password" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="澶村儚" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="icon" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="閭" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="email" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鐢ㄦ埛鍚�(绯荤粺榛樿鐢熸垚锛�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="nickName" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="澶囨敞淇℃伅" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="note" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏈�鍚庣櫥褰曟椂闂�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="loginTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="甯愬彿鍚敤鐘舵�侊細0->绂佺敤锛�1->鍚敤" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="status" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="mac鍦板潃" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="macAddress" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value=" 0->濂筹紝1->鐢�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="sex" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏄惁鍏氬憳 0->鍚︼紝1->鏄�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="isDy" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鑱屽姟" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="jobTitle" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="ip鍦板潃" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="ipAddress" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鐢ㄦ埛绫诲瀷" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="userType" /> - <option name="type" value="java.lang.Object" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="搴ф満/鍒嗘満" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="zj" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鎵嬫満" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="mobile" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏄惁涓虹綉鏍肩鐞嗗憳锛�0->涓嶆槸锛�1->鏄�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="isGrid" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsAdmin" /> - <option name="preName" value="" /> - <option name="saveModelName" value="" /> - <option name="savePackageName" value="" /> - <option name="savePath" value="" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_channel"> - <value> - <TableInfoDTO> - <option name="comment" value="棰戦亾琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="comment" value="id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="棰戦亾鍚嶇О" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="name" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="棰戦亾缂栫爜ps鍚嶇О棣栧瓧姣�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="code" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsChannel" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="MybatisPlus-Mixed" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_channel_column"> - <value> - <TableInfoDTO> - <option name="comment" value="棰戦亾鏍忕洰涓棿琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="棰戦亾id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="channelId" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏍忕洰id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="columnId" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsChannelColumn" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_column"> - <value> - <TableInfoDTO> - <option name="comment" value="鏍忕洰琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="comment" value="id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Object" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏍忕洰鍚嶇О" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="name" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsColumn" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_column_information"> - <value> - <TableInfoDTO> - <option name="comment" value="鏍忕洰棰戦亾涓棿琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏍忕洰id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="columnId" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍜ㄨid" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="informationId" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsColumnInformation" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_duty"> - <value> - <TableInfoDTO> - <option name="comment" value="鍊肩彮琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍊肩彮浜�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="name" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍊肩彮鑱屼綅" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="jobTitle" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍊肩彮鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="dutyTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsDuty" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_information"> - <value> - <TableInfoDTO> - <option name="comment" value="鍜ㄨ琛�" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="comment" value="id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Object" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏍囬" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="title" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍐呭" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="content" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍙戝竷鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="publishTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏄惁绛炬敹1绛炬敹0鏈鏀�" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="isSign" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="璀﹀憳id" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="sendTo" /> - <option name="type" value="java.lang.Object" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍥剧墖鍦板潃" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="imageUrl" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsInformation" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_ip"> - <value> - <TableInfoDTO> - <option name="comment" value="ip鐧藉悕鍗曡〃" /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Integer" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="ip鍦板潃" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="ipAddess" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsIp" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - <entry key="news_website.news_police"> - <value> - <TableInfoDTO> - <option name="comment" value="璀﹀憳琛� " /> - <option name="fullColumn"> - <list> - <ColumnInfoDTO> - <option name="comment" value="鑷涓婚敭" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="id" /> - <option name="type" value="java.lang.Object" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="璀﹀憳鍚嶇О" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="rname" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鍒涘缓鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="createTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="淇敼鏃堕棿" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="updateTime" /> - <option name="type" value="java.util.Date" /> - </ColumnInfoDTO> - <ColumnInfoDTO> - <option name="comment" value="鏈烘瀯鍚嶇О" /> - <option name="custom" value="false" /> - <option name="ext" value="{}" /> - <option name="name" value="organizationName" /> - <option name="type" value="java.lang.String" /> - </ColumnInfoDTO> - </list> - </option> - <option name="name" value="NewsPolice" /> - <option name="preName" value="" /> - <option name="saveModelName" value="ycl-platform" /> - <option name="savePackageName" value="com.ycl" /> - <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> - <option name="templateGroupName" value="" /> - </TableInfoDTO> - </value> - </entry> - </map> - </option> - </component> +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="EasyCodeTableSetting"> + <option name="tableInfoMap"> + <map> + <entry key="news_website.news_admin"> + <value> + <TableInfoDTO> + <option name="comment" value="鍚庡彴鐢ㄦ埛琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Long" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鐢ㄦ埛濮撳悕" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="username" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="瀵嗙爜" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="password" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="澶村儚" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="icon" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="閭" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="email" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="澶囨敞淇℃伅" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="note" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="甯愬彿鍚敤鐘舵�侊細0->绂佺敤锛�1->鍚敤" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="status" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value=" 0->濂筹紝1->鐢�" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="sex" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鎵嬫満" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="mobile" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏄惁涓虹綉鏍肩鐞嗗憳锛�0->涓嶆槸锛�1->鏄�" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="isGrid" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="閮ㄩ棬id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="newsDepartmentId" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsAdmin" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="MybatisPlus-Mixed" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_channel"> + <value> + <TableInfoDTO> + <option name="comment" value="棰戦亾琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="comment" value="id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="棰戦亾鍚嶇О" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="name" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="棰戦亾缂栫爜ps鍚嶇О棣栧瓧姣�" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="code" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsChannel" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="MybatisPlus-Mixed" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_channel_column"> + <value> + <TableInfoDTO> + <option name="comment" value="棰戦亾鏍忕洰涓棿琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="棰戦亾id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="channelId" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏍忕洰id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="columnId" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsChannelColumn" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_column"> + <value> + <TableInfoDTO> + <option name="comment" value="鏍忕洰琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="comment" value="id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Object" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏍忕洰鍚嶇О" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="name" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsColumn" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_column_information"> + <value> + <TableInfoDTO> + <option name="comment" value="鏍忕洰棰戦亾涓棿琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏍忕洰id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="columnId" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍜ㄨid" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="informationId" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsColumnInformation" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_department"> + <value> + <TableInfoDTO> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="閮ㄩ棬鍚嶇О" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="deptname" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsDepartment" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="MybatisPlus-Mixed" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_duty"> + <value> + <TableInfoDTO> + <option name="comment" value="鍊肩彮琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍊肩彮浜�" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="name" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍊肩彮鑱屼綅" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="jobTitle" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍊肩彮鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="dutyTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsDuty" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_information"> + <value> + <TableInfoDTO> + <option name="comment" value="鍜ㄨ琛�" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="comment" value="id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Object" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏍囬" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="title" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍐呭" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="content" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍙戝竷鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="publishTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏄惁绛炬敹1绛炬敹0鏈鏀�" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="isSign" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="璀﹀憳id" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="sendTo" /> + <option name="type" value="java.lang.Object" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍥剧墖鍦板潃" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="imageUrl" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsInformation" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_ip"> + <value> + <TableInfoDTO> + <option name="comment" value="ip鐧藉悕鍗曡〃" /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Integer" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="ip鍦板潃" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="ipAddess" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsIp" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + <entry key="news_website.news_police"> + <value> + <TableInfoDTO> + <option name="comment" value="璀﹀憳琛� " /> + <option name="fullColumn"> + <list> + <ColumnInfoDTO> + <option name="comment" value="鑷涓婚敭" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="id" /> + <option name="type" value="java.lang.Object" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="璀﹀憳鍚嶇О" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="rname" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鍒涘缓鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="createTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="淇敼鏃堕棿" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="updateTime" /> + <option name="type" value="java.util.Date" /> + </ColumnInfoDTO> + <ColumnInfoDTO> + <option name="comment" value="鏈烘瀯鍚嶇О" /> + <option name="custom" value="false" /> + <option name="ext" value="{}" /> + <option name="name" value="organizationName" /> + <option name="type" value="java.lang.String" /> + </ColumnInfoDTO> + </list> + </option> + <option name="name" value="NewsPolice" /> + <option name="preName" value="" /> + <option name="saveModelName" value="ycl-platform" /> + <option name="savePackageName" value="com.ycl" /> + <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> + <option name="templateGroupName" value="" /> + </TableInfoDTO> + </value> + </entry> + </map> + </option> + </component> </project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..c8397c9 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/logs/ycl/platform/error/2022-11-17/0.log b/logs/ycl/platform/error/2022-11-17/0.log new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/logs/ycl/platform/error/2022-11-17/0.log diff --git a/logs/ycl/platform/normal/2022-11-17/0.log b/logs/ycl/platform/normal/2022-11-17/0.log new file mode 100644 index 0000000..08bdc88 --- /dev/null +++ b/logs/ycl/platform/normal/2022-11-17/0.log @@ -0,0 +1,40 @@ +10:02:33.243 [background-preinit] INFO o.h.v.i.u.Version - HV000001: Hibernate Validator 6.2.3.Final +10:02:33.257 [main] INFO c.y.PlatformApplication - Starting PlatformApplication using Java 1.8.0_141 on ONB9MJU0KA3P0SP with PID 16036 (D:\ideaproject\ycl-airport-server\ycl-platform\target\classes started by Administrator in D:\ideaproject\ycl-airport-server) +10:02:33.257 [main] INFO c.y.PlatformApplication - Starting PlatformApplication using Java 1.8.0_141 on ONB9MJU0KA3P0SP with PID 16036 (D:\ideaproject\ycl-airport-server\ycl-platform\target\classes started by Administrator in D:\ideaproject\ycl-airport-server) +10:02:33.258 [main] DEBUG c.y.PlatformApplication - Running with Spring Boot v2.7.0, Spring v5.3.20 +10:02:33.258 [main] DEBUG c.y.PlatformApplication - Running with Spring Boot v2.7.0, Spring v5.3.20 +10:02:33.258 [main] INFO c.y.PlatformApplication - The following 1 profile is active: "dev" +10:02:33.258 [main] INFO c.y.PlatformApplication - The following 1 profile is active: "dev" +10:02:34.153 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode! +10:02:34.155 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode. +10:02:34.196 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 18 ms. Found 0 Redis repository interfaces. +10:02:34.648 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'beanPostProcessorConfig' of type [com.ycl.config.BeanPostProcessorConfig$$EnhancerBySpringCGLIB$$b9084885] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +10:02:34.901 [main] INFO o.s.b.w.e.t.TomcatWebServer - Tomcat initialized with port(s): 8082 (http) +10:02:34.910 [main] INFO o.a.c.h.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8082"] +10:02:34.911 [main] INFO o.a.c.c.StandardService - Starting service [Tomcat] +10:02:34.911 [main] INFO o.a.c.c.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.63] +10:02:35.032 [main] INFO o.a.c.c.C.[.[.[/air] - Initializing Spring embedded WebApplicationContext +10:02:35.032 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1735 ms +10:02:35.107 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource +10:02:35.200 [main] INFO c.a.d.p.DruidDataSource - {dataSource-1} inited +10:02:37.711 [main] INFO o.a.c.h.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8082"] +10:02:37.735 [main] INFO o.s.b.w.e.t.TomcatWebServer - Tomcat started on port(s): 8082 (http) with context path '/air' +10:02:38.191 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - Unable to interpret the implicit parameter configuration with dataType: Array, dataTypeClass: class java.lang.Void +10:02:38.231 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - Unable to interpret the implicit parameter configuration with dataType: Array, dataTypeClass: class java.lang.Void +10:02:38.231 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - Unable to interpret the implicit parameter configuration with dataType: Integer, dataTypeClass: class java.lang.Void +10:02:38.346 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - Unable to interpret the implicit parameter configuration with dataType: Array, dataTypeClass: class java.lang.Void +10:02:38.346 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - Unable to interpret the implicit parameter configuration with dataType: Integer, dataTypeClass: class java.lang.Void +10:02:38.372 [main] INFO c.y.PlatformApplication - Started PlatformApplication in 5.657 seconds (JVM running for 6.632) +10:02:38.372 [main] INFO c.y.PlatformApplication - Started PlatformApplication in 5.657 seconds (JVM running for 6.632) +10:02:38.374 [main] INFO c.y.PlatformApplication - +---------------------------------------------------------- + 搴旂敤 'sccg-platform' 杩愯鎴愬姛! 璁块棶杩炴帴: + Swagger鏂囨。: http://192.168.3.185:8082/air/doc.html + 鏁版嵁搴撶洃鎺�: http://127.0.0.1:8082/druid +---------------------------------------------------------- +10:02:38.374 [main] INFO c.y.PlatformApplication - +---------------------------------------------------------- + 搴旂敤 'sccg-platform' 杩愯鎴愬姛! 璁块棶杩炴帴: + Swagger鏂囨。: http://192.168.3.185:8082/air/doc.html + 鏁版嵁搴撶洃鎺�: http://127.0.0.1:8082/druid +---------------------------------------------------------- diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java new file mode 100644 index 0000000..f6bad66 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsAdminController.java @@ -0,0 +1,88 @@ +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsAdmin; +import com.ycl.service.NewsAdminService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 鍚庡彴鐢ㄦ埛琛�(NewsAdmin)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsAdmin") +public class NewsAdminController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsAdminService newsAdminService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsAdmin 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsAdmin> page, NewsAdmin newsAdmin) { + return success(this.newsAdminService.page(page, new QueryWrapper<>(newsAdmin))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsAdminService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsAdmin 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsAdmin newsAdmin) { + return success(this.newsAdminService.save(newsAdmin)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsAdmin 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsAdmin newsAdmin) { + return success(this.newsAdminService.updateById(newsAdmin)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsAdminService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsChannelColumnController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsChannelColumnController.java index c5a38c5..63fe19b 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsChannelColumnController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsChannelColumnController.java @@ -1,96 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsChannelColumn; -import com.ycl.service.NewsChannelColumnService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsChannelColumn") -@Api(tags = "棰戦亾鏍忕洰") -public class NewsChannelColumnController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsChannelColumnService newsChannelColumnService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsChannelColumn 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - @ApiOperation(value = "鏌ユ壘鍏ㄩ儴") - public R selectAll(Page<NewsChannelColumn> page, NewsChannelColumn newsChannelColumn) { - return success(this.newsChannelColumnService.page(page, new QueryWrapper<>(newsChannelColumn))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @ApiOperation(value = "鎸塱d鏌ユ壘") - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsChannelColumnService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsChannelColumn 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @ApiOperation(value = "鏂板") - @PostMapping - public R insert(@RequestBody NewsChannelColumn newsChannelColumn) { - return success(this.newsChannelColumnService.save(newsChannelColumn)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsChannelColumn 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @ApiOperation(value = "淇敼") - @PutMapping - public R update(@RequestBody NewsChannelColumn newsChannelColumn) { - return success(this.newsChannelColumnService.updateById(newsChannelColumn)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @ApiOperation(value = "鍒犻櫎") - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsChannelColumnService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsChannelColumn; +import com.ycl.service.NewsChannelColumnService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsChannelColumn") +public class NewsChannelColumnController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsChannelColumnService newsChannelColumnService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsChannelColumn 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsChannelColumn> page, NewsChannelColumn newsChannelColumn) { + return success(this.newsChannelColumnService.page(page, new QueryWrapper<>(newsChannelColumn))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsChannelColumnService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsChannelColumn 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsChannelColumn newsChannelColumn) { + return success(this.newsChannelColumnService.save(newsChannelColumn)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsChannelColumn 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsChannelColumn newsChannelColumn) { + return success(this.newsChannelColumnService.updateById(newsChannelColumn)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsChannelColumnService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsChannelController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsChannelController.java index 0431fdd..e08700b 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsChannelController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsChannelController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsChannel; -import com.ycl.service.NewsChannelService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 棰戦亾琛�(NewsChannel)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsChannel") -public class NewsChannelController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsChannelService newsChannelService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsChannel 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsChannel> page, NewsChannel newsChannel) { - return success(this.newsChannelService.page(page, new QueryWrapper<>(newsChannel))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsChannelService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsChannel 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsChannel newsChannel) { - return success(this.newsChannelService.save(newsChannel)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsChannel 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsChannel newsChannel) { - return success(this.newsChannelService.updateById(newsChannel)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsChannelService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsChannel; +import com.ycl.service.NewsChannelService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsChannel") +public class NewsChannelController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsChannelService newsChannelService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsChannel 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsChannel> page, NewsChannel newsChannel) { + return success(this.newsChannelService.page(page, new QueryWrapper<>(newsChannel))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsChannelService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsChannel 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsChannel newsChannel) { + return success(this.newsChannelService.save(newsChannel)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsChannel 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsChannel newsChannel) { + return success(this.newsChannelService.updateById(newsChannel)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsChannelService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsColumnController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsColumnController.java index f517084..cd09466 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsColumnController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsColumnController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsColumn; -import com.ycl.service.NewsColumnService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 鏍忕洰琛�(NewsColumn)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsColumn") -public class NewsColumnController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsColumnService newsColumnService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsColumn 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsColumn> page, NewsColumn newsColumn) { - return success(this.newsColumnService.page(page, new QueryWrapper<>(newsColumn))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsColumnService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsColumn 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsColumn newsColumn) { - return success(this.newsColumnService.save(newsColumn)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsColumn 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsColumn newsColumn) { - return success(this.newsColumnService.updateById(newsColumn)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsColumnService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsColumn; +import com.ycl.service.NewsColumnService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 鏍忕洰琛�(NewsColumn)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsColumn") +public class NewsColumnController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsColumnService newsColumnService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsColumn 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsColumn> page, NewsColumn newsColumn) { + return success(this.newsColumnService.page(page, new QueryWrapper<>(newsColumn))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsColumnService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsColumn 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsColumn newsColumn) { + return success(this.newsColumnService.save(newsColumn)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsColumn 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsColumn newsColumn) { + return success(this.newsColumnService.updateById(newsColumn)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsColumnService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsColumnInformationController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsColumnInformationController.java index 0dbdeea..f4595cc 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsColumnInformationController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsColumnInformationController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsColumnInformation; -import com.ycl.service.NewsColumnInformationService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 鏍忕洰棰戦亾涓棿琛�(NewsColumnInformation)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsColumnInformation") -public class NewsColumnInformationController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsColumnInformationService newsColumnInformationService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsColumnInformation 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsColumnInformation> page, NewsColumnInformation newsColumnInformation) { - return success(this.newsColumnInformationService.page(page, new QueryWrapper<>(newsColumnInformation))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsColumnInformationService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsColumnInformation 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsColumnInformation newsColumnInformation) { - return success(this.newsColumnInformationService.save(newsColumnInformation)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsColumnInformation 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsColumnInformation newsColumnInformation) { - return success(this.newsColumnInformationService.updateById(newsColumnInformation)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsColumnInformationService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsColumnInformation; +import com.ycl.service.NewsColumnInformationService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 鏍忕洰鍜ㄨ涓棿琛�(NewsColumnInformation)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsColumnInformation") +public class NewsColumnInformationController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsColumnInformationService newsColumnInformationService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsColumnInformation 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsColumnInformation> page, NewsColumnInformation newsColumnInformation) { + return success(this.newsColumnInformationService.page(page, new QueryWrapper<>(newsColumnInformation))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsColumnInformationService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsColumnInformation 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsColumnInformation newsColumnInformation) { + return success(this.newsColumnInformationService.save(newsColumnInformation)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsColumnInformation 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsColumnInformation newsColumnInformation) { + return success(this.newsColumnInformationService.updateById(newsColumnInformation)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsColumnInformationService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsDepartmentController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsDepartmentController.java new file mode 100644 index 0000000..acde8f7 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsDepartmentController.java @@ -0,0 +1,88 @@ +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsDepartment; +import com.ycl.service.NewsDepartmentService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 閮ㄩ棬锛堟満鏋勶級琛�(NewsDepartment)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsDepartment") +public class NewsDepartmentController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsDepartmentService newsDepartmentService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsDepartment 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsDepartment> page, NewsDepartment newsDepartment) { + return success(this.newsDepartmentService.page(page, new QueryWrapper<>(newsDepartment))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsDepartmentService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsDepartment 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsDepartment newsDepartment) { + return success(this.newsDepartmentService.save(newsDepartment)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsDepartment 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsDepartment newsDepartment) { + return success(this.newsDepartmentService.updateById(newsDepartment)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsDepartmentService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsDutyController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsDutyController.java index aec0378..6540bfa 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsDutyController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsDutyController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsDuty; -import com.ycl.service.NewsDutyService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 鍊肩彮琛�(NewsDuty)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsDuty") -public class NewsDutyController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsDutyService newsDutyService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsDuty 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsDuty> page, NewsDuty newsDuty) { - return success(this.newsDutyService.page(page, new QueryWrapper<>(newsDuty))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsDutyService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsDuty 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsDuty newsDuty) { - return success(this.newsDutyService.save(newsDuty)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsDuty 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsDuty newsDuty) { - return success(this.newsDutyService.updateById(newsDuty)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsDutyService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsDuty; +import com.ycl.service.NewsDutyService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 鍊肩彮琛�(NewsDuty)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsDuty") +public class NewsDutyController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsDutyService newsDutyService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsDuty 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsDuty> page, NewsDuty newsDuty) { + return success(this.newsDutyService.page(page, new QueryWrapper<>(newsDuty))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsDutyService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsDuty 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsDuty newsDuty) { + return success(this.newsDutyService.save(newsDuty)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsDuty 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsDuty newsDuty) { + return success(this.newsDutyService.updateById(newsDuty)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsDutyService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsInformationController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsInformationController.java index 79096c0..8c0abd8 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsInformationController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsInformationController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsInformation; -import com.ycl.service.NewsInformationService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 鍜ㄨ琛�(NewsInformation)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsInformation") -public class NewsInformationController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsInformationService newsInformationService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsInformation 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsInformation> page, NewsInformation newsInformation) { - return success(this.newsInformationService.page(page, new QueryWrapper<>(newsInformation))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsInformationService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsInformation 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsInformation newsInformation) { - return success(this.newsInformationService.save(newsInformation)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsInformation 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsInformation newsInformation) { - return success(this.newsInformationService.updateById(newsInformation)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsInformationService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsInformation; +import com.ycl.service.NewsInformationService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 璧勮琛�(NewsInformation)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsInformation") +public class NewsInformationController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsInformationService newsInformationService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsInformation 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsInformation> page, NewsInformation newsInformation) { + return success(this.newsInformationService.page(page, new QueryWrapper<>(newsInformation))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsInformationService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsInformation 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsInformation newsInformation) { + return success(this.newsInformationService.save(newsInformation)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsInformation 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsInformation newsInformation) { + return success(this.newsInformationService.updateById(newsInformation)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsInformationService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java index 917517f..9067ed8 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsIpController.java @@ -1,88 +1,88 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsIp; -import com.ycl.service.NewsIpService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsIp") -public class NewsIpController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsIpService newsIpService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsIp 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsIp> page, NewsIp newsIp) { - return success(this.newsIpService.page(page, new QueryWrapper<>(newsIp))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsIpService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsIp 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsIp newsIp) { - return success(this.newsIpService.save(newsIp)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsIp 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsIp newsIp) { - return success(this.newsIpService.updateById(newsIp)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsIpService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsIp; +import com.ycl.service.NewsIpService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@RestController +@RequestMapping("newsIp") +public class NewsIpController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsIpService newsIpService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsIp 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsIp> page, NewsIp newsIp) { + return success(this.newsIpService.page(page, new QueryWrapper<>(newsIp))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsIpService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsIp 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsIp newsIp) { + return success(this.newsIpService.save(newsIp)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsIp 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsIp newsIp) { + return success(this.newsIpService.updateById(newsIp)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsIpService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java b/ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java index e18fc66..f135613 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java @@ -1,89 +1,89 @@ -package com.ycl.controller; - - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.api.ApiController; -import com.baomidou.mybatisplus.extension.api.R; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ycl.entity.NewsPolice; -import com.ycl.service.NewsPoliceService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.List; - -/** - * 璀﹀憳琛� -(NewsPolice)琛ㄦ帶鍒跺眰 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@RestController -@RequestMapping("newsPolice") -public class NewsPoliceController extends ApiController { - /** - * 鏈嶅姟瀵硅薄 - */ - @Resource - private NewsPoliceService newsPoliceService; - - /** - * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� - * - * @param page 鍒嗛〉瀵硅薄 - * @param newsPolice 鏌ヨ瀹炰綋 - * @return 鎵�鏈夋暟鎹� - */ - @GetMapping - public R selectAll(Page<NewsPolice> page, NewsPolice newsPolice) { - return success(this.newsPoliceService.page(page, new QueryWrapper<>(newsPolice))); - } - - /** - * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 - * - * @param id 涓婚敭 - * @return 鍗曟潯鏁版嵁 - */ - @GetMapping("{id}") - public R selectOne(@PathVariable Serializable id) { - return success(this.newsPoliceService.getById(id)); - } - - /** - * 鏂板鏁版嵁 - * - * @param newsPolice 瀹炰綋瀵硅薄 - * @return 鏂板缁撴灉 - */ - @PostMapping - public R insert(@RequestBody NewsPolice newsPolice) { - return success(this.newsPoliceService.save(newsPolice)); - } - - /** - * 淇敼鏁版嵁 - * - * @param newsPolice 瀹炰綋瀵硅薄 - * @return 淇敼缁撴灉 - */ - @PutMapping - public R update(@RequestBody NewsPolice newsPolice) { - return success(this.newsPoliceService.updateById(newsPolice)); - } - - /** - * 鍒犻櫎鏁版嵁 - * - * @param idList 涓婚敭缁撳悎 - * @return 鍒犻櫎缁撴灉 - */ - @DeleteMapping - public R delete(@RequestParam("idList") List<Long> idList) { - return success(this.newsPoliceService.removeByIds(idList)); - } -} - +package com.ycl.controller; + + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.api.ApiController; +import com.baomidou.mybatisplus.extension.api.R; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ycl.entity.NewsPolice; +import com.ycl.service.NewsPoliceService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 璀﹀憳琛� +(NewsPolice)琛ㄦ帶鍒跺眰 + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +@RestController +@RequestMapping("newsPolice") +public class NewsPoliceController extends ApiController { + /** + * 鏈嶅姟瀵硅薄 + */ + @Resource + private NewsPoliceService newsPoliceService; + + /** + * 鍒嗛〉鏌ヨ鎵�鏈夋暟鎹� + * + * @param page 鍒嗛〉瀵硅薄 + * @param newsPolice 鏌ヨ瀹炰綋 + * @return 鎵�鏈夋暟鎹� + */ + @GetMapping + public R selectAll(Page<NewsPolice> page, NewsPolice newsPolice) { + return success(this.newsPoliceService.page(page, new QueryWrapper<>(newsPolice))); + } + + /** + * 閫氳繃涓婚敭鏌ヨ鍗曟潯鏁版嵁 + * + * @param id 涓婚敭 + * @return 鍗曟潯鏁版嵁 + */ + @GetMapping("{id}") + public R selectOne(@PathVariable Serializable id) { + return success(this.newsPoliceService.getById(id)); + } + + /** + * 鏂板鏁版嵁 + * + * @param newsPolice 瀹炰綋瀵硅薄 + * @return 鏂板缁撴灉 + */ + @PostMapping + public R insert(@RequestBody NewsPolice newsPolice) { + return success(this.newsPoliceService.save(newsPolice)); + } + + /** + * 淇敼鏁版嵁 + * + * @param newsPolice 瀹炰綋瀵硅薄 + * @return 淇敼缁撴灉 + */ + @PutMapping + public R update(@RequestBody NewsPolice newsPolice) { + return success(this.newsPoliceService.updateById(newsPolice)); + } + + /** + * 鍒犻櫎鏁版嵁 + * + * @param idList 涓婚敭缁撳悎 + * @return 鍒犻櫎缁撴灉 + */ + @DeleteMapping + public R delete(@RequestParam("idList") List<Long> idList) { + return success(this.newsPoliceService.removeByIds(idList)); + } +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsAdminDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsAdminDao.java new file mode 100644 index 0000000..caa8a59 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsAdminDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsAdmin; + +/** + * 鍚庡彴鐢ㄦ埛琛�(NewsAdmin)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsAdminDao extends BaseMapper<NewsAdmin> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsAdmin> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsAdmin> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsAdmin> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsAdmin> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsChannelColumnDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsChannelColumnDao.java new file mode 100644 index 0000000..7efc635 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsChannelColumnDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsChannelColumn; + +/** + * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsChannelColumnDao extends BaseMapper<NewsChannelColumn> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsChannelColumn> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsChannelColumn> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsChannelColumn> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsChannelColumn> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsChannelDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsChannelDao.java new file mode 100644 index 0000000..e8bb4b6 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsChannelDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsChannel; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsChannelDao extends BaseMapper<NewsChannel> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsChannel> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsChannel> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsChannel> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsChannel> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsColumnDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsColumnDao.java new file mode 100644 index 0000000..126cf98 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsColumnDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsColumn; + +/** + * 鏍忕洰琛�(NewsColumn)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsColumnDao extends BaseMapper<NewsColumn> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsColumn> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsColumn> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsColumn> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsColumn> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsColumnInformationDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsColumnInformationDao.java new file mode 100644 index 0000000..ecc78fe --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsColumnInformationDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsColumnInformation; + +/** + * 鏍忕洰鍜ㄨ涓棿琛�(NewsColumnInformation)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsColumnInformationDao extends BaseMapper<NewsColumnInformation> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsColumnInformation> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsColumnInformation> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsColumnInformation> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsColumnInformation> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java new file mode 100644 index 0000000..01035a3 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsDepartment; + +/** + * 閮ㄩ棬锛堟満鏋勶級琛�(NewsDepartment)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsDepartmentDao extends BaseMapper<NewsDepartment> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsDepartment> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsDepartment> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsDepartment> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsDepartment> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsDutyDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsDutyDao.java new file mode 100644 index 0000000..c6ee4a3 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsDutyDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsDuty; + +/** + * 鍊肩彮琛�(NewsDuty)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsDutyDao extends BaseMapper<NewsDuty> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsDuty> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsDuty> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsDuty> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsDuty> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsInformationDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsInformationDao.java new file mode 100644 index 0000000..5199fb3 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsInformationDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsInformation; + +/** + * 璧勮琛�(NewsInformation)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsInformationDao extends BaseMapper<NewsInformation> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsInformation> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsInformation> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsInformation> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsInformation> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsIpDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsIpDao.java new file mode 100644 index 0000000..1fa5408 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsIpDao.java @@ -0,0 +1,35 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsIp; + +/** + * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsIpDao extends BaseMapper<NewsIp> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsIp> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsIp> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsIp> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsIp> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/dao/NewsPoliceDao.java b/ycl-platform/src/main/java/com/ycl/dao/NewsPoliceDao.java new file mode 100644 index 0000000..5b59186 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/dao/NewsPoliceDao.java @@ -0,0 +1,36 @@ +package com.ycl.dao; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ycl.entity.NewsPolice; + +/** + * 璀﹀憳琛� +(NewsPolice)琛ㄦ暟鎹簱璁块棶灞� + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +public interface NewsPoliceDao extends BaseMapper<NewsPolice> { + +/** +* 鎵归噺鏂板鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsPolice> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +*/ +int insertBatch(@Param("entities") List<NewsPolice> entities); + +/** +* 鎵归噺鏂板鎴栨寜涓婚敭鏇存柊鏁版嵁锛圡yBatis鍘熺敓foreach鏂规硶锛� +* +* @param entities List<NewsPolice> 瀹炰緥瀵硅薄鍒楄〃 +* @return 褰卞搷琛屾暟 +* @throws org.springframework.jdbc.BadSqlGrammarException 鍏ュ弬鏄┖List鐨勬椂鍊欎細鎶汼QL璇彞閿欒鐨勫紓甯革紝璇疯嚜琛屾牎楠屽叆鍙� +*/ +int insertOrUpdateBatch(@Param("entities") List<NewsPolice> entities); + +} + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsAdmin.java b/ycl-platform/src/main/java/com/ycl/entity/NewsAdmin.java new file mode 100644 index 0000000..2bdb790 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsAdmin.java @@ -0,0 +1,147 @@ +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 鍚庡彴鐢ㄦ埛琛�(NewsAdmin)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsAdmin extends Model<NewsAdmin> { + + private Long id; + //鐢ㄦ埛濮撳悕 + private String username; + //瀵嗙爜 + private String password; + //澶村儚 + private String icon; + //閭 + private String email; + //澶囨敞淇℃伅 + private String note; + //鍒涘缓鏃堕棿 + private Date createTime; + //甯愬彿鍚敤鐘舵�侊細0->绂佺敤锛�1->鍚敤 + private Integer status; + // 0->濂筹紝1->鐢� + private Integer sex; + //鎵嬫満 + private String mobile; + //鏄惁涓虹綉鏍肩鐞嗗憳锛�0->涓嶆槸锛�1->鏄� + private Integer isGrid; + //璀﹀憳id + private Integer newsPoliceId; + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Integer getSex() { + return sex; + } + + public void setSex(Integer sex) { + this.sex = sex; + } + + public String getMobile() { + return mobile; + } + + public void setMobile(String mobile) { + this.mobile = mobile; + } + + public Integer getIsGrid() { + return isGrid; + } + + public void setIsGrid(Integer isGrid) { + this.isGrid = isGrid; + } + + public Integer getNewsPoliceId() { + return newsPoliceId; + } + + public void setNewsPoliceId(Integer newsPoliceId) { + this.newsPoliceId = newsPoliceId; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsChannel.java b/ycl-platform/src/main/java/com/ycl/entity/NewsChannel.java index 06287a4..3ca7b74 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsChannel.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsChannel.java @@ -1,68 +1,67 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; -import java.time.LocalDate; - -/** - * 棰戦亾琛�(NewsChannel)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsChannel extends Model<NewsChannel> { - //id - private Integer id; - //棰戦亾鍚嶇О - private String name; - //棰戦亾缂栫爜ps鍚嶇О棣栧瓧姣� - private String code; - //鍒涘缓鏃堕棿 - private LocalDate createTime; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsChannel extends Model<NewsChannel> { + //id + private Integer id; + //棰戦亾鍚嶇О + private String name; + //棰戦亾缂栫爜ps鍚嶇О棣栧瓧姣� + private String code; + //鍒涘缓鏃堕棿 + private Date createTime; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsChannelColumn.java b/ycl-platform/src/main/java/com/ycl/entity/NewsChannelColumn.java index 5dd1579..d04418b 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsChannelColumn.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsChannelColumn.java @@ -1,57 +1,57 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; - -/** - * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsChannelColumn extends Model<NewsChannelColumn> { - - private Integer id; - //棰戦亾id - private Integer channelId; - //鏍忕洰id - private Integer columnId; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getChannelId() { - return channelId; - } - - public void setChannelId(Integer channelId) { - this.channelId = channelId; - } - - public Integer getColumnId() { - return columnId; - } - - public void setColumnId(Integer columnId) { - this.columnId = columnId; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsChannelColumn extends Model<NewsChannelColumn> { + + private Integer id; + //棰戦亾id + private Integer channelId; + //鏍忕洰id + private Integer columnId; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getChannelId() { + return channelId; + } + + public void setChannelId(Integer channelId) { + this.channelId = channelId; + } + + public Integer getColumnId() { + return columnId; + } + + public void setColumnId(Integer columnId) { + this.columnId = columnId; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java b/ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java index cb8c678..66f766f 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java @@ -1,47 +1,47 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; - -/** - * 鏍忕洰琛�(NewsColumn)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsColumn extends Model<NewsColumn> { - //id - private Integer id; - //鏍忕洰鍚嶇О - private String name; - - - public Object getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 鏍忕洰琛�(NewsColumn)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsColumn extends Model<NewsColumn> { + //id + private Object id; + //鏍忕洰鍚嶇О + private String name; + + + public Object getId() { + return id; + } + + public void setId(Object id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsColumnInformation.java b/ycl-platform/src/main/java/com/ycl/entity/NewsColumnInformation.java index d86b7b6..491d8bd 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsColumnInformation.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsColumnInformation.java @@ -1,57 +1,57 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; - -/** - * 鏍忕洰棰戦亾涓棿琛�(NewsColumnInformation)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsColumnInformation extends Model<NewsColumnInformation> { - - private Integer id; - //鏍忕洰id - private Integer columnId; - //鍜ㄨid - private Integer informationId; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getColumnId() { - return columnId; - } - - public void setColumnId(Integer columnId) { - this.columnId = columnId; - } - - public Integer getInformationId() { - return informationId; - } - - public void setInformationId(Integer informationId) { - this.informationId = informationId; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 鏍忕洰鍜ㄨ涓棿琛�(NewsColumnInformation)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsColumnInformation extends Model<NewsColumnInformation> { + + private Integer id; + //鏍忕洰id + private Integer columnId; + //鍜ㄨid + private Integer informationId; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getColumnId() { + return columnId; + } + + public void setColumnId(Integer columnId) { + this.columnId = columnId; + } + + public Integer getInformationId() { + return informationId; + } + + public void setInformationId(Integer informationId) { + this.informationId = informationId; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsDepartment.java b/ycl-platform/src/main/java/com/ycl/entity/NewsDepartment.java new file mode 100644 index 0000000..8018551 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsDepartment.java @@ -0,0 +1,47 @@ +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 閮ㄩ棬锛堟満鏋勶級琛�(NewsDepartment)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsDepartment extends Model<NewsDepartment> { + + private Integer id; + //閮ㄩ棬鍚嶇О + private String deptname; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getDeptname() { + return deptname; + } + + public void setDeptname(String deptname) { + this.deptname = deptname; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsDuty.java b/ycl-platform/src/main/java/com/ycl/entity/NewsDuty.java index a3ae4ef..eb8d219 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsDuty.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsDuty.java @@ -1,78 +1,77 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; -import java.time.LocalDate; - -/** - * 鍊肩彮琛�(NewsDuty)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsDuty extends Model<NewsDuty> { - - private Integer id; - //鍊肩彮浜� - private String name; - //鍊肩彮鑱屼綅 - private String jobTitle; - //鍒涘缓鏃堕棿 - private LocalDate createTime; - //鍊肩彮鏃堕棿 - private LocalDate dutyTime; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getJobTitle() { - return jobTitle; - } - - public void setJobTitle(String jobTitle) { - this.jobTitle = jobTitle; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - public LocalDate getDutyTime() { - return dutyTime; - } - - public void setDutyTime(LocalDate dutyTime) { - this.dutyTime = dutyTime; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 鍊肩彮琛�(NewsDuty)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsDuty extends Model<NewsDuty> { + + private Integer id; + //鍊肩彮浜� + private String name; + //鍊肩彮鑱屼綅 + private String jobTitle; + //鍒涘缓鏃堕棿 + private Date createTime; + //鍊肩彮鏃堕棿 + private Date dutyTime; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getJobTitle() { + return jobTitle; + } + + public void setJobTitle(String jobTitle) { + this.jobTitle = jobTitle; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getDutyTime() { + return dutyTime; + } + + public void setDutyTime(Date dutyTime) { + this.dutyTime = dutyTime; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java b/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java index 9fe7e7f..d78cc41 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java @@ -1,108 +1,117 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; -import java.time.LocalDate; - -/** - * 鍜ㄨ琛�(NewsInformation)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsInformation extends Model<NewsInformation> { - //id - private Integer id; - //鏍囬 - private String title; - //鍐呭 - private String content; - //鍙戝竷鏃堕棿 - private LocalDate publishTime; - //鏄惁绛炬敹1绛炬敹0鏈鏀� - private Integer isSign; - //鍒涘缓鏃堕棿 - private LocalDate createTime; - //璀﹀憳id - private Object sendTo; - //鍥剧墖鍦板潃 - private String imageUrl; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public LocalDate getPublishTime() { - return publishTime; - } - - public void setPublishTime(LocalDate publishTime) { - this.publishTime = publishTime; - } - - public Integer getIsSign() { - return isSign; - } - - public void setIsSign(Integer isSign) { - this.isSign = isSign; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - public Object getSendTo() { - return sendTo; - } - - public void setSendTo(Object sendTo) { - this.sendTo = sendTo; - } - - public String getImageUrl() { - return imageUrl; - } - - public void setImageUrl(String imageUrl) { - this.imageUrl = imageUrl; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 璧勮琛�(NewsInformation)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsInformation extends Model<NewsInformation> { + //id + private Object id; + //鏍囬 + private String title; + //鍐呭 + private String content; + //鍙戝竷鏃堕棿 + private Date publishTime; + //鏄惁绛炬敹0鏈鏀�1绛炬敹2涓嶉渶瑕佺鏀� + private Integer isSign; + //鍒涘缓鏃堕棿 + private Date createTime; + //璀﹀憳id + private Object sendTo; + //鍥剧墖鍦板潃 + private String imageUrl; + //閮ㄩ棬锛堟満鏋勶級id + private String newsDepartmentId; + + + public Object getId() { + return id; + } + + public void setId(Object id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public Date getPublishTime() { + return publishTime; + } + + public void setPublishTime(Date publishTime) { + this.publishTime = publishTime; + } + + public Integer getIsSign() { + return isSign; + } + + public void setIsSign(Integer isSign) { + this.isSign = isSign; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Object getSendTo() { + return sendTo; + } + + public void setSendTo(Object sendTo) { + this.sendTo = sendTo; + } + + public String getImageUrl() { + return imageUrl; + } + + public void setImageUrl(String imageUrl) { + this.imageUrl = imageUrl; + } + + public String getNewsDepartmentId() { + return newsDepartmentId; + } + + public void setNewsDepartmentId(String newsDepartmentId) { + this.newsDepartmentId = newsDepartmentId; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsIp.java b/ycl-platform/src/main/java/com/ycl/entity/NewsIp.java index 7cade69..8c58e6e 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsIp.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsIp.java @@ -1,57 +1,57 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; -import java.time.LocalDate; - -/** - * ip鐧藉悕鍗曡〃(NewsIp)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsIp extends Model<NewsIp> { - - private Integer id; - //ip鍦板潃 - private String ipAddess; - //鍒涘缓鏃堕棿 - private LocalDate createTime; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getIpAddess() { - return ipAddess; - } - - public void setIpAddess(String ipAddess) { - this.ipAddess = ipAddess; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * ip鐧藉悕鍗曡〃(NewsIp)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@SuppressWarnings("serial") +public class NewsIp extends Model<NewsIp> { + + private Integer id; + //ip鍦板潃 + private String ipAddess; + //鍒涘缓鏃堕棿 + private Date createTime; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getIpAddess() { + return ipAddess; + } + + public void setIpAddess(String ipAddess) { + this.ipAddess = ipAddess; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java b/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java index c16460f..e111570 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java @@ -1,79 +1,78 @@ -package com.ycl.entity; - - -import com.baomidou.mybatisplus.extension.activerecord.Model; -import java.io.Serializable; -import java.time.LocalDate; - -/** - * 璀﹀憳琛� -(NewsPolice)琛ㄥ疄浣撶被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@SuppressWarnings("serial") -public class NewsPolice extends Model<NewsPolice> { - //鑷涓婚敭 - private Integer id; - //璀﹀憳鍚嶇О - private String rname; - //鍒涘缓鏃堕棿 - private LocalDate createTime; - //淇敼鏃堕棿 - private LocalDate updateTime; - //鏈烘瀯鍚嶇О - private String organizationName; - - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getRname() { - return rname; - } - - public void setRname(String rname) { - this.rname = rname; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - public LocalDate getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(LocalDate updateTime) { - this.updateTime = updateTime; - } - - public String getOrganizationName() { - return organizationName; - } - - public void setOrganizationName(String organizationName) { - this.organizationName = organizationName; - } - - /** - * 鑾峰彇涓婚敭鍊� - * - * @return 涓婚敭鍊� - */ - @Override - protected Serializable pkVal() { - return this.id; - } - } - +package com.ycl.entity; + + +import com.baomidou.mybatisplus.extension.activerecord.Model; +import java.io.Serializable; + +/** + * 璀﹀憳琛� +(NewsPolice)琛ㄥ疄浣撶被 + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +@SuppressWarnings("serial") +public class NewsPolice extends Model<NewsPolice> { + //鑷涓婚敭 + private Object id; + //璀﹀憳鍚嶇О + private String rname; + //鍒涘缓鏃堕棿 + private Date createTime; + //淇敼鏃堕棿 + private Date updateTime; + //鏈烘瀯鍚嶇О + private String organizationName; + + + public Object getId() { + return id; + } + + public void setId(Object id) { + this.id = id; + } + + public String getRname() { + return rname; + } + + public void setRname(String rname) { + this.rname = rname; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public String getOrganizationName() { + return organizationName; + } + + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + + /** + * 鑾峰彇涓婚敭鍊� + * + * @return 涓婚敭鍊� + */ + @Override + protected Serializable pkVal() { + return this.id; + } + } + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsAdminService.java b/ycl-platform/src/main/java/com/ycl/service/NewsAdminService.java new file mode 100644 index 0000000..0e583ea --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/service/NewsAdminService.java @@ -0,0 +1,15 @@ +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsAdmin; + +/** + * 鍚庡彴鐢ㄦ埛琛�(NewsAdmin)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsAdminService extends IService<NewsAdmin> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsChannelColumnService.java b/ycl-platform/src/main/java/com/ycl/service/NewsChannelColumnService.java index 9418d6e..014e30c 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsChannelColumnService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsChannelColumnService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsChannelColumn; - -/** - * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsChannelColumnService extends IService<NewsChannelColumn> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsChannelColumn; + +/** + * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsChannelColumnService extends IService<NewsChannelColumn> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsChannelService.java b/ycl-platform/src/main/java/com/ycl/service/NewsChannelService.java index 9ce6a61..3cddbf9 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsChannelService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsChannelService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsChannel; - -/** - * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsChannelService extends IService<NewsChannel> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsChannel; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsChannelService extends IService<NewsChannel> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsColumnInformationService.java b/ycl-platform/src/main/java/com/ycl/service/NewsColumnInformationService.java index 0d54cf6..bb4b592 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsColumnInformationService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsColumnInformationService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsColumnInformation; - -/** - * 鏍忕洰棰戦亾涓棿琛�(NewsColumnInformation)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsColumnInformationService extends IService<NewsColumnInformation> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsColumnInformation; + +/** + * 鏍忕洰鍜ㄨ涓棿琛�(NewsColumnInformation)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsColumnInformationService extends IService<NewsColumnInformation> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsColumnService.java b/ycl-platform/src/main/java/com/ycl/service/NewsColumnService.java index eb9df23..3424d79 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsColumnService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsColumnService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsColumn; - -/** - * 鏍忕洰琛�(NewsColumn)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsColumnService extends IService<NewsColumn> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsColumn; + +/** + * 鏍忕洰琛�(NewsColumn)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsColumnService extends IService<NewsColumn> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsDepartmentService.java b/ycl-platform/src/main/java/com/ycl/service/NewsDepartmentService.java new file mode 100644 index 0000000..dd5bfbe --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/service/NewsDepartmentService.java @@ -0,0 +1,15 @@ +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsDepartment; + +/** + * 閮ㄩ棬锛堟満鏋勶級琛�(NewsDepartment)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsDepartmentService extends IService<NewsDepartment> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsDutyService.java b/ycl-platform/src/main/java/com/ycl/service/NewsDutyService.java index 357092a..6fedc2c 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsDutyService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsDutyService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsDuty; - -/** - * 鍊肩彮琛�(NewsDuty)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsDutyService extends IService<NewsDuty> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsDuty; + +/** + * 鍊肩彮琛�(NewsDuty)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsDutyService extends IService<NewsDuty> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsInformationService.java b/ycl-platform/src/main/java/com/ycl/service/NewsInformationService.java index cdfa76c..788c1ad 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsInformationService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsInformationService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsInformation; - -/** - * 鍜ㄨ琛�(NewsInformation)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsInformationService extends IService<NewsInformation> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsInformation; + +/** + * 璧勮琛�(NewsInformation)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +public interface NewsInformationService extends IService<NewsInformation> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsIpService.java b/ycl-platform/src/main/java/com/ycl/service/NewsIpService.java index 1c3a667..8ec7d67 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsIpService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsIpService.java @@ -1,15 +1,15 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsIp; - -/** - * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsIpService extends IService<NewsIp> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsIp; + +/** + * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +public interface NewsIpService extends IService<NewsIp> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java b/ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java index 033b892..07b5efb 100644 --- a/ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java +++ b/ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java @@ -1,16 +1,16 @@ -package com.ycl.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.ycl.entity.NewsPolice; - -/** - * 璀﹀憳琛� -(NewsPolice)琛ㄦ湇鍔℃帴鍙� - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -public interface NewsPoliceService extends IService<NewsPolice> { - -} - +package com.ycl.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.entity.NewsPolice; + +/** + * 璀﹀憳琛� +(NewsPolice)琛ㄦ湇鍔℃帴鍙� + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +public interface NewsPoliceService extends IService<NewsPolice> { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsAdminServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsAdminServiceImpl.java new file mode 100644 index 0000000..b3a0a01 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsAdminServiceImpl.java @@ -0,0 +1,19 @@ +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsAdminDao; +import com.ycl.entity.NewsAdmin; +import com.ycl.service.NewsAdminService; +import org.springframework.stereotype.Service; + +/** + * 鍚庡彴鐢ㄦ埛琛�(NewsAdmin)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsAdminService") +public class NewsAdminServiceImpl extends ServiceImpl<NewsAdminDao, NewsAdmin> implements NewsAdminService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java index 3b6957d..9265623 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsChannelColumnDao; -import com.ycl.entity.NewsChannelColumn; -import com.ycl.service.NewsChannelColumnService; -import org.springframework.stereotype.Service; - -/** - * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsChannelColumnService") -public class NewsChannelColumnServiceImpl extends ServiceImpl<NewsChannelColumnDao, NewsChannelColumn> implements NewsChannelColumnService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsChannelColumnDao; +import com.ycl.entity.NewsChannelColumn; +import com.ycl.service.NewsChannelColumnService; +import org.springframework.stereotype.Service; + +/** + * 棰戦亾鏍忕洰涓棿琛�(NewsChannelColumn)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsChannelColumnService") +public class NewsChannelColumnServiceImpl extends ServiceImpl<NewsChannelColumnDao, NewsChannelColumn> implements NewsChannelColumnService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java index 5731a0e..b001ac9 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsChannelDao; -import com.ycl.entity.NewsChannel; -import com.ycl.service.NewsChannelService; -import org.springframework.stereotype.Service; - -/** - * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsChannelService") -public class NewsChannelServiceImpl extends ServiceImpl<NewsChannelDao, NewsChannel> implements NewsChannelService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsChannelDao; +import com.ycl.entity.NewsChannel; +import com.ycl.service.NewsChannelService; +import org.springframework.stereotype.Service; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsChannelService") +public class NewsChannelServiceImpl extends ServiceImpl<NewsChannelDao, NewsChannel> implements NewsChannelService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java index 3a512fb..38b7d71 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsColumnInformationDao; -import com.ycl.entity.NewsColumnInformation; -import com.ycl.service.NewsColumnInformationService; -import org.springframework.stereotype.Service; - -/** - * 鏍忕洰棰戦亾涓棿琛�(NewsColumnInformation)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsColumnInformationService") -public class NewsColumnInformationServiceImpl extends ServiceImpl<NewsColumnInformationDao, NewsColumnInformation> implements NewsColumnInformationService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsColumnInformationDao; +import com.ycl.entity.NewsColumnInformation; +import com.ycl.service.NewsColumnInformationService; +import org.springframework.stereotype.Service; + +/** + * 鏍忕洰鍜ㄨ涓棿琛�(NewsColumnInformation)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsColumnInformationService") +public class NewsColumnInformationServiceImpl extends ServiceImpl<NewsColumnInformationDao, NewsColumnInformation> implements NewsColumnInformationService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java index e757c08..533c627 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsColumnDao; -import com.ycl.entity.NewsColumn; -import com.ycl.service.NewsColumnService; -import org.springframework.stereotype.Service; - -/** - * 鏍忕洰琛�(NewsColumn)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsColumnService") -public class NewsColumnServiceImpl extends ServiceImpl<NewsColumnDao, NewsColumn> implements NewsColumnService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsColumnDao; +import com.ycl.entity.NewsColumn; +import com.ycl.service.NewsColumnService; +import org.springframework.stereotype.Service; + +/** + * 鏍忕洰琛�(NewsColumn)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsColumnService") +public class NewsColumnServiceImpl extends ServiceImpl<NewsColumnDao, NewsColumn> implements NewsColumnService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentServiceImpl.java new file mode 100644 index 0000000..bfc8f59 --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentServiceImpl.java @@ -0,0 +1,19 @@ +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsDepartmentDao; +import com.ycl.entity.NewsDepartment; +import com.ycl.service.NewsDepartmentService; +import org.springframework.stereotype.Service; + +/** + * 閮ㄩ棬锛堟満鏋勶級琛�(NewsDepartment)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsDepartmentService") +public class NewsDepartmentServiceImpl extends ServiceImpl<NewsDepartmentDao, NewsDepartment> implements NewsDepartmentService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java index c774711..aaa9705 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsDutyDao; -import com.ycl.entity.NewsDuty; -import com.ycl.service.NewsDutyService; -import org.springframework.stereotype.Service; - -/** - * 鍊肩彮琛�(NewsDuty)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsDutyService") -public class NewsDutyServiceImpl extends ServiceImpl<NewsDutyDao, NewsDuty> implements NewsDutyService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsDutyDao; +import com.ycl.entity.NewsDuty; +import com.ycl.service.NewsDutyService; +import org.springframework.stereotype.Service; + +/** + * 鍊肩彮琛�(NewsDuty)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsDutyService") +public class NewsDutyServiceImpl extends ServiceImpl<NewsDutyDao, NewsDuty> implements NewsDutyService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java index f3f0b77..6052beb 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsInformationDao; -import com.ycl.entity.NewsInformation; -import com.ycl.service.NewsInformationService; -import org.springframework.stereotype.Service; - -/** - * 鍜ㄨ琛�(NewsInformation)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsInformationService") -public class NewsInformationServiceImpl extends ServiceImpl<NewsInformationDao, NewsInformation> implements NewsInformationService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsInformationDao; +import com.ycl.entity.NewsInformation; +import com.ycl.service.NewsInformationService; +import org.springframework.stereotype.Service; + +/** + * 璧勮琛�(NewsInformation)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:41 + */ +@Service("newsInformationService") +public class NewsInformationServiceImpl extends ServiceImpl<NewsInformationDao, NewsInformation> implements NewsInformationService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java index 78e6d33..ff72337 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java @@ -1,19 +1,19 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsIpDao; -import com.ycl.entity.NewsIp; -import com.ycl.service.NewsIpService; -import org.springframework.stereotype.Service; - -/** - * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsIpService") -public class NewsIpServiceImpl extends ServiceImpl<NewsIpDao, NewsIp> implements NewsIpService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsIpDao; +import com.ycl.entity.NewsIp; +import com.ycl.service.NewsIpService; +import org.springframework.stereotype.Service; + +/** + * ip鐧藉悕鍗曡〃(NewsIp)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +@Service("newsIpService") +public class NewsIpServiceImpl extends ServiceImpl<NewsIpDao, NewsIp> implements NewsIpService { + +} + diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java index aa39591..d1f352f 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java @@ -1,20 +1,20 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsPoliceDao; -import com.ycl.entity.NewsPolice; -import com.ycl.service.NewsPoliceService; -import org.springframework.stereotype.Service; - -/** - * 璀﹀憳琛� -(NewsPolice)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsPoliceService") -public class NewsPoliceServiceImpl extends ServiceImpl<NewsPoliceDao, NewsPolice> implements NewsPoliceService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.dao.NewsPoliceDao; +import com.ycl.entity.NewsPolice; +import com.ycl.service.NewsPoliceService; +import org.springframework.stereotype.Service; + +/** + * 璀﹀憳琛� +(NewsPolice)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:12:42 + */ +@Service("newsPoliceService") +public class NewsPoliceServiceImpl extends ServiceImpl<NewsPoliceDao, NewsPolice> implements NewsPoliceService { + +} + diff --git a/ycl-platform/src/main/resources/mapper/NewsAdminDao.xml b/ycl-platform/src/main/resources/mapper/NewsAdminDao.xml new file mode 100644 index 0000000..235870b --- /dev/null +++ b/ycl-platform/src/main/resources/mapper/NewsAdminDao.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsAdminDao"> + + <resultMap type="com.ycl.entity.NewsAdmin" id="NewsAdminMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="username" column="username" jdbcType="VARCHAR"/> + <result property="password" column="password" jdbcType="VARCHAR"/> + <result property="icon" column="icon" jdbcType="VARCHAR"/> + <result property="email" column="email" jdbcType="VARCHAR"/> + <result property="note" column="note" jdbcType="VARCHAR"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + <result property="status" column="status" jdbcType="INTEGER"/> + <result property="sex" column="sex" jdbcType="INTEGER"/> + <result property="mobile" column="mobile" jdbcType="VARCHAR"/> + <result property="isGrid" column="is_grid" jdbcType="INTEGER"/> + <result property="newsPoliceId" column="news_police_id" jdbcType="INTEGER"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId}) + </foreach> + on duplicate key update + username = values(username) , password = values(password) , icon = values(icon) , email = values(email) , note = values(note) , create_time = values(create_time) , status = values(status) , sex = values(sex) , mobile = values(mobile) , is_grid = values(is_grid) , news_police_id = values(news_police_id) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml b/ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml index b64220c..19343ef 100644 --- a/ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml @@ -1,30 +1,30 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsChannelColumnDao"> - - <resultMap type="com.ycl.entity.NewsChannelColumn" id="NewsChannelColumnMap"> - <result property="id" column="id" jdbcType="INTEGER"/> - <result property="channelId" column="channel_id" jdbcType="INTEGER"/> - <result property="columnId" column="column_id" jdbcType="INTEGER"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_channel_column(channel_id, column_id) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.channelId}, #{entity.columnId}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_channel_column(channel_id, column_id) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.channelId}, #{entity.columnId}) - </foreach> - on duplicate key update - channel_id = values(channel_id) , column_id = values(column_id) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsChannelColumnDao"> + + <resultMap type="com.ycl.entity.NewsChannelColumn" id="NewsChannelColumnMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="channelId" column="channel_id" jdbcType="INTEGER"/> + <result property="columnId" column="column_id" jdbcType="INTEGER"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_channel_column(channel_id, column_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.channelId}, #{entity.columnId}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_channel_column(channel_id, column_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.channelId}, #{entity.columnId}) + </foreach> + on duplicate key update + channel_id = values(channel_id) , column_id = values(column_id) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsChannelDao.xml b/ycl-platform/src/main/resources/mapper/NewsChannelDao.xml index 3f10f81..0c5a63a 100644 --- a/ycl-platform/src/main/resources/mapper/NewsChannelDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsChannelDao.xml @@ -1,31 +1,31 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsChannelDao"> - - <resultMap type="com.ycl.entity.NewsChannel" id="NewsChannelMap"> - <result property="id" column="id" jdbcType="INTEGER"/> - <result property="name" column="name" jdbcType="VARCHAR"/> - <result property="code" column="code" jdbcType="VARCHAR"/> - <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_channel(name, code, create_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}, #{entity.code}, #{entity.createTime}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_channel(name, code, create_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}, #{entity.code}, #{entity.createTime}) - </foreach> - on duplicate key update - name = values(name) , code = values(code) , create_time = values(create_time) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsChannelDao"> + + <resultMap type="com.ycl.entity.NewsChannel" id="NewsChannelMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="name" column="name" jdbcType="VARCHAR"/> + <result property="code" column="code" jdbcType="VARCHAR"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_channel(name, code, create_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}, #{entity.code}, #{entity.createTime}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_channel(name, code, create_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}, #{entity.code}, #{entity.createTime}) + </foreach> + on duplicate key update + name = values(name) , code = values(code) , create_time = values(create_time) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsColumnDao.xml b/ycl-platform/src/main/resources/mapper/NewsColumnDao.xml index 0d8456b..bddd09b 100644 --- a/ycl-platform/src/main/resources/mapper/NewsColumnDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsColumnDao.xml @@ -1,29 +1,29 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsColumnDao"> - - <resultMap type="com.ycl.entity.NewsColumn" id="NewsColumnMap"> - <result property="id" column="id" jdbcType="VARCHAR"/> - <result property="name" column="name" jdbcType="VARCHAR"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_column(name) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_column(name) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}) - </foreach> - on duplicate key update - name = values(name) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsColumnDao"> + + <resultMap type="com.ycl.entity.NewsColumn" id="NewsColumnMap"> + <result property="id" column="id" jdbcType="VARCHAR"/> + <result property="name" column="name" jdbcType="VARCHAR"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_column(name) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_column(name) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}) + </foreach> + on duplicate key update + name = values(name) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml b/ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml index 90092d1..7104d3a 100644 --- a/ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml @@ -1,30 +1,30 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsColumnInformationDao"> - - <resultMap type="com.ycl.entity.NewsColumnInformation" id="NewsColumnInformationMap"> - <result property="id" column="id" jdbcType="INTEGER"/> - <result property="columnId" column="column_id" jdbcType="INTEGER"/> - <result property="informationId" column="information_id" jdbcType="INTEGER"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_column_information(column_id, information_id) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.columnId}, #{entity.informationId}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_column_information(column_id, information_id) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.columnId}, #{entity.informationId}) - </foreach> - on duplicate key update - column_id = values(column_id) , information_id = values(information_id) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsColumnInformationDao"> + + <resultMap type="com.ycl.entity.NewsColumnInformation" id="NewsColumnInformationMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="columnId" column="column_id" jdbcType="INTEGER"/> + <result property="informationId" column="information_id" jdbcType="INTEGER"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_column_information(column_id, information_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.columnId}, #{entity.informationId}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_column_information(column_id, information_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.columnId}, #{entity.informationId}) + </foreach> + on duplicate key update + column_id = values(column_id) , information_id = values(information_id) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsDepartmentDao.xml b/ycl-platform/src/main/resources/mapper/NewsDepartmentDao.xml new file mode 100644 index 0000000..3c4f663 --- /dev/null +++ b/ycl-platform/src/main/resources/mapper/NewsDepartmentDao.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsDepartmentDao"> + + <resultMap type="com.ycl.entity.NewsDepartment" id="NewsDepartmentMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="deptname" column="deptname" jdbcType="VARCHAR"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_department(deptname) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.deptname}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_department(deptname) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.deptname}) + </foreach> + on duplicate key update + deptname = values(deptname) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsDutyDao.xml b/ycl-platform/src/main/resources/mapper/NewsDutyDao.xml index b9774a5..d5976f3 100644 --- a/ycl-platform/src/main/resources/mapper/NewsDutyDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsDutyDao.xml @@ -1,32 +1,32 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsDutyDao"> - - <resultMap type="com.ycl.entity.NewsDuty" id="NewsDutyMap"> - <result property="id" column="id" jdbcType="INTEGER"/> - <result property="name" column="name" jdbcType="VARCHAR"/> - <result property="jobTitle" column="job_title" jdbcType="VARCHAR"/> - <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - <result property="dutyTime" column="duty_time" jdbcType="TIMESTAMP"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_duty(name, job_title, create_time, duty_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}, #{entity.jobTitle}, #{entity.createTime}, #{entity.dutyTime}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_duty(name, job_title, create_time, duty_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.name}, #{entity.jobTitle}, #{entity.createTime}, #{entity.dutyTime}) - </foreach> - on duplicate key update - name = values(name) , job_title = values(job_title) , create_time = values(create_time) , duty_time = values(duty_time) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsDutyDao"> + + <resultMap type="com.ycl.entity.NewsDuty" id="NewsDutyMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="name" column="name" jdbcType="VARCHAR"/> + <result property="jobTitle" column="job_title" jdbcType="VARCHAR"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + <result property="dutyTime" column="duty_time" jdbcType="TIMESTAMP"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_duty(name, job_title, create_time, duty_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}, #{entity.jobTitle}, #{entity.createTime}, #{entity.dutyTime}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_duty(name, job_title, create_time, duty_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.name}, #{entity.jobTitle}, #{entity.createTime}, #{entity.dutyTime}) + </foreach> + on duplicate key update + name = values(name) , job_title = values(job_title) , create_time = values(create_time) , duty_time = values(duty_time) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml index 5d3c9fe..a82123f 100644 --- a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml @@ -1,35 +1,36 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsInformationDao"> - - <resultMap type="com.ycl.entity.NewsInformation" id="NewsInformationMap"> - <result property="id" column="id" jdbcType="VARCHAR"/> - <result property="title" column="title" jdbcType="VARCHAR"/> - <result property="content" column="content" jdbcType="VARCHAR"/> - <result property="publishTime" column="publish_time" jdbcType="TIMESTAMP"/> - <result property="isSign" column="is_sign" jdbcType="INTEGER"/> - <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - <result property="sendTo" column="send_to" jdbcType="VARCHAR"/> - <result property="imageUrl" column="image_url" jdbcType="VARCHAR"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}) - </foreach> - on duplicate key update - title = values(title) , content = values(content) , publish_time = values(publish_time) , is_sign = values(is_sign) , create_time = values(create_time) , send_to = values(send_to) , image_url = values(image_url) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsInformationDao"> + + <resultMap type="com.ycl.entity.NewsInformation" id="NewsInformationMap"> + <result property="id" column="id" jdbcType="VARCHAR"/> + <result property="title" column="title" jdbcType="VARCHAR"/> + <result property="content" column="content" jdbcType="VARCHAR"/> + <result property="publishTime" column="publish_time" jdbcType="TIMESTAMP"/> + <result property="isSign" column="is_sign" jdbcType="INTEGER"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + <result property="sendTo" column="send_to" jdbcType="VARCHAR"/> + <result property="imageUrl" column="image_url" jdbcType="VARCHAR"/> + <result property="newsDepartmentId" column="news_department_id" jdbcType="VARCHAR"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url, news_department_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}, #{entity.newsDepartmentId}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url, news_department_id) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}, #{entity.newsDepartmentId}) + </foreach> + on duplicate key update + title = values(title) , content = values(content) , publish_time = values(publish_time) , is_sign = values(is_sign) , create_time = values(create_time) , send_to = values(send_to) , image_url = values(image_url) , news_department_id = values(news_department_id) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsIpDao.xml b/ycl-platform/src/main/resources/mapper/NewsIpDao.xml index 120e2a1..6a81cb9 100644 --- a/ycl-platform/src/main/resources/mapper/NewsIpDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsIpDao.xml @@ -1,30 +1,30 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsIpDao"> - - <resultMap type="com.ycl.entity.NewsIp" id="NewsIpMap"> - <result property="id" column="id" jdbcType="INTEGER"/> - <result property="ipAddess" column="ip_addess" jdbcType="VARCHAR"/> - <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_ip(ip_addess, create_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.ipAddess}, #{entity.createTime}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_ip(ip_addess, create_time) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.ipAddess}, #{entity.createTime}) - </foreach> - on duplicate key update - ip_addess = values(ip_addess) , create_time = values(create_time) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsIpDao"> + + <resultMap type="com.ycl.entity.NewsIp" id="NewsIpMap"> + <result property="id" column="id" jdbcType="INTEGER"/> + <result property="ipAddess" column="ip_addess" jdbcType="VARCHAR"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_ip(ip_addess, create_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.ipAddess}, #{entity.createTime}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_ip(ip_addess, create_time) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.ipAddess}, #{entity.createTime}) + </foreach> + on duplicate key update + ip_addess = values(ip_addess) , create_time = values(create_time) </insert> + +</mapper> + diff --git a/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml b/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml index b9e6dbc..ea8b6d9 100644 --- a/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml @@ -1,32 +1,32 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ycl.mapper.NewsPoliceDao"> - - <resultMap type="com.ycl.entity.NewsPolice" id="NewsPoliceMap"> - <result property="id" column="id" jdbcType="VARCHAR"/> - <result property="rname" column="rname" jdbcType="VARCHAR"/> - <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> - <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> - <result property="organizationName" column="organization_name" jdbcType="VARCHAR"/> - </resultMap> - - <!-- 鎵归噺鎻掑叆 --> - <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_police(rname, create_time, update_time, organization_name) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName}) - </foreach> - </insert> - <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> - <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> - insert into news_website.news_police(rname, create_time, update_time, organization_name) - values - <foreach collection="entities" item="entity" separator=","> - (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName}) - </foreach> - on duplicate key update - rname = values(rname) , create_time = values(create_time) , update_time = values(update_time) , organization_name = values(organization_name) </insert> - -</mapper> - +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ycl.dao.NewsPoliceDao"> + + <resultMap type="com.ycl.entity.NewsPolice" id="NewsPoliceMap"> + <result property="id" column="id" jdbcType="VARCHAR"/> + <result property="rname" column="rname" jdbcType="VARCHAR"/> + <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> + <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> + <result property="organizationName" column="organization_name" jdbcType="VARCHAR"/> + </resultMap> + + <!-- 鎵归噺鎻掑叆 --> + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_police(rname, create_time, update_time, organization_name) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName}) + </foreach> + </insert> + <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 --> + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> + insert into news_website.news_police(rname, create_time, update_time, organization_name) + values + <foreach collection="entities" item="entity" separator=","> + (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName}) + </foreach> + on duplicate key update + rname = values(rname) , create_time = values(create_time) , update_time = values(update_time) , organization_name = values(organization_name) </insert> + +</mapper> + -- Gitblit v1.8.0