班级表增删改查 全局格式化代码

master
liuyunhu 2024-04-22 21:08:06 +08:00
parent 8f4cc5e9f3
commit 2cb1520b9e
280 changed files with 5754 additions and 5305 deletions

View File

@ -18,11 +18,17 @@
* 权限认证使用Jwt支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制。
* 高效率开发,使用代码生成器可以一键生成前后端代码。
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
* 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast)Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
*
提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev)
)版本[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
* 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast)
Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi)
,微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)  
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link)
,腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)
  
## 内置功能
@ -90,7 +96,7 @@
</tr>
</table>
## 若依前后端分离交流群
QQ群 [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) 点击按钮入群。
QQ群 [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921)
点击按钮入群。

View File

@ -177,13 +177,18 @@
<version>${ruoyi.version}</version>
</dependency>
<!-- 自定义项目-->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>ruoyi-custom</artifactId>
<version>${ruoyi.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>ruoyi-application</module>
<module>ruoyi-basic</module>
<module>ruoyi-custom</module>
</modules>
<packaging>pom</packaging>

View File

@ -11,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
* @author ruoyi
*/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan("com.ruoyi.*.mapper")
public class RuoYiApplication {
public static void main(String[] args) {
SpringApplication.run(RuoYiApplication.class, args);

View File

@ -0,0 +1,106 @@
package com.ruoyi.web.controller.custom;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.custom.domain.SysClass;
import com.ruoyi.custom.domain.req.SysClassEditReq;
import com.ruoyi.custom.domain.req.SysClassQueryReq;
import com.ruoyi.custom.domain.req.SysClassSaveReq;
import com.ruoyi.custom.service.SysClassService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
* @author ruoyi
* @date 2024-04-22
*/
@Api(tags = "班级管理")
@RestController
@RequestMapping("/custom/class")
public class SysClassController extends BaseController {
@Autowired
private SysClassService sysClassService;
/**
*
*/
@ApiOperation("获取班级管理列表")
@PreAuthorize("@ss.hasPermi('custom:class:list')")
@GetMapping("/list")
public Result<TableDataInfo<SysClass>> list(SysClassQueryReq sysClassQueryReq) {
startPage();
List<SysClass> list = sysClassService.list(SysClass.queryBuild(sysClassQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出班级管理列表")
@PreAuthorize("@ss.hasPermi('custom:class:export')")
@Log(title = "班级管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SysClass sysClass) {
List<SysClass> list = sysClassService.list(sysClass);
ExcelUtil<SysClass> util = new ExcelUtil<SysClass>(SysClass.class);
util.exportExcel(response, list, "班级管理数据");
}
/**
*
*/
@ApiOperation("获取班级管理详细信息")
@PreAuthorize("@ss.hasPermi('custom:class:query')")
@GetMapping(value = "/{classId}")
@ApiImplicitParam(name = "classId", value = "classId", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<SysClass> getInfo(@PathVariable("classId") Long classId) {
return Result.success(sysClassService.getById(classId));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('custom:class:add')")
@Log(title = "班级管理", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增班级管理")
public Result<String> add(@RequestBody SysClassSaveReq sysClassSaveReq) {
return toAjax(sysClassService.save(SysClass.saveBuild(sysClassSaveReq)));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('custom:class:edit')")
@Log(title = "班级管理", businessType = BusinessType.UPDATE)
@PutMapping("/{classId}")
@ApiOperation("修改班级管理")
public Result<String> edit(@PathVariable Long classId, @RequestBody SysClassEditReq sysClassEditReq) {
return toAjax(sysClassService.updateById(SysClass.editBuild(classId, sysClassEditReq)));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('custom:class:remove')")
@Log(title = "班级管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{classIds}")
@ApiOperation("删除班级管理")
@ApiImplicitParam(name = "classId", value = "classId", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> classIds) {
return toAjax(sysClassService.removeBatchByIds(classIds));
}
}

View File

@ -39,7 +39,6 @@ public class SysLoginController {
*
*
* @param loginBody
*
* @return
*/
@PostMapping("/login")

View File

@ -16,6 +16,7 @@
<module>ruoyi-framework</module>
<module>ruoyi-system</module>
<module>ruoyi-common</module>
<module>ruoyi-custom</module>
</modules>
<properties>

View File

@ -199,6 +199,7 @@ public @interface Excel {
/**
*
*
* @param value
*/
ColumnType(int value) {
@ -207,6 +208,7 @@ public @interface Excel {
/**
*
*
* @return
*/
public int value() {

View File

@ -12,7 +12,6 @@ import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.sql.SqlUtil;
import org.apache.poi.ss.formula.functions.T;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.WebDataBinder;
@ -115,7 +114,6 @@ public class BaseController {
*
*
* @param rows
*
* @return
*/
protected Result<String> toAjax(int rows) {
@ -126,7 +124,6 @@ public class BaseController {
*
*
* @param result
*
* @return
*/
protected Result<String> toAjax(boolean result) {

View File

@ -88,6 +88,7 @@ public class BaseEntity implements Serializable {
/**
*
*
* @param key
* @return
*/
@ -99,6 +100,7 @@ public class BaseEntity implements Serializable {
/**
*
*
* @param key
* @return
*/
@ -110,6 +112,7 @@ public class BaseEntity implements Serializable {
/**
*
*
* @param key
* @return
*/

View File

@ -2,7 +2,6 @@ package com.ruoyi.common.core.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;

View File

@ -6,7 +6,6 @@ import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -145,6 +144,7 @@ public class SysRole extends BaseEntity {
public boolean isDeptCheckStrictly() {
return deptCheckStrictly;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

View File

@ -9,7 +9,6 @@ import com.ruoyi.common.xss.Xss;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -180,6 +179,7 @@ public class SysUser extends BaseEntity {
public String getPhonenumber() {
return phonenumber;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

View File

@ -7,7 +7,10 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Component;
import java.util.*;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
/**
@ -48,7 +51,6 @@ public class RedisCache {
*
* @param key Redis
* @param timeout
*
* @return true=false=
*/
public boolean expire(final String key, final long timeout) {
@ -61,7 +63,6 @@ public class RedisCache {
* @param key Redis
* @param timeout
* @param unit
*
* @return true=false=
*/
public boolean expire(final String key, final long timeout, final TimeUnit unit) {
@ -72,7 +73,6 @@ public class RedisCache {
*
*
* @param key Redis
*
* @return
*/
public long getExpire(final String key) {
@ -83,7 +83,6 @@ public class RedisCache {
* key
*
* @param key
*
* @return true false
*/
public Boolean hasKey(String key) {
@ -94,7 +93,6 @@ public class RedisCache {
*
*
* @param key
*
* @return
*/
public <T> T getCacheObject(final String key) {
@ -115,7 +113,6 @@ public class RedisCache {
*
*
* @param collection
*
* @return
*/
public boolean deleteObject(final Collection collection) {
@ -127,7 +124,6 @@ public class RedisCache {
*
* @param key
* @param dataList List
*
* @return
*/
public <T> long setCacheList(final String key, final List<T> dataList) {
@ -139,7 +135,6 @@ public class RedisCache {
* list
*
* @param key
*
* @return
*/
public <T> List<T> getCacheList(final String key) {
@ -151,7 +146,6 @@ public class RedisCache {
*
* @param key
* @param dataSet
*
* @return
*/
public <T> BoundSetOperations<String, T> setCacheSet(final String key, final Set<T> dataSet) {
@ -166,7 +160,6 @@ public class RedisCache {
* set
*
* @param key
*
* @return
*/
public <T> Set<T> getCacheSet(final String key) {
@ -189,7 +182,6 @@ public class RedisCache {
* Map
*
* @param key
*
* @return
*/
public <T> Map<String, T> getCacheMap(final String key) {
@ -212,7 +204,6 @@ public class RedisCache {
*
* @param key Redis
* @param hKey Hash
*
* @return Hash
*/
public <T> T getCacheMapValue(final String key, final String hKey) {
@ -225,7 +216,6 @@ public class RedisCache {
*
* @param key Redis
* @param hKeys Hash
*
* @return Hash
*/
public <T> List<T> getMultiCacheMapValue(final String key, final Collection<Object> hKeys) {
@ -237,7 +227,6 @@ public class RedisCache {
*
* @param key Redis
* @param hKey Hash
*
* @return
*/
public boolean deleteCacheMapValue(final String key, final String hKey) {
@ -248,7 +237,6 @@ public class RedisCache {
*
*
* @param pattern
*
* @return
*/
public Collection<String> keys(final String pattern) {

View File

@ -41,7 +41,6 @@ public class CharsetKit {
* Charset
*
* @param charset
*
* @return Charset
*/
public static Charset charset(String charset) {
@ -54,7 +53,6 @@ public class CharsetKit {
* @param source
* @param srcCharset ISO-8859-1
* @param destCharset UTF-8
*
* @return
*/
public static String convert(String source, String srcCharset, String destCharset) {
@ -67,7 +65,6 @@ public class CharsetKit {
* @param source
* @param srcCharset ISO-8859-1
* @param destCharset UTF-8
*
* @return
*/
public static String convert(String source, Charset srcCharset, Charset destCharset) {

View File

@ -23,7 +23,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static String toStr(Object value, String defaultValue) {
@ -42,7 +41,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static String toStr(Object value) {
@ -56,7 +54,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Character toChar(Object value, Character defaultValue) {
@ -77,7 +74,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Character toChar(Object value) {
@ -91,7 +87,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Byte toByte(Object value, Byte defaultValue) {
@ -121,7 +116,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Byte toByte(Object value) {
@ -135,7 +129,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Short toShort(Object value, Short defaultValue) {
@ -165,7 +158,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Short toShort(Object value) {
@ -179,7 +171,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Number toNumber(Object value, Number defaultValue) {
@ -206,7 +197,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Number toNumber(Object value) {
@ -220,7 +210,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Integer toInt(Object value, Integer defaultValue) {
@ -250,7 +239,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Integer toInt(Object value) {
@ -261,7 +249,6 @@ public class Convert {
* Integer<br>
*
* @param str
*
* @return
*/
public static Integer[] toIntArray(String str) {
@ -272,7 +259,6 @@ public class Convert {
* Long<br>
*
* @param str
*
* @return
*/
public static Long[] toLongArray(String str) {
@ -284,7 +270,6 @@ public class Convert {
*
* @param split
* @param split
*
* @return
*/
public static Integer[] toIntArray(String split, String str) {
@ -305,7 +290,6 @@ public class Convert {
*
* @param split
* @param str
*
* @return
*/
public static Long[] toLongArray(String split, String str) {
@ -325,7 +309,6 @@ public class Convert {
* String<br>
*
* @param str
*
* @return
*/
public static String[] toStrArray(String str) {
@ -337,7 +320,6 @@ public class Convert {
*
* @param split
* @param split
*
* @return
*/
public static String[] toStrArray(String split, String str) {
@ -351,7 +333,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Long toLong(Object value, Long defaultValue) {
@ -382,7 +363,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Long toLong(Object value) {
@ -396,7 +376,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Double toDouble(Object value, Double defaultValue) {
@ -427,7 +406,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Double toDouble(Object value) {
@ -441,7 +419,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Float toFloat(Object value, Float defaultValue) {
@ -471,7 +448,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Float toFloat(Object value) {
@ -485,7 +461,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static Boolean toBool(Object value, Boolean defaultValue) {
@ -521,7 +496,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static Boolean toBool(Object value) {
@ -535,7 +509,6 @@ public class Convert {
* @param clazz EnumClass
* @param value
* @param defaultValue
*
* @return Enum
*/
public static <E extends Enum<E>> E toEnum(Class<E> clazz, Object value, E defaultValue) {
@ -564,7 +537,6 @@ public class Convert {
*
* @param clazz EnumClass
* @param value
*
* @return Enum
*/
public static <E extends Enum<E>> E toEnum(Class<E> clazz, Object value) {
@ -578,7 +550,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static BigInteger toBigInteger(Object value, BigInteger defaultValue) {
@ -608,7 +579,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static BigInteger toBigInteger(Object value) {
@ -622,7 +592,6 @@ public class Convert {
*
* @param value
* @param defaultValue
*
* @return
*/
public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) {
@ -658,7 +627,6 @@ public class Convert {
*
*
* @param value
*
* @return
*/
public static BigDecimal toBigDecimal(Object value) {
@ -670,7 +638,6 @@ public class Convert {
* 1ByteByteBuffer 2Arrays.toString
*
* @param obj
*
* @return
*/
public static String utf8Str(Object obj) {
@ -683,7 +650,6 @@ public class Convert {
*
* @param obj
* @param charsetName
*
* @return
*/
public static String str(Object obj, String charsetName) {
@ -696,7 +662,6 @@ public class Convert {
*
* @param obj
* @param charset
*
* @return
*/
public static String str(Object obj, Charset charset) {
@ -722,7 +687,6 @@ public class Convert {
*
* @param bytes byte
* @param charset
*
* @return
*/
public static String str(byte[] bytes, String charset) {
@ -734,7 +698,6 @@ public class Convert {
*
* @param data
* @param charset
*
* @return
*/
public static String str(byte[] data, Charset charset) {
@ -753,7 +716,6 @@ public class Convert {
*
* @param data
* @param charset 使
*
* @return
*/
public static String str(ByteBuffer data, String charset) {
@ -769,7 +731,6 @@ public class Convert {
*
* @param data
* @param charset 使
*
* @return
*/
public static String str(ByteBuffer data, Charset charset) {
@ -785,7 +746,6 @@ public class Convert {
*
*
* @param input String.
*
* @return .
*/
public static String toSBC(String input) {
@ -797,7 +757,6 @@ public class Convert {
*
* @param input String
* @param notConvertSet
*
* @return .
*/
public static String toSBC(String input, Set<Character> notConvertSet) {
@ -822,7 +781,6 @@ public class Convert {
*
*
* @param input String.
*
* @return
*/
public static String toDBC(String input) {
@ -834,7 +792,6 @@ public class Convert {
*
* @param text
* @param notConvertSet
*
* @return
*/
public static String toDBC(String text, Set<Character> notConvertSet) {
@ -860,7 +817,6 @@ public class Convert {
*
*
* @param n
*
* @return
*/
public static String digitUppercase(double n) {

View File

@ -24,7 +24,6 @@ public class StrFormatter {
*
* @param strPattern
* @param argArray
*
* @return
*/
public static String format(final String strPattern, final Object... argArray) {

View File

@ -26,7 +26,6 @@ public class Arith {
*
* @param v1
* @param v2
*
* @return
*/
public static double add(double v1, double v2) {
@ -40,7 +39,6 @@ public class Arith {
*
* @param v1
* @param v2
*
* @return
*/
public static double sub(double v1, double v2) {
@ -54,7 +52,6 @@ public class Arith {
*
* @param v1
* @param v2
*
* @return
*/
public static double mul(double v1, double v2) {
@ -69,7 +66,6 @@ public class Arith {
*
* @param v1
* @param v2
*
* @return
*/
public static double div(double v1, double v2) {
@ -83,7 +79,6 @@ public class Arith {
* @param v1
* @param v2
* @param scale
*
* @return
*/
public static double div(double v1, double v2, int scale) {
@ -104,7 +99,6 @@ public class Arith {
*
* @param v
* @param scale
*
* @return
*/
public static double round(double v, int scale) {

View File

@ -125,7 +125,6 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
*
* @param endDate
* @param startTime
*
* @return //
*/
public static String timeDistance(Date endDate, Date startTime) {

View File

@ -34,7 +34,6 @@ public class DictUtils {
*
*
* @param key
*
* @return dictDatas
*/
public static List<SysDictData> getDictCache(String key) {
@ -50,7 +49,6 @@ public class DictUtils {
*
* @param dictType
* @param dictValue
*
* @return
*/
public static String getDictLabel(String dictType, String dictValue) {
@ -62,7 +60,6 @@ public class DictUtils {
*
* @param dictType
* @param dictLabel
*
* @return
*/
public static String getDictValue(String dictType, String dictLabel) {
@ -75,7 +72,6 @@ public class DictUtils {
* @param dictType
* @param dictValue
* @param separator
*
* @return
*/
public static String getDictLabel(String dictType, String dictValue, String separator) {
@ -109,7 +105,6 @@ public class DictUtils {
* @param dictType
* @param dictLabel
* @param separator
*
* @return
*/
public static String getDictValue(String dictType, String dictLabel, String separator) {
@ -156,7 +151,6 @@ public class DictUtils {
* cache key
*
* @param configKey
*
* @return key
*/
public static String getCacheKey(String configKey) {

View File

@ -15,7 +15,6 @@ public class MessageUtils {
*
* @param code
* @param args
*
* @return
*/
public static String message(String code, Object... args) {

View File

@ -17,6 +17,7 @@ public class ObjUtils {
* Array:
* Collection:
* Map:
*
* @param o
* @return nulltruefalse
*/
@ -26,6 +27,7 @@ public class ObjUtils {
/**
* long0
*
* @param val
* @return 0
*/
@ -35,22 +37,27 @@ public class ObjUtils {
/**
* Integer0
*
* @param val
* @return 0
*/
public static boolean notNull(Integer val) {
return ObjectUtils.isNotEmpty(val) && val != 0;
}
/**
* BigDecimal0
*
* @param val
* @return 0
*/
public static boolean notNull(BigDecimal val) {
return ObjectUtils.isNotEmpty(val) && val.doubleValue() == 0.00;
}
/**
* BigDecimal0
*
* @param val
* @return 0
*/

View File

@ -68,7 +68,6 @@ public class SecurityUtils {
* BCryptPasswordEncoder
*
* @param password
*
* @return
*/
public static String encryptPassword(String password) {
@ -81,7 +80,6 @@ public class SecurityUtils {
*
* @param rawPassword
* @param encodedPassword
*
* @return
*/
public static boolean matchesPassword(String rawPassword, String encodedPassword) {
@ -93,7 +91,6 @@ public class SecurityUtils {
*
*
* @param userId ID
*
* @return
*/
public static boolean isAdmin(Long userId) {

View File

@ -70,7 +70,6 @@ public class ServletUtils {
*
*
* @param request {@link ServletRequest}
*
* @return Map
*/
public static Map<String, String[]> getParams(ServletRequest request) {
@ -82,7 +81,6 @@ public class ServletUtils {
*
*
* @param request {@link ServletRequest}
*
* @return Map
*/
public static Map<String, String> getParamMap(ServletRequest request) {
@ -165,7 +163,6 @@ public class ServletUtils {
*
*
* @param str
*
* @return
*/
public static String urlEncode(String str) {
@ -180,7 +177,6 @@ public class ServletUtils {
*
*
* @param str
*
* @return
*/
public static String urlDecode(String str) {

View File

@ -26,7 +26,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
*
* @param value defaultValue value
*
* @return value
*/
public static <T> T nvl(T value, T defaultValue) {
@ -37,7 +36,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* * Collection ListSetQueue
*
* @param coll Collection
*
* @return true false
*/
public static boolean isEmpty(Collection<?> coll) {
@ -48,7 +46,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* * CollectionListSetQueue
*
* @param coll Collection
*
* @return true false
*/
public static boolean isNotEmpty(Collection<?> coll) {
@ -69,7 +66,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* *
*
* @param objects
*
* @return true false
*/
public static boolean isNotEmpty(Object[] objects) {
@ -80,7 +76,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* * Map
*
* @param map Map
*
* @return true false
*/
public static boolean isEmpty(Map<?, ?> map) {
@ -91,7 +86,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* * Map
*
* @param map Map
*
* @return true false
*/
public static boolean isNotEmpty(Map<?, ?> map) {
@ -102,7 +96,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* *
*
* @param str String
*
* @return true false
*/
public static boolean isEmpty(String str) {
@ -113,7 +106,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* *
*
* @param str String
*
* @return true false
*/
public static boolean isNotEmpty(String str) {
@ -124,7 +116,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* *
*
* @param object Object
*
* @return true false
*/
public static boolean isNull(Object object) {
@ -135,7 +126,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* *
*
* @param object Object
*
* @return true false
*/
public static boolean isNotNull(Object object) {
@ -146,7 +136,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* * Java
*
* @param object
*
* @return true false
*/
public static boolean isArray(Object object) {
@ -165,7 +154,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param str
* @param start
*
* @return
*/
public static String substring(final String str, int start) {
@ -193,7 +181,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* @param str
* @param start
* @param end
*
* @return
*/
public static String substring(final String str, int start, int end) {
@ -237,7 +224,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param template {}
* @param params
*
* @return
*/
public static String format(String template, Object... params) {
@ -251,7 +237,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* http(s)://开头
*
* @param link
*
* @return
*/
public static boolean ishttp(String link) {
@ -263,7 +248,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param str
* @param sep
*
* @return set
*/
public static final Set<String> str2Set(String str, String sep) {
@ -277,7 +261,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* @param sep
* @param filterBlank
* @param trim
*
* @return list
*/
public static final List<String> str2List(String str, String sep, boolean filterBlank, boolean trim) {
@ -309,7 +292,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param collection
* @param array
*
* @return boolean
*/
public static boolean containsAny(Collection<String> collection, String... array) {
@ -330,7 +312,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param cs
* @param searchCharSequences
*
* @return
*/
public static boolean containsAnyIgnoreCase(CharSequence cs, CharSequence... searchCharSequences) {
@ -389,7 +370,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param str
* @param strs
*
* @return true
*/
public static boolean inStringIgnoreCase(String str, String... strs) {
@ -407,7 +387,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* 线线 HELLO_WORLD->HelloWorld
*
* @param name 线
*
* @return
*/
public static String convertToCamelCase(String name) {
@ -468,7 +447,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param str
* @param strs
*
* @return
*/
public static boolean matches(String str, List<String> strs) {
@ -491,7 +469,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param pattern
* @param url url
*
* @return
*/
public static boolean isMatch(String pattern, String url) {
@ -509,7 +486,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
*
* @param num
* @param size
*
* @return
*/
public static final String padl(final Number num, final int size) {
@ -522,7 +498,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
* @param s
* @param size
* @param c
*
* @return
*/
public static final String padl(final String s, final int size, final char c) {

View File

@ -45,7 +45,6 @@ public class BeanUtils extends org.springframework.beans.BeanUtils {
* setter
*
* @param obj
*
* @return setter
*/
public static List<Method> getSetterMethods(Object obj) {
@ -71,7 +70,6 @@ public class BeanUtils extends org.springframework.beans.BeanUtils {
* getter
*
* @param obj
*
* @return getter
*/
@ -97,7 +95,6 @@ public class BeanUtils extends org.springframework.beans.BeanUtils {
*
* @param m1 1
* @param m2 2
*
* @return truefalse
*/

View File

@ -16,7 +16,6 @@ public class FileTypeUtils {
* : ruoyi.txt, : txt
*
* @param file
*
* @return ".")
*/
public static String getFileType(File file) {
@ -32,7 +31,6 @@ public class FileTypeUtils {
* : ruoyi.txt, : txt
*
* @param fileName
*
* @return ".")
*/
public static String getFileType(String fileName) {
@ -47,7 +45,6 @@ public class FileTypeUtils {
*
*
* @param photoByte
*
* @return ".")
*/
public static String getFileExtendName(byte[] photoByte) {

View File

@ -49,9 +49,7 @@ public class FileUploadUtils {
*
*
* @param file
*
* @return
*
* @throws Exception
*/
public static final String upload(MultipartFile file) throws IOException {
@ -67,9 +65,7 @@ public class FileUploadUtils {
*
* @param baseDir
* @param file
*
* @return
*
* @throws IOException
*/
public static final String upload(String baseDir, MultipartFile file) throws IOException {
@ -86,9 +82,7 @@ public class FileUploadUtils {
* @param baseDir
* @param file
* @param allowedExtension
*
* @return
*
* @throws FileSizeLimitExceededException
* @throws FileNameLengthLimitExceededException
* @throws IOException
@ -140,9 +134,7 @@ public class FileUploadUtils {
*
*
* @param file
*
* @return
*
* @throws FileSizeLimitExceededException
* @throws InvalidExtensionException
*/
@ -179,7 +171,6 @@ public class FileUploadUtils {
*
* @param extension
* @param allowedExtension
*
* @return
*/
public static final boolean isAllowedExtension(String extension, String[] allowedExtension) {
@ -195,7 +186,6 @@ public class FileUploadUtils {
*
*
* @param file
*
* @return
*/
public static final String getExtension(MultipartFile file) {

View File

@ -27,7 +27,6 @@ public class FileUtils {
*
* @param filePath
* @param os
*
* @return
*/
public static void writeBytes(String filePath, OutputStream os) throws IOException {
@ -55,9 +54,7 @@ public class FileUtils {
*
*
* @param data
*
* @return
*
* @throws IOException IO
*/
public static String writeImportBytes(byte[] data) throws IOException {
@ -69,9 +66,7 @@ public class FileUtils {
*
* @param data
* @param uploadDir
*
* @return
*
* @throws IOException IO
*/
public static String writeBytes(byte[] data, String uploadDir) throws IOException {
@ -93,7 +88,6 @@ public class FileUtils {
*
*
* @param filePath
*
* @return
*/
public static boolean deleteFile(String filePath) {
@ -110,7 +104,6 @@ public class FileUtils {
*
*
* @param filename
*
* @return true false
*/
public static boolean isValidFilename(String filename) {
@ -121,7 +114,6 @@ public class FileUtils {
*
*
* @param resource
*
* @return true false
*/
public static boolean checkAllowDownload(String resource) {
@ -144,7 +136,6 @@ public class FileUtils {
*
* @param request
* @param fileName
*
* @return
*/
public static String setFileDownloadHeader(HttpServletRequest request, String fileName) throws UnsupportedEncodingException {
@ -193,7 +184,6 @@ public class FileUtils {
*
*
* @param s
*
* @return
*/
public static String percentEncode(String s) throws UnsupportedEncodingException {
@ -205,7 +195,6 @@ public class FileUtils {
*
*
* @param photoByte
*
* @return
*/
public static String getFileExtendName(byte[] photoByte) {
@ -227,7 +216,6 @@ public class FileUtils {
* /profile/upload/2022/04/16/ruoyi.png -- ruoyi.png
*
* @param fileName
*
* @return
*/
public static String getName(String fileName) {
@ -244,7 +232,6 @@ public class FileUtils {
* /profile/upload/2022/04/16/ruoyi.png -- ruoyi
*
* @param fileName
*
* @return
*/
public static String getNameNotSuffix(String fileName) {

View File

@ -49,7 +49,6 @@ public class ImageUtils {
*
*
* @param url
*
* @return
*/
public static byte[] readFile(String url) {

View File

@ -29,7 +29,6 @@ public class EscapeUtil {
* HTML
*
* @param text
*
* @return
*/
public static String escape(String text) {
@ -40,7 +39,6 @@ public class EscapeUtil {
* HTML
*
* @param content HTML
*
* @return
*/
public static String unescape(String content) {
@ -51,7 +49,6 @@ public class EscapeUtil {
* HTML
*
* @param content
*
* @return
*/
public static String clean(String content) {
@ -62,7 +59,6 @@ public class EscapeUtil {
* Escape
*
* @param text
*
* @return
*/
private static String encode(String text) {
@ -96,7 +92,6 @@ public class EscapeUtil {
* Escape
*
* @param content
*
* @return
*/
public static String decode(String content) {

View File

@ -197,7 +197,6 @@ public final class HTMLFilter {
* given a user submitted input String, filter out any invalid or restricted html.
*
* @param input text (i.e. submitted by a user) than may contain html
*
* @return "clean" version of input, with only valid, whitelisted html elements allowed
*/
public String filter(final String input) {

View File

@ -26,7 +26,6 @@ public class HttpUtils {
* URL GET
*
* @param url URL
*
* @return
*/
public static String sendGet(String url) {
@ -38,7 +37,6 @@ public class HttpUtils {
*
* @param url URL
* @param param name1=value1&name2=value2
*
* @return
*/
public static String sendGet(String url, String param) {
@ -51,7 +49,6 @@ public class HttpUtils {
* @param url URL
* @param param name1=value1&name2=value2
* @param contentType
*
* @return
*/
public static String sendGet(String url, String param, String contentType) {
@ -97,7 +94,6 @@ public class HttpUtils {
*
* @param url URL
* @param param name1=value1&name2=value2
*
* @return
*/
public static String sendPost(String url, String param) {

View File

@ -33,7 +33,6 @@ public class IpUtils {
* IP
*
* @param request
*
* @return IP
*/
public static String getIpAddr(HttpServletRequest request) {
@ -65,7 +64,6 @@ public class IpUtils {
* IP
*
* @param ip IP
*
* @return
*/
public static boolean internalIp(String ip) {
@ -77,7 +75,6 @@ public class IpUtils {
* IP
*
* @param addr byte
*
* @return
*/
private static boolean internalIp(byte[] addr) {
@ -116,7 +113,6 @@ public class IpUtils {
* IPv4
*
* @param text IPv4
*
* @return byte
*/
public static byte[] textToNumericFormatV4(String text) {
@ -217,7 +213,6 @@ public class IpUtils {
* unknown IP
*
* @param ip IP
*
* @return unknown IP
*/
public static String getMultistageReverseProxyIp(String ip) {
@ -238,7 +233,6 @@ public class IpUtils {
* HTTP
*
* @param checkString
*
* @return
*/
public static boolean isUnknown(String checkString) {
@ -309,7 +303,6 @@ public class IpUtils {
*
* @param filter IP,'*',:`10.10.10.1-10.10.10.99`
* @param ip IP
*
* @return boolean
*/
public static boolean isMatchedIp(String filter, String ip) {

View File

@ -16,7 +16,6 @@ public interface ExcelHandlerAdapter {
* @param args excelargs
* @param cell
* @param wb 簿
*
* @return
*/
Object format(Object value, String[] args, Cell cell, Workbook wb);

View File

@ -31,7 +31,10 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
@ -154,7 +157,6 @@ public class ExcelUtil<T> {
* @param propertyValue
* @param converterExp
* @param separator
*
* @return
*/
public static String convertByExp(String propertyValue, String converterExp, String separator) {
@ -184,7 +186,6 @@ public class ExcelUtil<T> {
* @param propertyValue
* @param converterExp
* @param separator
*
* @return
*/
public static String reverseByExp(String propertyValue, String converterExp, String separator) {
@ -214,7 +215,6 @@ public class ExcelUtil<T> {
* @param dictValue
* @param dictType
* @param separator
*
* @return
*/
public static String convertDictByExp(String dictValue, String dictType, String separator) {
@ -227,7 +227,6 @@ public class ExcelUtil<T> {
* @param dictLabel
* @param dictType
* @param separator
*
* @return
*/
public static String reverseDictByExp(String dictLabel, String dictType, String separator) {
@ -239,7 +238,6 @@ public class ExcelUtil<T> {
*
* @param sheet sheet
* @param workbook 簿
*
* @return Map key:1_1Stringvalue:PictureData
*/
public static Map<String, PictureData> getSheetPictures03(HSSFSheet sheet, HSSFWorkbook workbook) {
@ -267,7 +265,6 @@ public class ExcelUtil<T> {
*
* @param sheet sheet
* @param workbook 簿
*
* @return Map key:1_1Stringvalue:PictureData
*/
public static Map<String, PictureData> getSheetPictures07(XSSFSheet sheet, XSSFWorkbook workbook) {
@ -294,7 +291,6 @@ public class ExcelUtil<T> {
* Excel
*
* @param fields ["name"/"id","name"]
*
* @throws Exception
*/
public void hideColumn(String... fields) {
@ -364,7 +360,6 @@ public class ExcelUtil<T> {
* excellist
*
* @param is
*
* @return
*/
public List<T> importExcel(InputStream is) {
@ -385,7 +380,6 @@ public class ExcelUtil<T> {
*
* @param is
* @param titleNum
*
* @return
*/
public List<T> importExcel(InputStream is, int titleNum) throws Exception {
@ -398,7 +392,6 @@ public class ExcelUtil<T> {
* @param sheetName
* @param titleNum
* @param is
*
* @return
*/
public List<T> importExcel(String sheetName, InputStream is, int titleNum) throws Exception {
@ -526,7 +519,6 @@ public class ExcelUtil<T> {
*
* @param list
* @param sheetName
*
* @return
*/
public Result<String> exportExcel(List<T> list, String sheetName) {
@ -539,7 +531,6 @@ public class ExcelUtil<T> {
* @param list
* @param sheetName
* @param title
*
* @return
*/
public Result<String> exportExcel(List<T> list, String sheetName, String title) {
@ -553,7 +544,6 @@ public class ExcelUtil<T> {
* @param response
* @param list
* @param sheetName
*
* @return
*/
public void exportExcel(HttpServletResponse response, List<T> list, String sheetName) {
@ -567,7 +557,6 @@ public class ExcelUtil<T> {
* @param list
* @param sheetName
* @param title
*
* @return
*/
public void exportExcel(HttpServletResponse response, List<T> list, String sheetName, String title) {
@ -581,7 +570,6 @@ public class ExcelUtil<T> {
* listexcel
*
* @param sheetName
*
* @return
*/
public Result<String> importTemplateExcel(String sheetName) {
@ -593,7 +581,6 @@ public class ExcelUtil<T> {
*
* @param sheetName
* @param title
*
* @return
*/
public Result<String> importTemplateExcel(String sheetName, String title) {
@ -605,7 +592,6 @@ public class ExcelUtil<T> {
* listexcel
*
* @param sheetName
*
* @return
*/
public void importTemplateExcel(HttpServletResponse response, String sheetName) {
@ -617,7 +603,6 @@ public class ExcelUtil<T> {
*
* @param sheetName
* @param title
*
* @return
*/
public void importTemplateExcel(HttpServletResponse response, String sheetName, String title) {
@ -758,7 +743,6 @@ public class ExcelUtil<T> {
*
*
* @param wb
*
* @return
*/
private Map<String, CellStyle> createStyles(Workbook wb) {
@ -811,7 +795,6 @@ public class ExcelUtil<T> {
* Excel
*
* @param wb
*
* @return
*/
private Map<String, CellStyle> annotationHeaderStyles(Workbook wb, Map<String, CellStyle> styles) {
@ -842,7 +825,6 @@ public class ExcelUtil<T> {
* Excel
*
* @param wb
*
* @return
*/
private Map<String, CellStyle> annotationDataStyles(Workbook wb) {
@ -1095,7 +1077,6 @@ public class ExcelUtil<T> {
*
* @param value
* @param excel
*
* @return
*/
public String dataFormatHandlerAdapter(Object value, Excel excel, Cell cell) {
@ -1174,9 +1155,7 @@ public class ExcelUtil<T> {
* @param vo
* @param field
* @param excel
*
* @return
*
* @throws Exception
*/
private Object getTargetValue(T vo, Field field, Excel excel) throws Exception {
@ -1200,9 +1179,7 @@ public class ExcelUtil<T> {
*
* @param o
* @param name
*
* @return value
*
* @throws Exception
*/
private Object getValue(Object o, String name) throws Exception {
@ -1308,7 +1285,6 @@ public class ExcelUtil<T> {
*
* @param row
* @param column
*
* @return
*/
public Object getCellValue(Row row, int column) {
@ -1349,7 +1325,6 @@ public class ExcelUtil<T> {
*
*
* @param row
*
* @return
*/
private boolean isRowEmpty(Row row) {
@ -1370,7 +1345,6 @@ public class ExcelUtil<T> {
*
* @param dateFormat
* @param val
*
* @return
*/
public String parseDateToStr(String dateFormat, Object val) {
@ -1422,7 +1396,6 @@ public class ExcelUtil<T> {
*
* @param name
* @param pojoClass
*
* @return
*/
public Method getSubMethod(String name, Class<?> pojoClass) {

View File

@ -66,7 +66,6 @@ public final class Base64 {
* Encodes hex octects into Base64
*
* @param binaryData Array containing binaryData
*
* @return Encoded Base64 array
*/
public static String encode(byte[] binaryData) {
@ -139,7 +138,6 @@ public final class Base64 {
* Decodes Base64 data into octects
*
* @param encoded string containing Base64 data
*
* @return Array containind decoded data.
*/
public static byte[] decode(String encoded) {
@ -235,7 +233,6 @@ public final class Base64 {
* remove WhiteSpace from MIME containing encoded Base64 data.
*
* @param data the byte array of base64 data (with WS)
*
* @return the new length
*/
private static int removeWhiteSpace(char[] data) {

View File

@ -28,9 +28,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
*
*
* @param name
*
* @return Object bean
*
* @throws org.springframework.beans.BeansException
*/
@SuppressWarnings("unchecked")
@ -42,9 +40,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
* requiredType
*
* @param clz
*
* @return
*
* @throws org.springframework.beans.BeansException
*/
public static <T> T getBean(Class<T> clz) throws BeansException {
@ -56,7 +52,6 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
* BeanFactorybeantrue
*
* @param name
*
* @return boolean
*/
public static boolean containsBean(String name) {
@ -67,9 +62,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
* beansingletonprototype beanNoSuchBeanDefinitionException
*
* @param name
*
* @return boolean
*
* @throws org.springframework.beans.factory.NoSuchBeanDefinitionException
*/
public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException {
@ -78,9 +71,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
/**
* @param name
*
* @return Class
*
* @throws org.springframework.beans.factory.NoSuchBeanDefinitionException
*/
public static Class<?> getType(String name) throws NoSuchBeanDefinitionException {
@ -91,9 +82,7 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
* beanbean
*
* @param name
*
* @return
*
* @throws org.springframework.beans.factory.NoSuchBeanDefinitionException
*/
public static String[] getAliases(String name) throws NoSuchBeanDefinitionException {
@ -104,7 +93,6 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
* aop
*
* @param invoker
*
* @return
*/
@SuppressWarnings("unchecked")
@ -135,7 +123,6 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
*
*
* @param key key
*
* @return
*/
public static String getRequiredProperty(String key) {

View File

@ -48,7 +48,6 @@ public class Seq {
*
* @param atomicInt
* @param length
*
* @return
*/
public static String getId(AtomicInteger atomicInt, int length) {

View File

@ -76,7 +76,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* 4UUID 使 UUID
*
* @param isSecure 使{@link SecureRandom}
*
* @return {@code UUID}
*/
public static UUID randomUUID(boolean isSecure) {
@ -95,7 +94,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* 3UUID
*
* @param name UUID
*
* @return {@code UUID}
*/
public static UUID nameUUIDFromBytes(byte[] name) {
@ -117,9 +115,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* {@link #toString()} {@code UUID}
*
* @param name {@code UUID}
*
* @return {@code UUID}
*
* @throws IllegalArgumentException name {@link #toString}
*/
public static UUID fromString(String name) {
@ -149,7 +145,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
*
* @param val
* @param digits
*
* @return
*/
private static String digits(long val, int digits) {
@ -268,7 +263,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* UnsupportedOperationException
*
* @return {@code UUID}
*
* @throws UnsupportedOperationException UUID version 1
*/
public int clockSequence() throws UnsupportedOperationException {
@ -286,7 +280,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* UUID UUID UnsupportedOperationException
*
* @return {@code UUID}
*
* @throws UnsupportedOperationException UUID version 1
*/
public long node() throws UnsupportedOperationException {
@ -316,7 +309,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* </blockquote>
*
* @return {@code UUID}
*
* @see #toString(boolean)
*/
@Override
@ -346,7 +338,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* </blockquote>
*
* @param isSimple '-'UUID
*
* @return {@code UUID}
*/
public String toString(boolean isSimple) {
@ -399,7 +390,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* {@code null} UUID UUID varriant {@code true}
*
* @param obj
*
* @return {@code true} {@code false}
*/
@Override
@ -418,7 +408,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* UUID UUID UUID UUID UUID
*
* @param val UUID UUID
*
* @return UUID val -10 1
*/
@Override

View File

@ -2,19 +2,29 @@
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>ruoyi-basic</artifactId>
<groupId>com.muyu</groupId>
<artifactId>ruoyi</artifactId>
<version>3.8.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-custom</artifactId>
<description>
custom自定义模块
</description>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,93 @@
package com.ruoyi.custom.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.custom.domain.req.SysClassEditReq;
import com.ruoyi.custom.domain.req.SysClassQueryReq;
import com.ruoyi.custom.domain.req.SysClassSaveReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* sys_class
*
* @author ruoyi
* @date 2024-04-22
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_class")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysClass", description = "班级管理")
public class SysClass extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* ID
*/
@TableId(value = "class_id", type = IdType.AUTO)
@ApiModelProperty(name = "班级ID", value = "班级ID")
private Long classId;
/**
*
*/
@Excel(name = "班级名称")
@ApiModelProperty(name = "班级名称", value = "班级名称", required = true)
private String className;
/**
* 0 1
*/
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
@ApiModelProperty(name = "状态0正常 1停用", value = "状态0正常 1停用", required = true)
private String status;
/**
*
*/
private String remark;
/**
*
*/
public static SysClass queryBuild(SysClassQueryReq sysClassQueryReq) {
return SysClass.builder()
.className(sysClassQueryReq.getClassName())
.status(sysClassQueryReq.getStatus())
.build();
}
/**
*
*/
public static SysClass saveBuild(SysClassSaveReq sysClassSaveReq) {
return SysClass.builder()
.className(sysClassSaveReq.getClassName())
.status(sysClassSaveReq.getStatus())
.build();
}
/**
*
*/
public static SysClass editBuild(Long classId, SysClassEditReq sysClassEditReq) {
return SysClass.builder()
.classId(classId)
.className(sysClassEditReq.getClassName())
.status(sysClassEditReq.getStatus())
.build();
}
}

View File

@ -0,0 +1,38 @@
package com.ruoyi.custom.domain.req;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* sys_class
*
* @author ruoyi
* @date 2024-04-22
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SysClassEditReq", description = "班级管理")
public class SysClassEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@ApiModelProperty(name = "班级名称", value = "班级名称", required = true)
private String className;
/**
* 0 1
*/
@ApiModelProperty(name = "状态0正常 1停用", value = "状态0正常 1停用", required = true)
private String status;
}

View File

@ -0,0 +1,38 @@
package com.ruoyi.custom.domain.req;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* sys_class
*
* @author ruoyi
* @date 2024-04-22
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SysClassQueryReq", description = "班级管理")
public class SysClassQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@ApiModelProperty(name = "班级名称", value = "班级名称")
private String className;
/**
* 0 1
*/
@ApiModelProperty(name = "状态0正常 1停用", value = "状态0正常 1停用")
private String status;
}

View File

@ -0,0 +1,47 @@
package com.ruoyi.custom.domain.req;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* sys_class
*
* @author ruoyi
* @date 2024-04-22
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SysClassSaveReq", description = "班级管理")
public class SysClassSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* ID
*/
@ApiModelProperty(name = "班级ID", value = "班级ID")
private Long classId;
/**
*
*/
@ApiModelProperty(name = "班级名称", value = "班级名称", required = true)
private String className;
/**
* 0 1
*/
@ApiModelProperty(name = "状态0正常 1停用", value = "状态0正常 1停用", required = true)
private String status;
}

View File

@ -0,0 +1,14 @@
package com.ruoyi.custom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.custom.domain.SysClass;
/**
* Mapper
*
* @author ruoyi
* @date 2024-04-22
*/
public interface SysClassMapper extends BaseMapper<SysClass> {
}

View File

@ -0,0 +1,23 @@
package com.ruoyi.custom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.custom.domain.SysClass;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2024-04-22
*/
public interface SysClassService extends IService<SysClass> {
/**
*
*
* @param sysClass
* @return
*/
public List<SysClass> list(SysClass sysClass);
}

View File

@ -0,0 +1,46 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ObjUtils;
import com.ruoyi.custom.domain.SysClass;
import com.ruoyi.custom.mapper.SysClassMapper;
import com.ruoyi.custom.service.SysClassService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2024-04-22
*/
@Slf4j
@Service
public class SysClassServiceImpl extends ServiceImpl<SysClassMapper, SysClass> implements SysClassService {
/**
*
*
* @param sysClass
* @return
*/
@Override
public List<SysClass> list(SysClass sysClass) {
LambdaQueryWrapper<SysClass> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(sysClass.getClassName())) {
queryWrapper.like(SysClass::getClassName, sysClass.getClassName());
}
if (ObjUtils.notNull(sysClass.getStatus())) {
queryWrapper.eq(SysClass::getStatus, sysClass.getStatus());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.SysClassMapper">
<resultMap type="com.ruoyi.custom.domain.SysClass" id="SysClassResult">
<result property="classId" column="class_id"/>
<result property="className" column="class_name"/>
<result property="status" column="status"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
</resultMap>
<sql id="selectSysClassVo">
select class_id,
class_name,
status,
create_by,
create_time,
update_by,
update_time,
remark
from sys_class
</sql>
</mapper>

View File

@ -59,6 +59,12 @@
<artifactId>ruoyi-system</artifactId>
</dependency>
<!-- 自定义模块 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>ruoyi-custom</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -124,7 +124,6 @@ public class LogAspect {
*
* @param log
* @param operLog
*
* @throws Exception
*/
public void getControllerMethodDescription(JoinPoint joinPoint, Log log, SysOperLog operLog, Object jsonResult) throws Exception {
@ -149,7 +148,6 @@ public class LogAspect {
* log
*
* @param operLog
*
* @throws Exception
*/
private void setRequestValue(JoinPoint joinPoint, SysOperLog operLog, String[] excludeParamNames) throws Exception {
@ -194,7 +192,6 @@ public class LogAspect {
*
*
* @param o
*
* @return truefalse
*/
@SuppressWarnings("rawtypes")

View File

@ -67,7 +67,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
* AuthenticationManager
*
* @return
*
* @throws Exception
*/
@Bean

View File

@ -2,7 +2,6 @@ package com.ruoyi.framework.config.mybatisplus;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.ruoyi.common.utils.SecurityUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

View File

@ -42,9 +42,7 @@ public abstract class RepeatSubmitInterceptor implements HandlerInterceptor {
*
* @param request
* @param annotation
*
* @return
*
* @throws Exception
*/
public abstract boolean isRepeatSubmit(HttpServletRequest request, RepeatSubmit annotation);

View File

@ -32,7 +32,6 @@ public class AsyncFactory {
* @param status
* @param message
* @param args
*
* @return task
*/
public static TimerTask recordLogininfor(final String username, final String status, final String message,
@ -79,7 +78,6 @@ public class AsyncFactory {
*
*
* @param operLog
*
* @return task
*/
public static TimerTask recordOper(final SysOperLog operLog) {

View File

@ -190,7 +190,6 @@ public class Server {
*
*
* @param size
*
* @return
*/
public String convertFileSize(long size) {

View File

@ -35,7 +35,6 @@ public class PermissionService {
*
*
* @param permission
*
* @return
*/
public boolean hasPermi(String permission) {
@ -54,7 +53,6 @@ public class PermissionService {
* hasPermi
*
* @param permission
*
* @return
*/
public boolean lacksPermi(String permission) {
@ -65,7 +63,6 @@ public class PermissionService {
*
*
* @param permissions PERMISSION_DELIMETER
*
* @return
*/
public boolean hasAnyPermi(String permissions) {
@ -90,7 +87,6 @@ public class PermissionService {
*
*
* @param role
*
* @return
*/
public boolean hasRole(String role) {
@ -114,7 +110,6 @@ public class PermissionService {
* isRole
*
* @param role
*
* @return
*/
public boolean lacksRole(String role) {
@ -125,7 +120,6 @@ public class PermissionService {
*
*
* @param roles ROLE_NAMES_DELIMETER
*
* @return
*/
public boolean hasAnyRoles(String roles) {
@ -149,7 +143,6 @@ public class PermissionService {
*
* @param permissions
* @param permission
*
* @return
*/
private boolean hasPermissions(Set<String> permissions, String permission) {

View File

@ -55,7 +55,6 @@ public class SysLoginService {
* @param password
* @param code
* @param uuid
*
* @return
*/
public String login(String username, String password, String code, String uuid) {
@ -94,7 +93,6 @@ public class SysLoginService {
* @param username
* @param code
* @param uuid
*
* @return
*/
public void validateCaptcha(String username, String code, String uuid) {

View File

@ -38,7 +38,6 @@ public class SysPasswordService {
*
*
* @param username
*
* @return key
*/
private String getCacheKey(String username) {

View File

@ -29,7 +29,6 @@ public class SysPermissionService {
*
*
* @param user
*
* @return
*/
public Set<String> getRolePermission(SysUser user) {
@ -47,7 +46,6 @@ public class SysPermissionService {
*
*
* @param user
*
* @return
*/
public Set<String> getMenuPermission(SysUser user) {

View File

@ -79,7 +79,6 @@ public class SysRegisterService {
* @param username
* @param code
* @param uuid
*
* @return
*/
public void validateCaptcha(String username, String code, String uuid) {

View File

@ -93,7 +93,6 @@ public class TokenService {
*
*
* @param loginUser
*
* @return
*/
public String createToken(LoginUser loginUser) {
@ -111,7 +110,6 @@ public class TokenService {
* 20
*
* @param loginUser
*
* @return
*/
public void verifyToken(LoginUser loginUser) {
@ -153,7 +151,6 @@ public class TokenService {
*
*
* @param claims
*
* @return
*/
private String createToken(Map<String, Object> claims) {
@ -167,7 +164,6 @@ public class TokenService {
*
*
* @param token
*
* @return
*/
private Claims parseToken(String token) {
@ -181,7 +177,6 @@ public class TokenService {
*
*
* @param token
*
* @return
*/
public String getUsernameFromToken(String token) {
@ -193,7 +188,6 @@ public class TokenService {
* token
*
* @param request
*
* @return token
*/
private String getToken(HttpServletRequest request) {

View File

@ -14,7 +14,6 @@ public interface GenTableColumnMapper {
*
*
* @param tableName
*
* @return
*/
public List<GenTableColumn> selectDbTableColumnsByName(String tableName);
@ -23,7 +22,6 @@ public interface GenTableColumnMapper {
*
*
* @param tableId
*
* @return
*/
public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId);
@ -32,7 +30,6 @@ public interface GenTableColumnMapper {
*
*
* @param genTableColumn
*
* @return
*/
public int insertGenTableColumn(GenTableColumn genTableColumn);
@ -41,7 +38,6 @@ public interface GenTableColumnMapper {
*
*
* @param genTableColumn
*
* @return
*/
public int updateGenTableColumn(GenTableColumn genTableColumn);
@ -50,7 +46,6 @@ public interface GenTableColumnMapper {
*
*
* @param genTableColumns
*
* @return
*/
public int deleteGenTableColumns(List<GenTableColumn> genTableColumns);
@ -59,7 +54,6 @@ public interface GenTableColumnMapper {
*
*
* @param ids ID
*
* @return
*/
public int deleteGenTableColumnByIds(Long[] ids);

View File

@ -14,7 +14,6 @@ public interface GenTableMapper {
*
*
* @param genTable
*
* @return
*/
public List<GenTable> selectGenTableList(GenTable genTable);
@ -23,7 +22,6 @@ public interface GenTableMapper {
*
*
* @param genTable
*
* @return
*/
public List<GenTable> selectDbTableList(GenTable genTable);
@ -32,7 +30,6 @@ public interface GenTableMapper {
*
*
* @param tableNames
*
* @return
*/
public List<GenTable> selectDbTableListByNames(String[] tableNames);
@ -48,7 +45,6 @@ public interface GenTableMapper {
* ID
*
* @param id ID
*
* @return
*/
public GenTable selectGenTableById(Long id);
@ -57,7 +53,6 @@ public interface GenTableMapper {
*
*
* @param tableName
*
* @return
*/
public GenTable selectGenTableByName(String tableName);
@ -66,7 +61,6 @@ public interface GenTableMapper {
*
*
* @param genTable
*
* @return
*/
public int insertGenTable(GenTable genTable);
@ -75,7 +69,6 @@ public interface GenTableMapper {
*
*
* @param genTable
*
* @return
*/
public int updateGenTable(GenTable genTable);
@ -84,7 +77,6 @@ public interface GenTableMapper {
*
*
* @param ids ID
*
* @return
*/
public int deleteGenTableByIds(Long[] ids);

View File

@ -14,7 +14,6 @@ public interface GenTableColumnService {
*
*
* @param tableId
*
* @return
*/
public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId);
@ -23,7 +22,6 @@ public interface GenTableColumnService {
*
*
* @param genTableColumn
*
* @return
*/
public int insertGenTableColumn(GenTableColumn genTableColumn);
@ -32,7 +30,6 @@ public interface GenTableColumnService {
*
*
* @param genTableColumn
*
* @return
*/
public int updateGenTableColumn(GenTableColumn genTableColumn);
@ -41,7 +38,6 @@ public interface GenTableColumnService {
*
*
* @param ids ID
*
* @return
*/
public int deleteGenTableColumnByIds(String ids);

View File

@ -15,7 +15,6 @@ public interface GenTableService {
*
*
* @param genTable
*
* @return
*/
public List<GenTable> selectGenTableList(GenTable genTable);
@ -24,7 +23,6 @@ public interface GenTableService {
*
*
* @param genTable
*
* @return
*/
public List<GenTable> selectDbTableList(GenTable genTable);
@ -33,7 +31,6 @@ public interface GenTableService {
*
*
* @param tableNames
*
* @return
*/
public List<GenTable> selectDbTableListByNames(String[] tableNames);
@ -49,7 +46,6 @@ public interface GenTableService {
*
*
* @param id ID
*
* @return
*/
public GenTable selectGenTableById(Long id);
@ -58,7 +54,6 @@ public interface GenTableService {
*
*
* @param genTable
*
* @return
*/
public void updateGenTable(GenTable genTable);
@ -67,7 +62,6 @@ public interface GenTableService {
*
*
* @param tableIds ID
*
* @return
*/
public void deleteGenTableByIds(Long[] tableIds);
@ -83,7 +77,6 @@ public interface GenTableService {
*
*
* @param tableId
*
* @return
*/
public Map<String, String> previewCode(Long tableId);
@ -92,7 +85,6 @@ public interface GenTableService {
*
*
* @param tableName
*
* @return
*/
public byte[] downloadCode(String tableName);
@ -101,7 +93,6 @@ public interface GenTableService {
*
*
* @param tableName
*
* @return
*/
public void generatorCode(String tableName);
@ -117,7 +108,6 @@ public interface GenTableService {
*
*
* @param tableNames
*
* @return
*/
public byte[] downloadCode(String[] tableNames);

View File

@ -23,7 +23,6 @@ public class GenTableColumnServiceImpl implements GenTableColumnService {
*
*
* @param tableId
*
* @return
*/
@Override
@ -35,7 +34,6 @@ public class GenTableColumnServiceImpl implements GenTableColumnService {
*
*
* @param genTableColumn
*
* @return
*/
@Override
@ -47,7 +45,6 @@ public class GenTableColumnServiceImpl implements GenTableColumnService {
*
*
* @param genTableColumn
*
* @return
*/
@Override
@ -59,7 +56,6 @@ public class GenTableColumnServiceImpl implements GenTableColumnService {
*
*
* @param ids ID
*
* @return
*/
@Override

View File

@ -59,7 +59,6 @@ public class GenTableServiceImpl implements GenTableService {
*
* @param table
* @param template
*
* @return
*/
public static String getGenPath(GenTable table, String template) {
@ -74,7 +73,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param id ID
*
* @return
*/
@Override
@ -88,7 +86,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param genTable
*
* @return
*/
@Override
@ -100,7 +97,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param genTable
*
* @return
*/
@Override
@ -112,7 +108,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param tableNames
*
* @return
*/
@Override
@ -134,7 +129,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param genTable
*
* @return
*/
@Override
@ -154,7 +148,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param tableIds ID
*
* @return
*/
@Override
@ -196,7 +189,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param tableId
*
* @return
*/
@Override
@ -226,7 +218,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param tableName
*
* @return
*/
@Override
@ -323,7 +314,6 @@ public class GenTableServiceImpl implements GenTableService {
*
*
* @param tableNames
*
* @return
*/
@Override

View File

@ -116,7 +116,6 @@ public class GenUtils {
*
* @param arr
* @param targetValue
*
* @return
*/
public static boolean arraysContains(String[] arr, String targetValue) {
@ -127,7 +126,6 @@ public class GenUtils {
*
*
* @param packageName
*
* @return
*/
public static String getModuleName(String packageName) {
@ -140,7 +138,6 @@ public class GenUtils {
*
*
* @param tableName
*
* @return
*/
public static String getBusinessName(String tableName) {
@ -153,7 +150,6 @@ public class GenUtils {
* Java
*
* @param tableName
*
* @return
*/
public static String convertClassName(String tableName) {
@ -171,7 +167,6 @@ public class GenUtils {
*
* @param replacementm
* @param searchList
*
* @return
*/
public static String replaceFirst(String replacementm, String[] searchList) {
@ -189,7 +184,6 @@ public class GenUtils {
*
*
* @param text
*
* @return
*/
public static String replaceText(String text) {
@ -200,7 +194,6 @@ public class GenUtils {
*
*
* @param columnType
*
* @return
*/
public static String getDbType(String columnType) {
@ -215,7 +208,6 @@ public class GenUtils {
*
*
* @param columnType
*
* @return
*/
public static Integer getColumnLength(String columnType) {

View File

@ -183,7 +183,6 @@ public class VelocityUtils {
*
*
* @param packageName
*
* @return
*/
public static String getPackagePrefix(String packageName) {
@ -195,7 +194,6 @@ public class VelocityUtils {
*
*
* @param genTable
*
* @return
*/
public static HashSet<String> getImportList(GenTable genTable) {
@ -216,7 +214,6 @@ public class VelocityUtils {
*
*
* @param genTable
*
* @return
*/
public static String getDicts(GenTable genTable) {
@ -247,7 +244,6 @@ public class VelocityUtils {
*
* @param moduleName
* @param businessName
*
* @return
*/
public static String getPermissionPrefix(String moduleName, String businessName) {
@ -258,7 +254,6 @@ public class VelocityUtils {
* ID
*
* @param paramsObj
*
* @return ID
*/
public static String getParentMenuId(JSONObject paramsObj) {
@ -273,7 +268,6 @@ public class VelocityUtils {
*
*
* @param paramsObj
*
* @return
*/
public static String getTreecode(JSONObject paramsObj) {
@ -287,7 +281,6 @@ public class VelocityUtils {
*
*
* @param paramsObj
*
* @return
*/
public static String getTreeParentCode(JSONObject paramsObj) {
@ -301,7 +294,6 @@ public class VelocityUtils {
*
*
* @param paramsObj
*
* @return
*/
public static String getTreeName(JSONObject paramsObj) {
@ -315,7 +307,6 @@ public class VelocityUtils {
*
*
* @param genTable
*
* @return
*/
public static int getExpandColumn(GenTable genTable) {

View File

@ -75,7 +75,8 @@
order by ordinal_position
</select>
<insert id="insertGenTableColumn" parameterType="com.ruoyi.generator.domain.GenTableColumn" useGeneratedKeys="true" keyProperty="columnId">
<insert id="insertGenTableColumn" parameterType="com.ruoyi.generator.domain.GenTableColumn" useGeneratedKeys="true"
keyProperty="columnId">
insert into gen_table_column (
<if test="tableId != null and tableId != ''">table_id,</if>
<if test="columnName != null and columnName != ''">column_name,</if>

View File

@ -249,7 +249,8 @@
order by c.sort
</select>
<insert id="insertGenTable" parameterType="com.ruoyi.generator.domain.GenTable" useGeneratedKeys="true" keyProperty="tableId">
<insert id="insertGenTable" parameterType="com.ruoyi.generator.domain.GenTable" useGeneratedKeys="true"
keyProperty="tableId">
insert into gen_table (
<if test="tableName != null">table_name,</if>
<if test="tableComment != null and tableComment != ''">table_comment,</if>

View File

@ -104,7 +104,8 @@ public class ${ClassName}Controller extends BaseController {
@PutMapping("/{${pkColumn.javaField}}")
@ApiOperation("修改${functionName}")
public Result<String> edit(@PathVariable ${pkColumn.javaType} ${pkColumn.javaField}, @RequestBody ${ClassName}EditReq ${className}EditReq) {
return toAjax(${className}Service.updateById(${ClassName}.editBuild(${pkColumn.javaField},${className}EditReq)));
return toAjax(${className}Service.updateById(${ClassName}.editBuild(${pkColumn.javaField}, ${className}EditReq)))
;
}
/**

View File

@ -1,6 +1,7 @@
package ${packageName}.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${packageName}.domain.${ClassName};

View File

@ -1,6 +1,7 @@
package ${packageName}.service;
import java.util.List;
import ${packageName}.domain.${ClassName};
import com.baomidou.mybatisplus.extension.service.IService;

View File

@ -67,7 +67,8 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
}
#elseif($queryType == "BETWEEN")
if (ObjUtils.notChildNull(${className}.getBetween("$JavaField"))){
queryWrapper.between(${ClassName}::get$JavaField, ${className}.getBeginParam("$JavaField"),${className}.getEndParam("$JavaField"));
queryWrapper.between(${ClassName}::get$JavaField, ${className}.
getBeginParam("$JavaField"),${className}.getEndParam("$JavaField"));
}
#end
#end

View File

@ -76,7 +76,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -85,7 +86,8 @@
icon="el-icon-sort"
size="mini"
@click="toggleExpandAll"
>展开/折叠</el-button>
>展开/折叠
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -123,7 +125,8 @@
<el-table-column label="${comment}" align="center" prop="${javaField}">
<template slot-scope="scope">
#if($column.htmlType == "checkbox")
<dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
<dict-tag :options="dict.type.${column.dictType}"
:value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
#else
<dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField}"/>
#end
@ -145,21 +148,24 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
>新增
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
>删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -180,7 +186,8 @@
#set($dictType=$column.dictType)
#if("" != $treeParentCode && $column.javaField == $treeParentCode)
<el-form-item label="${comment}" prop="${treeParentCode}">
<treeselect v-model="form.${treeParentCode}" :options="${businessName}Options" :normalizer="normalizer" placeholder="请选择${comment}" />
<treeselect v-model="form.${treeParentCode}" :options="${businessName}Options"
:normalizer="normalizer" placeholder="请选择${comment}"/>
</el-form-item>
#elseif($column.htmlType == "input")
<el-form-item label="${comment}" prop="${field}">
@ -247,7 +254,8 @@
#else
:label="dict.value"
#end
>{{dict.label}}</el-radio>
>{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
@ -283,7 +291,7 @@
</template>
<script>
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
import {get${BusinessName}, list${BusinessName}} from "@/api/";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@ -341,7 +349,9 @@ export default {
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
{
required: true, message: "$comment不能为空", trigger: #if($column.htmlType ==
"select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@ -468,22 +478,54 @@ export default {
},
/** 提交按钮 */
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
this.
#
[[$]]
#refs["form"].validate(valid => {
if (valid) {
#foreach($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
this.form.$column.javaField = this.form.$
{
column.javaField
}
.
join(",");
#end
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
this.#[[$modal]]#.msgSuccess("修改成功");
if (this.form.${
pkColumn.javaField
}
!=
null
)
{
update$
{
BusinessName
}
(this.form).then(response => {
this.
#
[[$modal]]
#.
msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
this.#[[$modal]]#.msgSuccess("新增成功");
}
else
{
add$
{
BusinessName
}
(this.form).then(response => {
this.
#
[[$modal]]
#.
msgSuccess("新增成功");
this.open = false;
this.getList();
});
@ -493,12 +535,36 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField});
this.
#
[[$modal]]
#.
confirm('是否确认删除${functionName}编号为"' + row.$
{
pkColumn.javaField
}
+'"的数据项?'
).
then(function () {
return del$
{
BusinessName
}
(row.$
{
pkColumn.javaField
}
)
;
}).then(() => {
this.getList();
this.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {});
this.
#
[[$modal]]
#.
msgSuccess("删除成功");
}).catch(() => {
});
}
}
};

View File

@ -76,7 +76,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -87,7 +88,8 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -98,7 +100,8 @@
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -108,7 +111,8 @@
size="mini"
@click="handleExport"
v-hasPermi="['${moduleName}:${businessName}:export']"
>导出</el-button>
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -141,7 +145,8 @@
<el-table-column label="${comment}" align="center" prop="${javaField}">
<template slot-scope="scope">
#if($column.htmlType == "checkbox")
<dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
<dict-tag :options="dict.type.${column.dictType}"
:value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
#else
<dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField}"/>
#end
@ -159,14 +164,16 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
>删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -258,7 +265,8 @@
#else
:label="dict.value"
#end
>{{dict.label}}</el-radio>
>{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
@ -294,7 +302,7 @@
</template>
<script>
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
import {get${BusinessName}, list${BusinessName}} from "@/api/";
export default {
name: "${BusinessName}",
@ -351,7 +359,9 @@ export default {
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
{
required: true, message: "$comment不能为空", trigger: #if($column.htmlType ==
"select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@ -449,22 +459,54 @@ export default {
},
/** 提交按钮 */
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
this.
#
[[$]]
#refs["form"].validate(valid => {
if (valid) {
#foreach($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
this.form.$column.javaField = this.form.$
{
column.javaField
}
.
join(",");
#end
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
this.#[[$modal]]#.msgSuccess("修改成功");
if (this.form.${
pkColumn.javaField
}
!=
null
)
{
update$
{
BusinessName
}
(this.form).then(response => {
this.
#
[[$modal]]
#.
msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
this.#[[$modal]]#.msgSuccess("新增成功");
}
else
{
add$
{
BusinessName
}
(this.form).then(response => {
this.
#
[[$modal]]
#.
msgSuccess("新增成功");
this.open = false;
this.getList();
});
@ -474,13 +516,31 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const ${pkColumn.javaField}s = row.${pkColumn.javaField} || this.ids;
this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?').then(function() {
return del${BusinessName}(${pkColumn.javaField}s);
const ${pkColumn.javaField}s = row.$
{
pkColumn.javaField
}
||
this.ids;
this.
#
[[$modal]]
#.
confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?').then(function () {
return del$
{
BusinessName
}
(${pkColumn.javaField}s);
}).then(() => {
this.getList();
this.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {});
this.
#
[[$modal]]
#.
msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {

View File

@ -74,7 +74,8 @@
icon="Plus"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -82,7 +83,8 @@
plain
icon="Sort"
@click="toggleExpandAll"
>展开/折叠</el-button>
>展开/折叠
</el-button>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -120,7 +122,8 @@
<el-table-column label="${comment}" align="center" prop="${javaField}">
<template #default="scope">
#if($column.htmlType == "checkbox")
<dict-tag :options="${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
<dict-tag :options="${column.dictType}"
:value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
#else
<dict-tag :options="${column.dictType}" :value="scope.row.${javaField}"/>
#end
@ -136,9 +139,15 @@
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${moduleName}:${businessName}:edit']">修改</el-button>
<el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['${moduleName}:${businessName}:add']">新增</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${moduleName}:${businessName}:remove']">删除</el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']">修改
</el-button>
<el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:add']">新增
</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']">删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -233,7 +242,8 @@
#else
:label="dict.value"
#end
>{{dict.label}}</el-radio>
>{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
@ -271,7 +281,7 @@
</template>
<script setup name="${BusinessName}">
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
import {get${BusinessName}, list${BusinessName}} from "@/api/";
const {proxy} = getCurrentInstance();
#if(${dicts} != '')
@ -313,7 +323,9 @@ const data = reactive({
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
{
required: true, message: "$comment不能为空", trigger: #if($column.htmlType ==
"select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@ -436,22 +448,54 @@ async function handleUpdate(row) {
/** 提交按钮 */
function submitForm() {
proxy.#[[$]]#refs["${businessName}Ref"].validate(valid => {
proxy.
#
[[$]]
#refs["${businessName}Ref"].validate(valid => {
if (valid) {
#foreach($column in $columns)
#if($column.htmlType == "checkbox")
form.value.$column.javaField = form.value.${column.javaField}.join(",");
form.value.$column.javaField = form.value.$
{
column.javaField
}
.
join(",");
#end
#end
if (form.value.${pkColumn.javaField} != null) {
update${BusinessName}(form.value).then(response => {
proxy.#[[$modal]]#.msgSuccess("修改成功");
if (form.value.${
pkColumn.javaField
}
!=
null
)
{
update$
{
BusinessName
}
(form.value).then(response => {
proxy.
#
[[$modal]]
#.
msgSuccess("修改成功");
open.value = false;
getList();
});
} else {
add${BusinessName}(form.value).then(response => {
proxy.#[[$modal]]#.msgSuccess("新增成功");
}
else
{
add$
{
BusinessName
}
(form.value).then(response => {
proxy.
#
[[$modal]]
#.
msgSuccess("新增成功");
open.value = false;
getList();
});
@ -462,12 +506,36 @@ function submitForm() {
/** 删除按钮操作 */
function handleDelete(row) {
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?').then(function() {
return del${BusinessName}(row.${pkColumn.javaField});
proxy.
#
[[$modal]]
#.
confirm('是否确认删除${functionName}编号为"' + row.$
{
pkColumn.javaField
}
+'"的数据项?'
).
then(function () {
return del$
{
BusinessName
}
(row.$
{
pkColumn.javaField
}
)
;
}).then(() => {
getList();
proxy.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {});
proxy.
#
[[$modal]]
#.
msgSuccess("删除成功");
}).catch(() => {
});
}
getList();

View File

@ -74,7 +74,8 @@
icon="Plus"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -84,7 +85,8 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -94,7 +96,8 @@
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -103,7 +106,8 @@
icon="Download"
@click="handleExport"
v-hasPermi="['${moduleName}:${businessName}:export']"
>导出</el-button>
>导出
</el-button>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -136,7 +140,8 @@
<el-table-column label="${comment}" align="center" prop="${javaField}">
<template #default="scope">
#if($column.htmlType == "checkbox")
<dict-tag :options="${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
<dict-tag :options="${column.dictType}"
:value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
#else
<dict-tag :options="${column.dictType}" :value="scope.row.${javaField}"/>
#end
@ -148,8 +153,12 @@
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${moduleName}:${businessName}:edit']">修改</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${moduleName}:${businessName}:remove']">删除</el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']">修改
</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']">删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -241,7 +250,8 @@
#else
:label="dict.value"
#end
>{{dict.label}}</el-radio>
>{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
@ -279,7 +289,7 @@
</template>
<script setup name="${BusinessName}">
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
import {get${BusinessName}, list${BusinessName}} from "@/api/";
const {proxy} = getCurrentInstance();
#if(${dicts} != '')
@ -324,7 +334,9 @@ const data = reactive({
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
{
required: true, message: "$comment不能为空", trigger: #if($column.htmlType ==
"select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@ -428,22 +440,54 @@ function handleUpdate(row) {
/** 提交按钮 */
function submitForm() {
proxy.#[[$]]#refs["${businessName}Ref"].validate(valid => {
proxy.
#
[[$]]
#refs["${businessName}Ref"].validate(valid => {
if (valid) {
#foreach($column in $columns)
#if($column.htmlType == "checkbox")
form.value.$column.javaField = form.value.${column.javaField}.join(",");
form.value.$column.javaField = form.value.$
{
column.javaField
}
.
join(",");
#end
#end
if (form.value.${pkColumn.javaField} != null) {
update${BusinessName}(form.value).then(response => {
proxy.#[[$modal]]#.msgSuccess("修改成功");
if (form.value.${
pkColumn.javaField
}
!=
null
)
{
update$
{
BusinessName
}
(form.value).then(response => {
proxy.
#
[[$modal]]
#.
msgSuccess("修改成功");
open.value = false;
getList();
});
} else {
add${BusinessName}(form.value).then(response => {
proxy.#[[$modal]]#.msgSuccess("新增成功");
}
else
{
add$
{
BusinessName
}
(form.value).then(response => {
proxy.
#
[[$modal]]
#.
msgSuccess("新增成功");
open.value = false;
getList();
});
@ -454,13 +498,47 @@ function submitForm() {
/** 删除按钮操作 */
function handleDelete(row) {
const _${pkColumn.javaField}s = row.${pkColumn.javaField} || ids.value;
proxy.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + _${pkColumn.javaField}s + '"的数据项?').then(function() {
return del${BusinessName}(_${pkColumn.javaField}s);
const _$
{
pkColumn.javaField
}
s = row.$
{
pkColumn.javaField
}
||
ids.value;
proxy.
#
[[$modal]]
#.
confirm('是否确认删除${functionName}编号为"' + _$
{
pkColumn.javaField
}
s + '"的数据项?'
).
then(function () {
return del$
{
BusinessName
}
(_$
{
pkColumn.javaField
}
s
)
;
}).then(() => {
getList();
proxy.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {});
proxy.
#
[[$modal]]
#.
msgSuccess("删除成功");
}).catch(() => {
});
}
/** 导出按钮操作 */

View File

@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="select${ClassName}Vo">
select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName}
select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end
from ${tableName}
</sql>
</mapper>

View File

@ -10,7 +10,6 @@ import com.ruoyi.common.exception.job.TaskException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.quartz.domain.SysJob;
import com.ruoyi.quartz.domain.SysJobLog;
import com.ruoyi.quartz.service.SysJobService;
import com.ruoyi.quartz.util.CronUtils;
import com.ruoyi.quartz.util.ScheduleUtils;

View File

@ -14,7 +14,6 @@ public interface SysJobLogMapper {
* quartz
*
* @param jobLog
*
* @return
*/
public List<SysJobLog> selectJobLogList(SysJobLog jobLog);
@ -30,7 +29,6 @@ public interface SysJobLogMapper {
* ID
*
* @param jobLogId ID
*
* @return
*/
public SysJobLog selectJobLogById(Long jobLogId);
@ -39,7 +37,6 @@ public interface SysJobLogMapper {
*
*
* @param jobLog
*
* @return
*/
public int insertJobLog(SysJobLog jobLog);
@ -48,7 +45,6 @@ public interface SysJobLogMapper {
*
*
* @param logIds ID
*
* @return
*/
public int deleteJobLogByIds(Long[] logIds);
@ -57,7 +53,6 @@ public interface SysJobLogMapper {
*
*
* @param jobId ID
*
* @return
*/
public int deleteJobLogById(Long jobId);

View File

@ -14,7 +14,6 @@ public interface SysJobMapper {
*
*
* @param job
*
* @return
*/
public List<SysJob> selectJobList(SysJob job);
@ -30,7 +29,6 @@ public interface SysJobMapper {
* ID
*
* @param jobId ID
*
* @return
*/
public SysJob selectJobById(Long jobId);
@ -39,7 +37,6 @@ public interface SysJobMapper {
* ID
*
* @param jobId ID
*
* @return
*/
public int deleteJobById(Long jobId);
@ -48,7 +45,6 @@ public interface SysJobMapper {
*
*
* @param ids ID
*
* @return
*/
public int deleteJobByIds(Long[] ids);
@ -57,7 +53,6 @@ public interface SysJobMapper {
*
*
* @param job
*
* @return
*/
public int updateJob(SysJob job);
@ -66,7 +61,6 @@ public interface SysJobMapper {
*
*
* @param job
*
* @return
*/
public int insertJob(SysJob job);

View File

@ -14,7 +14,6 @@ public interface SysJobLogService {
* quartz
*
* @param jobLog
*
* @return
*/
public List<SysJobLog> selectJobLogList(SysJobLog jobLog);
@ -23,7 +22,6 @@ public interface SysJobLogService {
* ID
*
* @param jobLogId ID
*
* @return
*/
public SysJobLog selectJobLogById(Long jobLogId);
@ -39,7 +37,6 @@ public interface SysJobLogService {
*
*
* @param logIds ID
*
* @return
*/
public int deleteJobLogByIds(Long[] logIds);
@ -48,7 +45,6 @@ public interface SysJobLogService {
*
*
* @param jobId ID
*
* @return
*/
public int deleteJobLogById(Long jobId);

View File

@ -16,7 +16,6 @@ public interface SysJobService {
* quartz
*
* @param job
*
* @return
*/
public List<SysJob> selectJobList(SysJob job);
@ -25,7 +24,6 @@ public interface SysJobService {
* ID
*
* @param jobId ID
*
* @return
*/
public SysJob selectJobById(Long jobId);
@ -34,7 +32,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public int pauseJob(SysJob job) throws SchedulerException;
@ -43,7 +40,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public int resumeJob(SysJob job) throws SchedulerException;
@ -52,7 +48,6 @@ public interface SysJobService {
* trigger
*
* @param job
*
* @return
*/
public int deleteJob(SysJob job) throws SchedulerException;
@ -61,7 +56,6 @@ public interface SysJobService {
*
*
* @param jobIds ID
*
* @return
*/
public void deleteJobByIds(Long[] jobIds) throws SchedulerException;
@ -70,7 +64,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public int changeStatus(SysJob job) throws SchedulerException;
@ -79,7 +72,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public boolean run(SysJob job) throws SchedulerException;
@ -88,7 +80,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public int insertJob(SysJob job) throws SchedulerException, TaskException;
@ -97,7 +88,6 @@ public interface SysJobService {
*
*
* @param job
*
* @return
*/
public int updateJob(SysJob job) throws SchedulerException, TaskException;
@ -106,7 +96,6 @@ public interface SysJobService {
* cron
*
* @param cronExpression
*
* @return
*/
public boolean checkCronExpressionIsValid(String cronExpression);

View File

@ -22,7 +22,6 @@ public class SysJobLogServiceImpl implements SysJobLogService {
* quartz
*
* @param jobLog
*
* @return
*/
@Override
@ -34,7 +33,6 @@ public class SysJobLogServiceImpl implements SysJobLogService {
* ID
*
* @param jobLogId ID
*
* @return
*/
@Override
@ -56,7 +54,6 @@ public class SysJobLogServiceImpl implements SysJobLogService {
*
*
* @param logIds ID
*
* @return
*/
@Override

View File

@ -47,7 +47,6 @@ public class SysJobServiceImpl implements SysJobService {
* quartz
*
* @param job
*
* @return
*/
@Override
@ -59,7 +58,6 @@ public class SysJobServiceImpl implements SysJobService {
* ID
*
* @param jobId ID
*
* @return
*/
@Override
@ -124,7 +122,6 @@ public class SysJobServiceImpl implements SysJobService {
*
*
* @param jobIds ID
*
* @return
*/
@Override
@ -230,7 +227,6 @@ public class SysJobServiceImpl implements SysJobService {
* cron
*
* @param cronExpression
*
* @return
*/
@Override

View File

@ -91,7 +91,6 @@ public abstract class AbstractQuartzJob implements Job {
*
* @param context
* @param sysJob
*
* @throws Exception
*/
protected abstract void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception;

View File

@ -15,7 +15,6 @@ public class CronUtils {
* Cron
*
* @param cronExpression Cron
*
* @return boolean
*/
public static boolean isValid(String cronExpression) {
@ -26,7 +25,6 @@ public class CronUtils {
* ,Cron
*
* @param cronExpression Cron
*
* @return String ,null
*/
public static String getInvalidMessage(String cronExpression) {
@ -42,7 +40,6 @@ public class CronUtils {
* Cron
*
* @param cronExpression Cron
*
* @return Date Cron
*/
public static Date getNextExecution(String cronExpression) {

View File

@ -58,7 +58,6 @@ public class JobInvokeUtil {
* class
*
* @param invokeTarget
*
* @return true false
*/
public static boolean isValidClassName(String invokeTarget) {
@ -69,7 +68,6 @@ public class JobInvokeUtil {
* bean
*
* @param invokeTarget
*
* @return bean
*/
public static String getBeanName(String invokeTarget) {
@ -81,7 +79,6 @@ public class JobInvokeUtil {
* bean
*
* @param invokeTarget
*
* @return method
*/
public static String getMethodName(String invokeTarget) {
@ -93,7 +90,6 @@ public class JobInvokeUtil {
* method
*
* @param invokeTarget
*
* @return method
*/
public static List<Object[]> getMethodParams(String invokeTarget) {
@ -133,7 +129,6 @@ public class JobInvokeUtil {
*
*
* @param methodParams
*
* @return
*/
public static Class<?>[] getMethodParamsType(List<Object[]> methodParams) {
@ -150,7 +145,6 @@ public class JobInvokeUtil {
*
*
* @param methodParams
*
* @return
*/
public static Object[] getMethodParamsValue(List<Object[]> methodParams) {

View File

@ -19,7 +19,6 @@ public class ScheduleUtils {
* quartz
*
* @param sysJob
*
* @return
*/
private static Class<? extends Job> getQuartzJobClass(SysJob sysJob) {
@ -104,7 +103,6 @@ public class ScheduleUtils {
*
*
* @param invokeTarget
*
* @return
*/
public static boolean whiteList(String invokeTarget) {

View File

@ -14,7 +14,6 @@ public interface SysConfigMapper {
*
*
* @param config
*
* @return
*/
public SysConfig selectConfig(SysConfig config);
@ -23,7 +22,6 @@ public interface SysConfigMapper {
* ID
*
* @param configId ID
*
* @return
*/
public SysConfig selectConfigById(Long configId);
@ -32,7 +30,6 @@ public interface SysConfigMapper {
*
*
* @param config
*
* @return
*/
public List<SysConfig> selectConfigList(SysConfig config);
@ -41,7 +38,6 @@ public interface SysConfigMapper {
*
*
* @param configKey
*
* @return
*/
public SysConfig checkConfigKeyUnique(String configKey);
@ -50,7 +46,6 @@ public interface SysConfigMapper {
*
*
* @param config
*
* @return
*/
public int insertConfig(SysConfig config);
@ -59,7 +54,6 @@ public interface SysConfigMapper {
*
*
* @param config
*
* @return
*/
public int updateConfig(SysConfig config);
@ -68,7 +62,6 @@ public interface SysConfigMapper {
*
*
* @param configId ID
*
* @return
*/
public int deleteConfigById(Long configId);
@ -77,7 +70,6 @@ public interface SysConfigMapper {
*
*
* @param configIds ID
*
* @return
*/
public int deleteConfigByIds(Long[] configIds);

View File

@ -15,7 +15,6 @@ public interface SysDeptMapper {
*
*
* @param dept
*
* @return
*/
public List<SysDept> selectDeptList(SysDept dept);
@ -25,7 +24,6 @@ public interface SysDeptMapper {
*
* @param roleId ID
* @param deptCheckStrictly
*
* @return
*/
public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
@ -34,7 +32,6 @@ public interface SysDeptMapper {
* ID
*
* @param deptId ID
*
* @return
*/
public SysDept selectDeptById(Long deptId);
@ -43,7 +40,6 @@ public interface SysDeptMapper {
* ID
*
* @param deptId ID
*
* @return
*/
public List<SysDept> selectChildrenDeptById(Long deptId);
@ -52,7 +48,6 @@ public interface SysDeptMapper {
* ID
*
* @param deptId ID
*
* @return
*/
public int selectNormalChildrenDeptById(Long deptId);
@ -61,7 +56,6 @@ public interface SysDeptMapper {
*
*
* @param deptId ID
*
* @return
*/
public int hasChildByDeptId(Long deptId);
@ -70,7 +64,6 @@ public interface SysDeptMapper {
*
*
* @param deptId ID
*
* @return
*/
public int checkDeptExistUser(Long deptId);
@ -80,7 +73,6 @@ public interface SysDeptMapper {
*
* @param deptName
* @param parentId ID
*
* @return
*/
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
@ -89,7 +81,6 @@ public interface SysDeptMapper {
*
*
* @param dept
*
* @return
*/
public int insertDept(SysDept dept);
@ -98,7 +89,6 @@ public interface SysDeptMapper {
*
*
* @param dept
*
* @return
*/
public int updateDept(SysDept dept);
@ -114,7 +104,6 @@ public interface SysDeptMapper {
*
*
* @param depts
*
* @return
*/
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
@ -123,7 +112,6 @@ public interface SysDeptMapper {
*
*
* @param deptId ID
*
* @return
*/
public int deleteDeptById(Long deptId);

View File

@ -15,7 +15,6 @@ public interface SysDictDataMapper {
*
*
* @param dictData
*
* @return
*/
public List<SysDictData> selectDictDataList(SysDictData dictData);
@ -24,7 +23,6 @@ public interface SysDictDataMapper {
*
*
* @param dictType
*
* @return
*/
public List<SysDictData> selectDictDataByType(String dictType);
@ -34,7 +32,6 @@ public interface SysDictDataMapper {
*
* @param dictType
* @param dictValue
*
* @return
*/
public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
@ -43,7 +40,6 @@ public interface SysDictDataMapper {
* ID
*
* @param dictCode ID
*
* @return
*/
public SysDictData selectDictDataById(Long dictCode);
@ -52,7 +48,6 @@ public interface SysDictDataMapper {
*
*
* @param dictType
*
* @return
*/
public int countDictDataByType(String dictType);
@ -61,7 +56,6 @@ public interface SysDictDataMapper {
* ID
*
* @param dictCode ID
*
* @return
*/
public int deleteDictDataById(Long dictCode);
@ -70,7 +64,6 @@ public interface SysDictDataMapper {
*
*
* @param dictCodes ID
*
* @return
*/
public int deleteDictDataByIds(Long[] dictCodes);
@ -79,7 +72,6 @@ public interface SysDictDataMapper {
*
*
* @param dictData
*
* @return
*/
public int insertDictData(SysDictData dictData);
@ -88,7 +80,6 @@ public interface SysDictDataMapper {
*
*
* @param dictData
*
* @return
*/
public int updateDictData(SysDictData dictData);
@ -98,7 +89,6 @@ public interface SysDictDataMapper {
*
* @param oldDictType
* @param newDictType
*
* @return
*/
public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);

View File

@ -14,7 +14,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictType
*
* @return
*/
public List<SysDictType> selectDictTypeList(SysDictType dictType);
@ -30,7 +29,6 @@ public interface SysDictTypeMapper {
* ID
*
* @param dictId ID
*
* @return
*/
public SysDictType selectDictTypeById(Long dictId);
@ -39,7 +37,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictType
*
* @return
*/
public SysDictType selectDictTypeByType(String dictType);
@ -48,7 +45,6 @@ public interface SysDictTypeMapper {
* ID
*
* @param dictId ID
*
* @return
*/
public int deleteDictTypeById(Long dictId);
@ -57,7 +53,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictIds ID
*
* @return
*/
public int deleteDictTypeByIds(Long[] dictIds);
@ -66,7 +61,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictType
*
* @return
*/
public int insertDictType(SysDictType dictType);
@ -75,7 +69,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictType
*
* @return
*/
public int updateDictType(SysDictType dictType);
@ -84,7 +77,6 @@ public interface SysDictTypeMapper {
*
*
* @param dictType
*
* @return
*/
public SysDictType checkDictTypeUnique(String dictType);

View File

@ -21,7 +21,6 @@ public interface SysLogininforMapper {
*
*
* @param logininfor 访
*
* @return
*/
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
@ -30,7 +29,6 @@ public interface SysLogininforMapper {
*
*
* @param infoIds ID
*
* @return
*/
public int deleteLogininforByIds(Long[] infoIds);

View File

@ -15,7 +15,6 @@ public interface SysMenuMapper {
*
*
* @param menu
*
* @return
*/
public List<SysMenu> selectMenuList(SysMenu menu);
@ -31,7 +30,6 @@ public interface SysMenuMapper {
*
*
* @param menu
*
* @return
*/
public List<SysMenu> selectMenuListByUserId(SysMenu menu);
@ -40,7 +38,6 @@ public interface SysMenuMapper {
* ID
*
* @param roleId ID
*
* @return
*/
public List<String> selectMenuPermsByRoleId(Long roleId);
@ -49,7 +46,6 @@ public interface SysMenuMapper {
* ID
*
* @param userId ID
*
* @return
*/
public List<String> selectMenuPermsByUserId(Long userId);
@ -65,7 +61,6 @@ public interface SysMenuMapper {
* ID
*
* @param userId ID
*
* @return
*/
public List<SysMenu> selectMenuTreeByUserId(Long userId);
@ -75,7 +70,6 @@ public interface SysMenuMapper {
*
* @param roleId ID
* @param menuCheckStrictly
*
* @return
*/
public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
@ -84,7 +78,6 @@ public interface SysMenuMapper {
* ID
*
* @param menuId ID
*
* @return
*/
public SysMenu selectMenuById(Long menuId);
@ -93,7 +86,6 @@ public interface SysMenuMapper {
*
*
* @param menuId ID
*
* @return
*/
public int hasChildByMenuId(Long menuId);
@ -102,7 +94,6 @@ public interface SysMenuMapper {
*
*
* @param menu
*
* @return
*/
public int insertMenu(SysMenu menu);
@ -111,7 +102,6 @@ public interface SysMenuMapper {
*
*
* @param menu
*
* @return
*/
public int updateMenu(SysMenu menu);
@ -120,7 +110,6 @@ public interface SysMenuMapper {
*
*
* @param menuId ID
*
* @return
*/
public int deleteMenuById(Long menuId);
@ -130,7 +119,6 @@ public interface SysMenuMapper {
*
* @param menuName
* @param parentId ID
*
* @return
*/
public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);

View File

@ -14,7 +14,6 @@ public interface SysNoticeMapper {
*
*
* @param noticeId ID
*
* @return
*/
public SysNotice selectNoticeById(Long noticeId);
@ -23,7 +22,6 @@ public interface SysNoticeMapper {
*
*
* @param notice
*
* @return
*/
public List<SysNotice> selectNoticeList(SysNotice notice);
@ -32,7 +30,6 @@ public interface SysNoticeMapper {
*
*
* @param notice
*
* @return
*/
public int insertNotice(SysNotice notice);
@ -41,7 +38,6 @@ public interface SysNoticeMapper {
*
*
* @param notice
*
* @return
*/
public int updateNotice(SysNotice notice);
@ -50,7 +46,6 @@ public interface SysNoticeMapper {
*
*
* @param noticeId ID
*
* @return
*/
public int deleteNoticeById(Long noticeId);
@ -59,7 +54,6 @@ public interface SysNoticeMapper {
*
*
* @param noticeIds ID
*
* @return
*/
public int deleteNoticeByIds(Long[] noticeIds);

View File

@ -21,7 +21,6 @@ public interface SysOperLogMapper {
*
*
* @param operLog
*
* @return
*/
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
@ -30,7 +29,6 @@ public interface SysOperLogMapper {
*
*
* @param operIds ID
*
* @return
*/
public int deleteOperLogByIds(Long[] operIds);
@ -39,7 +37,6 @@ public interface SysOperLogMapper {
*
*
* @param operId ID
*
* @return
*/
public SysOperLog selectOperLogById(Long operId);

View File

@ -14,7 +14,6 @@ public interface SysPostMapper {
*
*
* @param post
*
* @return
*/
public List<SysPost> selectPostList(SysPost post);
@ -30,7 +29,6 @@ public interface SysPostMapper {
* ID
*
* @param postId ID
*
* @return
*/
public SysPost selectPostById(Long postId);
@ -39,7 +37,6 @@ public interface SysPostMapper {
* ID
*
* @param userId ID
*
* @return ID
*/
public List<Long> selectPostListByUserId(Long userId);
@ -48,7 +45,6 @@ public interface SysPostMapper {
*
*
* @param userName
*
* @return
*/
public List<SysPost> selectPostsByUserName(String userName);
@ -57,7 +53,6 @@ public interface SysPostMapper {
*
*
* @param postId ID
*
* @return
*/
public int deletePostById(Long postId);
@ -66,7 +61,6 @@ public interface SysPostMapper {
*
*
* @param postIds ID
*
* @return
*/
public int deletePostByIds(Long[] postIds);
@ -75,7 +69,6 @@ public interface SysPostMapper {
*
*
* @param post
*
* @return
*/
public int updatePost(SysPost post);
@ -84,7 +77,6 @@ public interface SysPostMapper {
*
*
* @param post
*
* @return
*/
public int insertPost(SysPost post);
@ -93,7 +85,6 @@ public interface SysPostMapper {
*
*
* @param postName
*
* @return
*/
public SysPost checkPostNameUnique(String postName);
@ -102,7 +93,6 @@ public interface SysPostMapper {
*
*
* @param postCode
*
* @return
*/
public SysPost checkPostCodeUnique(String postCode);

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