初始化项目

This commit is contained in:
RT 2022-07-22 18:55:02 +08:00
parent 289161b8c6
commit 015c4a5ec5
102 changed files with 9911 additions and 33 deletions

View File

@ -209,6 +209,7 @@
<module>ruoyi-quartz</module> <module>ruoyi-quartz</module>
<module>ruoyi-generator</module> <module>ruoyi-generator</module>
<module>ruoyi-common</module> <module>ruoyi-common</module>
<module>ruoyi-news</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@ -16,15 +16,19 @@ public class RuoYiApplication
{ {
// System.setProperty("spring.devtools.restart.enabled", "false"); // System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args); SpringApplication.run(RuoYiApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" + System.out.println(" \n" +
" .-------. ____ __ \n" + " ////////////////////////////////////////\n" +
" | _ _ \\ \\ \\ / / \n" + " .----------------. .----------------.\n" +
" | ( ' ) | \\ _. / ' \n" + "| .--------------. || .--------------. |\n" +
" |(_ o _) / _( )_ .' \n" + "| | _______ | || | _________ | |\n" +
" | (_,_).' __ ___(_ o _)' \n" + "| | |_ __ \\ | || | | _ _ | | |\n" +
" | |\\ \\ | || |(_,_)' \n" + "| | | |__) | | || | |_/ | | \\_| | |\n" +
" | | \\ `' /| `-' / \n" + "| | | __ / | || | | | | |\n" +
" | | \\ / \\ / \n" + "| | _| | \\ \\_ | || | _| |_ | |\n" +
" ''-' `'-' `-..-' "); "| | |____| |___| | || | |_____| | |\n" +
"| | | || | | |\n" +
"| '--------------' || '--------------' |\n" +
" '----------------' '----------------'\n" +
"//////////////////////////////////////// ");
} }
} }

View File

@ -8,7 +8,7 @@ spring:
master: master:
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: root
password: password password: Feina1220
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

View File

@ -1,24 +1,15 @@
Application Version: ${ruoyi.version} Application Version: ${ruoyi.version}
Spring Boot Version: ${spring-boot.version} Spring Boot Version: ${spring-boot.version}
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////
// _ooOoo_ // .----------------. .----------------.
// o8888888o // | .--------------. || .--------------. |
// 88" . "88 // | | _______ | || | _________ | |
// (| ^_^ |) // | | |_ __ \ | || | | _ _ | | |
// O\ = /O // | | | |__) | | || | |_/ | | \_| | |
// ____/`---'\____ // | | | __ / | || | | | | |
// .' \\| |// `. // | | _| | \ \_ | || | _| |_ | |
// / \\||| : |||// \ // | | |____| |___| | || | |_____| | |
// / _||||| -:- |||||- \ // | | | || | | |
// | | \\\ - /// | | // | '--------------' || '--------------' |
// | \_| ''\---/'' | | // '----------------' '----------------'
// \ .-\__ `-` ___/-. / // ////////////////////////////////////////
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////

