mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
Compare commits
18 Commits
v3.4.4
...
v3.4.4last
| Author | SHA1 | Date | |
|---|---|---|---|
| c46ec2415b | |||
| f0e060f12e | |||
| 65a0d3b9df | |||
| 1a48fb86bc | |||
| 0fc374de47 | |||
| f94c5e1f3f | |||
| 352bd3e98f | |||
| 22fe4475d0 | |||
| 7a3d1f1a58 | |||
| 3159c822c7 | |||
| fa0ce6e7e1 | |||
| c29794d07b | |||
| 6ba5536554 | |||
| e6b93c2fca | |||
| b0b517e71e | |||
| cf3d746d63 | |||
| 0fdbf642d8 | |||
| 0ebd1df81d |
@ -11,7 +11,7 @@ The Latest Version: 3.4.4(Release date:2022-11-21)
|
|||||||
|
|
||||||
|
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
|
[](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
|
||||||
[](http://www.jeecg.com)
|
[](http://www.jeecg.com)
|
||||||
[](https://jeecg.blog.csdn.net)
|
[](https://jeecg.blog.csdn.net)
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot)
|
[](https://github.com/zhangdaiscott/jeecg-boot)
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot)
|
[](https://github.com/zhangdaiscott/jeecg-boot)
|
||||||
|
|||||||
69
README.md
69
README.md
@ -11,7 +11,7 @@ JEECG BOOT 低代码开发平台
|
|||||||
|
|
||||||
|
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
|
[](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
|
||||||
[](http://www.jeecg.com)
|
[](http://www.jeecg.com)
|
||||||
[](https://jeecg.blog.csdn.net)
|
[](https://jeecg.blog.csdn.net)
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot)
|
[](https://github.com/zhangdaiscott/jeecg-boot)
|
||||||
[](https://github.com/zhangdaiscott/jeecg-boot)
|
[](https://github.com/zhangdaiscott/jeecg-boot)
|
||||||
@ -34,20 +34,22 @@ JeecgBoot 提供了一系列`低代码模块`,实现在线开发`真正的零
|
|||||||
`JEECG业务流程:` 采用工作流来实现、扩展出任务接口,供开发编写业务逻辑,表单提供多种解决方案: 表单设计器、online配置表单、编码表单。同时实现了流程与表单的分离设计(松耦合)、并支持任务节点灵活配置,既保证了公司流程的保密性,又减少了开发人员的工作量。
|
`JEECG业务流程:` 采用工作流来实现、扩展出任务接口,供开发编写业务逻辑,表单提供多种解决方案: 表单设计器、online配置表单、编码表单。同时实现了流程与表单的分离设计(松耦合)、并支持任务节点灵活配置,既保证了公司流程的保密性,又减少了开发人员的工作量。
|
||||||
|
|
||||||
|
|
||||||
技术支持
|
|
||||||
-----------------------------------
|
|
||||||
|
|
||||||
关闭gitee的issue通道,使用中遇到问题或者BUG可以在 [Github上提Issues](https://github.com/jeecgboot/jeecg-boot/issues/new)
|
|
||||||
|
|
||||||
官方支持: http://jeecg.com/doc/help
|
|
||||||
|
|
||||||
|
|
||||||
源码下载
|
源码下载
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
- 后台源码 :https://github.com/jeecgboot/jeecg-boot
|
|
||||||
- 前端源码(Vue3版):https://github.com/jeecgboot/jeecgboot-vue3
|
| 源码 | 源码地址 |
|
||||||
- 前端源码(Vue2版):https://github.com/jeecgboot/ant-design-vue-jeecg
|
|--------------------|------------------------|
|
||||||
- APP配套框架:https://github.com/jeecgboot/jeecg-uniapp
|
| 后台源码 | https://github.com/jeecgboot/jeecg-boot |
|
||||||
|
| 前端源码 `Vue3版` | https://github.com/jeecgboot/jeecgboot-vue3 |
|
||||||
|
| 前端源码 `Vue2版` |https://github.com/jeecgboot/ant-design-vue-jeecg |
|
||||||
|
| APP配套框架 | https://github.com/jeecgboot/jeecg-uniapp |
|
||||||
|
|
||||||
|
##### 快速搭建开发环境
|
||||||
|
|
||||||
|
- [通过IDEA启动前后端项目](http://doc.jeecg.com/2043874)
|
||||||
|
- [Vue3前端项目快速启动](http://vue3.jeecg.com/2398848)
|
||||||
|
- [Vue2前端项目快速启动](http://doc.jeecg.com/2678320)
|
||||||
|
- [单体快速切换为微服务版](http://doc.jeecg.com/3043471)
|
||||||
|
|
||||||
##### 项目说明
|
##### 项目说明
|
||||||
|
|
||||||
@ -62,11 +64,22 @@ JeecgBoot 提供了一系列`低代码模块`,实现在线开发`真正的零
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
技术文档
|
||||||
|
|
||||||
适用项目
|
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
Jeecg-Boot低代码开发平台,可以应用在任何J2EE项目的开发中,尤其适合SAAS项目、企业信息管理系统(MIS)、内部办公系统(OA)、企业资源计划系统(ERP)、客户关系管理系统(CRM)等,其半智能手工Merge的开发方式,可以显著提高开发效率70%以上,极大降低开发成本。
|
|
||||||
|
- 项目官网: [http://www.jeecg.com](http://www.jeecg.com)
|
||||||
|
|
||||||
|
- 在线演示 : [Vue3版本](http://boot3.jeecg.com) | [Vue2版本](http://boot.jeecg.com) | [敲敲云(零代码)](http://app.qiaoqiaoyun.com)
|
||||||
|
|
||||||
|
- 开发文档: [Vue3文档](http://vue3.jeecg.com) | [主项目文档](http://doc.jeecg.com)
|
||||||
|
|
||||||
|
- 新手指南: [快速入门](http://www.jeecg.com/doc/quickstart) | [常见问题 ](http://www.jeecg.com/doc/qa) | [视频教程](https://space.bilibili.com/454617261/channel/series) | [1分钟体验低代码](https://my.oschina.net/jeecg/blog/3083313)
|
||||||
|
|
||||||
|
- 敲敲云平台(零代码): [http://qiaoqiaoyun.com](http://qiaoqiaoyun.com)
|
||||||
|
|
||||||
|
- QQ交流群 : ⑥730954414、VUE3群683903138、⑤860162132(满)、④774126647(满)、③816531124(满)、②769925425(满)、①284271917(满)
|
||||||
|
> ` 提醒:【QQ群是自助服务群,建议给帮助您解决问题的同学发送指定红包,表示感谢!】 `
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Docker启动项目
|
Docker启动项目
|
||||||
@ -79,25 +92,17 @@ Docker启动项目
|
|||||||
- [Docker启动Vue2前端](http://doc.jeecg.com/3043612)
|
- [Docker启动Vue2前端](http://doc.jeecg.com/3043612)
|
||||||
|
|
||||||
|
|
||||||
|
适用项目
|
||||||
|
-----------------------------------
|
||||||
|
Jeecg-Boot低代码开发平台,可以应用在任何J2EE项目的开发中,尤其适合SAAS项目、企业信息管理系统(MIS)、内部办公系统(OA)、企业资源计划系统(ERP)、客户关系管理系统(CRM)等,其半智能手工Merge的开发方式,可以显著提高开发效率70%以上,极大降低开发成本。
|
||||||
|
|
||||||
|
|
||||||
技术文档
|
技术支持
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
- 技术官网: [http://www.jeecg.com](http://www.jeecg.com)
|
关闭gitee的issue通道,使用中遇到问题或者BUG可以在 [Github上提Issues](https://github.com/jeecgboot/jeecg-boot/issues/new)
|
||||||
|
|
||||||
- 在线演示 : [Vue3版本](http://boot3.jeecg.com) | [Vue2版本](http://boot.jeecg.com)
|
|
||||||
|
|
||||||
- 开发文档: [Vue3文档](http://vue3.jeecg.com) | [主项目文档](http://doc.jeecg.com)
|
|
||||||
|
|
||||||
- 新手指南: [快速入门](http://www.jeecg.com/doc/quickstart) | [视频教程](https://space.bilibili.com/454617261/channel/series) | [常见问题 ](http://www.jeecg.com/doc/qa) | [技术支持](http://jeecg.com/doc/help) | [1分钟体验低代码](https://my.oschina.net/jeecg/blog/3083313)
|
|
||||||
|
|
||||||
- 微服务开发: [单体升级为微服务](http://doc.jeecg.com/3043471)
|
|
||||||
|
|
||||||
- QQ交流群 : ⑥730954414、VUE3群683903138、⑤860162132(满)、④774126647(满)、③816531124(满)、②769925425(满)、①284271917(满)
|
|
||||||
> ` 提醒:【QQ群是自助服务群,建议给帮助您解决问题的同学发送指定红包,表示感谢!】 `
|
|
||||||
|
|
||||||
|
|
||||||
|
官方支持: [http://jeecg.com/doc/help](http://jeecg.com/doc/help)
|
||||||
|
|
||||||
|
|
||||||
##### Star走势图
|
##### Star走势图
|
||||||
@ -160,7 +165,7 @@ Docker启动项目
|
|||||||
* 17.支持SAAS服务模式,提供SaaS多租户架构方案。
|
* 17.支持SAAS服务模式,提供SaaS多租户架构方案。
|
||||||
* 18.分布式文件服务,集成minio、阿里OSS等优秀的第三方,提供便捷的文件上传与管理,同时也支持本地存储。
|
* 18.分布式文件服务,集成minio、阿里OSS等优秀的第三方,提供便捷的文件上传与管理,同时也支持本地存储。
|
||||||
* 19.主流数据库兼容,一套代码完全兼容Mysql、Postgresql、Oracle、Sqlserver、MariaDB、达梦等主流数据库。
|
* 19.主流数据库兼容,一套代码完全兼容Mysql、Postgresql、Oracle、Sqlserver、MariaDB、达梦等主流数据库。
|
||||||
* 20.集成工作流activiti,并实现了只需在页面配置流程转向,可极大的简化bpm工作流的开发;用bpm的流程设计器画出了流程走向,一个工作流基本就完成了,只需写很少量的java代码;
|
* 20.集成工作流activiti、flowable,并实现了只需在页面配置流程转向,可极大的简化bpm工作流的开发;用bpm的流程设计器画出了流程走向,一个工作流基本就完成了,只需写很少量的java代码;
|
||||||
* 21.低代码能力:在线流程设计,采用开源Activiti流程引擎,实现在线画流程,自定义表单,表单挂靠,业务流转
|
* 21.低代码能力:在线流程设计,采用开源Activiti流程引擎,实现在线画流程,自定义表单,表单挂靠,业务流转
|
||||||
* 22.多数据源:及其简易的使用方式,在线配置数据源配置,便捷的从其他数据抓取数据;
|
* 22.多数据源:及其简易的使用方式,在线配置数据源配置,便捷的从其他数据抓取数据;
|
||||||
* 23.提供单点登录CAS集成方案,项目中已经提供完善的对接代码
|
* 23.提供单点登录CAS集成方案,项目中已经提供完善的对接代码
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
ALTER TABLE `onl_cgform_field`
|
|
||||||
MODIFY COLUMN `field_show_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表单控件类型' AFTER `dict_text`;
|
|
||||||
|
|
||||||
ALTER TABLE `onl_cgform_field`
|
|
||||||
ADD COLUMN `db_is_persist` tinyint(1) NULL COMMENT '是否需要同步数据库字段, 1是0否' AFTER `db_is_null`;
|
|
||||||
update onl_cgform_field set db_is_persist = 1;
|
|
||||||
@ -1,8 +1,6 @@
|
|||||||
package org.jeecg.common.util;
|
package org.jeecg.common.util;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import org.jeecg.common.constant.CommonConstant;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.jeecg.common.constant.ServiceNameConstants;
|
import org.jeecg.common.constant.ServiceNameConstants;
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
@ -11,6 +9,9 @@ import org.springframework.stereotype.Component;
|
|||||||
import org.springframework.web.context.request.RequestContextHolder;
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: spring上下文工具类
|
* @Description: spring上下文工具类
|
||||||
* @author: jeecg-boot
|
* @author: jeecg-boot
|
||||||
@ -56,12 +57,19 @@ public class SpringContextUtils implements ApplicationContextAware {
|
|||||||
public static String getDomain(){
|
public static String getDomain(){
|
||||||
HttpServletRequest request = getHttpServletRequest();
|
HttpServletRequest request = getHttpServletRequest();
|
||||||
StringBuffer url = request.getRequestURL();
|
StringBuffer url = request.getRequestURL();
|
||||||
//微服务情况下,获取gateway的basePath
|
//1.微服务情况下,获取gateway的basePath
|
||||||
String basePath = request.getHeader(ServiceNameConstants.X_GATEWAY_BASE_PATH);
|
String basePath = request.getHeader(ServiceNameConstants.X_GATEWAY_BASE_PATH);
|
||||||
if(oConvertUtils.isNotEmpty(basePath)){
|
if(oConvertUtils.isNotEmpty(basePath)){
|
||||||
return basePath;
|
return basePath;
|
||||||
}else{
|
}else{
|
||||||
return url.delete(url.length() - request.getRequestURI().length(), url.length()).toString();
|
String domain = url.delete(url.length() - request.getRequestURI().length(), url.length()).toString();
|
||||||
|
//2.【兼容】SSL认证之后,request.getScheme()获取不到https的问题
|
||||||
|
// https://blog.csdn.net/weixin_34376986/article/details/89767950
|
||||||
|
String scheme = request.getHeader(CommonConstant.X_FORWARDED_SCHEME);
|
||||||
|
if(scheme!=null && !request.getScheme().equals(scheme)){
|
||||||
|
domain = domain.replace(request.getScheme(),scheme);
|
||||||
|
}
|
||||||
|
return domain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package org.jeecg.common.util;
|
|||||||
import cn.hutool.crypto.SecureUtil;
|
import cn.hutool.crypto.SecureUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.common.exception.JeecgBootException;
|
import org.jeecg.common.exception.JeecgBootException;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -21,7 +22,7 @@ public class SqlInjectionUtil {
|
|||||||
* (上线修改值 20200501,同步修改前端的盐值)
|
* (上线修改值 20200501,同步修改前端的盐值)
|
||||||
*/
|
*/
|
||||||
private final static String TABLE_DICT_SIGN_SALT = "20200501";
|
private final static String TABLE_DICT_SIGN_SALT = "20200501";
|
||||||
private final static String XSS_STR = "and |extractvalue|updatexml|exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |;|or |+|user()";
|
private final static String XSS_STR = "and |extractvalue|updatexml|geohash|gtid_subset|gtid_subtract|exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |;|or |+|user()";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 正则 user() 匹配更严谨
|
* 正则 user() 匹配更严谨
|
||||||
@ -33,7 +34,7 @@ public class SqlInjectionUtil {
|
|||||||
/**
|
/**
|
||||||
* sql注释的正则
|
* sql注释的正则
|
||||||
*/
|
*/
|
||||||
private final static Pattern SQL_ANNOTATION = Pattern.compile("/\\*.*\\*/");
|
private final static Pattern SQL_ANNOTATION = Pattern.compile("/\\*[\\s\\S]*\\*/");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 针对表字典进行额外的sign签名校验(增加安全机制)
|
* 针对表字典进行额外的sign签名校验(增加安全机制)
|
||||||
@ -167,7 +168,7 @@ public class SqlInjectionUtil {
|
|||||||
*/
|
*/
|
||||||
//@Deprecated
|
//@Deprecated
|
||||||
public static void specialFilterContentForDictSql(String value) {
|
public static void specialFilterContentForDictSql(String value) {
|
||||||
String specialXssStr = " exec |extractvalue|updatexml| insert | select | delete | update | drop | count | chr | mid | master | truncate | char | declare |;|+|user()";
|
String specialXssStr = " exec |extractvalue|updatexml|geohash|gtid_subset|gtid_subtract| insert | select | delete | update | drop | count | chr | mid | master | truncate | char | declare |;|+|user()";
|
||||||
String[] xssArr = specialXssStr.split("\\|");
|
String[] xssArr = specialXssStr.split("\\|");
|
||||||
if (value == null || "".equals(value)) {
|
if (value == null || "".equals(value)) {
|
||||||
return;
|
return;
|
||||||
@ -201,7 +202,7 @@ public class SqlInjectionUtil {
|
|||||||
*/
|
*/
|
||||||
//@Deprecated
|
//@Deprecated
|
||||||
public static void specialFilterContentForOnlineReport(String value) {
|
public static void specialFilterContentForOnlineReport(String value) {
|
||||||
String specialXssStr = " exec |extractvalue|updatexml| insert | delete | update | drop | chr | mid | master | truncate | char | declare |user()";
|
String specialXssStr = " exec |extractvalue|updatexml|geohash|gtid_subset|gtid_subtract| insert | delete | update | drop | chr | mid | master | truncate | char | declare |user()";
|
||||||
String[] xssArr = specialXssStr.split("\\|");
|
String[] xssArr = specialXssStr.split("\\|");
|
||||||
if (value == null || "".equals(value)) {
|
if (value == null || "".equals(value)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -116,7 +116,7 @@ public class Swagger2Config implements WebMvcConfigurer {
|
|||||||
// 描述
|
// 描述
|
||||||
.description("后台API接口")
|
.description("后台API接口")
|
||||||
// 作者
|
// 作者
|
||||||
.contact(new Contact("北京国炬信息技术有限公司","www.jeccg.com","jeecgos@163.com"))
|
.contact(new Contact("北京敲敲云科技有限公司","www.jeccg.com","jeecgos@163.com"))
|
||||||
.license("The Apache License, Version 2.0")
|
.license("The Apache License, Version 2.0")
|
||||||
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
|
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
@ -35,7 +35,7 @@ public class MybatisPlusSaasConfig {
|
|||||||
/**
|
/**
|
||||||
* 哪些表需要做多租户 表需要添加一个字段 tenant_id
|
* 哪些表需要做多租户 表需要添加一个字段 tenant_id
|
||||||
*/
|
*/
|
||||||
private static final List<String> TENANT_TABLE = new ArrayList<String>();
|
public static final List<String> TENANT_TABLE = new ArrayList<String>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
TENANT_TABLE.add("demo");
|
TENANT_TABLE.add("demo");
|
||||||
|
|||||||
@ -160,7 +160,7 @@ public class SysUserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//@RequiresRoles({"admin"})
|
//@RequiresRoles({"admin"})
|
||||||
//Permissions("system:user:add")
|
//@RequiresPermissions("system:user:add")
|
||||||
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
||||||
public Result<SysUser> add(@RequestBody JSONObject jsonObject) {
|
public Result<SysUser> add(@RequestBody JSONObject jsonObject) {
|
||||||
Result<SysUser> result = new Result<SysUser>();
|
Result<SysUser> result = new Result<SysUser>();
|
||||||
@ -189,7 +189,7 @@ public class SysUserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//@RequiresRoles({"admin"})
|
//@RequiresRoles({"admin"})
|
||||||
//Permissions("system:user:edit")
|
//@RequiresPermissions("system:user:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
|
public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
|
||||||
Result<SysUser> result = new Result<SysUser>();
|
Result<SysUser> result = new Result<SysUser>();
|
||||||
@ -495,7 +495,7 @@ public class SysUserController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
//@RequiresRoles({"admin"})
|
//@RequiresRoles({"admin"})
|
||||||
//Permissions("system:user:import")
|
//@RequiresPermissions("system:user:import")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response)throws IOException {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response)throws IOException {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package org.jeecg.modules.system.security;
|
package org.jeecg.modules.system.security;
|
||||||
|
|
||||||
import org.jeecg.common.constant.CommonConstant;
|
|
||||||
import org.jeecg.common.constant.SymbolConstant;
|
import org.jeecg.common.constant.SymbolConstant;
|
||||||
import org.jeecg.common.util.oConvertUtils;
|
import org.jeecg.common.util.oConvertUtils;
|
||||||
import org.jeecg.common.util.security.AbstractQueryBlackListHandler;
|
import org.jeecg.common.util.security.AbstractQueryBlackListHandler;
|
||||||
@ -52,7 +51,9 @@ public class DictQueryBlackListHandler extends AbstractQueryBlackListHandler {
|
|||||||
*/
|
*/
|
||||||
private String getTableName(String str) {
|
private String getTableName(String str) {
|
||||||
String[] arr = str.split("\\s+(?i)where\\s+");
|
String[] arr = str.split("\\s+(?i)where\\s+");
|
||||||
return arr[0];
|
// sys_user , (sys_user), sys_user%20, %60sys_user%60 issues/4393
|
||||||
|
String reg = "\\s+|\\(|\\)|`";
|
||||||
|
return arr[0].replaceAll(reg, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
<#if bpm_flag>
|
<#if bpm_flag>
|
||||||
@ -105,7 +105,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
|
${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
|
||||||
@ -120,7 +120,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.removeById(id);
|
${entityName?uncap_first}Service.removeById(id);
|
||||||
@ -135,7 +135,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
@ -165,7 +165,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
||||||
@ -178,7 +178,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
return super.importExcel(request, response, ${entityName}.class);
|
return super.importExcel(request, response, ${entityName}.class);
|
||||||
|
|||||||
@ -155,9 +155,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
||||||
|
|||||||
@ -101,7 +101,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -121,7 +121,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -142,7 +142,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delMain(id);
|
${entityName?uncap_first}Service.delMain(id);
|
||||||
@ -157,7 +157,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
||||||
@ -204,7 +204,7 @@ public class ${entityName}Controller {
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
// Step.1 组装查询条件查询数据
|
// Step.1 组装查询条件查询数据
|
||||||
@ -248,7 +248,7 @@ public class ${entityName}Controller {
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|||||||
@ -207,7 +207,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
${entityName?uncap_first}Service.add${entityName}(${entityName?uncap_first});
|
${entityName?uncap_first}Service.add${entityName}(${entityName?uncap_first});
|
||||||
@ -222,7 +222,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
${entityName?uncap_first}Service.update${entityName}(${entityName?uncap_first});
|
${entityName?uncap_first}Service.update${entityName}(${entityName?uncap_first});
|
||||||
@ -237,7 +237,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delete${entityName}(id);
|
${entityName?uncap_first}Service.delete${entityName}(id);
|
||||||
@ -252,7 +252,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
@ -282,7 +282,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
||||||
@ -295,7 +295,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
return super.importExcel(request, response, ${entityName}.class);
|
return super.importExcel(request, response, ${entityName}.class);
|
||||||
|
|||||||
@ -168,9 +168,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.classType == 'time'>
|
<#elseif po.classType == 'time'>
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
${entityName?uncap_first}Service.save(${entityName?uncap_first});
|
${entityName?uncap_first}Service.save(${entityName?uncap_first});
|
||||||
@ -105,7 +105,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
public Result<String> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
|
||||||
${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
|
${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
|
||||||
@ -119,7 +119,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delMain(id);
|
${entityName?uncap_first}Service.delMain(id);
|
||||||
@ -133,7 +133,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
||||||
@ -144,7 +144,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* 导出
|
* 导出
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
return super.exportXls(request, ${entityName?uncap_first}, ${entityName}.class, "${tableVo.ftlDescription}");
|
||||||
@ -154,7 +154,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|||||||
* 导入
|
* 导入
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
return super.importExcel(request, response, ${entityName}.class);
|
return super.importExcel(request, response, ${entityName}.class);
|
||||||
|
|||||||
@ -147,9 +147,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
||||||
|
|||||||
@ -95,7 +95,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -112,7 +112,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -133,7 +133,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delMain(id);
|
${entityName?uncap_first}Service.delMain(id);
|
||||||
@ -148,7 +148,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
||||||
@ -199,7 +199,7 @@ public class ${entityName}Controller {
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
// Step.1 组装查询条件查询数据
|
// Step.1 组装查询条件查询数据
|
||||||
@ -243,7 +243,7 @@ public class ${entityName}Controller {
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|||||||
@ -151,9 +151,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
||||||
|
|||||||
@ -102,7 +102,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -122,7 +122,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -143,7 +143,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delMain(id);
|
${entityName?uncap_first}Service.delMain(id);
|
||||||
@ -158,7 +158,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
||||||
@ -205,7 +205,7 @@ public class ${entityName}Controller {
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
// Step.1 组装查询条件查询数据
|
// Step.1 组装查询条件查询数据
|
||||||
@ -249,7 +249,7 @@ public class ${entityName}Controller {
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|||||||
@ -151,9 +151,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
|
|
||||||
<!-- 子表单区域 -->
|
<!-- 子表单区域 -->
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey" animated>
|
||||||
<#list subTables as sub><#rt/>
|
<#list subTables as sub><#rt/>
|
||||||
<a-tab-pane tab="${sub.ftlDescription}" key="${sub.entityName?uncap_first}" :forceRender="true">
|
<a-tab-pane tab="${sub.ftlDescription}" key="${sub.entityName?uncap_first}" :forceRender="true">
|
||||||
<#if sub.foreignRelationType =='1'>
|
<#if sub.foreignRelationType =='1'>
|
||||||
|
|||||||
@ -95,7 +95,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
@AutoLog(value = "${tableVo.ftlDescription}-添加")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:add")
|
//@RequiresPermissions("${entityPackage}:${tableName}:add")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -112,7 +112,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
@AutoLog(value = "${tableVo.ftlDescription}-编辑")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
//@RequiresPermissions("${entityPackage}:${tableName}:edit")
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
public Result<String> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
|
||||||
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
${entityName} ${entityName?uncap_first} = new ${entityName}();
|
||||||
@ -133,7 +133,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
//@RequiresPermissions("${entityPackage}:${tableName}:delete")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
${entityName?uncap_first}Service.delMain(id);
|
${entityName?uncap_first}Service.delMain(id);
|
||||||
@ -148,7 +148,7 @@ public class ${entityName}Controller {
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
@AutoLog(value = "${tableVo.ftlDescription}-批量删除")
|
||||||
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除")
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
//@RequiresPermissions("${entityPackage}:${tableName}:deleteBatch")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
this.${entityName?uncap_first}Service.delBatchMain(Arrays.asList(ids.split(",")));
|
||||||
@ -195,7 +195,7 @@ public class ${entityName}Controller {
|
|||||||
* @param request
|
* @param request
|
||||||
* @param ${entityName?uncap_first}
|
* @param ${entityName?uncap_first}
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
//@RequiresPermissions("${entityPackage}:${tableName}:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|
||||||
// Step.1 组装查询条件查询数据
|
// Step.1 组装查询条件查询数据
|
||||||
@ -239,7 +239,7 @@ public class ${entityName}Controller {
|
|||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
//@RequiresPermissions("${entityPackage}:${tableName}:importExcel")
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|||||||
@ -151,9 +151,13 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: "${po.fieldName}",
|
field: "${po.fieldName}",
|
||||||
<#if po.classType=='date'>
|
<#if po.classType=='date'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
|
},
|
||||||
<#elseif po.classType=='datetime'>
|
<#elseif po.classType=='datetime'>
|
||||||
component: 'RangePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
valueType: 'Date',
|
||||||
showTime:true
|
showTime:true
|
||||||
},
|
},
|
||||||
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
<#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'>
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spring:
|
|||||||
max-request-size: 10MB
|
max-request-size: 10MB
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
username: jeecgos@163.com
|
username: ??
|
||||||
password: ??
|
password: ??
|
||||||
properties:
|
properties:
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spring:
|
|||||||
max-request-size: 10MB
|
max-request-size: 10MB
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
username: jeecgos@163.com
|
username: ??
|
||||||
password: ??
|
password: ??
|
||||||
properties:
|
properties:
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spring:
|
|||||||
max-request-size: 10MB
|
max-request-size: 10MB
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
username: jeecgos@163.com
|
username: ??
|
||||||
password: ??
|
password: ??
|
||||||
properties:
|
properties:
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
@ -26,7 +26,7 @@ spring:
|
|||||||
max-request-size: 10MB
|
max-request-size: 10MB
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
username: jeecgos@163.com
|
username: ??
|
||||||
password: ??
|
password: ??
|
||||||
properties:
|
properties:
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
6
pom.xml
6
pom.xml
@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>2.6.6</version>
|
<version>2.6.14</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<java-jwt.version>3.11.0</java-jwt.version>
|
<java-jwt.version>3.11.0</java-jwt.version>
|
||||||
<shiro-redis.version>3.1.0</shiro-redis.version>
|
<shiro-redis.version>3.1.0</shiro-redis.version>
|
||||||
<codegenerate.version>1.4.3</codegenerate.version>
|
<codegenerate.version>1.4.3</codegenerate.version>
|
||||||
<autopoi-web.version>1.4.4</autopoi-web.version>
|
<autopoi-web.version>1.4.5</autopoi-web.version>
|
||||||
<minio.version>8.0.3</minio.version>
|
<minio.version>8.0.3</minio.version>
|
||||||
<justauth-spring-boot-starter.version>1.3.4</justauth-spring-boot-starter.version>
|
<justauth-spring-boot-starter.version>1.3.4</justauth-spring-boot-starter.version>
|
||||||
<dom4j.version>1.6.1</dom4j.version>
|
<dom4j.version>1.6.1</dom4j.version>
|
||||||
@ -222,7 +222,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>hibernate-re</artifactId>
|
<artifactId>hibernate-re</artifactId>
|
||||||
<version>3.4.3-GA2</version>
|
<version>3.4.4-beta</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 七牛云SDK -->
|
<!-- 七牛云SDK -->
|
||||||
|
|||||||
Reference in New Issue
Block a user