133
ruoyi-news/pom.xml Normal file
View File

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>4.7.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>ruoyi-news</artifactId>
<description>
news服务入口
</description>
<dependencies>
<!-- SpringBoot集成thymeleaf模板 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<!-- swagger3-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
</dependency>
<!-- 防止进入swagger页面报类型转换错误排除3.0.0中的引用手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
</dependency>
<!-- Mysql驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- 核心模块-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-framework</artifactId>
</dependency>
<!-- 定时任务-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-quartz</artifactId>
</dependency>
<!-- 代码生成-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-generator</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<configuration>
<fork>true</fork> <!-- 如果没有该配置devtools不会生效 -->
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
<!-- YUI Compressor (CSS/JS压缩)
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<jswarn>false</jswarn>
<nosuffix>true</nosuffix>
<linebreakpos>50000</linebreakpos>
<sourceDirectory>src/main/resources/static</sourceDirectory>
<force>true</force>
<includes>
<include>**/*.js</include>
<include>**/*.css</include>
</includes>
<excludes>
<exclude>**/*.min.js</exclude>
<exclude>**/*.min.css</exclude>
<exclude>**/fileinput.js</exclude>
<exclude>**/bootstrap-table/**</exclude>
</excludes>
</configuration>
</plugin> -->
</plugins>
<finalName>${project.artifactId}</finalName>
</build>
</project>

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsDutyTable;
import com.ruoyi.news.service.INewsDutyTableService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/table")
public class NewsDutyTableController extends BaseController
{
private String prefix = "news/table";
@Autowired
private INewsDutyTableService newsDutyTableService;
@RequiresPermissions("news:table:view")
@GetMapping()
public String table()
{
return prefix + "/table";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:table:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsDutyTable newsDutyTable)
{
startPage();
List<NewsDutyTable> list = newsDutyTableService.selectNewsDutyTableList(newsDutyTable);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:table:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsDutyTable newsDutyTable)
{
List<NewsDutyTable> list = newsDutyTableService.selectNewsDutyTableList(newsDutyTable);
ExcelUtil<NewsDutyTable> util = new ExcelUtil<NewsDutyTable>(NewsDutyTable.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:table:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsDutyTable newsDutyTable)
{
return toAjax(newsDutyTableService.insertNewsDutyTable(newsDutyTable));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:table:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsDutyTable newsDutyTable = newsDutyTableService.selectNewsDutyTableById(id);
mmap.put("newsDutyTable", newsDutyTable);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:table:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsDutyTable newsDutyTable)
{
return toAjax(newsDutyTableService.updateNewsDutyTable(newsDutyTable));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:table:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsDutyTableService.deleteNewsDutyTableByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantFalv;
import com.ruoyi.news.service.INewsImportantFalvService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/falv")
public class NewsImportantFalvController extends BaseController
{
private String prefix = "news/falv";
@Autowired
private INewsImportantFalvService newsImportantFalvService;
@RequiresPermissions("news:falv:view")
@GetMapping()
public String falv()
{
return prefix + "/falv";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:falv:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantFalv newsImportantFalv)
{
startPage();
List<NewsImportantFalv> list = newsImportantFalvService.selectNewsImportantFalvList(newsImportantFalv);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:falv:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantFalv newsImportantFalv)
{
List<NewsImportantFalv> list = newsImportantFalvService.selectNewsImportantFalvList(newsImportantFalv);
ExcelUtil<NewsImportantFalv> util = new ExcelUtil<NewsImportantFalv>(NewsImportantFalv.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:falv:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantFalv newsImportantFalv)
{
return toAjax(newsImportantFalvService.insertNewsImportantFalv(newsImportantFalv));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:falv:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantFalv newsImportantFalv = newsImportantFalvService.selectNewsImportantFalvById(id);
mmap.put("newsImportantFalv", newsImportantFalv);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:falv:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantFalv newsImportantFalv)
{
return toAjax(newsImportantFalvService.updateNewsImportantFalv(newsImportantFalv));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:falv:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantFalvService.deleteNewsImportantFalvByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantNews;
import com.ruoyi.news.service.INewsImportantNewsService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/news")
public class NewsImportantNewsController extends BaseController
{
private String prefix = "news/news";
@Autowired
private INewsImportantNewsService newsImportantNewsService;
@RequiresPermissions("news:news:view")
@GetMapping()
public String news()
{
return prefix + "/news";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:news:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantNews newsImportantNews)
{
startPage();
List<NewsImportantNews> list = newsImportantNewsService.selectNewsImportantNewsList(newsImportantNews);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:news:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantNews newsImportantNews)
{
List<NewsImportantNews> list = newsImportantNewsService.selectNewsImportantNewsList(newsImportantNews);
ExcelUtil<NewsImportantNews> util = new ExcelUtil<NewsImportantNews>(NewsImportantNews.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:news:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantNews newsImportantNews)
{
return toAjax(newsImportantNewsService.insertNewsImportantNews(newsImportantNews));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:news:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantNews newsImportantNews = newsImportantNewsService.selectNewsImportantNewsById(id);
mmap.put("newsImportantNews", newsImportantNews);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:news:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantNews newsImportantNews)
{
return toAjax(newsImportantNewsService.updateNewsImportantNews(newsImportantNews));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:news:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantNewsService.deleteNewsImportantNewsByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantTraining;
import com.ruoyi.news.service.INewsImportantTrainingService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/training")
public class NewsImportantTrainingController extends BaseController
{
private String prefix = "news/training";
@Autowired
private INewsImportantTrainingService newsImportantTrainingService;
@RequiresPermissions("news:training:view")
@GetMapping()
public String training()
{
return prefix + "/training";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:training:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantTraining newsImportantTraining)
{
startPage();
List<NewsImportantTraining> list = newsImportantTrainingService.selectNewsImportantTrainingList(newsImportantTraining);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:training:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantTraining newsImportantTraining)
{
List<NewsImportantTraining> list = newsImportantTrainingService.selectNewsImportantTrainingList(newsImportantTraining);
ExcelUtil<NewsImportantTraining> util = new ExcelUtil<NewsImportantTraining>(NewsImportantTraining.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:training:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantTraining newsImportantTraining)
{
return toAjax(newsImportantTrainingService.insertNewsImportantTraining(newsImportantTraining));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:training:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantTraining newsImportantTraining = newsImportantTrainingService.selectNewsImportantTrainingById(id);
mmap.put("newsImportantTraining", newsImportantTraining);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:training:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantTraining newsImportantTraining)
{
return toAjax(newsImportantTrainingService.updateNewsImportantTraining(newsImportantTraining));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:training:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantTrainingService.deleteNewsImportantTrainingByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantTuwen;
import com.ruoyi.news.service.INewsImportantTuwenService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/tuwen")
public class NewsImportantTuwenController extends BaseController
{
private String prefix = "news/tuwen";
@Autowired
private INewsImportantTuwenService newsImportantTuwenService;
@RequiresPermissions("news:tuwen:view")
@GetMapping()
public String tuwen()
{
return prefix + "/tuwen";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:tuwen:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantTuwen newsImportantTuwen)
{
startPage();
List<NewsImportantTuwen> list = newsImportantTuwenService.selectNewsImportantTuwenList(newsImportantTuwen);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:tuwen:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantTuwen newsImportantTuwen)
{
List<NewsImportantTuwen> list = newsImportantTuwenService.selectNewsImportantTuwenList(newsImportantTuwen);
ExcelUtil<NewsImportantTuwen> util = new ExcelUtil<NewsImportantTuwen>(NewsImportantTuwen.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:tuwen:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantTuwen newsImportantTuwen)
{
return toAjax(newsImportantTuwenService.insertNewsImportantTuwen(newsImportantTuwen));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:tuwen:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantTuwen newsImportantTuwen = newsImportantTuwenService.selectNewsImportantTuwenById(id);
mmap.put("newsImportantTuwen", newsImportantTuwen);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:tuwen:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantTuwen newsImportantTuwen)
{
return toAjax(newsImportantTuwenService.updateNewsImportantTuwen(newsImportantTuwen));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:tuwen:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantTuwenService.deleteNewsImportantTuwenByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantVideo;
import com.ruoyi.news.service.INewsImportantVideoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/video")
public class NewsImportantVideoController extends BaseController
{
private String prefix = "news/video";
@Autowired
private INewsImportantVideoService newsImportantVideoService;
@RequiresPermissions("news:video:view")
@GetMapping()
public String video()
{
return prefix + "/video";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:video:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantVideo newsImportantVideo)
{
startPage();
List<NewsImportantVideo> list = newsImportantVideoService.selectNewsImportantVideoList(newsImportantVideo);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:video:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantVideo newsImportantVideo)
{
List<NewsImportantVideo> list = newsImportantVideoService.selectNewsImportantVideoList(newsImportantVideo);
ExcelUtil<NewsImportantVideo> util = new ExcelUtil<NewsImportantVideo>(NewsImportantVideo.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:video:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantVideo newsImportantVideo)
{
return toAjax(newsImportantVideoService.insertNewsImportantVideo(newsImportantVideo));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:video:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantVideo newsImportantVideo = newsImportantVideoService.selectNewsImportantVideoById(id);
mmap.put("newsImportantVideo", newsImportantVideo);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:video:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantVideo newsImportantVideo)
{
return toAjax(newsImportantVideoService.updateNewsImportantVideo(newsImportantVideo));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:video:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantVideoService.deleteNewsImportantVideoByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsImportantZhuanti;
import com.ruoyi.news.service.INewsImportantZhuantiService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/zhuanti")
public class NewsImportantZhuantiController extends BaseController
{
private String prefix = "news/zhuanti";
@Autowired
private INewsImportantZhuantiService newsImportantZhuantiService;
@RequiresPermissions("news:zhuanti:view")
@GetMapping()
public String zhuanti()
{
return prefix + "/zhuanti";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:zhuanti:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsImportantZhuanti newsImportantZhuanti)
{
startPage();
List<NewsImportantZhuanti> list = newsImportantZhuantiService.selectNewsImportantZhuantiList(newsImportantZhuanti);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:zhuanti:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsImportantZhuanti newsImportantZhuanti)
{
List<NewsImportantZhuanti> list = newsImportantZhuantiService.selectNewsImportantZhuantiList(newsImportantZhuanti);
ExcelUtil<NewsImportantZhuanti> util = new ExcelUtil<NewsImportantZhuanti>(NewsImportantZhuanti.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:zhuanti:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsImportantZhuanti newsImportantZhuanti)
{
return toAjax(newsImportantZhuantiService.insertNewsImportantZhuanti(newsImportantZhuanti));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:zhuanti:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsImportantZhuanti newsImportantZhuanti = newsImportantZhuantiService.selectNewsImportantZhuantiById(id);
mmap.put("newsImportantZhuanti", newsImportantZhuanti);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:zhuanti:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsImportantZhuanti newsImportantZhuanti)
{
return toAjax(newsImportantZhuantiService.updateNewsImportantZhuanti(newsImportantZhuanti));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:zhuanti:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsImportantZhuantiService.deleteNewsImportantZhuantiByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsNotification;
import com.ruoyi.news.service.INewsNotificationService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/notification")
public class NewsNotificationController extends BaseController
{
private String prefix = "news/notification";
@Autowired
private INewsNotificationService newsNotificationService;
@RequiresPermissions("news:notification:view")
@GetMapping()
public String notification()
{
return prefix + "/notification";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:notification:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsNotification newsNotification)
{
startPage();
List<NewsNotification> list = newsNotificationService.selectNewsNotificationList(newsNotification);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:notification:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsNotification newsNotification)
{
List<NewsNotification> list = newsNotificationService.selectNewsNotificationList(newsNotification);
ExcelUtil<NewsNotification> util = new ExcelUtil<NewsNotification>(NewsNotification.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:notification:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsNotification newsNotification)
{
return toAjax(newsNotificationService.insertNewsNotification(newsNotification));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:notification:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsNotification newsNotification = newsNotificationService.selectNewsNotificationById(id);
mmap.put("newsNotification", newsNotification);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:notification:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsNotification newsNotification)
{
return toAjax(newsNotificationService.updateNewsNotification(newsNotification));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:notification:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsNotificationService.deleteNewsNotificationByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsPhoto;
import com.ruoyi.news.service.INewsPhotoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/photo")
public class NewsPhotoController extends BaseController
{
private String prefix = "news/photo";
@Autowired
private INewsPhotoService newsPhotoService;
@RequiresPermissions("news:photo:view")
@GetMapping()
public String photo()
{
return prefix + "/photo";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:photo:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsPhoto newsPhoto)
{
startPage();
List<NewsPhoto> list = newsPhotoService.selectNewsPhotoList(newsPhoto);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:photo:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsPhoto newsPhoto)
{
List<NewsPhoto> list = newsPhotoService.selectNewsPhotoList(newsPhoto);
ExcelUtil<NewsPhoto> util = new ExcelUtil<NewsPhoto>(NewsPhoto.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:photo:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsPhoto newsPhoto)
{
return toAjax(newsPhotoService.insertNewsPhoto(newsPhoto));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:photo:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsPhoto newsPhoto = newsPhotoService.selectNewsPhotoById(id);
mmap.put("newsPhoto", newsPhoto);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:photo:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsPhoto newsPhoto)
{
return toAjax(newsPhotoService.updateNewsPhoto(newsPhoto));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:photo:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsPhotoService.deleteNewsPhotoByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsProjectLearning;
import com.ruoyi.news.service.INewsProjectLearningService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/learning")
public class NewsProjectLearningController extends BaseController
{
private String prefix = "news/learning";
@Autowired
private INewsProjectLearningService newsProjectLearningService;
@RequiresPermissions("news:learning:view")
@GetMapping()
public String learning()
{
return prefix + "/learning";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:learning:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsProjectLearning newsProjectLearning)
{
startPage();
List<NewsProjectLearning> list = newsProjectLearningService.selectNewsProjectLearningList(newsProjectLearning);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:learning:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsProjectLearning newsProjectLearning)
{
List<NewsProjectLearning> list = newsProjectLearningService.selectNewsProjectLearningList(newsProjectLearning);
ExcelUtil<NewsProjectLearning> util = new ExcelUtil<NewsProjectLearning>(NewsProjectLearning.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:learning:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsProjectLearning newsProjectLearning)
{
return toAjax(newsProjectLearningService.insertNewsProjectLearning(newsProjectLearning));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:learning:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsProjectLearning newsProjectLearning = newsProjectLearningService.selectNewsProjectLearningById(id);
mmap.put("newsProjectLearning", newsProjectLearning);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:learning:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsProjectLearning newsProjectLearning)
{
return toAjax(newsProjectLearningService.updateNewsProjectLearning(newsProjectLearning));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:learning:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsProjectLearningService.deleteNewsProjectLearningByIds(ids));
}
}

View File

@ -0,0 +1,127 @@
package com.ruoyi.news.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.news.domain.NewsSwatNews;
import com.ruoyi.news.service.INewsSwatNewsService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 请填写功能名称Controller
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Controller
@RequestMapping("/news/news")
public class NewsSwatNewsController extends BaseController
{
private String prefix = "news/news";
@Autowired
private INewsSwatNewsService newsSwatNewsService;
@RequiresPermissions("news:news:view")
@GetMapping()
public String news()
{
return prefix + "/news";
}
/**
* 查询请填写功能名称列表
*/
@RequiresPermissions("news:news:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsSwatNews newsSwatNews)
{
startPage();
List<NewsSwatNews> list = newsSwatNewsService.selectNewsSwatNewsList(newsSwatNews);
return getDataTable(list);
}
/**
* 导出请填写功能名称列表
*/
@RequiresPermissions("news:news:export")
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsSwatNews newsSwatNews)
{
List<NewsSwatNews> list = newsSwatNewsService.selectNewsSwatNewsList(newsSwatNews);
ExcelUtil<NewsSwatNews> util = new ExcelUtil<NewsSwatNews>(NewsSwatNews.class);
return util.exportExcel(list, "【请填写功能名称】数据");
}
/**
* 新增请填写功能名称
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存请填写功能名称
*/
@RequiresPermissions("news:news:add")
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsSwatNews newsSwatNews)
{
return toAjax(newsSwatNewsService.insertNewsSwatNews(newsSwatNews));
}
/**
* 修改请填写功能名称
*/
@RequiresPermissions("news:news:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsSwatNews newsSwatNews = newsSwatNewsService.selectNewsSwatNewsById(id);
mmap.put("newsSwatNews", newsSwatNews);
return prefix + "/edit";
}
/**
* 修改保存请填写功能名称
*/
@RequiresPermissions("news:news:edit")
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsSwatNews newsSwatNews)
{
return toAjax(newsSwatNewsService.updateNewsSwatNews(newsSwatNews));
}
/**
* 删除请填写功能名称
*/
@RequiresPermissions("news:news:remove")
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsSwatNewsService.deleteNewsSwatNewsByIds(ids));
}
}

View File

@ -0,0 +1,82 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_duty_table
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsDutyTable extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 值班领导 */
@Excel(name = "值班领导")
private String diriger;
/** 值班干部 */
@Excel(name = "值班干部")
private String cadre;
/** 值班日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "值班日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDiriger(String diriger)
{
this.diriger = diriger;
}
public String getDiriger()
{
return diriger;
}
public void setCadre(String cadre)
{
this.cadre = cadre;
}
public String getCadre()
{
return cadre;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("diriger", getDiriger())
.append("cadre", getCadre())
.append("date", getDate())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_falv
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantFalv extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 分类 */
@Excel(name = "分类")
private Long classify;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setClassify(Long classify)
{
this.classify = classify;
}
public Long getClassify()
{
return classify;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("classify", getClassify())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_news
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantNews extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 分类 */
@Excel(name = "分类")
private Long classify;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setClassify(Long classify)
{
this.classify = classify;
}
public Long getClassify()
{
return classify;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("classify", getClassify())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_training
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantTraining extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 分类 */
@Excel(name = "分类")
private Long classify;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setClassify(Long classify)
{
this.classify = classify;
}
public Long getClassify()
{
return classify;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("classify", getClassify())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_tuwen
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantTuwen extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 分类 */
@Excel(name = "分类")
private Long classify;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setClassify(Long classify)
{
this.classify = classify;
}
public Long getClassify()
{
return classify;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("classify", getClassify())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_video
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantVideo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 封面 */
@Excel(name = "封面")
private String image;
/** 视频 */
@Excel(name = "视频")
private String video;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setVideo(String video)
{
this.video = video;
}
public String getVideo()
{
return video;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("video", getVideo())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,208 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_important_zhuanti
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsImportantZhuanti extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long auteurid;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 类型 */
@Excel(name = "类型")
private Long type;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 分类 */
@Excel(name = "分类")
private Long classify;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setAuteurid(Long auteurid)
{
this.auteurid = auteurid;
}
public Long getAuteurid()
{
return auteurid;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setClassify(Long classify)
{
this.classify = classify;
}
public Long getClassify()
{
return classify;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("auteurid", getAuteurid())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("type", getType())
.append("date", getDate())
.append("classify", getClassify())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,152 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_notification
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsNotification extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 授课人 */
@Excel(name = "授课人")
private String instructor;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 发布者 */
@Excel(name = "发布者")
private String auteur;
/** 创建日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 附件 */
@Excel(name = "附件")
private String files;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setInstructor(String instructor)
{
this.instructor = instructor;
}
public String getInstructor()
{
return instructor;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setFiles(String files)
{
this.files = files;
}
public String getFiles()
{
return files;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("unit", getUnit())
.append("instructor", getInstructor())
.append("contenu", getContenu())
.append("auteur", getAuteur())
.append("date", getDate())
.append("files", getFiles())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,82 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_photo
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsPhoto extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 图片 */
@Excel(name = "图片")
private String image;
/** 来源 */
@Excel(name = "来源")
private String url;
/** 上传日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setUrl(String url)
{
this.url = url;
}
public String getUrl()
{
return url;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("image", getImage())
.append("url", getUrl())
.append("date", getDate())
.toString();
}
}

View File

@ -0,0 +1,79 @@
package com.ruoyi.news.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_project_learning
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsProjectLearning extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 图片 */
@Excel(name = "图片")
private String image;
/** 链接 */
@Excel(name = "链接")
private String url;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setUrl(String url)
{
this.url = url;
}
public String getUrl()
{
return url;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("image", getImage())
.append("url", getUrl())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,222 @@
package com.ruoyi.news.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 请填写功能名称对象 news_swat_news
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public class NewsSwatNews extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 第几期 */
@Excel(name = "第几期")
private Long idNumber;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String contenu;
/** 图文轮播 */
@Excel(name = "图文轮播")
private String image;
/** 发布部门ID */
@Excel(name = "发布部门ID")
private Long deptid;
/** 发布部门 */
@Excel(name = "发布部门")
private String deptname;
/** 审核者 */
@Excel(name = "审核者")
private String check;
/** 作者 */
@Excel(name = "作者")
private String auteur;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long corrigerid;
/** 来源 */
@Excel(name = "来源")
private String source;
/** 点击数量 */
@Excel(name = "点击数量")
private Long clicks;
/** 更新日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 状态 */
@Excel(name = "状态")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setIdNumber(Long idNumber)
{
this.idNumber = idNumber;
}
public Long getIdNumber()
{
return idNumber;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContenu(String contenu)
{
this.contenu = contenu;
}
public String getContenu()
{
return contenu;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setDeptid(Long deptid)
{
this.deptid = deptid;
}
public Long getDeptid()
{
return deptid;
}
public void setDeptname(String deptname)
{
this.deptname = deptname;
}
public String getDeptname()
{
return deptname;
}
public void setCheck(String check)
{
this.check = check;
}
public String getCheck()
{
return check;
}
public void setAuteur(String auteur)
{
this.auteur = auteur;
}
public String getAuteur()
{
return auteur;
}
public void setCorrigerid(Long corrigerid)
{
this.corrigerid = corrigerid;
}
public Long getCorrigerid()
{
return corrigerid;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setClicks(Long clicks)
{
this.clicks = clicks;
}
public Long getClicks()
{
return clicks;
}
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("idNumber", getIdNumber())
.append("title", getTitle())
.append("contenu", getContenu())
.append("image", getImage())
.append("deptid", getDeptid())
.append("deptname", getDeptname())
.append("check", getCheck())
.append("auteur", getAuteur())
.append("corrigerid", getCorrigerid())
.append("source", getSource())
.append("clicks", getClicks())
.append("date", getDate())
.append("status", getStatus())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsDutyTable;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsDutyTableMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsDutyTable selectNewsDutyTableById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsDutyTable 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsDutyTable> selectNewsDutyTableList(NewsDutyTable newsDutyTable);
/**
* 新增请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
public int insertNewsDutyTable(NewsDutyTable newsDutyTable);
/**
* 修改请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
public int updateNewsDutyTable(NewsDutyTable newsDutyTable);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsDutyTableById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsDutyTableByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantFalv;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantFalvMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantFalv selectNewsImportantFalvById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantFalv 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantFalv> selectNewsImportantFalvList(NewsImportantFalv newsImportantFalv);
/**
* 新增请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
public int insertNewsImportantFalv(NewsImportantFalv newsImportantFalv);
/**
* 修改请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
public int updateNewsImportantFalv(NewsImportantFalv newsImportantFalv);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantFalvById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantFalvByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantNews;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantNewsMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantNews selectNewsImportantNewsById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantNews 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantNews> selectNewsImportantNewsList(NewsImportantNews newsImportantNews);
/**
* 新增请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
public int insertNewsImportantNews(NewsImportantNews newsImportantNews);
/**
* 修改请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
public int updateNewsImportantNews(NewsImportantNews newsImportantNews);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantNewsById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantNewsByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantTraining;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantTrainingMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantTraining selectNewsImportantTrainingById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantTraining 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantTraining> selectNewsImportantTrainingList(NewsImportantTraining newsImportantTraining);
/**
* 新增请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
public int insertNewsImportantTraining(NewsImportantTraining newsImportantTraining);
/**
* 修改请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
public int updateNewsImportantTraining(NewsImportantTraining newsImportantTraining);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantTrainingById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantTrainingByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantTuwen;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantTuwenMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantTuwen selectNewsImportantTuwenById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantTuwen 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantTuwen> selectNewsImportantTuwenList(NewsImportantTuwen newsImportantTuwen);
/**
* 新增请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
public int insertNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen);
/**
* 修改请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
public int updateNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantTuwenById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantTuwenByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantVideo;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantVideoMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantVideo selectNewsImportantVideoById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantVideo 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantVideo> selectNewsImportantVideoList(NewsImportantVideo newsImportantVideo);
/**
* 新增请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
public int insertNewsImportantVideo(NewsImportantVideo newsImportantVideo);
/**
* 修改请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
public int updateNewsImportantVideo(NewsImportantVideo newsImportantVideo);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantVideoById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantVideoByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantZhuanti;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsImportantZhuantiMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantZhuanti selectNewsImportantZhuantiById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantZhuanti 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantZhuanti> selectNewsImportantZhuantiList(NewsImportantZhuanti newsImportantZhuanti);
/**
* 新增请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
public int insertNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti);
/**
* 修改请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
public int updateNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantZhuantiById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsImportantZhuantiByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsNotification;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsNotificationMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsNotification selectNewsNotificationById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsNotification 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsNotification> selectNewsNotificationList(NewsNotification newsNotification);
/**
* 新增请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
public int insertNewsNotification(NewsNotification newsNotification);
/**
* 修改请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
public int updateNewsNotification(NewsNotification newsNotification);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsNotificationById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsNotificationByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsPhoto;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsPhotoMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsPhoto selectNewsPhotoById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsPhoto 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsPhoto> selectNewsPhotoList(NewsPhoto newsPhoto);
/**
* 新增请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
public int insertNewsPhoto(NewsPhoto newsPhoto);
/**
* 修改请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
public int updateNewsPhoto(NewsPhoto newsPhoto);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsPhotoById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsPhotoByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsProjectLearning;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsProjectLearningMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsProjectLearning selectNewsProjectLearningById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsProjectLearning 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsProjectLearning> selectNewsProjectLearningList(NewsProjectLearning newsProjectLearning);
/**
* 新增请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
public int insertNewsProjectLearning(NewsProjectLearning newsProjectLearning);
/**
* 修改请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
public int updateNewsProjectLearning(NewsProjectLearning newsProjectLearning);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsProjectLearningById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsProjectLearningByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.mapper;
import java.util.List;
import com.ruoyi.news.domain.NewsSwatNews;
/**
* 请填写功能名称Mapper接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface NewsSwatNewsMapper
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsSwatNews selectNewsSwatNewsById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsSwatNews 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsSwatNews> selectNewsSwatNewsList(NewsSwatNews newsSwatNews);
/**
* 新增请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
public int insertNewsSwatNews(NewsSwatNews newsSwatNews);
/**
* 修改请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
public int updateNewsSwatNews(NewsSwatNews newsSwatNews);
/**
* 删除请填写功能名称
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsSwatNewsById(Long id);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNewsSwatNewsByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsDutyTable;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsDutyTableService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsDutyTable selectNewsDutyTableById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsDutyTable 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsDutyTable> selectNewsDutyTableList(NewsDutyTable newsDutyTable);
/**
* 新增请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
public int insertNewsDutyTable(NewsDutyTable newsDutyTable);
/**
* 修改请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
public int updateNewsDutyTable(NewsDutyTable newsDutyTable);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsDutyTableByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsDutyTableById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantFalv;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantFalvService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantFalv selectNewsImportantFalvById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantFalv 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantFalv> selectNewsImportantFalvList(NewsImportantFalv newsImportantFalv);
/**
* 新增请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
public int insertNewsImportantFalv(NewsImportantFalv newsImportantFalv);
/**
* 修改请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
public int updateNewsImportantFalv(NewsImportantFalv newsImportantFalv);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantFalvByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantFalvById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantNews;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantNewsService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantNews selectNewsImportantNewsById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantNews 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantNews> selectNewsImportantNewsList(NewsImportantNews newsImportantNews);
/**
* 新增请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
public int insertNewsImportantNews(NewsImportantNews newsImportantNews);
/**
* 修改请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
public int updateNewsImportantNews(NewsImportantNews newsImportantNews);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantNewsByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantNewsById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantTraining;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantTrainingService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantTraining selectNewsImportantTrainingById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantTraining 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantTraining> selectNewsImportantTrainingList(NewsImportantTraining newsImportantTraining);
/**
* 新增请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
public int insertNewsImportantTraining(NewsImportantTraining newsImportantTraining);
/**
* 修改请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
public int updateNewsImportantTraining(NewsImportantTraining newsImportantTraining);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantTrainingByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantTrainingById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantTuwen;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantTuwenService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantTuwen selectNewsImportantTuwenById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantTuwen 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantTuwen> selectNewsImportantTuwenList(NewsImportantTuwen newsImportantTuwen);
/**
* 新增请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
public int insertNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen);
/**
* 修改请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
public int updateNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantTuwenByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantTuwenById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantVideo;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantVideoService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantVideo selectNewsImportantVideoById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantVideo 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantVideo> selectNewsImportantVideoList(NewsImportantVideo newsImportantVideo);
/**
* 新增请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
public int insertNewsImportantVideo(NewsImportantVideo newsImportantVideo);
/**
* 修改请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
public int updateNewsImportantVideo(NewsImportantVideo newsImportantVideo);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantVideoByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantVideoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsImportantZhuanti;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsImportantZhuantiService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsImportantZhuanti selectNewsImportantZhuantiById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsImportantZhuanti 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsImportantZhuanti> selectNewsImportantZhuantiList(NewsImportantZhuanti newsImportantZhuanti);
/**
* 新增请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
public int insertNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti);
/**
* 修改请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
public int updateNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsImportantZhuantiByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsImportantZhuantiById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsNotification;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsNotificationService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsNotification selectNewsNotificationById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsNotification 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsNotification> selectNewsNotificationList(NewsNotification newsNotification);
/**
* 新增请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
public int insertNewsNotification(NewsNotification newsNotification);
/**
* 修改请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
public int updateNewsNotification(NewsNotification newsNotification);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsNotificationByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsNotificationById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsPhoto;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsPhotoService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsPhoto selectNewsPhotoById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsPhoto 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsPhoto> selectNewsPhotoList(NewsPhoto newsPhoto);
/**
* 新增请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
public int insertNewsPhoto(NewsPhoto newsPhoto);
/**
* 修改请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
public int updateNewsPhoto(NewsPhoto newsPhoto);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsPhotoByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsPhotoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsProjectLearning;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsProjectLearningService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsProjectLearning selectNewsProjectLearningById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsProjectLearning 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsProjectLearning> selectNewsProjectLearningList(NewsProjectLearning newsProjectLearning);
/**
* 新增请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
public int insertNewsProjectLearning(NewsProjectLearning newsProjectLearning);
/**
* 修改请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
public int updateNewsProjectLearning(NewsProjectLearning newsProjectLearning);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsProjectLearningByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsProjectLearningById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.news.service;
import java.util.List;
import com.ruoyi.news.domain.NewsSwatNews;
/**
* 请填写功能名称Service接口
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
public interface INewsSwatNewsService
{
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
public NewsSwatNews selectNewsSwatNewsById(Long id);
/**
* 查询请填写功能名称列表
*
* @param newsSwatNews 请填写功能名称
* @return 请填写功能名称集合
*/
public List<NewsSwatNews> selectNewsSwatNewsList(NewsSwatNews newsSwatNews);
/**
* 新增请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
public int insertNewsSwatNews(NewsSwatNews newsSwatNews);
/**
* 修改请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
public int updateNewsSwatNews(NewsSwatNews newsSwatNews);
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键集合
* @return 结果
*/
public int deleteNewsSwatNewsByIds(String ids);
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
public int deleteNewsSwatNewsById(Long id);
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsDutyTableMapper;
import com.ruoyi.news.domain.NewsDutyTable;
import com.ruoyi.news.service.INewsDutyTableService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsDutyTableServiceImpl implements INewsDutyTableService
{
@Autowired
private NewsDutyTableMapper newsDutyTableMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsDutyTable selectNewsDutyTableById(Long id)
{
return newsDutyTableMapper.selectNewsDutyTableById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsDutyTable 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsDutyTable> selectNewsDutyTableList(NewsDutyTable newsDutyTable)
{
return newsDutyTableMapper.selectNewsDutyTableList(newsDutyTable);
}
/**
* 新增请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsDutyTable(NewsDutyTable newsDutyTable)
{
return newsDutyTableMapper.insertNewsDutyTable(newsDutyTable);
}
/**
* 修改请填写功能名称
*
* @param newsDutyTable 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsDutyTable(NewsDutyTable newsDutyTable)
{
return newsDutyTableMapper.updateNewsDutyTable(newsDutyTable);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsDutyTableByIds(String ids)
{
return newsDutyTableMapper.deleteNewsDutyTableByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsDutyTableById(Long id)
{
return newsDutyTableMapper.deleteNewsDutyTableById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantFalvMapper;
import com.ruoyi.news.domain.NewsImportantFalv;
import com.ruoyi.news.service.INewsImportantFalvService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantFalvServiceImpl implements INewsImportantFalvService
{
@Autowired
private NewsImportantFalvMapper newsImportantFalvMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantFalv selectNewsImportantFalvById(Long id)
{
return newsImportantFalvMapper.selectNewsImportantFalvById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantFalv 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantFalv> selectNewsImportantFalvList(NewsImportantFalv newsImportantFalv)
{
return newsImportantFalvMapper.selectNewsImportantFalvList(newsImportantFalv);
}
/**
* 新增请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantFalv(NewsImportantFalv newsImportantFalv)
{
return newsImportantFalvMapper.insertNewsImportantFalv(newsImportantFalv);
}
/**
* 修改请填写功能名称
*
* @param newsImportantFalv 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantFalv(NewsImportantFalv newsImportantFalv)
{
return newsImportantFalvMapper.updateNewsImportantFalv(newsImportantFalv);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantFalvByIds(String ids)
{
return newsImportantFalvMapper.deleteNewsImportantFalvByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantFalvById(Long id)
{
return newsImportantFalvMapper.deleteNewsImportantFalvById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantNewsMapper;
import com.ruoyi.news.domain.NewsImportantNews;
import com.ruoyi.news.service.INewsImportantNewsService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantNewsServiceImpl implements INewsImportantNewsService
{
@Autowired
private NewsImportantNewsMapper newsImportantNewsMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantNews selectNewsImportantNewsById(Long id)
{
return newsImportantNewsMapper.selectNewsImportantNewsById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantNews 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantNews> selectNewsImportantNewsList(NewsImportantNews newsImportantNews)
{
return newsImportantNewsMapper.selectNewsImportantNewsList(newsImportantNews);
}
/**
* 新增请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantNews(NewsImportantNews newsImportantNews)
{
return newsImportantNewsMapper.insertNewsImportantNews(newsImportantNews);
}
/**
* 修改请填写功能名称
*
* @param newsImportantNews 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantNews(NewsImportantNews newsImportantNews)
{
return newsImportantNewsMapper.updateNewsImportantNews(newsImportantNews);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantNewsByIds(String ids)
{
return newsImportantNewsMapper.deleteNewsImportantNewsByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantNewsById(Long id)
{
return newsImportantNewsMapper.deleteNewsImportantNewsById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantTrainingMapper;
import com.ruoyi.news.domain.NewsImportantTraining;
import com.ruoyi.news.service.INewsImportantTrainingService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantTrainingServiceImpl implements INewsImportantTrainingService
{
@Autowired
private NewsImportantTrainingMapper newsImportantTrainingMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantTraining selectNewsImportantTrainingById(Long id)
{
return newsImportantTrainingMapper.selectNewsImportantTrainingById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantTraining 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantTraining> selectNewsImportantTrainingList(NewsImportantTraining newsImportantTraining)
{
return newsImportantTrainingMapper.selectNewsImportantTrainingList(newsImportantTraining);
}
/**
* 新增请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantTraining(NewsImportantTraining newsImportantTraining)
{
return newsImportantTrainingMapper.insertNewsImportantTraining(newsImportantTraining);
}
/**
* 修改请填写功能名称
*
* @param newsImportantTraining 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantTraining(NewsImportantTraining newsImportantTraining)
{
return newsImportantTrainingMapper.updateNewsImportantTraining(newsImportantTraining);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantTrainingByIds(String ids)
{
return newsImportantTrainingMapper.deleteNewsImportantTrainingByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantTrainingById(Long id)
{
return newsImportantTrainingMapper.deleteNewsImportantTrainingById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantTuwenMapper;
import com.ruoyi.news.domain.NewsImportantTuwen;
import com.ruoyi.news.service.INewsImportantTuwenService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantTuwenServiceImpl implements INewsImportantTuwenService
{
@Autowired
private NewsImportantTuwenMapper newsImportantTuwenMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantTuwen selectNewsImportantTuwenById(Long id)
{
return newsImportantTuwenMapper.selectNewsImportantTuwenById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantTuwen 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantTuwen> selectNewsImportantTuwenList(NewsImportantTuwen newsImportantTuwen)
{
return newsImportantTuwenMapper.selectNewsImportantTuwenList(newsImportantTuwen);
}
/**
* 新增请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen)
{
return newsImportantTuwenMapper.insertNewsImportantTuwen(newsImportantTuwen);
}
/**
* 修改请填写功能名称
*
* @param newsImportantTuwen 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantTuwen(NewsImportantTuwen newsImportantTuwen)
{
return newsImportantTuwenMapper.updateNewsImportantTuwen(newsImportantTuwen);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantTuwenByIds(String ids)
{
return newsImportantTuwenMapper.deleteNewsImportantTuwenByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantTuwenById(Long id)
{
return newsImportantTuwenMapper.deleteNewsImportantTuwenById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantVideoMapper;
import com.ruoyi.news.domain.NewsImportantVideo;
import com.ruoyi.news.service.INewsImportantVideoService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantVideoServiceImpl implements INewsImportantVideoService
{
@Autowired
private NewsImportantVideoMapper newsImportantVideoMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantVideo selectNewsImportantVideoById(Long id)
{
return newsImportantVideoMapper.selectNewsImportantVideoById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantVideo 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantVideo> selectNewsImportantVideoList(NewsImportantVideo newsImportantVideo)
{
return newsImportantVideoMapper.selectNewsImportantVideoList(newsImportantVideo);
}
/**
* 新增请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantVideo(NewsImportantVideo newsImportantVideo)
{
return newsImportantVideoMapper.insertNewsImportantVideo(newsImportantVideo);
}
/**
* 修改请填写功能名称
*
* @param newsImportantVideo 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantVideo(NewsImportantVideo newsImportantVideo)
{
return newsImportantVideoMapper.updateNewsImportantVideo(newsImportantVideo);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantVideoByIds(String ids)
{
return newsImportantVideoMapper.deleteNewsImportantVideoByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantVideoById(Long id)
{
return newsImportantVideoMapper.deleteNewsImportantVideoById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsImportantZhuantiMapper;
import com.ruoyi.news.domain.NewsImportantZhuanti;
import com.ruoyi.news.service.INewsImportantZhuantiService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsImportantZhuantiServiceImpl implements INewsImportantZhuantiService
{
@Autowired
private NewsImportantZhuantiMapper newsImportantZhuantiMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsImportantZhuanti selectNewsImportantZhuantiById(Long id)
{
return newsImportantZhuantiMapper.selectNewsImportantZhuantiById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsImportantZhuanti 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsImportantZhuanti> selectNewsImportantZhuantiList(NewsImportantZhuanti newsImportantZhuanti)
{
return newsImportantZhuantiMapper.selectNewsImportantZhuantiList(newsImportantZhuanti);
}
/**
* 新增请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti)
{
return newsImportantZhuantiMapper.insertNewsImportantZhuanti(newsImportantZhuanti);
}
/**
* 修改请填写功能名称
*
* @param newsImportantZhuanti 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsImportantZhuanti(NewsImportantZhuanti newsImportantZhuanti)
{
return newsImportantZhuantiMapper.updateNewsImportantZhuanti(newsImportantZhuanti);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantZhuantiByIds(String ids)
{
return newsImportantZhuantiMapper.deleteNewsImportantZhuantiByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsImportantZhuantiById(Long id)
{
return newsImportantZhuantiMapper.deleteNewsImportantZhuantiById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsNotificationMapper;
import com.ruoyi.news.domain.NewsNotification;
import com.ruoyi.news.service.INewsNotificationService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsNotificationServiceImpl implements INewsNotificationService
{
@Autowired
private NewsNotificationMapper newsNotificationMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsNotification selectNewsNotificationById(Long id)
{
return newsNotificationMapper.selectNewsNotificationById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsNotification 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsNotification> selectNewsNotificationList(NewsNotification newsNotification)
{
return newsNotificationMapper.selectNewsNotificationList(newsNotification);
}
/**
* 新增请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsNotification(NewsNotification newsNotification)
{
return newsNotificationMapper.insertNewsNotification(newsNotification);
}
/**
* 修改请填写功能名称
*
* @param newsNotification 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsNotification(NewsNotification newsNotification)
{
return newsNotificationMapper.updateNewsNotification(newsNotification);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsNotificationByIds(String ids)
{
return newsNotificationMapper.deleteNewsNotificationByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsNotificationById(Long id)
{
return newsNotificationMapper.deleteNewsNotificationById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsPhotoMapper;
import com.ruoyi.news.domain.NewsPhoto;
import com.ruoyi.news.service.INewsPhotoService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsPhotoServiceImpl implements INewsPhotoService
{
@Autowired
private NewsPhotoMapper newsPhotoMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsPhoto selectNewsPhotoById(Long id)
{
return newsPhotoMapper.selectNewsPhotoById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsPhoto 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsPhoto> selectNewsPhotoList(NewsPhoto newsPhoto)
{
return newsPhotoMapper.selectNewsPhotoList(newsPhoto);
}
/**
* 新增请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsPhoto(NewsPhoto newsPhoto)
{
return newsPhotoMapper.insertNewsPhoto(newsPhoto);
}
/**
* 修改请填写功能名称
*
* @param newsPhoto 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsPhoto(NewsPhoto newsPhoto)
{
return newsPhotoMapper.updateNewsPhoto(newsPhoto);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsPhotoByIds(String ids)
{
return newsPhotoMapper.deleteNewsPhotoByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsPhotoById(Long id)
{
return newsPhotoMapper.deleteNewsPhotoById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsProjectLearningMapper;
import com.ruoyi.news.domain.NewsProjectLearning;
import com.ruoyi.news.service.INewsProjectLearningService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsProjectLearningServiceImpl implements INewsProjectLearningService
{
@Autowired
private NewsProjectLearningMapper newsProjectLearningMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsProjectLearning selectNewsProjectLearningById(Long id)
{
return newsProjectLearningMapper.selectNewsProjectLearningById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsProjectLearning 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsProjectLearning> selectNewsProjectLearningList(NewsProjectLearning newsProjectLearning)
{
return newsProjectLearningMapper.selectNewsProjectLearningList(newsProjectLearning);
}
/**
* 新增请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsProjectLearning(NewsProjectLearning newsProjectLearning)
{
return newsProjectLearningMapper.insertNewsProjectLearning(newsProjectLearning);
}
/**
* 修改请填写功能名称
*
* @param newsProjectLearning 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsProjectLearning(NewsProjectLearning newsProjectLearning)
{
return newsProjectLearningMapper.updateNewsProjectLearning(newsProjectLearning);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsProjectLearningByIds(String ids)
{
return newsProjectLearningMapper.deleteNewsProjectLearningByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsProjectLearningById(Long id)
{
return newsProjectLearningMapper.deleteNewsProjectLearningById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.ruoyi.news.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.news.mapper.NewsSwatNewsMapper;
import com.ruoyi.news.domain.NewsSwatNews;
import com.ruoyi.news.service.INewsSwatNewsService;
import com.ruoyi.common.core.text.Convert;
/**
* 请填写功能名称Service业务层处理
*
* @author admin@abdu.net.cn
* @date 2022-07-19
*/
@Service
public class NewsSwatNewsServiceImpl implements INewsSwatNewsService
{
@Autowired
private NewsSwatNewsMapper newsSwatNewsMapper;
/**
* 查询请填写功能名称
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
*/
@Override
public NewsSwatNews selectNewsSwatNewsById(Long id)
{
return newsSwatNewsMapper.selectNewsSwatNewsById(id);
}
/**
* 查询请填写功能名称列表
*
* @param newsSwatNews 请填写功能名称
* @return 请填写功能名称
*/
@Override
public List<NewsSwatNews> selectNewsSwatNewsList(NewsSwatNews newsSwatNews)
{
return newsSwatNewsMapper.selectNewsSwatNewsList(newsSwatNews);
}
/**
* 新增请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
@Override
public int insertNewsSwatNews(NewsSwatNews newsSwatNews)
{
return newsSwatNewsMapper.insertNewsSwatNews(newsSwatNews);
}
/**
* 修改请填写功能名称
*
* @param newsSwatNews 请填写功能名称
* @return 结果
*/
@Override
public int updateNewsSwatNews(NewsSwatNews newsSwatNews)
{
return newsSwatNewsMapper.updateNewsSwatNews(newsSwatNews);
}
/**
* 批量删除请填写功能名称
*
* @param ids 需要删除的请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsSwatNewsByIds(String ids)
{
return newsSwatNewsMapper.deleteNewsSwatNewsByIds(Convert.toStrArray(ids));
}
/**
* 删除请填写功能名称信息
*
* @param id 请填写功能名称主键
* @return 结果
*/
@Override
public int deleteNewsSwatNewsById(Long id)
{
return newsSwatNewsMapper.deleteNewsSwatNewsById(id);
}
}

View File

@ -0,0 +1,67 @@
<?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.ruoyi.news.mapper.NewsDutyTableMapper">
<resultMap type="NewsDutyTable" id="NewsDutyTableResult">
<result property="id" column="id" />
<result property="diriger" column="diriger" />
<result property="cadre" column="cadre" />
<result property="date" column="date" />
</resultMap>
<sql id="selectNewsDutyTableVo">
select id, diriger, cadre, date from news_duty_table
</sql>
<select id="selectNewsDutyTableList" parameterType="NewsDutyTable" resultMap="NewsDutyTableResult">
<include refid="selectNewsDutyTableVo"/>
<where>
<if test="diriger != null and diriger != ''"> and diriger = #{diriger}</if>
<if test="cadre != null and cadre != ''"> and cadre = #{cadre}</if>
<if test="date != null "> and date = #{date}</if>
</where>
</select>
<select id="selectNewsDutyTableById" parameterType="Long" resultMap="NewsDutyTableResult">
<include refid="selectNewsDutyTableVo"/>
where id = #{id}
</select>
<insert id="insertNewsDutyTable" parameterType="NewsDutyTable" useGeneratedKeys="true" keyProperty="id">
insert into news_duty_table
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="diriger != null">diriger,</if>
<if test="cadre != null">cadre,</if>
<if test="date != null">date,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="diriger != null">#{diriger},</if>
<if test="cadre != null">#{cadre},</if>
<if test="date != null">#{date},</if>
</trim>
</insert>
<update id="updateNewsDutyTable" parameterType="NewsDutyTable">
update news_duty_table
<trim prefix="SET" suffixOverrides=",">
<if test="diriger != null">diriger = #{diriger},</if>
<if test="cadre != null">cadre = #{cadre},</if>
<if test="date != null">date = #{date},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsDutyTableById" parameterType="Long">
delete from news_duty_table where id = #{id}
</delete>
<delete id="deleteNewsDutyTableByIds" parameterType="String">
delete from news_duty_table where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantFalvMapper">
<resultMap type="NewsImportantFalv" id="NewsImportantFalvResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="classify" column="classify" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantFalvVo">
select id, title, contenu, image, auteurid, auteur, corrigerid, source, clicks, type, date, classify, status from news_important_falv
</sql>
<select id="selectNewsImportantFalvList" parameterType="NewsImportantFalv" resultMap="NewsImportantFalvResult">
<include refid="selectNewsImportantFalvVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="classify != null "> and classify = #{classify}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantFalvById" parameterType="Long" resultMap="NewsImportantFalvResult">
<include refid="selectNewsImportantFalvVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantFalv" parameterType="NewsImportantFalv" useGeneratedKeys="true" keyProperty="id">
insert into news_important_falv
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="classify != null">classify,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="classify != null">#{classify},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantFalv" parameterType="NewsImportantFalv">
update news_important_falv
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="classify != null">classify = #{classify},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantFalvById" parameterType="Long">
delete from news_important_falv where id = #{id}
</delete>
<delete id="deleteNewsImportantFalvByIds" parameterType="String">
delete from news_important_falv where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantNewsMapper">
<resultMap type="NewsImportantNews" id="NewsImportantNewsResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="classify" column="classify" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantNewsVo">
select id, title, contenu, image, auteurid, auteur, corrigerid, source, clicks, type, date, classify, status from news_important_news
</sql>
<select id="selectNewsImportantNewsList" parameterType="NewsImportantNews" resultMap="NewsImportantNewsResult">
<include refid="selectNewsImportantNewsVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="classify != null "> and classify = #{classify}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantNewsById" parameterType="Long" resultMap="NewsImportantNewsResult">
<include refid="selectNewsImportantNewsVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantNews" parameterType="NewsImportantNews" useGeneratedKeys="true" keyProperty="id">
insert into news_important_news
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="classify != null">classify,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="classify != null">#{classify},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantNews" parameterType="NewsImportantNews">
update news_important_news
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="classify != null">classify = #{classify},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantNewsById" parameterType="Long">
delete from news_important_news where id = #{id}
</delete>
<delete id="deleteNewsImportantNewsByIds" parameterType="String">
delete from news_important_news where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantTrainingMapper">
<resultMap type="NewsImportantTraining" id="NewsImportantTrainingResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="classify" column="classify" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantTrainingVo">
select id, title, contenu, image, auteurid, auteur, corrigerid, source, clicks, type, date, classify, status from news_important_training
</sql>
<select id="selectNewsImportantTrainingList" parameterType="NewsImportantTraining" resultMap="NewsImportantTrainingResult">
<include refid="selectNewsImportantTrainingVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="classify != null "> and classify = #{classify}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantTrainingById" parameterType="Long" resultMap="NewsImportantTrainingResult">
<include refid="selectNewsImportantTrainingVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantTraining" parameterType="NewsImportantTraining" useGeneratedKeys="true" keyProperty="id">
insert into news_important_training
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="classify != null">classify,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="classify != null">#{classify},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantTraining" parameterType="NewsImportantTraining">
update news_important_training
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="classify != null">classify = #{classify},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantTrainingById" parameterType="Long">
delete from news_important_training where id = #{id}
</delete>
<delete id="deleteNewsImportantTrainingByIds" parameterType="String">
delete from news_important_training where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantTuwenMapper">
<resultMap type="NewsImportantTuwen" id="NewsImportantTuwenResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="classify" column="classify" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantTuwenVo">
select id, title, contenu, image, auteurid, auteur, corrigerid, source, clicks, type, date, classify, status from news_important_tuwen
</sql>
<select id="selectNewsImportantTuwenList" parameterType="NewsImportantTuwen" resultMap="NewsImportantTuwenResult">
<include refid="selectNewsImportantTuwenVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="classify != null "> and classify = #{classify}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantTuwenById" parameterType="Long" resultMap="NewsImportantTuwenResult">
<include refid="selectNewsImportantTuwenVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantTuwen" parameterType="NewsImportantTuwen" useGeneratedKeys="true" keyProperty="id">
insert into news_important_tuwen
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="classify != null">classify,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="classify != null">#{classify},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantTuwen" parameterType="NewsImportantTuwen">
update news_important_tuwen
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="classify != null">classify = #{classify},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantTuwenById" parameterType="Long">
delete from news_important_tuwen where id = #{id}
</delete>
<delete id="deleteNewsImportantTuwenByIds" parameterType="String">
delete from news_important_tuwen where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantVideoMapper">
<resultMap type="NewsImportantVideo" id="NewsImportantVideoResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="video" column="video" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantVideoVo">
select id, title, contenu, image, video, auteurid, auteur, corrigerid, source, clicks, type, date, status from news_important_video
</sql>
<select id="selectNewsImportantVideoList" parameterType="NewsImportantVideo" resultMap="NewsImportantVideoResult">
<include refid="selectNewsImportantVideoVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="video != null and video != ''"> and video = #{video}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantVideoById" parameterType="Long" resultMap="NewsImportantVideoResult">
<include refid="selectNewsImportantVideoVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantVideo" parameterType="NewsImportantVideo" useGeneratedKeys="true" keyProperty="id">
insert into news_important_video
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="video != null">video,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="video != null">#{video},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantVideo" parameterType="NewsImportantVideo">
update news_important_video
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="video != null">video = #{video},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantVideoById" parameterType="Long">
delete from news_important_video where id = #{id}
</delete>
<delete id="deleteNewsImportantVideoByIds" parameterType="String">
delete from news_important_video where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,112 @@
<?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.ruoyi.news.mapper.NewsImportantZhuantiMapper">
<resultMap type="NewsImportantZhuanti" id="NewsImportantZhuantiResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="auteurid" column="auteurid" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="type" column="type" />
<result property="date" column="date" />
<result property="classify" column="classify" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsImportantZhuantiVo">
select id, title, contenu, image, auteurid, auteur, corrigerid, source, clicks, type, date, classify, status from news_important_zhuanti
</sql>
<select id="selectNewsImportantZhuantiList" parameterType="NewsImportantZhuanti" resultMap="NewsImportantZhuantiResult">
<include refid="selectNewsImportantZhuantiVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="auteurid != null "> and auteurid = #{auteurid}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="type != null "> and type = #{type}</if>
<if test="date != null "> and date = #{date}</if>
<if test="classify != null "> and classify = #{classify}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsImportantZhuantiById" parameterType="Long" resultMap="NewsImportantZhuantiResult">
<include refid="selectNewsImportantZhuantiVo"/>
where id = #{id}
</select>
<insert id="insertNewsImportantZhuanti" parameterType="NewsImportantZhuanti" useGeneratedKeys="true" keyProperty="id">
insert into news_important_zhuanti
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="auteurid != null">auteurid,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="type != null">type,</if>
<if test="date != null">date,</if>
<if test="classify != null">classify,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="auteurid != null">#{auteurid},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="type != null">#{type},</if>
<if test="date != null">#{date},</if>
<if test="classify != null">#{classify},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsImportantZhuanti" parameterType="NewsImportantZhuanti">
update news_important_zhuanti
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="auteurid != null">auteurid = #{auteurid},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="type != null">type = #{type},</if>
<if test="date != null">date = #{date},</if>
<if test="classify != null">classify = #{classify},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsImportantZhuantiById" parameterType="Long">
delete from news_important_zhuanti where id = #{id}
</delete>
<delete id="deleteNewsImportantZhuantiByIds" parameterType="String">
delete from news_important_zhuanti where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,92 @@
<?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.ruoyi.news.mapper.NewsNotificationMapper">
<resultMap type="NewsNotification" id="NewsNotificationResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="unit" column="unit" />
<result property="instructor" column="instructor" />
<result property="contenu" column="contenu" />
<result property="auteur" column="auteur" />
<result property="date" column="date" />
<result property="files" column="files" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsNotificationVo">
select id, title, unit, instructor, contenu, auteur, date, files, status from news_notification
</sql>
<select id="selectNewsNotificationList" parameterType="NewsNotification" resultMap="NewsNotificationResult">
<include refid="selectNewsNotificationVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="instructor != null and instructor != ''"> and instructor = #{instructor}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="date != null "> and date = #{date}</if>
<if test="files != null and files != ''"> and files = #{files}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsNotificationById" parameterType="Long" resultMap="NewsNotificationResult">
<include refid="selectNewsNotificationVo"/>
where id = #{id}
</select>
<insert id="insertNewsNotification" parameterType="NewsNotification" useGeneratedKeys="true" keyProperty="id">
insert into news_notification
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="unit != null">unit,</if>
<if test="instructor != null">instructor,</if>
<if test="contenu != null">contenu,</if>
<if test="auteur != null">auteur,</if>
<if test="date != null">date,</if>
<if test="files != null">files,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="unit != null">#{unit},</if>
<if test="instructor != null">#{instructor},</if>
<if test="contenu != null">#{contenu},</if>
<if test="auteur != null">#{auteur},</if>
<if test="date != null">#{date},</if>
<if test="files != null">#{files},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsNotification" parameterType="NewsNotification">
update news_notification
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="instructor != null">instructor = #{instructor},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="date != null">date = #{date},</if>
<if test="files != null">files = #{files},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsNotificationById" parameterType="Long">
delete from news_notification where id = #{id}
</delete>
<delete id="deleteNewsNotificationByIds" parameterType="String">
delete from news_notification where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,67 @@
<?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.ruoyi.news.mapper.NewsPhotoMapper">
<resultMap type="NewsPhoto" id="NewsPhotoResult">
<result property="id" column="id" />
<result property="image" column="image" />
<result property="url" column="url" />
<result property="date" column="date" />
</resultMap>
<sql id="selectNewsPhotoVo">
select id, image, url, date from news_photo
</sql>
<select id="selectNewsPhotoList" parameterType="NewsPhoto" resultMap="NewsPhotoResult">
<include refid="selectNewsPhotoVo"/>
<where>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="url != null and url != ''"> and url = #{url}</if>
<if test="date != null "> and date = #{date}</if>
</where>
</select>
<select id="selectNewsPhotoById" parameterType="Long" resultMap="NewsPhotoResult">
<include refid="selectNewsPhotoVo"/>
where id = #{id}
</select>
<insert id="insertNewsPhoto" parameterType="NewsPhoto" useGeneratedKeys="true" keyProperty="id">
insert into news_photo
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="image != null">image,</if>
<if test="url != null">url,</if>
<if test="date != null">date,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="image != null">#{image},</if>
<if test="url != null">#{url},</if>
<if test="date != null">#{date},</if>
</trim>
</insert>
<update id="updateNewsPhoto" parameterType="NewsPhoto">
update news_photo
<trim prefix="SET" suffixOverrides=",">
<if test="image != null">image = #{image},</if>
<if test="url != null">url = #{url},</if>
<if test="date != null">date = #{date},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsPhotoById" parameterType="Long">
delete from news_photo where id = #{id}
</delete>
<delete id="deleteNewsPhotoByIds" parameterType="String">
delete from news_photo where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,67 @@
<?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.ruoyi.news.mapper.NewsProjectLearningMapper">
<resultMap type="NewsProjectLearning" id="NewsProjectLearningResult">
<result property="id" column="id" />
<result property="image" column="image" />
<result property="url" column="url" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsProjectLearningVo">
select id, image, url, status from news_project_learning
</sql>
<select id="selectNewsProjectLearningList" parameterType="NewsProjectLearning" resultMap="NewsProjectLearningResult">
<include refid="selectNewsProjectLearningVo"/>
<where>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="url != null and url != ''"> and url = #{url}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsProjectLearningById" parameterType="Long" resultMap="NewsProjectLearningResult">
<include refid="selectNewsProjectLearningVo"/>
where id = #{id}
</select>
<insert id="insertNewsProjectLearning" parameterType="NewsProjectLearning" useGeneratedKeys="true" keyProperty="id">
insert into news_project_learning
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="image != null">image,</if>
<if test="url != null">url,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="image != null">#{image},</if>
<if test="url != null">#{url},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsProjectLearning" parameterType="NewsProjectLearning">
update news_project_learning
<trim prefix="SET" suffixOverrides=",">
<if test="image != null">image = #{image},</if>
<if test="url != null">url = #{url},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsProjectLearningById" parameterType="Long">
delete from news_project_learning where id = #{id}
</delete>
<delete id="deleteNewsProjectLearningByIds" parameterType="String">
delete from news_project_learning where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,117 @@
<?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.ruoyi.news.mapper.NewsSwatNewsMapper">
<resultMap type="NewsSwatNews" id="NewsSwatNewsResult">
<result property="id" column="id" />
<result property="idNumber" column="id_number" />
<result property="title" column="title" />
<result property="contenu" column="contenu" />
<result property="image" column="image" />
<result property="deptid" column="deptid" />
<result property="deptname" column="deptname" />
<result property="check" column="check" />
<result property="auteur" column="auteur" />
<result property="corrigerid" column="corrigerid" />
<result property="source" column="source" />
<result property="clicks" column="clicks" />
<result property="date" column="date" />
<result property="status" column="status" />
</resultMap>
<sql id="selectNewsSwatNewsVo">
select id, id_number, title, contenu, image, deptid, deptname, check, auteur, corrigerid, source, clicks, date, status from news_swat_news
</sql>
<select id="selectNewsSwatNewsList" parameterType="NewsSwatNews" resultMap="NewsSwatNewsResult">
<include refid="selectNewsSwatNewsVo"/>
<where>
<if test="idNumber != null "> and id_number = #{idNumber}</if>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="contenu != null and contenu != ''"> and contenu = #{contenu}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="deptid != null "> and deptid = #{deptid}</if>
<if test="deptname != null and deptname != ''"> and deptname like concat('%', #{deptname}, '%')</if>
<if test="check != null and check != ''"> and check = #{check}</if>
<if test="auteur != null and auteur != ''"> and auteur = #{auteur}</if>
<if test="corrigerid != null "> and corrigerid = #{corrigerid}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="clicks != null "> and clicks = #{clicks}</if>
<if test="date != null "> and date = #{date}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectNewsSwatNewsById" parameterType="Long" resultMap="NewsSwatNewsResult">
<include refid="selectNewsSwatNewsVo"/>
where id = #{id}
</select>
<insert id="insertNewsSwatNews" parameterType="NewsSwatNews" useGeneratedKeys="true" keyProperty="id">
insert into news_swat_news
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="idNumber != null">id_number,</if>
<if test="title != null">title,</if>
<if test="contenu != null">contenu,</if>
<if test="image != null">image,</if>
<if test="deptid != null">deptid,</if>
<if test="deptname != null">deptname,</if>
<if test="check != null">check,</if>
<if test="auteur != null">auteur,</if>
<if test="corrigerid != null">corrigerid,</if>
<if test="source != null">source,</if>
<if test="clicks != null">clicks,</if>
<if test="date != null">date,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="idNumber != null">#{idNumber},</if>
<if test="title != null">#{title},</if>
<if test="contenu != null">#{contenu},</if>
<if test="image != null">#{image},</if>
<if test="deptid != null">#{deptid},</if>
<if test="deptname != null">#{deptname},</if>
<if test="check != null">#{check},</if>
<if test="auteur != null">#{auteur},</if>
<if test="corrigerid != null">#{corrigerid},</if>
<if test="source != null">#{source},</if>
<if test="clicks != null">#{clicks},</if>
<if test="date != null">#{date},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateNewsSwatNews" parameterType="NewsSwatNews">
update news_swat_news
<trim prefix="SET" suffixOverrides=",">
<if test="idNumber != null">id_number = #{idNumber},</if>
<if test="title != null">title = #{title},</if>
<if test="contenu != null">contenu = #{contenu},</if>
<if test="image != null">image = #{image},</if>
<if test="deptid != null">deptid = #{deptid},</if>
<if test="deptname != null">deptname = #{deptname},</if>
<if test="check != null">check = #{check},</if>
<if test="auteur != null">auteur = #{auteur},</if>
<if test="corrigerid != null">corrigerid = #{corrigerid},</if>
<if test="source != null">source = #{source},</if>
<if test="clicks != null">clicks = #{clicks},</if>
<if test="date != null">date = #{date},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsSwatNewsById" parameterType="Long">
delete from news_swat_news where id = #{id}
</delete>
<delete id="deleteNewsSwatNewsByIds" parameterType="String">
delete from news_swat_news where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-falv-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/falv"
$("#form-falv-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-falv-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-falv-edit" th:object="${newsImportantFalv}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantFalv.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" th:field="*{classify}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/falv";
$("#form-falv-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-falv-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>图文轮播:</label>
<input type="text" name="image"/>
</li>
<li>
<label>创建人ID</label>
<input type="text" name="auteurid"/>
</li>
<li>
<label>作者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>修改人ID</label>
<input type="text" name="corrigerid"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="source"/>
</li>
<li>
<label>点击数量:</label>
<input type="text" name="clicks"/>
</li>
<li>
<label>更新日期:</label>
<input type="text" class="time-input" placeholder="请选择更新日期" name="date"/>
</li>
<li>
<label>分类:</label>
<input type="text" name="classify"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:falv:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:falv:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:falv:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:falv:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:falv:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:falv:remove')}]];
var prefix = ctx + "news/falv";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'image',
title: '图文轮播'
},
{
field: 'auteurid',
title: '创建人ID'
},
{
field: 'auteur',
title: '作者'
},
{
field: 'corrigerid',
title: '修改人ID'
},
{
field: 'source',
title: '来源'
},
{
field: 'clicks',
title: '点击数量'
},
{
field: 'type',
title: '类型'
},
{
field: 'date',
title: '更新日期'
},
{
field: 'classify',
title: '分类'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-learning-add">
<div class="form-group">
<label class="col-sm-3 control-label">图片:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接:</label>
<div class="col-sm-8">
<input name="url" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "news/learning"
$("#form-learning-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-learning-add').serialize());
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-learning-edit" th:object="${newsProjectLearning}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">图片:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接:</label>
<div class="col-sm-8">
<input name="url" th:field="*{url}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "news/learning";
$("#form-learning-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-learning-edit').serialize());
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,98 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>图片:</label>
<input type="text" name="image"/>
</li>
<li>
<label>链接:</label>
<input type="text" name="url"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:learning:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:learning:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:learning:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:learning:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:learning:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:learning:remove')}]];
var prefix = ctx + "news/learning";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'image',
title: '图片'
},
{
field: 'url',
title: '链接'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-news-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/news"
$("#form-news-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-news-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-news-edit" th:object="${newsImportantNews}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantNews.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" th:field="*{classify}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/news";
$("#form-news-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-news-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>图文轮播:</label>
<input type="text" name="image"/>
</li>
<li>
<label>创建人ID</label>
<input type="text" name="auteurid"/>
</li>
<li>
<label>作者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>修改人ID</label>
<input type="text" name="corrigerid"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="source"/>
</li>
<li>
<label>点击数量:</label>
<input type="text" name="clicks"/>
</li>
<li>
<label>更新日期:</label>
<input type="text" class="time-input" placeholder="请选择更新日期" name="date"/>
</li>
<li>
<label>分类:</label>
<input type="text" name="classify"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:news:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:news:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:news:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:news:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:news:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:news:remove')}]];
var prefix = ctx + "news/news";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'image',
title: '图文轮播'
},
{
field: 'auteurid',
title: '创建人ID'
},
{
field: 'auteur',
title: '作者'
},
{
field: 'corrigerid',
title: '修改人ID'
},
{
field: 'source',
title: '来源'
},
{
field: 'clicks',
title: '点击数量'
},
{
field: 'type',
title: '类型'
},
{
field: 'date',
title: '更新日期'
},
{
field: 'classify',
title: '分类'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-notification-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<input name="unit" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">授课人:</label>
<div class="col-sm-8">
<input name="instructor" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发布者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8">
<input name="files" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/notification"
$("#form-notification-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-notification-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-notification-edit" th:object="${newsNotification}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位:</label>
<div class="col-sm-8">
<input name="unit" th:field="*{unit}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">授课人:</label>
<div class="col-sm-8">
<input name="instructor" th:field="*{instructor}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发布者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsNotification.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8">
<input name="files" th:field="*{files}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/notification";
$("#form-notification-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-notification-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,134 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>单位:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>授课人:</label>
<input type="text" name="instructor"/>
</li>
<li>
<label>发布者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>创建日期:</label>
<input type="text" class="time-input" placeholder="请选择创建日期" name="date"/>
</li>
<li>
<label>附件:</label>
<input type="text" name="files"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:notification:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:notification:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:notification:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:notification:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:notification:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:notification:remove')}]];
var prefix = ctx + "news/notification";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'unit',
title: '单位'
},
{
field: 'instructor',
title: '授课人'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'auteur',
title: '发布者'
},
{
field: 'date',
title: '创建日期'
},
{
field: 'files',
title: '附件'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-photo-add">
<div class="form-group">
<label class="col-sm-3 control-label">图片:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="url" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">上传日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/photo"
$("#form-photo-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-photo-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-photo-edit" th:object="${newsPhoto}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">图片:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="url" th:field="*{url}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">上传日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsPhoto.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/photo";
$("#form-photo-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-photo-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>图片:</label>
<input type="text" name="image"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="url"/>
</li>
<li>
<label>上传日期:</label>
<input type="text" class="time-input" placeholder="请选择上传日期" name="date"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:photo:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:photo:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:photo:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:photo:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:photo:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:photo:remove')}]];
var prefix = ctx + "news/photo";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'image',
title: '图片'
},
{
field: 'url',
title: '来源'
},
{
field: 'date',
title: '上传日期'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-table-add">
<div class="form-group">
<label class="col-sm-3 control-label">值班领导:</label>
<div class="col-sm-8">
<input name="diriger" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">值班干部:</label>
<div class="col-sm-8">
<input name="cadre" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">值班日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/table"
$("#form-table-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-table-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-table-edit" th:object="${newsDutyTable}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">值班领导:</label>
<div class="col-sm-8">
<input name="diriger" th:field="*{diriger}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">值班干部:</label>
<div class="col-sm-8">
<input name="cadre" th:field="*{cadre}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">值班日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsDutyTable.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/table";
$("#form-table-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-table-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>值班领导:</label>
<input type="text" name="diriger"/>
</li>
<li>
<label>值班干部:</label>
<input type="text" name="cadre"/>
</li>
<li>
<label>值班日期:</label>
<input type="text" class="time-input" placeholder="请选择值班日期" name="date"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:table:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:table:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:table:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:table:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:table:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:table:remove')}]];
var prefix = ctx + "news/table";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'diriger',
title: '值班领导'
},
{
field: 'cadre',
title: '值班干部'
},
{
field: 'date',
title: '值班日期'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-training-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/training"
$("#form-training-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-training-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-training-edit" th:object="${newsImportantTraining}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantTraining.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" th:field="*{classify}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/training";
$("#form-training-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-training-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>图文轮播:</label>
<input type="text" name="image"/>
</li>
<li>
<label>创建人ID</label>
<input type="text" name="auteurid"/>
</li>
<li>
<label>作者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>修改人ID</label>
<input type="text" name="corrigerid"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="source"/>
</li>
<li>
<label>点击数量:</label>
<input type="text" name="clicks"/>
</li>
<li>
<label>更新日期:</label>
<input type="text" class="time-input" placeholder="请选择更新日期" name="date"/>
</li>
<li>
<label>分类:</label>
<input type="text" name="classify"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:training:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:training:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:training:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:training:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:training:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:training:remove')}]];
var prefix = ctx + "news/training";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'image',
title: '图文轮播'
},
{
field: 'auteurid',
title: '创建人ID'
},
{
field: 'auteur',
title: '作者'
},
{
field: 'corrigerid',
title: '修改人ID'
},
{
field: 'source',
title: '来源'
},
{
field: 'clicks',
title: '点击数量'
},
{
field: 'type',
title: '类型'
},
{
field: 'date',
title: '更新日期'
},
{
field: 'classify',
title: '分类'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-tuwen-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/tuwen"
$("#form-tuwen-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-tuwen-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-tuwen-edit" th:object="${newsImportantTuwen}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantTuwen.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" th:field="*{classify}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/tuwen";
$("#form-tuwen-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-tuwen-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>图文轮播:</label>
<input type="text" name="image"/>
</li>
<li>
<label>创建人ID</label>
<input type="text" name="auteurid"/>
</li>
<li>
<label>作者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>修改人ID</label>
<input type="text" name="corrigerid"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="source"/>
</li>
<li>
<label>点击数量:</label>
<input type="text" name="clicks"/>
</li>
<li>
<label>更新日期:</label>
<input type="text" class="time-input" placeholder="请选择更新日期" name="date"/>
</li>
<li>
<label>分类:</label>
<input type="text" name="classify"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:tuwen:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:tuwen:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:tuwen:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:tuwen:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:tuwen:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:tuwen:remove')}]];
var prefix = ctx + "news/tuwen";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'image',
title: '图文轮播'
},
{
field: 'auteurid',
title: '创建人ID'
},
{
field: 'auteur',
title: '作者'
},
{
field: 'corrigerid',
title: '修改人ID'
},
{
field: 'source',
title: '来源'
},
{
field: 'clicks',
title: '点击数量'
},
{
field: 'type',
title: '类型'
},
{
field: 'date',
title: '更新日期'
},
{
field: 'classify',
title: '分类'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-video-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">封面:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">视频:</label>
<div class="col-sm-8">
<input name="video" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/video"
$("#form-video-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-video-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-video-edit" th:object="${newsImportantVideo}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">封面:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">视频:</label>
<div class="col-sm-8">
<input name="video" th:field="*{video}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantVideo.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/video";
$("#form-video-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-video-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<li>
<label>封面:</label>
<input type="text" name="image"/>
</li>
<li>
<label>视频:</label>
<input type="text" name="video"/>
</li>
<li>
<label>创建人ID</label>
<input type="text" name="auteurid"/>
</li>
<li>
<label>作者:</label>
<input type="text" name="auteur"/>
</li>
<li>
<label>修改人ID</label>
<input type="text" name="corrigerid"/>
</li>
<li>
<label>来源:</label>
<input type="text" name="source"/>
</li>
<li>
<label>点击数量:</label>
<input type="text" name="clicks"/>
</li>
<li>
<label>更新日期:</label>
<input type="text" class="time-input" placeholder="请选择更新日期" name="date"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="news:video:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="news:video:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="news:video:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="news:video:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('news:video:edit')}]];
var removeFlag = [[${@permission.hasPermi('news:video:remove')}]];
var prefix = ctx + "news/video";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "【请填写功能名称】",
columns: [{
checkbox: true
},
{
field: 'id',
title: '编号',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'contenu',
title: '内容'
},
{
field: 'image',
title: '封面'
},
{
field: 'video',
title: '视频'
},
{
field: 'auteurid',
title: '创建人ID'
},
{
field: 'auteur',
title: '作者'
},
{
field: 'corrigerid',
title: '修改人ID'
},
{
field: 'source',
title: '来源'
},
{
field: 'clicks',
title: '点击数量'
},
{
field: 'type',
title: '类型'
},
{
field: 'date',
title: '更新日期'
},
{
field: 'status',
title: '状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-zhuanti-add">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/zhuanti"
$("#form-zhuanti-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-zhuanti-add').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改【请填写功能名称】')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-zhuanti-edit" th:object="${newsImportantZhuanti}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<textarea name="contenu" class="form-control">[[*{contenu}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">图文轮播:</label>
<div class="col-sm-8">
<input name="image" th:field="*{image}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人ID</label>
<div class="col-sm-8">
<input name="auteurid" th:field="*{auteurid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">作者:</label>
<div class="col-sm-8">
<input name="auteur" th:field="*{auteur}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">修改人ID</label>
<div class="col-sm-8">
<input name="corrigerid" th:field="*{corrigerid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源:</label>
<div class="col-sm-8">
<input name="source" th:field="*{source}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击数量:</label>
<div class="col-sm-8">
<input name="clicks" th:field="*{clicks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="date" th:value="${#dates.format(newsImportantZhuanti.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">分类:</label>
<div class="col-sm-8">
<input name="classify" th:field="*{classify}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "news/zhuanti";
$("#form-zhuanti-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-zhuanti-edit').serialize());
}
}
$("input[name='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More