knife4j升级4.4.0注解改造

dev
EightMonth 2 years ago
parent 502ef2f65d
commit d88f2f81e9

@ -1,8 +1,7 @@
package org.jeecg.common.api.vo; package org.jeecg.common.api.vo;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.jeecg.common.constant.CommonConstant; import org.jeecg.common.constant.CommonConstant;
@ -15,7 +14,7 @@ import java.io.Serializable;
* @date 2019119 * @date 2019119
*/ */
@Data @Data
@ApiModel(value="接口返回对象", description="接口返回对象") @Schema(description="接口返回对象")
public class Result<T> implements Serializable { public class Result<T> implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -23,31 +22,31 @@ public class Result<T> implements Serializable {
/** /**
* *
*/ */
@ApiModelProperty(value = "成功标志") @Schema(description = "成功标志")
private boolean success = true; private boolean success = true;
/** /**
* *
*/ */
@ApiModelProperty(value = "返回处理消息") @Schema(description = "返回处理消息")
private String message = ""; private String message = "";
/** /**
* *
*/ */
@ApiModelProperty(value = "返回代码") @Schema(description = "返回代码")
private Integer code = 0; private Integer code = 0;
/** /**
* data * data
*/ */
@ApiModelProperty(value = "返回数据对象") @Schema(description = "返回数据对象")
private T result; private T result;
/** /**
* *
*/ */
@ApiModelProperty(value = "时间戳") @Schema(description = "时间戳")
private long timestamp = System.currentTimeMillis(); private long timestamp = System.currentTimeMillis();
public Result() { public Result() {

@ -2,6 +2,7 @@ package org.jeecg.common.system.base.entity;
import java.io.Serializable; import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@ -9,7 +10,6 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -30,20 +30,20 @@ public class JeecgEntity implements Serializable {
* ID * ID
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "ID") @Schema(description = "ID")
private java.lang.String id; private java.lang.String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)
private java.lang.String createBy; private java.lang.String createBy;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ -52,14 +52,14 @@ public class JeecgEntity implements Serializable {
/** /**
* *
*/ */
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
@Excel(name = "更新人", width = 15) @Excel(name = "更新人", width = 15)
private java.lang.String updateBy; private java.lang.String updateBy;
/** /**
* *
*/ */
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

@ -8,9 +8,9 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.annotations.ApiParam; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.mgt.DefaultSecurityManager; import org.apache.shiro.mgt.DefaultSecurityManager;
@ -45,7 +45,7 @@ import java.util.List;
* @Version:V2.0 * @Version:V2.0
*/ */
@Slf4j @Slf4j
@Api(tags = "单表DEMO") @Tag(name = "单表DEMO")
@RestController @RestController
@RequestMapping("/test/jeecgDemo") @RequestMapping("/test/jeecgDemo")
public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoService> { public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoService> {
@ -64,7 +64,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
* @param req * @param req
* @return * @return
*/ */
@ApiOperation(value = "获取Demo数据列表", notes = "获取所有Demo数据列表") @Operation(summary = "获取所有Demo数据列表")
@GetMapping(value = "/list") @GetMapping(value = "/list")
@PermissionData(pageComponent = "jeecg/JeecgDemoList") @PermissionData(pageComponent = "jeecg/JeecgDemoList")
public Result<?> list(JeecgDemo jeecgDemo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, public Result<?> list(JeecgDemo jeecgDemo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
@ -89,7 +89,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
*/ */
@PostMapping(value = "/add") @PostMapping(value = "/add")
@AutoLog(value = "添加测试DEMO") @AutoLog(value = "添加测试DEMO")
@ApiOperation(value = "添加DEMO", notes = "添加DEMO") @Operation(summary = "添加DEMO")
public Result<?> add(@RequestBody JeecgDemo jeecgDemo) { public Result<?> add(@RequestBody JeecgDemo jeecgDemo) {
jeecgDemoService.save(jeecgDemo); jeecgDemoService.save(jeecgDemo);
return Result.OK("添加成功!"); return Result.OK("添加成功!");
@ -102,7 +102,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
* @return * @return
*/ */
@AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3) @AutoLog(value = "编辑DEMO", operateType = CommonConstant.OPERATE_TYPE_3)
@ApiOperation(value = "编辑DEMO", notes = "编辑DEMO") @Operation(summary = "编辑DEMO")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) { public Result<?> edit(@RequestBody JeecgDemo jeecgDemo) {
jeecgDemoService.updateById(jeecgDemo); jeecgDemoService.updateById(jeecgDemo);
@ -117,7 +117,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
*/ */
@AutoLog(value = "删除测试DEMO") @AutoLog(value = "删除测试DEMO")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
@ApiOperation(value = "通过ID删除DEMO", notes = "通过ID删除DEMO") @Operation(summary = "通过ID删除DEMO")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
jeecgDemoService.removeById(id); jeecgDemoService.removeById(id);
return Result.OK("删除成功!"); return Result.OK("删除成功!");
@ -130,7 +130,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
* @return * @return
*/ */
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
@ApiOperation(value = "批量删除DEMO", notes = "批量删除DEMO") @Operation(summary = "批量删除DEMO")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.jeecgDemoService.removeByIds(Arrays.asList(ids.split(","))); this.jeecgDemoService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!"); return Result.OK("批量删除成功!");
@ -143,8 +143,8 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
* @return * @return
*/ */
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
@ApiOperation(value = "通过ID查询DEMO", notes = "通过ID查询DEMO") @Operation(summary = "通过ID查询DEMO")
public Result<?> queryById(@ApiParam(name = "id", value = "示例id", required = true) @RequestParam(name = "id", required = true) String id) { public Result<?> queryById(@Parameter(name = "id", description = "示例id", required = true) @RequestParam(name = "id", required = true) String id) {
JeecgDemo jeecgDemo = jeecgDemoService.getById(id); JeecgDemo jeecgDemo = jeecgDemoService.getById(id);
return Result.OK(jeecgDemo); return Result.OK(jeecgDemo);
} }
@ -477,7 +477,7 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
* Mono * Mono
* @return * @return
*/ */
@ApiOperation("Mono测试") @Operation(summary = "Mono测试")
@GetMapping(value ="/test") @GetMapping(value ="/test")
public Mono<String> test() { public Mono<String> test() {
//解决shiro报错No SecurityManager accessible to the calling code, either bound to the org.apache.shiro //解决shiro报错No SecurityManager accessible to the calling code, either bound to the org.apache.shiro

@ -1,8 +1,7 @@
package org.jeecg.modules.demo.test.controller; package org.jeecg.modules.demo.test.controller;
import io.lettuce.core.dynamic.annotation.Param; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
@ -21,7 +20,7 @@ import java.util.List;
* @Date:2020-04-21 * @Date:2020-04-21
*/ */
@Slf4j @Slf4j
@Api(tags = "动态数据源测试") @Tag(name = "动态数据源测试")
@RestController @RestController
@RequestMapping("/test/dynamic") @RequestMapping("/test/dynamic")
public class JeecgDynamicDataController extends JeecgController<JeecgDemo, IJeecgDemoService> { public class JeecgDynamicDataController extends JeecgController<JeecgDemo, IJeecgDemoService> {
@ -37,7 +36,7 @@ public class JeecgDynamicDataController extends JeecgController<JeecgDemo, IJeec
*/ */
@PostMapping(value = "/test1") @PostMapping(value = "/test1")
@AutoLog(value = "动态切换数据源") @AutoLog(value = "动态切换数据源")
@ApiOperation(value = "动态切换数据源", notes = "动态切换数据源") @Operation(summary = "动态切换数据源")
public Result<List<JeecgDemo>> selectSpelByKey(@RequestParam(required = false) String dsName) { public Result<List<JeecgDemo>> selectSpelByKey(@RequestParam(required = false) String dsName) {
List<JeecgDemo> list = jeecgDynamicDataService.selectSpelByKey(dsName); List<JeecgDemo> list = jeecgDynamicDataService.selectSpelByKey(dsName);
return Result.OK(list); return Result.OK(list);

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.test.entity;
import java.io.Serializable; import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.Version; import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecg.common.system.base.entity.JeecgEntity; import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@ -10,8 +11,6 @@ import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,59 +24,59 @@ import lombok.experimental.Accessors;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="测试DEMO对象", description="测试DEMO") @Schema(description="测试DEMO")
@TableName("demo") @TableName("demo")
public class JeecgDemo extends JeecgEntity implements Serializable { public class JeecgDemo extends JeecgEntity implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 姓名 */ /** 姓名 */
@Excel(name="姓名",width=25) @Excel(name="姓名",width=25)
@ApiModelProperty(value = "姓名") @Schema(description = "姓名")
private java.lang.String name; private java.lang.String name;
/** 关键词 */ /** 关键词 */
@ApiModelProperty(value = "关键词") @Schema(description = "关键词")
@Excel(name="关键词",width=15) @Excel(name="关键词",width=15)
private java.lang.String keyWord; private java.lang.String keyWord;
/** 打卡时间 */ /** 打卡时间 */
@ApiModelProperty(value = "打卡时间") @Schema(description = "打卡时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name="打卡时间",width=20,format="yyyy-MM-dd HH:mm:ss") @Excel(name="打卡时间",width=20,format="yyyy-MM-dd HH:mm:ss")
private java.util.Date punchTime; private java.util.Date punchTime;
/** 工资 */ /** 工资 */
@ApiModelProperty(value = "工资",example = "0") @Schema(description = "工资",example = "0")
@Excel(name="工资",type = 4,width=15) @Excel(name="工资",type = 4,width=15)
private java.math.BigDecimal salaryMoney; private java.math.BigDecimal salaryMoney;
/** 奖金 */ /** 奖金 */
@ApiModelProperty(value = "奖金",example = "0") @Schema(description = "奖金",example = "0")
@Excel(name="奖金",type = 4,width=15) @Excel(name="奖金",type = 4,width=15)
private java.lang.Double bonusMoney; private java.lang.Double bonusMoney;
/** 性别 {男:1,女:2} */ /** 性别 {男:1,女:2} */
@ApiModelProperty(value = "性别") @Schema(description = "性别")
@Excel(name = "性别", width = 15, dicCode = "sex") @Excel(name = "性别", width = 15, dicCode = "sex")
private java.lang.String sex; private java.lang.String sex;
/** 年龄 */ /** 年龄 */
@ApiModelProperty(value = "年龄",example = "0") @Schema(description = "年龄",example = "0")
@Excel(name="年龄",type = 4,width=15) @Excel(name="年龄",type = 4,width=15)
private java.lang.Integer age; private java.lang.Integer age;
/** 生日 */ /** 生日 */
@ApiModelProperty(value = "生日") @Schema(description = "生日")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@Excel(name="生日",format="yyyy-MM-dd") @Excel(name="生日",format="yyyy-MM-dd")
private java.util.Date birthday; private java.util.Date birthday;
/** 邮箱 */ /** 邮箱 */
@ApiModelProperty(value = "邮箱") @Schema(description = "邮箱")
@Excel(name="邮箱",width=30) @Excel(name="邮箱",width=30)
private java.lang.String email; private java.lang.String email;
/** 个人简介 */ /** 个人简介 */
@ApiModelProperty(value = "个人简介") @Schema(description = "个人简介")
private java.lang.String content; private java.lang.String content;
/** 部门编码 */ /** 部门编码 */
@Excel(name="部门编码",width=25) @Excel(name="部门编码",width=25)
@ApiModelProperty(value = "部门编码") @Schema(description = "部门编码")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
@ApiModelProperty(value = "租户ID") @Schema(description = "租户ID")
private java.lang.Integer tenantId; private java.lang.Integer tenantId;
/** 乐观锁字段 */ /** 乐观锁字段 */
@Version @Version

@ -3,8 +3,8 @@ package org.jeecg.modules.quartz.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -48,7 +48,7 @@ import java.util.Map;
@RestController @RestController
@RequestMapping("/sys/quartzJob") @RequestMapping("/sys/quartzJob")
@Slf4j @Slf4j
@Api(tags = "定时任务接口") @Tag(name = "定时任务接口")
public class QuartzJobController { public class QuartzJobController {
@Autowired @Autowired
private IQuartzJobService quartzJobService; private IQuartzJobService quartzJobService;
@ -155,7 +155,7 @@ public class QuartzJobController {
//@RequiresRoles("admin") //@RequiresRoles("admin")
@RequiresPermissions("system:quartzJob:pause") @RequiresPermissions("system:quartzJob:pause")
@GetMapping(value = "/pause") @GetMapping(value = "/pause")
@ApiOperation(value = "停止定时任务") @Operation(summary = "停止定时任务")
public Result<Object> pauseJob(@RequestParam(name = "id") String id) { public Result<Object> pauseJob(@RequestParam(name = "id") String id) {
QuartzJob job = quartzJobService.getById(id); QuartzJob job = quartzJobService.getById(id);
if (job == null) { if (job == null) {
@ -174,7 +174,7 @@ public class QuartzJobController {
//@RequiresRoles("admin") //@RequiresRoles("admin")
@RequiresPermissions("system:quartzJob:resume") @RequiresPermissions("system:quartzJob:resume")
@GetMapping(value = "/resume") @GetMapping(value = "/resume")
@ApiOperation(value = "启动定时任务") @Operation(summary = "启动定时任务")
public Result<Object> resumeJob(@RequestParam(name = "id") String id) { public Result<Object> resumeJob(@RequestParam(name = "id") String id) {
QuartzJob job = quartzJobService.getById(id); QuartzJob job = quartzJobService.getById(id);
if (job == null) { if (job == null) {

@ -1,7 +1,7 @@
package org.jeecg.modules.system.controller; package org.jeecg.modules.system.controller;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletRequest;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sys/duplicate") @RequestMapping("/sys/duplicate")
@Api(tags="重复校验") @Tag(name="重复校验")
public class DuplicateCheckController { public class DuplicateCheckController {
@Autowired @Autowired
@ -36,7 +36,7 @@ public class DuplicateCheckController {
* @return * @return
*/ */
@RequestMapping(value = "/check", method = RequestMethod.GET) @RequestMapping(value = "/check", method = RequestMethod.GET)
@ApiOperation("重复校验接口") @Operation(summary ="重复校验接口")
public Result<String> doDuplicateCheck(DuplicateCheckVo duplicateCheckVo, HttpServletRequest request) { public Result<String> doDuplicateCheck(DuplicateCheckVo duplicateCheckVo, HttpServletRequest request) {
log.debug("----duplicate check------"+ duplicateCheckVo.toString()); log.debug("----duplicate check------"+ duplicateCheckVo.toString());

@ -5,8 +5,8 @@ import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresRoles; import org.apache.shiro.authz.annotation.RequiresRoles;
@ -46,7 +46,7 @@ import java.util.stream.Collectors;
*/ */
@RestController @RestController
@RequestMapping("/sys") @RequestMapping("/sys")
@Api(tags="用户登录") @Tag(name="用户登录")
@Slf4j @Slf4j
public class LoginController { public class LoginController {
@Autowired @Autowired
@ -70,7 +70,7 @@ public class LoginController {
private final String BASE_CHECK_CODES = "qwertyuiplkjhgfdsazxcvbnmQWERTYUPLKJHGFDSAZXCVBNM1234567890"; private final String BASE_CHECK_CODES = "qwertyuiplkjhgfdsazxcvbnmQWERTYUPLKJHGFDSAZXCVBNM1234567890";
@ApiOperation("登录接口") @Operation(summary = "登录接口")
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
public Result<JSONObject> login(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){ public Result<JSONObject> login(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){
Result<JSONObject> result = new Result<JSONObject>(); Result<JSONObject> result = new Result<JSONObject>();
@ -404,7 +404,7 @@ public class LoginController {
* @param jsonObject * @param jsonObject
* @return * @return
*/ */
@ApiOperation("手机号登录接口") @Operation(summary = "手机号登录接口")
@PostMapping("/phoneLogin") @PostMapping("/phoneLogin")
public Result<JSONObject> phoneLogin(@RequestBody JSONObject jsonObject, HttpServletRequest request) { public Result<JSONObject> phoneLogin(@RequestBody JSONObject jsonObject, HttpServletRequest request) {
Result<JSONObject> result = new Result<JSONObject>(); Result<JSONObject> result = new Result<JSONObject>();
@ -523,7 +523,7 @@ public class LoginController {
* @param response * @param response
* @param key * @param key
*/ */
@ApiOperation("获取验证码") @Operation(summary = "获取验证码")
@GetMapping(value = "/randomImage/{key}") @GetMapping(value = "/randomImage/{key}")
public Result<String> randomImage(HttpServletResponse response,@PathVariable("key") String key){ public Result<String> randomImage(HttpServletResponse response,@PathVariable("key") String key){
Result<String> res = new Result<String>(); Result<String> res = new Result<String>();
@ -668,7 +668,7 @@ public class LoginController {
/** /**
* *
*/ */
@ApiOperation(value = "登录二维码", notes = "登录二维码") @Operation(summary = "登录二维码")
@GetMapping("/getLoginQrcode") @GetMapping("/getLoginQrcode")
public Result<?> getLoginQrcode() { public Result<?> getLoginQrcode() {
String qrcodeId = CommonConstant.LOGIN_QRCODE_PRE+IdWorker.getIdStr(); String qrcodeId = CommonConstant.LOGIN_QRCODE_PRE+IdWorker.getIdStr();
@ -682,7 +682,7 @@ public class LoginController {
/** /**
* *
*/ */
@ApiOperation(value = "扫码登录二维码", notes = "扫码登录二维码") @Operation(summary = "扫码登录二维码")
@PostMapping("/scanLoginQrcode") @PostMapping("/scanLoginQrcode")
public Result<?> scanLoginQrcode(@RequestParam String qrcodeId, @RequestParam String token) { public Result<?> scanLoginQrcode(@RequestParam String qrcodeId, @RequestParam String token) {
Object check = redisUtil.get(CommonConstant.LOGIN_QRCODE + qrcodeId); Object check = redisUtil.get(CommonConstant.LOGIN_QRCODE + qrcodeId);
@ -699,7 +699,7 @@ public class LoginController {
/** /**
* token * token
*/ */
@ApiOperation(value = "获取用户扫码后保存的token", notes = "获取用户扫码后保存的token") @Operation(summary = "获取用户扫码后保存的token")
@GetMapping("/getQrcodeToken") @GetMapping("/getQrcodeToken")
public Result getQrcodeToken(@RequestParam String qrcodeId) { public Result getQrcodeToken(@RequestParam String qrcodeId) {
Object token = redisUtil.get(CommonConstant.LOGIN_QRCODE_TOKEN + qrcodeId); Object token = redisUtil.get(CommonConstant.LOGIN_QRCODE_TOKEN + qrcodeId);

@ -4,8 +4,8 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
@ -30,7 +30,7 @@ import java.util.Arrays;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "编码校验规则") @Tag(name = "编码校验规则")
@RestController @RestController
@RequestMapping("/sys/checkRule") @RequestMapping("/sys/checkRule")
public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCheckRuleService> { public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCheckRuleService> {
@ -48,7 +48,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-分页列表查询") @AutoLog(value = "编码校验规则-分页列表查询")
@ApiOperation(value = "编码校验规则-分页列表查询", notes = "编码校验规则-分页列表查询") @Operation(summary = "编码校验规则-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result queryPageList( public Result queryPageList(
SysCheckRule sysCheckRule, SysCheckRule sysCheckRule,
@ -70,7 +70,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-通过Code校验传入的值") @AutoLog(value = "编码校验规则-通过Code校验传入的值")
@ApiOperation(value = "编码校验规则-通过Code校验传入的值", notes = "编码校验规则-通过Code校验传入的值") @Operation(summary = "编码校验规则-通过Code校验传入的值")
@GetMapping(value = "/checkByCode") @GetMapping(value = "/checkByCode")
public Result checkByCode( public Result checkByCode(
@RequestParam(name = "ruleCode") String ruleCode, @RequestParam(name = "ruleCode") String ruleCode,
@ -97,7 +97,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-添加") @AutoLog(value = "编码校验规则-添加")
@ApiOperation(value = "编码校验规则-添加", notes = "编码校验规则-添加") @Operation(summary = "编码校验规则-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result add(@RequestBody SysCheckRule sysCheckRule) { public Result add(@RequestBody SysCheckRule sysCheckRule) {
sysCheckRuleService.save(sysCheckRule); sysCheckRuleService.save(sysCheckRule);
@ -111,7 +111,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-编辑") @AutoLog(value = "编码校验规则-编辑")
@ApiOperation(value = "编码校验规则-编辑", notes = "编码校验规则-编辑") @Operation(summary = "编码校验规则-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result edit(@RequestBody SysCheckRule sysCheckRule) { public Result edit(@RequestBody SysCheckRule sysCheckRule) {
sysCheckRuleService.updateById(sysCheckRule); sysCheckRuleService.updateById(sysCheckRule);
@ -125,7 +125,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-通过id删除") @AutoLog(value = "编码校验规则-通过id删除")
@ApiOperation(value = "编码校验规则-通过id删除", notes = "编码校验规则-通过id删除") @Operation(summary = "编码校验规则-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result delete(@RequestParam(name = "id", required = true) String id) { public Result delete(@RequestParam(name = "id", required = true) String id) {
sysCheckRuleService.removeById(id); sysCheckRuleService.removeById(id);
@ -139,7 +139,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-批量删除") @AutoLog(value = "编码校验规则-批量删除")
@ApiOperation(value = "编码校验规则-批量删除", notes = "编码校验规则-批量删除") @Operation(summary = "编码校验规则-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sysCheckRuleService.removeByIds(Arrays.asList(ids.split(","))); this.sysCheckRuleService.removeByIds(Arrays.asList(ids.split(",")));
@ -153,7 +153,7 @@ public class SysCheckRuleController extends JeecgController<SysCheckRule, ISysCh
* @return * @return
*/ */
@AutoLog(value = "编码校验规则-通过id查询") @AutoLog(value = "编码校验规则-通过id查询")
@ApiOperation(value = "编码校验规则-通过id查询", notes = "编码校验规则-通过id查询") @Operation(summary = "编码校验规则-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result queryById(@RequestParam(name = "id", required = true) String id) { public Result queryById(@RequestParam(name = "id", required = true) String id) {
SysCheckRule sysCheckRule = sysCheckRuleService.getById(id); SysCheckRule sysCheckRule = sysCheckRuleService.getById(id);

@ -3,8 +3,8 @@ package org.jeecg.modules.system.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.dto.DataLogDTO; import org.jeecg.common.api.dto.DataLogDTO;
@ -34,7 +34,7 @@ import java.util.List;
* @Date: 2022-07-19 * @Date: 2022-07-19
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags = "系统评论回复表") @Tag(name = "系统评论回复表")
@RestController @RestController
@RequestMapping("/sys/comment") @RequestMapping("/sys/comment")
@Slf4j @Slf4j
@ -59,7 +59,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @param sysComment * @param sysComment
* @return * @return
*/ */
@ApiOperation(value = "系统评论回复表-列表查询", notes = "系统评论回复表-列表查询") @Operation(summary = "系统评论回复表-列表查询")
@GetMapping(value = "/listByForm") @GetMapping(value = "/listByForm")
public Result<IPage<SysCommentVO>> queryListByForm(SysComment sysComment) { public Result<IPage<SysCommentVO>> queryListByForm(SysComment sysComment) {
List<SysCommentVO> list = sysCommentService.queryFormCommentInfo(sysComment); List<SysCommentVO> list = sysCommentService.queryFormCommentInfo(sysComment);
@ -74,7 +74,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @param sysComment * @param sysComment
* @return * @return
*/ */
@ApiOperation(value = "系统评论回复表-列表查询", notes = "系统评论回复表-列表查询") @Operation(summary = "系统评论回复表-列表查询")
@GetMapping(value = "/fileList") @GetMapping(value = "/fileList")
public Result<IPage<SysCommentFileVo>> queryFileList(SysComment sysComment) { public Result<IPage<SysCommentFileVo>> queryFileList(SysComment sysComment) {
List<SysCommentFileVo> list = sysCommentService.queryFormFileList(sysComment.getTableName(), sysComment.getTableDataId()); List<SysCommentFileVo> list = sysCommentService.queryFormFileList(sysComment.getTableName(), sysComment.getTableDataId());
@ -83,14 +83,14 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
return Result.OK(pageList); return Result.OK(pageList);
} }
@ApiOperation(value = "系统评论表-添加文本", notes = "系统评论表-添加文本") @Operation(summary = "系统评论表-添加文本")
@PostMapping(value = "/addText") @PostMapping(value = "/addText")
public Result<String> addText(@RequestBody SysComment sysComment) { public Result<String> addText(@RequestBody SysComment sysComment) {
String commentId = sysCommentService.saveOne(sysComment); String commentId = sysCommentService.saveOne(sysComment);
return Result.OK(commentId); return Result.OK(commentId);
} }
@ApiOperation(value = "系统评论表-添加文件", notes = "系统评论表-添加文件") @Operation(summary = "系统评论表-添加文件")
@PostMapping(value = "/addFile") @PostMapping(value = "/addFile")
public Result<String> addFile(HttpServletRequest request) { public Result<String> addFile(HttpServletRequest request) {
try { try {
@ -107,7 +107,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @param request * @param request
* @return * @return
*/ */
@ApiOperation(value = "系统评论表-添加文件", notes = "系统评论表-添加文件") @Operation(summary = "系统评论表-添加文件")
@PostMapping(value = "/appAddFile") @PostMapping(value = "/appAddFile")
public Result<String> appAddFile(HttpServletRequest request) { public Result<String> appAddFile(HttpServletRequest request) {
try { try {
@ -119,7 +119,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
} }
} }
@ApiOperation(value = "系统评论回复表-通过id删除", notes = "系统评论回复表-通过id删除") @Operation(summary = "系统评论回复表-通过id删除")
@DeleteMapping(value = "/deleteOne") @DeleteMapping(value = "/deleteOne")
public Result<String> deleteOne(@RequestParam(name = "id", required = true) String id) { public Result<String> deleteOne(@RequestParam(name = "id", required = true) String id) {
SysComment comment = sysCommentService.getById(id); SysComment comment = sysCommentService.getById(id);
@ -162,7 +162,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @return * @return
*/ */
//@AutoLog(value = "系统评论回复表-分页列表查询") //@AutoLog(value = "系统评论回复表-分页列表查询")
@ApiOperation(value = "系统评论回复表-分页列表查询", notes = "系统评论回复表-分页列表查询") @Operation(summary = "系统评论回复表-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<SysComment>> queryPageList(SysComment sysComment, public Result<IPage<SysComment>> queryPageList(SysComment sysComment,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -181,7 +181,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @param sysComment * @param sysComment
* @return * @return
*/ */
@ApiOperation(value = "系统评论回复表-添加", notes = "系统评论回复表-添加") @Operation(summary = "系统评论回复表-添加")
//@RequiresPermissions("org.jeecg.modules.demo:sys_comment:add") //@RequiresPermissions("org.jeecg.modules.demo:sys_comment:add")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<String> add(@RequestBody SysComment sysComment) { public Result<String> add(@RequestBody SysComment sysComment) {
@ -196,7 +196,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @return * @return
*/ */
//@AutoLog(value = "系统评论回复表-编辑") //@AutoLog(value = "系统评论回复表-编辑")
@ApiOperation(value = "系统评论回复表-编辑", notes = "系统评论回复表-编辑") @Operation(summary = "系统评论回复表-编辑")
//@RequiresPermissions("org.jeecg.modules.demo:sys_comment:edit") //@RequiresPermissions("org.jeecg.modules.demo:sys_comment:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody SysComment sysComment) { public Result<String> edit(@RequestBody SysComment sysComment) {
@ -211,7 +211,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @return * @return
*/ */
//@AutoLog(value = "系统评论回复表-通过id删除") //@AutoLog(value = "系统评论回复表-通过id删除")
@ApiOperation(value = "系统评论回复表-通过id删除", notes = "系统评论回复表-通过id删除") @Operation(summary = "系统评论回复表-通过id删除")
//@RequiresPermissions("org.jeecg.modules.demo:sys_comment:delete") //@RequiresPermissions("org.jeecg.modules.demo:sys_comment: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) {
@ -226,7 +226,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @return * @return
*/ */
//@AutoLog(value = "系统评论回复表-批量删除") //@AutoLog(value = "系统评论回复表-批量删除")
@ApiOperation(value = "系统评论回复表-批量删除", notes = "系统评论回复表-批量删除") @Operation(summary = "系统评论回复表-批量删除")
//@RequiresPermissions("org.jeecg.modules.demo:sys_comment:deleteBatch") //@RequiresPermissions("org.jeecg.modules.demo:sys_comment: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) {
@ -241,7 +241,7 @@ public class SysCommentController extends JeecgController<SysComment, ISysCommen
* @return * @return
*/ */
//@AutoLog(value = "系统评论回复表-通过id查询") //@AutoLog(value = "系统评论回复表-通过id查询")
@ApiOperation(value = "系统评论回复表-通过id查询", notes = "系统评论回复表-通过id查询") @Operation(summary = "系统评论回复表-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<SysComment> queryById(@RequestParam(name = "id", required = true) String id) { public Result<SysComment> queryById(@RequestParam(name = "id", required = true) String id) {
SysComment sysComment = sysCommentService.getById(id); SysComment sysComment = sysCommentService.getById(id);

@ -7,8 +7,8 @@ import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -43,7 +43,7 @@ import java.util.List;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "多数据源管理") @Tag(name = "多数据源管理")
@RestController @RestController
@RequestMapping("/sys/dataSource") @RequestMapping("/sys/dataSource")
public class SysDataSourceController extends JeecgController<SysDataSource, ISysDataSourceService> { public class SysDataSourceController extends JeecgController<SysDataSource, ISysDataSourceService> {
@ -62,7 +62,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-分页列表查询") @AutoLog(value = "多数据源管理-分页列表查询")
@ApiOperation(value = "多数据源管理-分页列表查询", notes = "多数据源管理-分页列表查询") @Operation(summary = "多数据源管理-分页列表查询")
@RequiresPermissions("system:datasource:list") @RequiresPermissions("system:datasource:list")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList( public Result<?> queryPageList(
@ -111,7 +111,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-添加") @AutoLog(value = "多数据源管理-添加")
@ApiOperation(value = "多数据源管理-添加", notes = "多数据源管理-添加") @Operation(summary = "多数据源管理-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody SysDataSource sysDataSource) { public Result<?> add(@RequestBody SysDataSource sysDataSource) {
//update-begin-author:taoyan date:2022-8-10 for: jdbc连接地址漏洞问题 //update-begin-author:taoyan date:2022-8-10 for: jdbc连接地址漏洞问题
@ -132,7 +132,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-编辑") @AutoLog(value = "多数据源管理-编辑")
@ApiOperation(value = "多数据源管理-编辑", notes = "多数据源管理-编辑") @Operation(summary = "多数据源管理-编辑")
@RequestMapping(value = "/edit", method ={RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method ={RequestMethod.PUT, RequestMethod.POST})
public Result<?> edit(@RequestBody SysDataSource sysDataSource) { public Result<?> edit(@RequestBody SysDataSource sysDataSource) {
//update-begin-author:taoyan date:2022-8-10 for: jdbc连接地址漏洞问题 //update-begin-author:taoyan date:2022-8-10 for: jdbc连接地址漏洞问题
@ -153,7 +153,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-通过id删除") @AutoLog(value = "多数据源管理-通过id删除")
@ApiOperation(value = "多数据源管理-通过id删除", notes = "多数据源管理-通过id删除") @Operation(summary = "多数据源管理-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id") String id) { public Result<?> delete(@RequestParam(name = "id") String id) {
return sysDataSourceService.deleteDataSource(id); return sysDataSourceService.deleteDataSource(id);
@ -166,7 +166,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-批量删除") @AutoLog(value = "多数据源管理-批量删除")
@ApiOperation(value = "多数据源管理-批量删除", notes = "多数据源管理-批量删除") @Operation(summary = "多数据源管理-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids") String ids) { public Result<?> deleteBatch(@RequestParam(name = "ids") String ids) {
List<String> idList = Arrays.asList(ids.split(",")); List<String> idList = Arrays.asList(ids.split(","));
@ -185,7 +185,7 @@ public class SysDataSourceController extends JeecgController<SysDataSource, ISys
* @return * @return
*/ */
@AutoLog(value = "多数据源管理-通过id查询") @AutoLog(value = "多数据源管理-通过id查询")
@ApiOperation(value = "多数据源管理-通过id查询", notes = "多数据源管理-通过id查询") @Operation(summary = "多数据源管理-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name = "id") String id) throws InterruptedException { public Result<?> queryById(@RequestParam(name = "id") String id) throws InterruptedException {
SysDataSource sysDataSource = sysDataSourceService.getById(id); SysDataSource sysDataSource = sysDataSourceService.getById(id);

@ -8,6 +8,8 @@ import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.CommonConstant; import org.jeecg.common.constant.CommonConstant;
@ -34,8 +36,6 @@ import org.jeecg.modules.system.service.ISysPermissionService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/** /**
* @Description: * @Description:
@ -44,7 +44,7 @@ import io.swagger.annotations.ApiOperation;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags="部门权限表") @Tag(name="部门权限表")
@RestController @RestController
@RequestMapping("/sys/sysDepartPermission") @RequestMapping("/sys/sysDepartPermission")
public class SysDepartPermissionController extends JeecgController<SysDepartPermission, ISysDepartPermissionService> { public class SysDepartPermissionController extends JeecgController<SysDepartPermission, ISysDepartPermissionService> {
@ -72,7 +72,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param req * @param req
* @return * @return
*/ */
@ApiOperation(value="部门权限表-分页列表查询", notes="部门权限表-分页列表查询") @Operation(summary ="部门权限表-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SysDepartPermission sysDepartPermission, public Result<?> queryPageList(SysDepartPermission sysDepartPermission,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -90,7 +90,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param sysDepartPermission * @param sysDepartPermission
* @return * @return
*/ */
@ApiOperation(value="部门权限表-添加", notes="部门权限表-添加") @Operation(summary ="部门权限表-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody SysDepartPermission sysDepartPermission) { public Result<?> add(@RequestBody SysDepartPermission sysDepartPermission) {
sysDepartPermissionService.save(sysDepartPermission); sysDepartPermissionService.save(sysDepartPermission);
@ -103,7 +103,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param sysDepartPermission * @param sysDepartPermission
* @return * @return
*/ */
@ApiOperation(value="部门权限表-编辑", notes="部门权限表-编辑") @Operation(summary ="部门权限表-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody SysDepartPermission sysDepartPermission) { public Result<?> edit(@RequestBody SysDepartPermission sysDepartPermission) {
sysDepartPermissionService.updateById(sysDepartPermission); sysDepartPermissionService.updateById(sysDepartPermission);
@ -116,7 +116,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param id * @param id
* @return * @return
*/ */
@ApiOperation(value="部门权限表-通过id删除", notes="部门权限表-通过id删除") @Operation(summary ="部门权限表-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
sysDepartPermissionService.removeById(id); sysDepartPermissionService.removeById(id);
@ -129,7 +129,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param ids * @param ids
* @return * @return
*/ */
@ApiOperation(value="部门权限表-批量删除", notes="部门权限表-批量删除") @Operation(summary ="部门权限表-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.sysDepartPermissionService.removeByIds(Arrays.asList(ids.split(","))); this.sysDepartPermissionService.removeByIds(Arrays.asList(ids.split(",")));
@ -142,7 +142,7 @@ public class SysDepartPermissionController extends JeecgController<SysDepartPerm
* @param id * @param id
* @return * @return
*/ */
@ApiOperation(value="部门权限表-通过id查询", notes="部门权限表-通过id查询") @Operation(summary ="部门权限表-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
SysDepartPermission sysDepartPermission = sysDepartPermissionService.getById(id); SysDepartPermission sysDepartPermission = sysDepartPermissionService.getById(id);

@ -8,6 +8,8 @@ import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles; import org.apache.shiro.authz.annotation.RequiresRoles;
@ -29,8 +31,6 @@ import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/** /**
* @Description: * @Description:
@ -39,7 +39,7 @@ import io.swagger.annotations.ApiOperation;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags="部门角色") @Tag(name="部门角色")
@RestController @RestController
@RequestMapping("/sys/sysDepartRole") @RequestMapping("/sys/sysDepartRole")
public class SysDepartRoleController extends JeecgController<SysDepartRole, ISysDepartRoleService> { public class SysDepartRoleController extends JeecgController<SysDepartRole, ISysDepartRoleService> {
@ -70,7 +70,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @param req * @param req
* @return * @return
*/ */
@ApiOperation(value="部门角色-分页列表查询", notes="部门角色-分页列表查询") @Operation(summary = "部门角色-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SysDepartRole sysDepartRole, public Result<?> queryPageList(SysDepartRole sysDepartRole,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -111,7 +111,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @return * @return
*/ */
@RequiresPermissions("system:depart:role:add") @RequiresPermissions("system:depart:role:add")
@ApiOperation(value="部门角色-添加", notes="部门角色-添加") @Operation(summary ="部门角色-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody SysDepartRole sysDepartRole) { public Result<?> add(@RequestBody SysDepartRole sysDepartRole) {
sysDepartRoleService.save(sysDepartRole); sysDepartRoleService.save(sysDepartRole);
@ -124,7 +124,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @param sysDepartRole * @param sysDepartRole
* @return * @return
*/ */
@ApiOperation(value="部门角色-编辑", notes="部门角色-编辑") @Operation(summary ="部门角色-编辑")
@RequiresPermissions("system:depart:role:edit") @RequiresPermissions("system:depart:role:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody SysDepartRole sysDepartRole) { public Result<?> edit(@RequestBody SysDepartRole sysDepartRole) {
@ -139,7 +139,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @return * @return
*/ */
@AutoLog(value = "部门角色-通过id删除") @AutoLog(value = "部门角色-通过id删除")
@ApiOperation(value="部门角色-通过id删除", notes="部门角色-通过id删除") @Operation(summary ="部门角色-通过id删除")
@RequiresPermissions("system:depart:role:delete") @RequiresPermissions("system:depart:role:delete")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
@ -154,7 +154,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @return * @return
*/ */
@AutoLog(value = "部门角色-批量删除") @AutoLog(value = "部门角色-批量删除")
@ApiOperation(value="部门角色-批量删除", notes="部门角色-批量删除") @Operation(summary ="部门角色-批量删除")
@RequiresPermissions("system:depart:role:deleteBatch") @RequiresPermissions("system:depart:role:deleteBatch")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
@ -169,7 +169,7 @@ public class SysDepartRoleController extends JeecgController<SysDepartRole, ISys
* @param id * @param id
* @return * @return
*/ */
@ApiOperation(value="部门角色-通过id查询", notes="部门角色-通过id查询") @Operation(summary ="部门角色-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
SysDepartRole sysDepartRole = sysDepartRoleService.getById(id); SysDepartRole sysDepartRole = sysDepartRoleService.getById(id);

@ -7,8 +7,8 @@ import java.util.Date;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles; import org.apache.shiro.authz.annotation.RequiresRoles;
@ -40,7 +40,7 @@ import lombok.extern.slf4j.Slf4j;
* @Author zhangweijian * @Author zhangweijian
* @since 2018-12-28 * @since 2018-12-28
*/ */
@Api(tags = "数据字典") @Tag(name = "数据字典")
@RestController @RestController
@RequestMapping("/sys/dictItem") @RequestMapping("/sys/dictItem")
@Slf4j @Slf4j
@ -162,7 +162,7 @@ public class SysDictItemController {
* @return * @return
*/ */
@RequestMapping(value = "/dictItemCheck", method = RequestMethod.GET) @RequestMapping(value = "/dictItemCheck", method = RequestMethod.GET)
@ApiOperation("字典重复校验接口") @Operation(summary ="字典重复校验接口")
public Result<Object> doDictItemCheck(SysDictItem sysDictItem, HttpServletRequest request) { public Result<Object> doDictItemCheck(SysDictItem sysDictItem, HttpServletRequest request) {
Long num = Long.valueOf(0); Long num = Long.valueOf(0);
LambdaQueryWrapper<SysDictItem> queryWrapper = new LambdaQueryWrapper<SysDictItem>(); LambdaQueryWrapper<SysDictItem> queryWrapper = new LambdaQueryWrapper<SysDictItem>();

@ -5,8 +5,8 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
@ -30,7 +30,7 @@ import java.util.Arrays;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "填值规则") @Tag(name = "填值规则")
@RestController @RestController
@RequestMapping("/sys/fillRule") @RequestMapping("/sys/fillRule")
public class SysFillRuleController extends JeecgController<SysFillRule, ISysFillRuleService> { public class SysFillRuleController extends JeecgController<SysFillRule, ISysFillRuleService> {
@ -47,7 +47,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-分页列表查询") @AutoLog(value = "填值规则-分页列表查询")
@ApiOperation(value = "填值规则-分页列表查询", notes = "填值规则-分页列表查询") @Operation(summary = "填值规则-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SysFillRule sysFillRule, public Result<?> queryPageList(SysFillRule sysFillRule,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -78,7 +78,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-添加") @AutoLog(value = "填值规则-添加")
@ApiOperation(value = "填值规则-添加", notes = "填值规则-添加") @Operation(summary = "填值规则-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody SysFillRule sysFillRule) { public Result<?> add(@RequestBody SysFillRule sysFillRule) {
sysFillRuleService.save(sysFillRule); sysFillRuleService.save(sysFillRule);
@ -92,7 +92,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-编辑") @AutoLog(value = "填值规则-编辑")
@ApiOperation(value = "填值规则-编辑", notes = "填值规则-编辑") @Operation(summary = "填值规则-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody SysFillRule sysFillRule) { public Result<?> edit(@RequestBody SysFillRule sysFillRule) {
sysFillRuleService.updateById(sysFillRule); sysFillRuleService.updateById(sysFillRule);
@ -106,7 +106,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-通过id删除") @AutoLog(value = "填值规则-通过id删除")
@ApiOperation(value = "填值规则-通过id删除", notes = "填值规则-通过id删除") @Operation(summary = "填值规则-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sysFillRuleService.removeById(id); sysFillRuleService.removeById(id);
@ -120,7 +120,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-批量删除") @AutoLog(value = "填值规则-批量删除")
@ApiOperation(value = "填值规则-批量删除", notes = "填值规则-批量删除") @Operation(summary = "填值规则-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sysFillRuleService.removeByIds(Arrays.asList(ids.split(","))); this.sysFillRuleService.removeByIds(Arrays.asList(ids.split(",")));
@ -134,7 +134,7 @@ public class SysFillRuleController extends JeecgController<SysFillRule, ISysFill
* @return * @return
*/ */
@AutoLog(value = "填值规则-通过id查询") @AutoLog(value = "填值规则-通过id查询")
@ApiOperation(value = "填值规则-通过id查询", notes = "填值规则-通过id查询") @Operation(summary = "填值规则-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
SysFillRule sysFillRule = sysFillRuleService.getById(id); SysFillRule sysFillRule = sysFillRuleService.getById(id);

@ -3,8 +3,8 @@ package org.jeecg.modules.system.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
@ -27,7 +27,7 @@ import java.util.Arrays;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "表单评论文件") @Tag(name = "表单评论文件")
@RestController @RestController
@RequestMapping("/sys/formFile") @RequestMapping("/sys/formFile")
public class SysFormFileController extends JeecgController<SysFormFile, ISysFormFileService> { public class SysFormFileController extends JeecgController<SysFormFile, ISysFormFileService> {
@ -44,7 +44,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-分页列表查询") @AutoLog(value = "表单评论文件-分页列表查询")
@ApiOperation(value = "表单评论文件-分页列表查询", notes = "表单评论文件-分页列表查询") @Operation(summary = "表单评论文件-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SysFormFile sysFormFile, public Result<?> queryPageList(SysFormFile sysFormFile,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -63,7 +63,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-添加") @AutoLog(value = "表单评论文件-添加")
@ApiOperation(value = "表单评论文件-添加", notes = "表单评论文件-添加") @Operation(summary = "表单评论文件-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody SysFormFile sysFormFile) { public Result<?> add(@RequestBody SysFormFile sysFormFile) {
sysFormFileService.save(sysFormFile); sysFormFileService.save(sysFormFile);
@ -77,7 +77,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-编辑") @AutoLog(value = "表单评论文件-编辑")
@ApiOperation(value = "表单评论文件-编辑", notes = "表单评论文件-编辑") @Operation(summary = "表单评论文件-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<?> edit(@RequestBody SysFormFile sysFormFile) { public Result<?> edit(@RequestBody SysFormFile sysFormFile) {
sysFormFileService.updateById(sysFormFile); sysFormFileService.updateById(sysFormFile);
@ -91,7 +91,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-通过id删除") @AutoLog(value = "表单评论文件-通过id删除")
@ApiOperation(value = "表单评论文件-通过id删除", notes = "表单评论文件-通过id删除") @Operation(summary = "表单评论文件-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sysFormFileService.removeById(id); sysFormFileService.removeById(id);
@ -105,7 +105,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-批量删除") @AutoLog(value = "表单评论文件-批量删除")
@ApiOperation(value = "表单评论文件-批量删除", notes = "表单评论文件-批量删除") @Operation(summary = "表单评论文件-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sysFormFileService.removeByIds(Arrays.asList(ids.split(","))); this.sysFormFileService.removeByIds(Arrays.asList(ids.split(",")));
@ -119,7 +119,7 @@ public class SysFormFileController extends JeecgController<SysFormFile, ISysForm
* @return * @return
*/ */
@AutoLog(value = "表单评论文件-通过id查询") @AutoLog(value = "表单评论文件-通过id查询")
@ApiOperation(value = "表单评论文件-通过id查询", notes = "表单评论文件-通过id查询") @Operation(summary = "表单评论文件-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
SysFormFile sysFormFile = sysFormFileService.getById(id); SysFormFile sysFormFile = sysFormFileService.getById(id);

@ -3,7 +3,7 @@ package org.jeecg.modules.system.controller;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -25,7 +25,7 @@ import java.util.List;
* @Date: 2020-05-26 * @Date: 2020-05-26
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags = "gateway路由管理") @Tag(name = "gateway路由管理")
@RestController @RestController
@RequestMapping("/sys/gatewayRoute") @RequestMapping("/sys/gatewayRoute")
@Slf4j @Slf4j

@ -5,8 +5,8 @@ import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
@ -52,7 +52,7 @@ import java.util.stream.Collectors;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "职务表") @Tag(name = "职务表")
@RestController @RestController
@RequestMapping("/sys/position") @RequestMapping("/sys/position")
public class SysPositionController { public class SysPositionController {
@ -76,7 +76,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-分页列表查询") @AutoLog(value = "职务表-分页列表查询")
@ApiOperation(value = "职务表-分页列表查询", notes = "职务表-分页列表查询") @Operation(summary = "职务表-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<SysPosition>> queryPageList(SysPosition sysPosition, public Result<IPage<SysPosition>> queryPageList(SysPosition sysPosition,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -104,7 +104,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-添加") @AutoLog(value = "职务表-添加")
@ApiOperation(value = "职务表-添加", notes = "职务表-添加") @Operation(summary = "职务表-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<SysPosition> add(@RequestBody SysPosition sysPosition) { public Result<SysPosition> add(@RequestBody SysPosition sysPosition) {
Result<SysPosition> result = new Result<SysPosition>(); Result<SysPosition> result = new Result<SysPosition>();
@ -132,7 +132,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-编辑") @AutoLog(value = "职务表-编辑")
@ApiOperation(value = "职务表-编辑", notes = "职务表-编辑") @Operation(summary = "职务表-编辑")
@RequestMapping(value = "/edit", method ={RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method ={RequestMethod.PUT, RequestMethod.POST})
public Result<SysPosition> edit(@RequestBody SysPosition sysPosition) { public Result<SysPosition> edit(@RequestBody SysPosition sysPosition) {
Result<SysPosition> result = new Result<SysPosition>(); Result<SysPosition> result = new Result<SysPosition>();
@ -157,7 +157,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-通过id删除") @AutoLog(value = "职务表-通过id删除")
@ApiOperation(value = "职务表-通过id删除", notes = "职务表-通过id删除") @Operation(summary = "职务表-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
try { try {
@ -178,7 +178,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-批量删除") @AutoLog(value = "职务表-批量删除")
@ApiOperation(value = "职务表-批量删除", notes = "职务表-批量删除") @Operation(summary = "职务表-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<SysPosition> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result<SysPosition> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
Result<SysPosition> result = new Result<SysPosition>(); Result<SysPosition> result = new Result<SysPosition>();
@ -198,7 +198,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-通过id查询") @AutoLog(value = "职务表-通过id查询")
@ApiOperation(value = "职务表-通过id查询", notes = "职务表-通过id查询") @Operation(summary = "职务表-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<SysPosition> queryById(@RequestParam(name = "id", required = true) String id) { public Result<SysPosition> queryById(@RequestParam(name = "id", required = true) String id) {
Result<SysPosition> result = new Result<SysPosition>(); Result<SysPosition> result = new Result<SysPosition>();
@ -303,7 +303,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-通过code查询") @AutoLog(value = "职务表-通过code查询")
@ApiOperation(value = "职务表-通过code查询", notes = "职务表-通过code查询") @Operation(summary = "职务表-通过code查询")
@GetMapping(value = "/queryByCode") @GetMapping(value = "/queryByCode")
public Result<SysPosition> queryByCode(@RequestParam(name = "code", required = true) String code) { public Result<SysPosition> queryByCode(@RequestParam(name = "code", required = true) String code) {
Result<SysPosition> result = new Result<SysPosition>(); Result<SysPosition> result = new Result<SysPosition>();
@ -327,7 +327,7 @@ public class SysPositionController {
* @return * @return
*/ */
@AutoLog(value = "职务表-通过多个查询") @AutoLog(value = "职务表-通过多个查询")
@ApiOperation(value = "职务表-通过多个id查询", notes = "职务表-通过多个id查询") @Operation(summary = "职务表-通过多个id查询")
@GetMapping(value = "/queryByIds") @GetMapping(value = "/queryByIds")
public Result<List<SysPosition>> queryByIds(@RequestParam(name = "ids") String ids) { public Result<List<SysPosition>> queryByIds(@RequestParam(name = "ids") String ids) {
Result<List<SysPosition>> result = new Result<>(); Result<List<SysPosition>> result = new Result<>();

@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
@ -29,7 +29,7 @@ import java.util.Arrays;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "角色首页配置") @Tag(name = "角色首页配置")
@RestController @RestController
@RequestMapping("/sys/sysRoleIndex") @RequestMapping("/sys/sysRoleIndex")
public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRoleIndexService> { public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRoleIndexService> {
@ -46,7 +46,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
* @return * @return
*/ */
@AutoLog(value = "角色首页配置-分页列表查询") @AutoLog(value = "角色首页配置-分页列表查询")
@ApiOperation(value = "角色首页配置-分页列表查询", notes = "角色首页配置-分页列表查询") @Operation(summary = "角色首页配置-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SysRoleIndex sysRoleIndex, public Result<?> queryPageList(SysRoleIndex sysRoleIndex,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -66,7 +66,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
*/ */
@RequiresPermissions("system:roleindex:add") @RequiresPermissions("system:roleindex:add")
@AutoLog(value = "角色首页配置-添加") @AutoLog(value = "角色首页配置-添加")
@ApiOperation(value = "角色首页配置-添加", notes = "角色首页配置-添加") @Operation(summary = "角色首页配置-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
//@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX) //@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX)
public Result<?> add(@RequestBody SysRoleIndex sysRoleIndex,HttpServletRequest request) { public Result<?> add(@RequestBody SysRoleIndex sysRoleIndex,HttpServletRequest request) {
@ -82,7 +82,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
*/ */
@RequiresPermissions("system:roleindex:edit") @RequiresPermissions("system:roleindex:edit")
@AutoLog(value = "角色首页配置-编辑") @AutoLog(value = "角色首页配置-编辑")
@ApiOperation(value = "角色首页配置-编辑", notes = "角色首页配置-编辑") @Operation(summary = "角色首页配置-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
//@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX) //@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX)
public Result<?> edit(@RequestBody SysRoleIndex sysRoleIndex,HttpServletRequest request) { public Result<?> edit(@RequestBody SysRoleIndex sysRoleIndex,HttpServletRequest request) {
@ -97,7 +97,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
* @return * @return
*/ */
@AutoLog(value = "角色首页配置-通过id删除") @AutoLog(value = "角色首页配置-通过id删除")
@ApiOperation(value = "角色首页配置-通过id删除", notes = "角色首页配置-通过id删除") @Operation(summary = "角色首页配置-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
sysRoleIndexService.removeById(id); sysRoleIndexService.removeById(id);
@ -111,7 +111,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
* @return * @return
*/ */
@AutoLog(value = "角色首页配置-批量删除") @AutoLog(value = "角色首页配置-批量删除")
@ApiOperation(value = "角色首页配置-批量删除", notes = "角色首页配置-批量删除") @Operation(summary = "角色首页配置-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.sysRoleIndexService.removeByIds(Arrays.asList(ids.split(","))); this.sysRoleIndexService.removeByIds(Arrays.asList(ids.split(",")));
@ -125,7 +125,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
* @return * @return
*/ */
@AutoLog(value = "角色首页配置-通过id查询") @AutoLog(value = "角色首页配置-通过id查询")
@ApiOperation(value = "角色首页配置-通过id查询", notes = "角色首页配置-通过id查询") @Operation(summary = "角色首页配置-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
SysRoleIndex sysRoleIndex = sysRoleIndexService.getById(id); SysRoleIndex sysRoleIndex = sysRoleIndexService.getById(id);
@ -162,7 +162,7 @@ public class SysRoleIndexController extends JeecgController<SysRoleIndex, ISysRo
* @return * @return
*/ */
@AutoLog(value = "角色首页配置-通过code查询") @AutoLog(value = "角色首页配置-通过code查询")
@ApiOperation(value = "角色首页配置-通过code查询", notes = "角色首页配置-通过code查询") @Operation(summary = "角色首页配置-通过code查询")
@GetMapping(value = "/queryByCode") @GetMapping(value = "/queryByCode")
//@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX) //@DynamicTable(value = DynamicTableConstant.SYS_ROLE_INDEX)
public Result<?> queryByCode(@RequestParam(name = "roleCode", required = true) String roleCode,HttpServletRequest request) { public Result<?> queryByCode(@RequestParam(name = "roleCode", required = true) String roleCode,HttpServletRequest request) {

@ -3,8 +3,8 @@ package org.jeecg.modules.system.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles; import org.apache.shiro.authz.annotation.RequiresRoles;
@ -26,7 +26,7 @@ import javax.servlet.http.HttpServletRequest;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "系统表白名单") @Tag(name = "系统表白名单")
@RestController @RestController
@RequestMapping("/sys/tableWhiteList") @RequestMapping("/sys/tableWhiteList")
public class SysTableWhiteListController extends JeecgController<SysTableWhiteList, ISysTableWhiteListService> { public class SysTableWhiteListController extends JeecgController<SysTableWhiteList, ISysTableWhiteListService> {
@ -65,7 +65,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
* @return * @return
*/ */
@AutoLog(value = "系统表白名单-添加") @AutoLog(value = "系统表白名单-添加")
@ApiOperation(value = "系统表白名单-添加", notes = "系统表白名单-添加") @Operation(summary = "系统表白名单-添加")
//@RequiresRoles("admin") //@RequiresRoles("admin")
@RequiresPermissions("system:tableWhite:add") @RequiresPermissions("system:tableWhite:add")
@PostMapping(value = "/add") @PostMapping(value = "/add")
@ -84,7 +84,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
* @return * @return
*/ */
@AutoLog(value = "系统表白名单-编辑") @AutoLog(value = "系统表白名单-编辑")
@ApiOperation(value = "系统表白名单-编辑", notes = "系统表白名单-编辑") @Operation(summary = "系统表白名单-编辑")
//@RequiresRoles("admin") //@RequiresRoles("admin")
@RequiresPermissions("system:tableWhite:edit") @RequiresPermissions("system:tableWhite:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
@ -103,7 +103,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
* @return * @return
*/ */
@AutoLog(value = "系统表白名单-通过id删除") @AutoLog(value = "系统表白名单-通过id删除")
@ApiOperation(value = "系统表白名单-通过id删除", notes = "系统表白名单-通过id删除") @Operation(summary = "系统表白名单-通过id删除")
// @RequiresRoles("admin") // @RequiresRoles("admin")
@RequiresPermissions("system:tableWhite:delete") @RequiresPermissions("system:tableWhite:delete")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
@ -122,7 +122,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
* @return * @return
*/ */
@AutoLog(value = "系统表白名单-批量删除") @AutoLog(value = "系统表白名单-批量删除")
@ApiOperation(value = "系统表白名单-批量删除", notes = "系统表白名单-批量删除") @Operation(summary = "系统表白名单-批量删除")
// @RequiresRoles("admin") // @RequiresRoles("admin")
@RequiresPermissions("system:tableWhite:deleteBatch") @RequiresPermissions("system:tableWhite:deleteBatch")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
@ -141,7 +141,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
* @return * @return
*/ */
@AutoLog(value = "系统表白名单-通过id查询") @AutoLog(value = "系统表白名单-通过id查询")
@ApiOperation(value = "系统表白名单-通过id查询", notes = "系统表白名单-通过id查询") @Operation(summary = "系统表白名单-通过id查询")
// @RequiresRoles("admin") // @RequiresRoles("admin")
@RequiresPermissions("system:tableWhite:queryById") @RequiresPermissions("system:tableWhite:queryById")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")

@ -5,7 +5,7 @@ import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xkcoding.justauth.AuthRequestFactory; import com.xkcoding.justauth.AuthRequestFactory;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.Operation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import me.zhyd.oauth.model.AuthCallback; import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.model.AuthResponse; import me.zhyd.oauth.model.AuthResponse;
@ -283,7 +283,7 @@ public class ThirdLoginController {
* @param jsonObject * @param jsonObject
* @return * @return
*/ */
@ApiOperation("手机号登录接口") @Operation(summary ="手机号登录接口")
@PostMapping("/bindingThirdPhone") @PostMapping("/bindingThirdPhone")
@ResponseBody @ResponseBody
public Result<String> bindingThirdPhone(@RequestBody JSONObject jsonObject) { public Result<String> bindingThirdPhone(@RequestBody JSONObject jsonObject) {

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -24,44 +23,44 @@ import java.util.Date;
@TableName("sys_check_rule") @TableName("sys_check_rule")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value = "sys_check_rule对象", description = "编码校验规则") @Schema(description = "编码校验规则")
public class SysCheckRule { public class SysCheckRule {
/** /**
* id * id
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id") @Schema(description = "主键id")
private String id; private String id;
/** /**
* *
*/ */
@Excel(name = "规则名称", width = 15) @Excel(name = "规则名称", width = 15)
@ApiModelProperty(value = "规则名称") @Schema(description = "规则名称")
private String ruleName; private String ruleName;
/** /**
* Code * Code
*/ */
@Excel(name = "规则Code", width = 15) @Excel(name = "规则Code", width = 15)
@ApiModelProperty(value = "规则Code") @Schema(description = "规则Code")
private String ruleCode; private String ruleCode;
/** /**
* JSON * JSON
*/ */
@Excel(name = "规则JSON", width = 15) @Excel(name = "规则JSON", width = 15)
@ApiModelProperty(value = "规则JSON") @Schema(description = "规则JSON")
private String ruleJson; private String ruleJson;
/** /**
* *
*/ */
@Excel(name = "规则描述", width = 15) @Excel(name = "规则描述", width = 15)
@ApiModelProperty(value = "规则描述") @Schema(description = "规则描述")
private String ruleDescription; private String ruleDescription;
/** /**
* *
*/ */
@Excel(name = "更新人", width = 15) @Excel(name = "更新人", width = 15)
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private String updateBy; private String updateBy;
/** /**
* *
@ -69,13 +68,13 @@ public class SysCheckRule {
@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private Date updateTime; private Date updateTime;
/** /**
* *
*/ */
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/** /**
* *
@ -83,6 +82,6 @@ public class SysCheckRule {
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private Date createTime; private Date createTime;
} }

@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -27,56 +26,56 @@ import java.util.Date;
@TableName("sys_comment") @TableName("sys_comment")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_comment对象", description="系统评论回复表") @Schema(description="系统评论回复表")
public class SysComment implements Serializable { public class SysComment implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private String id; private String id;
/**表名*/ /**表名*/
@Excel(name = "表名", width = 15) @Excel(name = "表名", width = 15)
@ApiModelProperty(value = "表名") @Schema(description = "表名")
private String tableName; private String tableName;
/**数据id*/ /**数据id*/
@Excel(name = "数据id", width = 15) @Excel(name = "数据id", width = 15)
@ApiModelProperty(value = "数据id") @Schema(description = "数据id")
private String tableDataId; private String tableDataId;
/**来源用户id*/ /**来源用户id*/
@Excel(name = "来源用户id", width = 15) @Excel(name = "来源用户id", width = 15)
@ApiModelProperty(value = "来源用户id") @Schema(description = "来源用户id")
@Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname") @Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname")
private String fromUserId; private String fromUserId;
/**发送给用户id(允许为空)*/ /**发送给用户id(允许为空)*/
@Excel(name = "发送给用户id(允许为空)", width = 15) @Excel(name = "发送给用户id(允许为空)", width = 15)
@ApiModelProperty(value = "发送给用户id(允许为空)") @Schema(description = "发送给用户id(允许为空)")
@Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname") @Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname")
private String toUserId; private String toUserId;
/**评论id(允许为空,不为空时,则为回复)*/ /**评论id(允许为空,不为空时,则为回复)*/
@Excel(name = "评论id(允许为空,不为空时,则为回复)", width = 15) @Excel(name = "评论id(允许为空,不为空时,则为回复)", width = 15)
@ApiModelProperty(value = "评论id(允许为空,不为空时,则为回复)") @Schema(description = "评论id(允许为空,不为空时,则为回复)")
@Dict(dictTable = "sys_comment", dicCode = "id", dicText = "comment_content") @Dict(dictTable = "sys_comment", dicCode = "id", dicText = "comment_content")
private String commentId; private String commentId;
/**回复内容*/ /**回复内容*/
@Excel(name = "回复内容", width = 15) @Excel(name = "回复内容", width = 15)
@ApiModelProperty(value = "回复内容") @Schema(description = "回复内容")
private String commentContent; private String commentContent;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private Date createTime; private Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private String updateBy; private String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @Schema(description = "更新日期")
private Date updateTime; private Date updateTime;
/** /**

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -23,102 +22,102 @@ import org.springframework.format.annotation.DateTimeFormat;
@TableName("sys_data_source") @TableName("sys_data_source")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value = "sys_data_source对象", description = "多数据源管理") @Schema(description = "多数据源管理")
public class SysDataSource { public class SysDataSource {
/** /**
* id * id
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/** /**
* *
*/ */
@Excel(name = "数据源编码", width = 15) @Excel(name = "数据源编码", width = 15)
@ApiModelProperty(value = "数据源编码") @Schema(description = "数据源编码")
private java.lang.String code; private java.lang.String code;
/** /**
* *
*/ */
@Excel(name = "数据源名称", width = 15) @Excel(name = "数据源名称", width = 15)
@ApiModelProperty(value = "数据源名称") @Schema(description = "数据源名称")
private java.lang.String name; private java.lang.String name;
/** /**
* *
*/ */
@Excel(name = "备注", width = 15) @Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注") @Schema(description = "备注")
private java.lang.String remark; private java.lang.String remark;
/** /**
* *
*/ */
@Dict(dicCode = "database_type") @Dict(dicCode = "database_type")
@Excel(name = "数据库类型", width = 15, dicCode = "database_type") @Excel(name = "数据库类型", width = 15, dicCode = "database_type")
@ApiModelProperty(value = "数据库类型") @Schema(description = "数据库类型")
private java.lang.String dbType; private java.lang.String dbType;
/** /**
* *
*/ */
@Excel(name = "驱动类", width = 15) @Excel(name = "驱动类", width = 15)
@ApiModelProperty(value = "驱动类") @Schema(description = "驱动类")
private java.lang.String dbDriver; private java.lang.String dbDriver;
/** /**
* *
*/ */
@Excel(name = "数据源地址", width = 15) @Excel(name = "数据源地址", width = 15)
@ApiModelProperty(value = "数据源地址") @Schema(description = "数据源地址")
private java.lang.String dbUrl; private java.lang.String dbUrl;
/** /**
* *
*/ */
@Excel(name = "数据库名称", width = 15) @Excel(name = "数据库名称", width = 15)
@ApiModelProperty(value = "数据库名称") @Schema(description = "数据库名称")
private java.lang.String dbName; private java.lang.String dbName;
/** /**
* *
*/ */
@Excel(name = "用户名", width = 15) @Excel(name = "用户名", width = 15)
@ApiModelProperty(value = "用户名") @Schema(description = "用户名")
private java.lang.String dbUsername; private java.lang.String dbUsername;
/** /**
* *
*/ */
@Excel(name = "密码", width = 15) @Excel(name = "密码", width = 15)
@ApiModelProperty(value = "密码") @Schema(description = "密码")
private java.lang.String dbPassword; private java.lang.String dbPassword;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/** /**
* *
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private java.util.Date createTime; private java.util.Date createTime;
/** /**
* *
*/ */
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/** /**
* *
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @Schema(description = "更新日期")
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
* *
*/ */
@Excel(name = "所属部门", width = 15) @Excel(name = "所属部门", width = 15)
@ApiModelProperty(value = "所属部门") @Schema(description = "所属部门")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
/**租户ID*/ /**租户ID*/
@ApiModelProperty(value = "租户ID") @Schema(description = "租户ID")
private java.lang.Integer tenantId; private java.lang.Integer tenantId;
} }

@ -6,8 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,23 +24,23 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("sys_depart_permission") @TableName("sys_depart_permission")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_depart_permission对象", description="部门权限表") @Schema(description="部门权限表")
public class SysDepartPermission { public class SysDepartPermission {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/**部门id*/ /**部门id*/
@Excel(name = "部门id", width = 15) @Excel(name = "部门id", width = 15)
@ApiModelProperty(value = "部门id") @Schema(description = "部门id")
private java.lang.String departId; private java.lang.String departId;
/**权限id*/ /**权限id*/
@Excel(name = "权限id", width = 15) @Excel(name = "权限id", width = 15)
@ApiModelProperty(value = "权限id") @Schema(description = "权限id")
private java.lang.String permissionId; private java.lang.String permissionId;
/**数据规则id*/ /**数据规则id*/
@ApiModelProperty(value = "数据规则id") @Schema(description = "数据规则id")
private java.lang.String dataRuleIds; private java.lang.String dataRuleIds;
public SysDepartPermission() { public SysDepartPermission() {

@ -6,8 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -26,49 +25,49 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("sys_depart_role") @TableName("sys_depart_role")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_depart_role对象", description="部门角色") @Schema(description="部门角色")
public class SysDepartRole { public class SysDepartRole {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/**部门id*/ /**部门id*/
@Excel(name = "部门id", width = 15) @Excel(name = "部门id", width = 15)
@ApiModelProperty(value = "部门id") @Schema(description = "部门id")
@Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id") @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id")
private java.lang.String departId; private java.lang.String departId;
/**部门角色名称*/ /**部门角色名称*/
@Excel(name = "部门角色名称", width = 15) @Excel(name = "部门角色名称", width = 15)
@ApiModelProperty(value = "部门角色名称") @Schema(description = "部门角色名称")
private java.lang.String roleName; private java.lang.String roleName;
/**部门角色编码*/ /**部门角色编码*/
@Excel(name = "部门角色编码", width = 15) @Excel(name = "部门角色编码", width = 15)
@ApiModelProperty(value = "部门角色编码") @Schema(description = "部门角色编码")
private java.lang.String roleCode; private java.lang.String roleCode;
/**描述*/ /**描述*/
@Excel(name = "描述", width = 15) @Excel(name = "描述", width = 15)
@ApiModelProperty(value = "描述") @Schema(description = "描述")
private java.lang.String description; private java.lang.String description;
/**创建人*/ /**创建人*/
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/**创建时间*/ /**创建时间*/
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private java.util.Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@Excel(name = "更新人", width = 15) @Excel(name = "更新人", width = 15)
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/**更新时间*/ /**更新时间*/
@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private java.util.Date updateTime; private java.util.Date updateTime;

@ -6,8 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,34 +24,34 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("sys_depart_role_permission") @TableName("sys_depart_role_permission")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_depart_role_permission对象", description="部门角色权限") @Schema( description="部门角色权限")
public class SysDepartRolePermission { public class SysDepartRolePermission {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/**部门id*/ /**部门id*/
@Excel(name = "部门id", width = 15) @Excel(name = "部门id", width = 15)
@ApiModelProperty(value = "部门id") @Schema(description = "部门id")
private java.lang.String departId; private java.lang.String departId;
/**角色id*/ /**角色id*/
@Excel(name = "角色id", width = 15) @Excel(name = "角色id", width = 15)
@ApiModelProperty(value = "角色id") @Schema(description = "角色id")
private java.lang.String roleId; private java.lang.String roleId;
/**权限id*/ /**权限id*/
@Excel(name = "权限id", width = 15) @Excel(name = "权限id", width = 15)
@ApiModelProperty(value = "权限id") @Schema(description = "权限id")
private java.lang.String permissionId; private java.lang.String permissionId;
/**dataRuleIds*/ /**dataRuleIds*/
@Excel(name = "dataRuleIds", width = 15) @Excel(name = "dataRuleIds", width = 15)
@ApiModelProperty(value = "dataRuleIds") @Schema(description = "dataRuleIds")
private java.lang.String dataRuleIds; private java.lang.String dataRuleIds;
/** 操作时间 */ /** 操作时间 */
@Excel(name = "操作时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "操作时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "操作时间") @Schema(description = "操作时间")
private java.util.Date operateDate; private java.util.Date operateDate;
/** 操作ip */ /** 操作ip */
private java.lang.String operateIp; private java.lang.String operateIp;

@ -6,8 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,20 +24,20 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("sys_depart_role_user") @TableName("sys_depart_role_user")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_depart_role_user对象", description="部门角色人员信息") @Schema(description="部门角色人员信息")
public class SysDepartRoleUser { public class SysDepartRoleUser {
/**主键id*/ /**主键id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id") @Schema(description = "主键id")
private java.lang.String id; private java.lang.String id;
/**用户id*/ /**用户id*/
@Excel(name = "用户id", width = 15) @Excel(name = "用户id", width = 15)
@ApiModelProperty(value = "用户id") @Schema(description = "用户id")
private java.lang.String userId; private java.lang.String userId;
/**角色id*/ /**角色id*/
@Excel(name = "角色id", width = 15) @Excel(name = "角色id", width = 15)
@ApiModelProperty(value = "角色id") @Schema(description = "角色id")
private java.lang.String droleId; private java.lang.String droleId;
public SysDepartRoleUser() { public SysDepartRoleUser() {

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -22,44 +21,44 @@ import org.springframework.format.annotation.DateTimeFormat;
@TableName("sys_fill_rule") @TableName("sys_fill_rule")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value = "sys_fill_rule对象", description = "填值规则") @Schema(description = "填值规则")
public class SysFillRule { public class SysFillRule {
/** /**
* ID * ID
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键ID") @Schema(description = "主键ID")
private java.lang.String id; private java.lang.String id;
/** /**
* *
*/ */
@Excel(name = "规则名称", width = 15) @Excel(name = "规则名称", width = 15)
@ApiModelProperty(value = "规则名称") @Schema(description = "规则名称")
private java.lang.String ruleName; private java.lang.String ruleName;
/** /**
* Code * Code
*/ */
@Excel(name = "规则Code", width = 15) @Excel(name = "规则Code", width = 15)
@ApiModelProperty(value = "规则Code") @Schema(description = "规则Code")
private java.lang.String ruleCode; private java.lang.String ruleCode;
/** /**
* *
*/ */
@Excel(name = "规则实现类", width = 15) @Excel(name = "规则实现类", width = 15)
@ApiModelProperty(value = "规则实现类") @Schema(description = "规则实现类")
private java.lang.String ruleClass; private java.lang.String ruleClass;
/** /**
* *
*/ */
@Excel(name = "规则参数", width = 15) @Excel(name = "规则参数", width = 15)
@ApiModelProperty(value = "规则参数") @Schema(description = "规则参数")
private java.lang.String ruleParams; private java.lang.String ruleParams;
/** /**
* *
*/ */
@Excel(name = "修改人", width = 15) @Excel(name = "修改人", width = 15)
@ApiModelProperty(value = "修改人") @Schema(description = "修改人")
private java.lang.String updateBy; private java.lang.String updateBy;
/** /**
* *
@ -67,13 +66,13 @@ public class SysFillRule {
@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间") @Schema(description = "修改时间")
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
* *
*/ */
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/** /**
* *
@ -81,6 +80,6 @@ public class SysFillRule {
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private java.util.Date createTime; private java.util.Date createTime;
} }

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -23,37 +22,37 @@ import java.util.Date;
@TableName("sys_form_file") @TableName("sys_form_file")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_form_file对象", description="表单评论文件") @Schema(description="表单评论文件")
public class SysFormFile { public class SysFormFile {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private String id; private String id;
/**表名*/ /**表名*/
@Excel(name = "表名", width = 15) @Excel(name = "表名", width = 15)
@ApiModelProperty(value = "表名") @Schema(description = "表名")
private String tableName; private String tableName;
/**数据id*/ /**数据id*/
@Excel(name = "数据id", width = 15) @Excel(name = "数据id", width = 15)
@ApiModelProperty(value = "数据id") @Schema(description = "数据id")
private String tableDataId; private String tableDataId;
/**关联文件id*/ /**关联文件id*/
@Excel(name = "关联文件id", width = 15) @Excel(name = "关联文件id", width = 15)
@ApiModelProperty(value = "关联文件id") @Schema(description = "关联文件id")
private String fileId; private String fileId;
/**文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)*/ /**文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)*/
@Excel(name = "文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)", width = 15) @Excel(name = "文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)", width = 15)
@ApiModelProperty(value = "文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)") @Schema(description = "文档类型folder:文件夹 excel:excel doc:word pp:ppt image:图片 archive:其他文档 video:视频)")
private String fileType; private String fileType;
/**创建人登录名称*/ /**创建人登录名称*/
@Excel(name = "创建人登录名称", width = 15) @Excel(name = "创建人登录名称", width = 15)
@ApiModelProperty(value = "创建人登录名称") @Schema(description = "创建人登录名称")
private String createBy; private String createBy;
/**创建日期*/ /**创建日期*/
@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private Date createTime; private Date createTime;
} }

@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -27,27 +26,27 @@ import java.util.Date;
@TableName("sys_gateway_route") @TableName("sys_gateway_route")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_gateway_route对象", description="gateway路由管理") @Schema(description="gateway路由管理")
public class SysGatewayRoute implements Serializable { public class SysGatewayRoute implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键*/ /**主键*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键") @Schema(description = "主键")
private String id; private String id;
/**routerKEy*/ /**routerKEy*/
@ApiModelProperty(value = "路由ID") @Schema(description = "路由ID")
private String routerId; private String routerId;
/**服务名*/ /**服务名*/
@Excel(name = "服务名", width = 15) @Excel(name = "服务名", width = 15)
@ApiModelProperty(value = "服务名") @Schema(description = "服务名")
private String name; private String name;
/**服务地址*/ /**服务地址*/
@Excel(name = "服务地址", width = 15) @Excel(name = "服务地址", width = 15)
@ApiModelProperty(value = "服务地址") @Schema(description = "服务地址")
private String uri; private String uri;
/** /**
@ -62,41 +61,41 @@ public class SysGatewayRoute implements Serializable {
/**是否忽略前缀0-否 1-是*/ /**是否忽略前缀0-否 1-是*/
@Excel(name = "忽略前缀", width = 15) @Excel(name = "忽略前缀", width = 15)
@ApiModelProperty(value = "忽略前缀") @Schema(description = "忽略前缀")
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
private Integer stripPrefix; private Integer stripPrefix;
/**是否重试0-否 1-是*/ /**是否重试0-否 1-是*/
@Excel(name = "是否重试", width = 15) @Excel(name = "是否重试", width = 15)
@ApiModelProperty(value = "是否重试") @Schema(description = "是否重试")
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
private Integer retryable; private Integer retryable;
/**是否为保留数据:0-否 1-是*/ /**是否为保留数据:0-否 1-是*/
@Excel(name = "保留数据", width = 15) @Excel(name = "保留数据", width = 15)
@ApiModelProperty(value = "保留数据") @Schema(description = "保留数据")
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
private Integer persistable; private Integer persistable;
/**是否在接口文档中展示:0-否 1-是*/ /**是否在接口文档中展示:0-否 1-是*/
@Excel(name = "在接口文档中展示", width = 15) @Excel(name = "在接口文档中展示", width = 15)
@ApiModelProperty(value = "在接口文档中展示") @Schema(description = "在接口文档中展示")
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
private Integer showApi; private Integer showApi;
/**状态 1有效 0无效*/ /**状态 1有效 0无效*/
@Excel(name = "状态", width = 15) @Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态") @Schema(description = "状态")
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
private Integer status; private Integer status;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private Date createTime; private Date createTime;
/** /**
@ -105,14 +104,14 @@ public class SysGatewayRoute implements Serializable {
@TableLogic @TableLogic
private Integer delFlag; private Integer delFlag;
/* *//**更新人*//* /* *//**更新人*//*
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private String updateBy; private String updateBy;
*//**更新日期*//* *//**更新日期*//*
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @Schema(description = "更新日期")
private Date updateTime; private Date updateTime;
*//**所属部门*//* *//**所属部门*//*
@ApiModelProperty(value = "所属部门") @Schema(description = "所属部门")
private String sysOrgCode;*/ private String sysOrgCode;*/
} }

@ -5,12 +5,11 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -24,36 +23,36 @@ import lombok.experimental.Accessors;
@TableName("sys_tenant_pack_perms") @TableName("sys_tenant_pack_perms")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_tenant_pack_perms对象", description="产品包菜单关系表") @Schema(description="产品包菜单关系表")
public class SysPackPermission implements Serializable { public class SysPackPermission implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键编号*/ /**主键编号*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键编号") @Schema(description = "主键编号")
private String id; private String id;
/**租户产品包名称*/ /**租户产品包名称*/
@Excel(name = "租户产品包名称", width = 15) @Excel(name = "租户产品包名称", width = 15)
@ApiModelProperty(value = "租户产品包名称") @Schema(description = "租户产品包名称")
private String packId; private String packId;
/**菜单id*/ /**菜单id*/
@Excel(name = "菜单id", width = 15) @Excel(name = "菜单id", width = 15)
@ApiModelProperty(value = "菜单id") @Schema(description = "菜单id")
private String permissionId; private String permissionId;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/**创建时间*/ /**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private Date createTime; private Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private String updateBy; private String updateBy;
/**更新时间*/ /**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private Date updateTime; private Date updateTime;
} }

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -23,70 +22,70 @@ import org.springframework.format.annotation.DateTimeFormat;
@TableName("sys_position") @TableName("sys_position")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value = "sys_position对象", description = "职务表") @Schema(description = "职务表")
public class SysPosition { public class SysPosition {
/** /**
* id * id
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/** /**
* *
*/ */
@Excel(name = "职务编码", width = 15) @Excel(name = "职务编码", width = 15)
@ApiModelProperty(value = "职务编码") @Schema(description = "职务编码")
private java.lang.String code; private java.lang.String code;
/** /**
* *
*/ */
@Excel(name = "职务名称", width = 15) @Excel(name = "职务名称", width = 15)
@ApiModelProperty(value = "职务名称") @Schema(description = "职务名称")
private java.lang.String name; private java.lang.String name;
/** /**
* *
*/ */
//@Excel(name = "职级", width = 15,dicCode ="position_rank") //@Excel(name = "职级", width = 15,dicCode ="position_rank")
@ApiModelProperty(value = "职级") @Schema(description = "职级")
@Dict(dicCode = "position_rank") @Dict(dicCode = "position_rank")
private java.lang.String postRank; private java.lang.String postRank;
/** /**
* id * id
*/ */
@ApiModelProperty(value = "公司id") @Schema(description = "公司id")
private java.lang.String companyId; private java.lang.String companyId;
/** /**
* *
*/ */
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/** /**
* *
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private java.util.Date createTime; private java.util.Date createTime;
/** /**
* *
*/ */
@ApiModelProperty(value = "修改人") @Schema(description = "修改人")
private java.lang.String updateBy; private java.lang.String updateBy;
/** /**
* *
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间") @Schema(description = "修改时间")
private java.util.Date updateTime; private java.util.Date updateTime;
/** /**
* *
*/ */
@ApiModelProperty(value = "组织机构编码") @Schema(description = "组织机构编码")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
/**租户ID*/ /**租户ID*/
@ApiModelProperty(value = "租户ID") @Schema(description = "租户ID")
private java.lang.Integer tenantId; private java.lang.Integer tenantId;
} }

@ -6,8 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,63 +24,63 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("sys_role_index") @TableName("sys_role_index")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_role_index对象", description="角色首页配置") @Schema(description="角色首页配置")
public class SysRoleIndex { public class SysRoleIndex {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/**角色编码*/ /**角色编码*/
@Excel(name = "角色编码", width = 15) @Excel(name = "角色编码", width = 15)
@ApiModelProperty(value = "角色编码") @Schema(description = "角色编码")
private java.lang.String roleCode; private java.lang.String roleCode;
/**路由地址*/ /**路由地址*/
@Excel(name = "路由地址", width = 15) @Excel(name = "路由地址", width = 15)
@ApiModelProperty(value = "路由地址") @Schema(description = "路由地址")
private java.lang.String url; private java.lang.String url;
/**路由地址*/ /**路由地址*/
@Excel(name = "路由地址", width = 15) @Excel(name = "路由地址", width = 15)
@ApiModelProperty(value = "组件") @Schema(description = "组件")
private java.lang.String component; private java.lang.String component;
/** /**
* : 0: 1:1 * : 0: 1:1
*/ */
@Excel(name = "是否路由菜单", width = 15) @Excel(name = "是否路由菜单", width = 15)
@ApiModelProperty(value = "是否路由菜单") @Schema(description = "是否路由菜单")
@TableField(value="is_route") @TableField(value="is_route")
private boolean route; private boolean route;
/**优先级*/ /**优先级*/
@Excel(name = "优先级", width = 15) @Excel(name = "优先级", width = 15)
@ApiModelProperty(value = "优先级") @Schema(description = "优先级")
private java.lang.Integer priority; private java.lang.Integer priority;
/**路由地址*/ /**路由地址*/
@Excel(name = "状态", width = 15) @Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态") @Schema(description = "状态")
private java.lang.String status; private java.lang.String status;
/**创建人登录名称*/ /**创建人登录名称*/
@Excel(name = "创建人登录名称", width = 15) @Excel(name = "创建人登录名称", width = 15)
@ApiModelProperty(value = "创建人登录名称") @Schema(description = "创建人登录名称")
private java.lang.String createBy; private java.lang.String createBy;
/**创建日期*/ /**创建日期*/
@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private java.util.Date createTime; private java.util.Date createTime;
/**更新人登录名称*/ /**更新人登录名称*/
@Excel(name = "更新人登录名称", width = 15) @Excel(name = "更新人登录名称", width = 15)
@ApiModelProperty(value = "更新人登录名称") @Schema(description = "更新人登录名称")
private java.lang.String updateBy; private java.lang.String updateBy;
/**更新日期*/ /**更新日期*/
@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @Schema(description = "更新日期")
private java.util.Date updateTime; private java.util.Date updateTime;
/**所属部门*/ /**所属部门*/
@Excel(name = "所属部门", width = 15) @Excel(name = "所属部门", width = 15)
@ApiModelProperty(value = "所属部门") @Schema(description = "所属部门")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -22,38 +21,38 @@ import org.springframework.format.annotation.DateTimeFormat;
@TableName("sys_table_white_list") @TableName("sys_table_white_list")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value = "sys_table_white_list对象", description = "系统表白名单") @Schema(description = "系统表白名单")
public class SysTableWhiteList { public class SysTableWhiteList {
/** /**
* id * id
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id") @Schema(description = "主键id")
private java.lang.String id; private java.lang.String id;
/** /**
* *
*/ */
@Excel(name = "允许的表名", width = 15) @Excel(name = "允许的表名", width = 15)
@ApiModelProperty(value = "允许的表名") @Schema(description = "允许的表名")
private java.lang.String tableName; private java.lang.String tableName;
/** /**
* *
*/ */
@Excel(name = "允许的字段名", width = 15) @Excel(name = "允许的字段名", width = 15)
@ApiModelProperty(value = "允许的字段名") @Schema(description = "允许的字段名")
private java.lang.String fieldName; private java.lang.String fieldName;
/** /**
* 1=0= * 1=0=
*/ */
@Excel(name = "状态", width = 15) @Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态") @Schema(description = "状态")
private java.lang.String status; private java.lang.String status;
/** /**
* *
*/ */
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/** /**
* *
@ -61,13 +60,13 @@ public class SysTableWhiteList {
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private java.util.Date createTime; private java.util.Date createTime;
/** /**
* *
*/ */
@Excel(name = "更新人", width = 15) @Excel(name = "更新人", width = 15)
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/** /**
* *
@ -75,6 +74,6 @@ public class SysTableWhiteList {
@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private java.util.Date updateTime; private java.util.Date updateTime;
} }

@ -4,12 +4,11 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -23,49 +22,49 @@ import lombok.experimental.Accessors;
@TableName("sys_tenant_pack") @TableName("sys_tenant_pack")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_tenant_pack对象", description="租户产品包") @Schema(description="租户产品包")
public class SysTenantPack implements Serializable { public class SysTenantPack implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键id*/ /**主键id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id") @Schema(description = "主键id")
private String id; private String id;
/**租户id*/ /**租户id*/
@Excel(name = "租户id", width = 15) @Excel(name = "租户id", width = 15)
@ApiModelProperty(value = "租户id") @Schema(description = "租户id")
private Integer tenantId; private Integer tenantId;
/**产品包名*/ /**产品包名*/
@Excel(name = "产品包名", width = 15) @Excel(name = "产品包名", width = 15)
@ApiModelProperty(value = "产品包名") @Schema(description = "产品包名")
private String packName; private String packName;
/**开启状态(0 未开启 1开启)*/ /**开启状态(0 未开启 1开启)*/
@Excel(name = "开启状态(0 未开启 1开启)", width = 15) @Excel(name = "开启状态(0 未开启 1开启)", width = 15)
@ApiModelProperty(value = "开启状态(0 未开启 1开启)") @Schema(description = "开启状态(0 未开启 1开启)")
private String status; private String status;
/**备注*/ /**备注*/
@Excel(name = "备注", width = 15) @Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注") @Schema(description = "备注")
private String remarks; private String remarks;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/**创建时间*/ /**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private Date createTime; private Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private String updateBy; private String updateBy;
/**更新时间*/ /**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private Date updateTime; private Date updateTime;
/**产品包类型(default 默认产品包 custom 自定义产品包)*/ /**产品包类型(default 默认产品包 custom 自定义产品包)*/
@Excel(name = "产品包类型", width = 15) @Excel(name = "产品包类型", width = 15)
@ApiModelProperty(value = "产品包类型") @Schema(description = "产品包类型")
private String packType; private String packType;
/**菜单id 临时字段用于新增编辑菜单id传递*/ /**菜单id 临时字段用于新增编辑菜单id传递*/

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -24,41 +23,41 @@ import java.io.Serializable;
@TableName("sys_tenant_pack_user") @TableName("sys_tenant_pack_user")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_tenant_pack_user对象", description="租户产品包用户关系表") @Schema(description="租户产品包用户关系表")
public class SysTenantPackUser implements Serializable { public class SysTenantPackUser implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @Schema(description = "id")
private java.lang.String id; private java.lang.String id;
/**租户产品包ID*/ /**租户产品包ID*/
@Excel(name = "租户产品包ID", width = 15) @Excel(name = "租户产品包ID", width = 15)
@ApiModelProperty(value = "租户产品包ID") @Schema(description = "租户产品包ID")
private java.lang.String packId; private java.lang.String packId;
/**用户ID*/ /**用户ID*/
@Excel(name = "用户ID", width = 15) @Excel(name = "用户ID", width = 15)
@ApiModelProperty(value = "用户ID") @Schema(description = "用户ID")
private java.lang.String userId; private java.lang.String userId;
/**租户ID*/ /**租户ID*/
@Excel(name = "租户ID", width = 15) @Excel(name = "租户ID", width = 15)
@ApiModelProperty(value = "租户ID") @Schema(description = "租户ID")
private java.lang.Integer tenantId; private java.lang.Integer tenantId;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/**创建时间*/ /**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private java.util.Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @Schema(description = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/**更新时间*/ /**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新时间") @Schema(description = "更新时间")
private java.util.Date updateTime; private java.util.Date updateTime;
private transient String realname; private transient String realname;

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -22,44 +21,44 @@ import org.springframework.format.annotation.DateTimeFormat;
@TableName("sys_third_account") @TableName("sys_third_account")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_third_account对象", description="第三方登录账号表") @Schema(description="第三方登录账号表")
public class SysThirdAccount { public class SysThirdAccount {
/**编号*/ /**编号*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "编号") @Schema(description = "编号")
private java.lang.String id; private java.lang.String id;
/**第三方登录id*/ /**第三方登录id*/
@Excel(name = "第三方登录id", width = 15) @Excel(name = "第三方登录id", width = 15)
@ApiModelProperty(value = "第三方登录id") @Schema(description = "第三方登录id")
private java.lang.String sysUserId; private java.lang.String sysUserId;
/**登录来源*/ /**登录来源*/
@Excel(name = "登录来源", width = 15) @Excel(name = "登录来源", width = 15)
@ApiModelProperty(value = "登录来源") @Schema(description = "登录来源")
private java.lang.String thirdType; private java.lang.String thirdType;
/**头像*/ /**头像*/
@Excel(name = "头像", width = 15) @Excel(name = "头像", width = 15)
@ApiModelProperty(value = "头像") @Schema(description = "头像")
private java.lang.String avatar; private java.lang.String avatar;
/**状态(1-正常,2-冻结)*/ /**状态(1-正常,2-冻结)*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15) @Excel(name = "状态(1-正常,2-冻结)", width = 15)
@ApiModelProperty(value = "状态(1-正常,2-冻结)") @Schema(description = "状态(1-正常,2-冻结)")
private java.lang.Integer status; private java.lang.Integer status;
/**删除状态(0-正常,1-已删除)*/ /**删除状态(0-正常,1-已删除)*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15) @Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@ApiModelProperty(value = "删除状态(0-正常,1-已删除)") @Schema(description = "删除状态(0-正常,1-已删除)")
private java.lang.Integer delFlag; private java.lang.Integer delFlag;
/**真实姓名*/ /**真实姓名*/
@Excel(name = "真实姓名", width = 15) @Excel(name = "真实姓名", width = 15)
@ApiModelProperty(value = "真实姓名") @Schema(description = "真实姓名")
private java.lang.String realname; private java.lang.String realname;
/**第三方用户uuid*/ /**第三方用户uuid*/
@Excel(name = "第三方用户uuid", width = 15) @Excel(name = "第三方用户uuid", width = 15)
@ApiModelProperty(value = "第三方用户uuid") @Schema(description = "第三方用户uuid")
private java.lang.String thirdUserUuid; private java.lang.String thirdUserUuid;
/**第三方用户账号*/ /**第三方用户账号*/
@Excel(name = "第三方用户账号", width = 15) @Excel(name = "第三方用户账号", width = 15)
@ApiModelProperty(value = "第三方用户账号") @Schema(description = "第三方用户账号")
private java.lang.String thirdUserId; private java.lang.String thirdUserId;
/**创建人*/ /**创建人*/
@Excel(name = "创建人", width = 15) @Excel(name = "创建人", width = 15)

@ -4,8 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -23,47 +22,47 @@ import java.util.Date;
@TableName("sys_third_app_config") @TableName("sys_third_app_config")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="sys_third_app_config对象", description="第三方配置表") @Schema(description="第三方配置表")
public class SysThirdAppConfig { public class SysThirdAppConfig {
/**编号*/ /**编号*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "编号") @Schema(description = "编号")
private String id; private String id;
/**租户id*/ /**租户id*/
@Excel(name = "租户id", width = 15) @Excel(name = "租户id", width = 15)
@ApiModelProperty(value = "租户id") @Schema(description = "租户id")
private Integer tenantId; private Integer tenantId;
/**钉钉/企业微信第三方企业应用标识*/ /**钉钉/企业微信第三方企业应用标识*/
@Excel(name = "钉钉/企业微信第三方企业应用标识", width = 15) @Excel(name = "钉钉/企业微信第三方企业应用标识", width = 15)
@ApiModelProperty(value = "钉钉/企业微信第三方企业应用标识") @Schema(description = "钉钉/企业微信第三方企业应用标识")
private String agentId; private String agentId;
/**钉钉/企业微信 应用id*/ /**钉钉/企业微信 应用id*/
@Excel(name = "钉钉/企业微信 应用id", width = 15) @Excel(name = "钉钉/企业微信 应用id", width = 15)
@ApiModelProperty(value = "钉钉/企业微信 应用id") @Schema(description = "钉钉/企业微信 应用id")
private String clientId; private String clientId;
/**钉钉/企业微信应用id对应的秘钥*/ /**钉钉/企业微信应用id对应的秘钥*/
@Excel(name = "钉钉/企业微信应用id对应的秘钥", width = 15) @Excel(name = "钉钉/企业微信应用id对应的秘钥", width = 15)
@ApiModelProperty(value = "钉钉/企业微信应用id对应的秘钥") @Schema(description = "钉钉/企业微信应用id对应的秘钥")
private String clientSecret; private String clientSecret;
/**钉钉企业id*/ /**钉钉企业id*/
@Excel(name = "钉钉企业id", width = 15) @Excel(name = "钉钉企业id", width = 15)
@ApiModelProperty(value = "钉钉企业id") @Schema(description = "钉钉企业id")
private String corpId; private String corpId;
/**第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)*/ /**第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)*/
@Excel(name = "第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)", width = 15) @Excel(name = "第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)", width = 15)
@ApiModelProperty(value = "第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)") @Schema(description = "第三方类别(dingtalk 钉钉 wechat_enterprise 企业微信)")
private String thirdType; private String thirdType;
/**是否启用(0-否,1-是)*/ /**是否启用(0-否,1-是)*/
@Excel(name = "是否启用(0-否,1-是)", width = 15) @Excel(name = "是否启用(0-否,1-是)", width = 15)
@ApiModelProperty(value = "是否启用(0-否,1-是)") @Schema(description = "是否启用(0-否,1-是)")
private Integer status; private Integer status;
/**创建日期*/ /**创建日期*/

@ -4,13 +4,12 @@ import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: * @Description:
@ -18,7 +17,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Date: 2023-02-14 * @Date: 2023-02-14
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="sys_user_position对象", description="用户职位关系表") @Schema(description="用户职位关系表")
@Data @Data
@TableName("sys_user_position") @TableName("sys_user_position")
public class SysUserPosition implements Serializable { public class SysUserPosition implements Serializable {
@ -26,29 +25,29 @@ public class SysUserPosition implements Serializable {
/**主键*/ /**主键*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键") @Schema(description = "主键")
private String id; private String id;
/**用户id*/ /**用户id*/
@Excel(name = "用户id", width = 15) @Excel(name = "用户id", width = 15)
@ApiModelProperty(value = "用户id") @Schema(description = "用户id")
private String userId; private String userId;
/**职位id*/ /**职位id*/
@ApiModelProperty(value = "职位id") @Schema(description = "职位id")
private String positionId; private String positionId;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @Schema(description = "创建人")
private String createBy; private String createBy;
/**创建时间*/ /**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @Schema(description = "创建时间")
private Date createTime; private Date createTime;
/**修改人*/ /**修改人*/
@ApiModelProperty(value = "修改人") @Schema(description = "修改人")
private String updateBy; private String updateBy;
/**修改时间*/ /**修改时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "修改时间") @Schema(description = "修改时间")
private Date updateTime; private Date updateTime;
} }

@ -5,12 +5,11 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -24,40 +23,40 @@ import lombok.experimental.Accessors;
@TableName("sys_user_tenant") @TableName("sys_user_tenant")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_user_tenant对象", description="sys_user_tenant") @Schema(description="sys_user_tenant")
public class SysUserTenant implements Serializable { public class SysUserTenant implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键id*/ /**主键id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id") @Schema(description = "主键id")
private String id; private String id;
/**用户id*/ /**用户id*/
@Excel(name = "用户id", width = 15) @Excel(name = "用户id", width = 15)
@ApiModelProperty(value = "用户id") @Schema(description = "用户id")
private String userId; private String userId;
/**租户id*/ /**租户id*/
@Excel(name = "租户id", width = 15) @Excel(name = "租户id", width = 15)
@ApiModelProperty(value = "租户id") @Schema(description = "租户id")
private Integer tenantId; private Integer tenantId;
/**状态(1 正常 2 冻结 3 待审核 4 拒绝)*/ /**状态(1 正常 2 冻结 3 待审核 4 拒绝)*/
@Excel(name = "状态(1 正常 2 冻结 3 待审核 4 拒绝)", width = 15) @Excel(name = "状态(1 正常 2 冻结 3 待审核 4 拒绝)", width = 15)
@ApiModelProperty(value = "状态(1 正常 2 冻结 3 待审核 4 拒绝)") @Schema(description = "状态(1 正常 2 冻结 3 待审核 4 拒绝)")
private String status; private String status;
/**创建人登录名称*/ /**创建人登录名称*/
@ApiModelProperty(value = "创建人登录名称") @Schema(description = "创建人登录名称")
private String createBy; private String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private Date createTime; private Date createTime;
/**更新人登录名称*/ /**更新人登录名称*/
@ApiModelProperty(value = "更新人登录名称") @Schema(description = "更新人登录名称")
private String updateBy; private String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期") @Schema(description = "更新日期")
private Date updateTime; private Date updateTime;
} }

@ -1,8 +1,8 @@
package org.jeecg.modules.system.model; package org.jeecg.modules.system.model;
import java.io.Serializable; import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
/** /**
@ -13,32 +13,32 @@ import lombok.Data;
* @Version V1.0 * @Version V1.0
*/ */
@Data @Data
@ApiModel(value="重复校验数据模型",description="重复校验数据模型") @Schema(description="重复校验数据模型")
public class DuplicateCheckVo implements Serializable { public class DuplicateCheckVo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@ApiModelProperty(value="表名",name="tableName",example="sys_log") @Schema(description="表名",name="tableName",example="sys_log")
private String tableName; private String tableName;
/** /**
* *
*/ */
@ApiModelProperty(value="字段名",name="fieldName",example="id") @Schema(description="字段名",name="fieldName",example="id")
private String fieldName; private String fieldName;
/** /**
* *
*/ */
@ApiModelProperty(value="字段值",name="fieldVal",example="1000") @Schema(description="字段值",name="fieldVal",example="1000")
private String fieldVal; private String fieldVal;
/** /**
* ID * ID
*/ */
@ApiModelProperty(value="数据ID",name="dataId",example="2000") @Schema(description="数据ID",name="dataId",example="2000")
private String dataId; private String dataId;
} }

@ -1,7 +1,7 @@
package org.jeecg.modules.system.model; package org.jeecg.modules.system.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.v3.oas.annotations.media.Schema;
/** /**
* *
@ -9,15 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
* @Author scott * @Author scott
* @since 2019-01-18 * @since 2019-01-18
*/ */
@ApiModel(value="登录对象", description="登录对象") @Schema(description="登录对象")
public class SysLoginModel { public class SysLoginModel {
@ApiModelProperty(value = "账号") @Schema(description = "账号")
private String username; private String username;
@ApiModelProperty(value = "密码") @Schema(description = "密码")
private String password; private String password;
@ApiModelProperty(value = "验证码") @Schema(description = "验证码")
private String captcha; private String captcha;
@ApiModelProperty(value = "验证码key") @Schema(description = "验证码key")
private String checkKey; private String checkKey;
public String getUsername() { public String getUsername() {

@ -1,7 +1,6 @@
package org.jeecg.modules.system.service; package org.jeecg.modules.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;
import org.jeecg.modules.system.entity.SysThirdAppConfig; import org.jeecg.modules.system.entity.SysThirdAppConfig;
import java.util.List; import java.util.List;

@ -1,7 +1,7 @@
package org.jeecg.modules.system.vo; package org.jeecg.modules.system.vo;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@ -45,7 +45,7 @@ public class SysCommentVO implements Serializable {
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @Schema(description = "创建日期")
private Date createTime; private Date createTime;
/** /**

@ -34,8 +34,8 @@ import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
<#assign bpm_flag=false> <#assign bpm_flag=false>
@ -55,7 +55,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -73,7 +73,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -104,7 +104,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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}) {
@ -122,7 +122,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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}) {
@ -137,7 +137,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -152,7 +152,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -167,7 +167,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);

@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -31,7 +31,7 @@ import lombok.experimental.Accessors;
@TableName("${tableName}") @TableName("${tableName}")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -42,8 +42,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
<#assign bpm_flag=false> <#assign bpm_flag=false>
@ -59,7 +59,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -81,7 +81,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -100,7 +100,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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) {
@ -120,7 +120,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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) {
@ -141,7 +141,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -156,7 +156,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -171,7 +171,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -190,7 +190,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${sub.ftlDescription}通过主表ID查询") //@AutoLog(value = "${sub.ftlDescription}通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}主表ID查询", notes="${sub.ftlDescription}-通主表ID查询") @Operation(summary = "${sub.ftlDescription}-通主表ID查询")
@GetMapping(value = "/query${sub.entityName}ByMainId") @GetMapping(value = "/query${sub.entityName}ByMainId")
public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) { public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) {
List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id); List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id);

@ -13,8 +13,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -22,7 +22,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {

@ -13,8 +13,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -23,7 +23,7 @@ import java.io.UnsupportedEncodingException;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Schema(description="${subTab.ftlDescription}")
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {

@ -13,8 +13,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']> <#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']>
@ -67,7 +67,7 @@ public class ${entityName}Page {
@Dict(${list_field_dictCode?substring(2)}) @Dict(${list_field_dictCode?substring(2)})
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
<#if po.fieldDbType=='Blob'> <#if po.fieldDbType=='Blob'>
private java.lang.String ${po.fieldName}String; private java.lang.String ${po.fieldName}String;
<#else> <#else>
@ -77,7 +77,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -33,8 +33,8 @@ import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -50,7 +50,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
<#assign pidFieldName = po.fieldName> <#assign pidFieldName = po.fieldName>
</#if> </#if>
</#list> </#list>
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -68,7 +68,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/rootList") @GetMapping(value = "/rootList")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -164,7 +164,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-获取子数据") //@AutoLog(value = "${tableVo.ftlDescription}-获取子数据")
@ApiOperation(value="${tableVo.ftlDescription}-获取子数据", notes="${tableVo.ftlDescription}-获取子数据") @Operation(summary = "${tableVo.ftlDescription}-获取子数据")
@GetMapping(value = "/childList") @GetMapping(value = "/childList")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},HttpServletRequest req) { public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},HttpServletRequest req) {
QueryWrapper<${entityName}> queryWrapper = QueryGenerator.initQueryWrapper(${entityName?uncap_first}, req.getParameterMap()); QueryWrapper<${entityName}> queryWrapper = QueryGenerator.initQueryWrapper(${entityName?uncap_first}, req.getParameterMap());
@ -182,7 +182,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-批量获取子数据") //@AutoLog(value = "${tableVo.ftlDescription}-批量获取子数据")
@ApiOperation(value="${tableVo.ftlDescription}-批量获取子数据", notes="${tableVo.ftlDescription}-批量获取子数据") @Operation(summary = "${tableVo.ftlDescription}-批量获取子数据")
@GetMapping("/getChildListBatch") @GetMapping("/getChildListBatch")
public Result getChildListBatch(@RequestParam("parentIds") String parentIds) { public Result getChildListBatch(@RequestParam("parentIds") String parentIds) {
try { try {
@ -206,7 +206,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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}) {
@ -221,7 +221,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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}) {
@ -236,7 +236,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -251,7 +251,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -266,7 +266,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -27,7 +27,7 @@ import java.io.UnsupportedEncodingException;
*/ */
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -24,8 +24,8 @@ import ${bussiPackage}.${entityPackage}.service.I${entityName}Service;
<#list subTables as sub> <#list subTables as sub>
import ${bussiPackage}.${entityPackage}.service.I${sub.entityName}Service; import ${bussiPackage}.${entityPackage}.service.I${sub.entityName}Service;
</#list> </#list>
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.SecurityUtils; import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.system.vo.LoginUser;
@ -53,7 +53,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -79,7 +79,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -109,7 +109,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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}) {
@ -123,7 +123,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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}) {
@ -137,7 +137,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -151,7 +151,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -188,7 +188,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
//@AutoLog(value = "${sub.ftlDescription}-通过主表ID查询") //@AutoLog(value = "${sub.ftlDescription}-通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}-通过主表ID查询", notes="${sub.ftlDescription}-通过主表ID查询") @Operation(summary = "${sub.ftlDescription}-通过主表ID查询")
@GetMapping(value = "/list${sub.entityName}ByMainId") @GetMapping(value = "/list${sub.entityName}ByMainId")
public Result<IPage<${sub.entityName}>> list${sub.entityName}ByMainId(${sub.entityName} ${sub.entityName?uncap_first}, public Result<IPage<${sub.entityName}>> list${sub.entityName}ByMainId(${sub.entityName} ${sub.entityName?uncap_first},
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@ -206,7 +206,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-添加") @AutoLog(value = "${sub.ftlDescription}-添加")
@ApiOperation(value="${sub.ftlDescription}-添加", notes="${sub.ftlDescription}-添加") @Operation(summary = "${sub.ftlDescription}-添加")
@PostMapping(value = "/add${sub.entityName}") @PostMapping(value = "/add${sub.entityName}")
public Result<String> add${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) { public Result<String> add${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) {
${sub.entityName?uncap_first}Service.save(${sub.entityName?uncap_first}); ${sub.entityName?uncap_first}Service.save(${sub.entityName?uncap_first});
@ -219,7 +219,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-编辑") @AutoLog(value = "${sub.ftlDescription}-编辑")
@ApiOperation(value="${sub.ftlDescription}-编辑", notes="${sub.ftlDescription}-编辑") @Operation(summary = "${sub.ftlDescription}-编辑")
@RequestMapping(value = "/edit${sub.entityName}", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit${sub.entityName}", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) { public Result<String> edit${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) {
${sub.entityName?uncap_first}Service.updateById(${sub.entityName?uncap_first}); ${sub.entityName?uncap_first}Service.updateById(${sub.entityName?uncap_first});
@ -232,7 +232,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-通过id删除") @AutoLog(value = "${sub.ftlDescription}-通过id删除")
@ApiOperation(value="${sub.ftlDescription}-通过id删除", notes="${sub.ftlDescription}-通过id删除") @Operation(summary = "${sub.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete${sub.entityName}") @DeleteMapping(value = "/delete${sub.entityName}")
public Result<String> delete${sub.entityName}(@RequestParam(name="id",required=true) String id) { public Result<String> delete${sub.entityName}(@RequestParam(name="id",required=true) String id) {
${sub.entityName?uncap_first}Service.removeById(id); ${sub.entityName?uncap_first}Service.removeById(id);
@ -245,7 +245,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-批量删除") @AutoLog(value = "${sub.ftlDescription}-批量删除")
@ApiOperation(value="${sub.ftlDescription}-批量删除", notes="${sub.ftlDescription}-批量删除") @Operation(summary = "${sub.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch${sub.entityName}") @DeleteMapping(value = "/deleteBatch${sub.entityName}")
public Result<String> deleteBatch${sub.entityName}(@RequestParam(name="ids",required=true) String ids) { public Result<String> deleteBatch${sub.entityName}(@RequestParam(name="ids",required=true) String ids) {
this.${sub.entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(","))); this.${sub.entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));

@ -15,8 +15,8 @@ import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -26,7 +26,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -28,7 +28,7 @@ import java.io.UnsupportedEncodingException;
*/ */
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Schema(description="${subTab.ftlDescription}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -44,8 +44,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
<#assign has_multi_query_field=false> <#assign has_multi_query_field=false>
@ -60,7 +60,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -82,7 +82,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -113,7 +113,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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) {
@ -130,7 +130,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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) {
@ -151,7 +151,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -166,7 +166,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -181,7 +181,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -200,7 +200,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${sub.ftlDescription}-通过主表ID查询") //@AutoLog(value = "${sub.ftlDescription}-通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}-通过主表ID查询", notes="${sub.ftlDescription}-通过主表ID查询") @Operation(summary = "${sub.ftlDescription}-通过主表ID查询")
@GetMapping(value = "/query${sub.entityName}ByMainId") @GetMapping(value = "/query${sub.entityName}ByMainId")
public Result<IPage<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) { public Result<IPage<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) {
List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id); List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id);

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {

@ -16,8 +16,8 @@ import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -26,7 +26,7 @@ import java.io.UnsupportedEncodingException;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Schema(description="${subTab.ftlDescription}")
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {

@ -15,8 +15,8 @@ import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea; import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils; import org.jeecg.common.util.SpringContextUtils;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']> <#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']>
@ -72,7 +72,7 @@ public class ${entityName}Page {
</#if> </#if>
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
<#if po.fieldDbType=='Blob'> <#if po.fieldDbType=='Blob'>
private java.lang.String ${po.fieldName}String; private java.lang.String ${po.fieldName}String;
<#elseif po.classType=='pca'> <#elseif po.classType=='pca'>
@ -110,7 +110,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -44,8 +44,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -69,7 +69,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -91,7 +91,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -122,7 +122,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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) {
@ -142,7 +142,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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) {
@ -163,7 +163,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -178,7 +178,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -193,7 +193,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -212,7 +212,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${sub.ftlDescription}通过主表ID查询") //@AutoLog(value = "${sub.ftlDescription}通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}主表ID查询", notes="${sub.ftlDescription}-通主表ID查询") @Operation(summary = "${sub.ftlDescription}-通主表ID查询")
@GetMapping(value = "/query${sub.entityName}ByMainId") @GetMapping(value = "/query${sub.entityName}ByMainId")
public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) { public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) {
List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id); List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id);

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -25,7 +25,7 @@ import java.io.UnsupportedEncodingException;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Schema(description="${subTab.ftlDescription}")
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {

@ -15,8 +15,8 @@ import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea; import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils; import org.jeecg.common.util.SpringContextUtils;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']> <#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']>
@ -72,7 +72,7 @@ public class ${entityName}Page {
@Dict(${list_field_dictCode?substring(2)}) @Dict(${list_field_dictCode?substring(2)})
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
<#if po.fieldDbType=='Blob'> <#if po.fieldDbType=='Blob'>
private java.lang.String ${po.fieldName}String; private java.lang.String ${po.fieldName}String;
<#elseif po.classType=='pca'> <#elseif po.classType=='pca'>
@ -110,7 +110,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -44,8 +44,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
<#assign has_multi_query_field=false> <#assign has_multi_query_field=false>
@ -60,7 +60,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackagePath}/${entityName?uncap_first}") @RequestMapping("/${entityPackagePath}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -82,7 +82,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first}, public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -113,7 +113,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${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) {
@ -130,7 +130,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${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) {
@ -151,7 +151,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${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) {
@ -166,7 +166,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${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) {
@ -181,7 +181,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) { public Result<${entityName}> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -200,7 +200,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
//@AutoLog(value = "${sub.ftlDescription}通过主表ID查询") //@AutoLog(value = "${sub.ftlDescription}通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}主表ID查询", notes="${sub.ftlDescription}-通主表ID查询") @Operation(summary = "${sub.ftlDescription}-通主表ID查询")
@GetMapping(value = "/query${sub.entityName}ByMainId") @GetMapping(value = "/query${sub.entityName}ByMainId")
public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) { public Result<List<${sub.entityName}>> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) {
List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id); List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id);

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {

@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
/** /**
@ -25,7 +25,7 @@ import java.io.UnsupportedEncodingException;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@ApiModel(value="${subTab.tableName}对象", description="${subTab.ftlDescription}") @Schema(description="${subTab.ftlDescription}")
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {

@ -15,8 +15,8 @@ import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict; import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea; import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils; import org.jeecg.common.util.SpringContextUtils;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']> <#assign excel_ignore_arr=['createBy','createTime','updateBy','updateTime','sysOrgCode']>
@ -72,7 +72,7 @@ public class ${entityName}Page {
@Dict(${list_field_dictCode?substring(2)}) @Dict(${list_field_dictCode?substring(2)})
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
<#if po.fieldDbType=='Blob'> <#if po.fieldDbType=='Blob'>
private java.lang.String ${po.fieldName}String; private java.lang.String ${po.fieldName}String;
<#elseif po.classType=='pca'> <#elseif po.classType=='pca'>
@ -110,7 +110,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -32,8 +32,8 @@ import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -42,7 +42,7 @@ import io.swagger.annotations.ApiOperation;
* @Version: V1.0 * @Version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackage}/${entityName?uncap_first}") @RequestMapping("/${entityPackage}/${entityName?uncap_first}")
public class ${entityName}Controller extends JeecgController<${entityName}, I${entityName}Service> { public class ${entityName}Controller extends JeecgController<${entityName}, I${entityName}Service> {
@ -59,7 +59,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") @AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(${entityName} ${entityName?uncap_first}, public Result<?> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -78,7 +78,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${tableVo.ftlDescription}-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody ${entityName} ${entityName?uncap_first}) { public Result<?> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
${entityName?uncap_first}Service.save(${entityName?uncap_first}); ${entityName?uncap_first}Service.save(${entityName?uncap_first});
@ -92,7 +92,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${tableVo.ftlDescription}-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody ${entityName} ${entityName?uncap_first}) { public Result<?> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
${entityName?uncap_first}Service.updateById(${entityName?uncap_first}); ${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
@ -106,7 +106,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${tableVo.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
${entityName?uncap_first}Service.removeById(id); ${entityName?uncap_first}Service.removeById(id);
@ -120,7 +120,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${tableVo.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> 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(",")));
@ -134,7 +134,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") @AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);

@ -6,8 +6,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
@ -25,7 +25,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@TableName("${tableName}") @TableName("${tableName}")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} { public class ${entityName} {
<#list originalColumns as po> <#list originalColumns as po>
@ -47,7 +47,7 @@ public class ${entityName} {
@Excel(name = "${po.filedComment}", width = 15) @Excel(name = "${po.filedComment}", width = 15)
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -35,8 +35,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
/** /**
@ -45,7 +45,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackage}/${entityName?uncap_first}") @RequestMapping("/${entityPackage}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -63,7 +63,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") @AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(${entityName} ${entityName?uncap_first}, public Result<?> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -82,7 +82,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${tableVo.ftlDescription}-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody ${entityName} ${entityName?uncap_first}) { public Result<?> add(@RequestBody ${entityName} ${entityName?uncap_first}) {
${entityName?uncap_first}Service.save(${entityName?uncap_first}); ${entityName?uncap_first}Service.save(${entityName?uncap_first});
@ -96,7 +96,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${tableVo.ftlDescription}-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody ${entityName} ${entityName?uncap_first}) { public Result<?> edit(@RequestBody ${entityName} ${entityName?uncap_first}) {
${entityName?uncap_first}Service.updateById(${entityName?uncap_first}); ${entityName?uncap_first}Service.updateById(${entityName?uncap_first});
@ -109,7 +109,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${tableVo.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
${entityName?uncap_first}Service.removeById(id); ${entityName?uncap_first}Service.removeById(id);
@ -123,7 +123,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${tableVo.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> 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(",")));
@ -137,7 +137,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") @AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);

@ -9,8 +9,7 @@ import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -20,7 +19,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -43,7 +42,7 @@ public class ${entityName} implements Serializable {
@Excel(name = "${po.filedComment}", width = 15) @Excel(name = "${po.filedComment}", width = 15)
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -41,8 +41,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
/** /**
@ -51,7 +51,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackage}/${entityName?uncap_first}") @RequestMapping("/${entityPackage}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -73,7 +73,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") @AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(${entityName} ${entityName?uncap_first}, public Result<?> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -92,7 +92,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${tableVo.ftlDescription}-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) { public Result<?> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
${entityName} ${entityName?uncap_first} = new ${entityName}(); ${entityName} ${entityName?uncap_first} = new ${entityName}();
@ -108,7 +108,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-编辑", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${tableVo.ftlDescription}-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) { public Result<?> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
${entityName} ${entityName?uncap_first} = new ${entityName}(); ${entityName} ${entityName?uncap_first} = new ${entityName}();
@ -124,7 +124,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${tableVo.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
${entityName?uncap_first}Service.delMain(id); ${entityName?uncap_first}Service.delMain(id);
@ -138,7 +138,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${tableVo.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> 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(",")));
@ -152,7 +152,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") @AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -167,7 +167,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-通过主表ID查询") @AutoLog(value = "${sub.ftlDescription}-通过主表ID查询")
@ApiOperation(value="${sub.ftlDescription}-通过主表ID查询", notes="${tableVo.ftlDescription}-通过主表ID查询") @Operation(summary = "${tableVo.ftlDescription}-通过主表ID查询")
@GetMapping(value = "/query${sub.entityName}ByMainId") @GetMapping(value = "/query${sub.entityName}ByMainId")
public Result<?> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) { public Result<?> query${sub.entityName}ListByMainId(@RequestParam(name="id",required=true) String id) {
List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id); List<${sub.entityName}> ${sub.entityName?uncap_first}List = ${sub.entityName?uncap_first}Service.selectByMainId(id);

@ -8,8 +8,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -19,7 +19,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -37,7 +37,7 @@ public class ${entityName} implements Serializable {
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -11,8 +11,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${subTab.ftlDescription} * @Description: ${subTab.ftlDescription}
@ -22,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -47,7 +46,7 @@ public class ${subTab.entityName} implements Serializable {
</#if> </#if>
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -11,8 +11,8 @@ import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#list originalColumns as po> <#list originalColumns as po>
@ -47,7 +47,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -40,8 +40,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
/** /**
@ -50,7 +50,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
* @Date: ${.now?string["yyyy-MM-dd"]} * @Date: ${.now?string["yyyy-MM-dd"]}
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="${tableVo.ftlDescription}") @Tag(name="${tableVo.ftlDescription}")
@RestController @RestController
@RequestMapping("/${entityPackage}/${entityName?uncap_first}") @RequestMapping("/${entityPackage}/${entityName?uncap_first}")
@Slf4j @Slf4j
@ -72,7 +72,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询") @AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询") @Operation(summary = "${tableVo.ftlDescription}-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(${entityName} ${entityName?uncap_first}, public Result<?> queryPageList(${entityName} ${entityName?uncap_first},
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -91,7 +91,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-添加") @AutoLog(value = "${tableVo.ftlDescription}-添加")
@ApiOperation(value="${tableVo.ftlDescription}-添加", notes="${tableVo.ftlDescription}-添加") @Operation(summary = "${tableVo.ftlDescription}-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) { public Result<?> add(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
${entityName} ${entityName?uncap_first} = new ${entityName}(); ${entityName} ${entityName?uncap_first} = new ${entityName}();
@ -107,7 +107,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-编辑") @AutoLog(value = "${tableVo.ftlDescription}-编辑")
@ApiOperation(value="${tableVo.ftlDescription}-", notes="${tableVo.ftlDescription}-编辑") @Operation(summary = "${tableVo.ftlDescription}-编辑")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) { public Result<?> edit(@RequestBody ${entityName}Page ${entityName?uncap_first}Page) {
${entityName} ${entityName?uncap_first} = new ${entityName}(); ${entityName} ${entityName?uncap_first} = new ${entityName}();
@ -123,7 +123,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id删除") @AutoLog(value = "${tableVo.ftlDescription}-通过id删除")
@ApiOperation(value="${tableVo.ftlDescription}-通过id删除", notes="${tableVo.ftlDescription}-通过id删除") @Operation(summary = "${tableVo.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete") @DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) { public Result<?> delete(@RequestParam(name="id",required=true) String id) {
${entityName?uncap_first}Service.delMain(id); ${entityName?uncap_first}Service.delMain(id);
@ -137,7 +137,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-批量删除") @AutoLog(value = "${tableVo.ftlDescription}-批量删除")
@ApiOperation(value="${tableVo.ftlDescription}-批量删除", notes="${tableVo.ftlDescription}-批量删除") @Operation(summary = "${tableVo.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch") @DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { public Result<?> 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(",")));
@ -151,7 +151,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${tableVo.ftlDescription}-通过id查询") @AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询") @Operation(summary = "${tableVo.ftlDescription}-通过id查询")
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id); ${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
@ -168,7 +168,7 @@ public class ${entityName}Controller {
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-通过主表id查询") @AutoLog(value = "${sub.ftlDescription}-通过主表id查询")
@ApiOperation(value="${sub.ftlDescription}-通过主表id查询", notes="${sub.ftlDescription}-通过主表id查询") @Operation(summary = "${sub.ftlDescription}-通过主表id查询")
<#-- update-begin--Author:kangxiaolin Date:20190905 for[442]主子表分开维护,生成的代码子表的分页改为真实的分页-------------------- --> <#-- update-begin--Author:kangxiaolin Date:20190905 for[442]主子表分开维护,生成的代码子表的分页改为真实的分页-------------------- -->
@GetMapping(value = "/list${sub.entityName}ByMainId") @GetMapping(value = "/list${sub.entityName}ByMainId")
public Result<?> list${sub.entityName}ByMainId(${sub.entityName} ${sub.entityName?uncap_first}, public Result<?> list${sub.entityName}ByMainId(${sub.entityName} ${sub.entityName?uncap_first},
@ -208,7 +208,7 @@ ${sub.entityName?uncap_first}.get${key}()!=null<#rt/>
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-添加") @AutoLog(value = "${sub.ftlDescription}-添加")
@ApiOperation(value="${sub.ftlDescription}-添加", notes="${sub.ftlDescription}-添加") @Operation(summary = "${sub.ftlDescription}-添加")
@PostMapping(value = "/add${sub.entityName}") @PostMapping(value = "/add${sub.entityName}")
public Result<?> add${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) { public Result<?> add${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) {
${sub.entityName?uncap_first}Service.save(${sub.entityName?uncap_first}); ${sub.entityName?uncap_first}Service.save(${sub.entityName?uncap_first});
@ -222,7 +222,7 @@ ${sub.entityName?uncap_first}.get${key}()!=null<#rt/>
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-编辑") @AutoLog(value = "${sub.ftlDescription}-编辑")
@ApiOperation(value="${sub.ftlDescription}-编辑", notes="${sub.ftlDescription}-编辑") @Operation(summary = "${sub.ftlDescription}-编辑")
@RequestMapping(value = "/edit${sub.entityName}", method = {RequestMethod.PUT,RequestMethod.POST}) @RequestMapping(value = "/edit${sub.entityName}", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<?> edit${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) { public Result<?> edit${sub.entityName}(@RequestBody ${sub.entityName} ${sub.entityName?uncap_first}) {
${sub.entityName?uncap_first}Service.updateById(${sub.entityName?uncap_first}); ${sub.entityName?uncap_first}Service.updateById(${sub.entityName?uncap_first});
@ -236,7 +236,7 @@ ${sub.entityName?uncap_first}.get${key}()!=null<#rt/>
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-通过id删除") @AutoLog(value = "${sub.ftlDescription}-通过id删除")
@ApiOperation(value="${sub.ftlDescription}-通过id删除", notes="${sub.ftlDescription}-通过id删除") @Operation(summary = "${sub.ftlDescription}-通过id删除")
@DeleteMapping(value = "/delete${sub.entityName}") @DeleteMapping(value = "/delete${sub.entityName}")
public Result<?> delete${sub.entityName}(@RequestParam(name = "id", required = true) String id) { public Result<?> delete${sub.entityName}(@RequestParam(name = "id", required = true) String id) {
${sub.entityName?uncap_first}Service.removeById(id); ${sub.entityName?uncap_first}Service.removeById(id);
@ -250,7 +250,7 @@ ${sub.entityName?uncap_first}.get${key}()!=null<#rt/>
* @return * @return
*/ */
@AutoLog(value = "${sub.ftlDescription}-批量删除") @AutoLog(value = "${sub.ftlDescription}-批量删除")
@ApiOperation(value="${sub.ftlDescription}-批量删除", notes="${sub.ftlDescription}-批量删除") @Operation(summary = "${sub.ftlDescription}-批量删除")
@DeleteMapping(value = "/deleteBatch${sub.entityName}") @DeleteMapping(value = "/deleteBatch${sub.entityName}")
public Result<?> deleteBatch${sub.entityName}(@RequestParam(name = "ids", required = true) String ids) { public Result<?> deleteBatch${sub.entityName}(@RequestParam(name = "ids", required = true) String ids) {
if (ids == null || "".equals(ids.trim())) { if (ids == null || "".equals(ids.trim())) {

@ -8,8 +8,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -19,7 +19,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${tableName}") @TableName("${tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName} implements Serializable { public class ${entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -37,7 +37,7 @@ public class ${entityName} implements Serializable {
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -10,8 +10,8 @@ import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${subTab.ftlDescription} * @Description: ${subTab.ftlDescription}
@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty;
*/ */
@Data @Data
@TableName("${subTab.tableName}") @TableName("${subTab.tableName}")
@ApiModel(value="${tableName}对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${subTab.entityName} implements Serializable { public class ${subTab.entityName} implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -46,7 +46,7 @@ public class ${subTab.entityName} implements Serializable {
</#if> </#if>
</#if> </#if>
</#if> </#if>
@ApiModelProperty(value = "${po.filedComment}") @Schema(description = "${po.filedComment}")
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName}; private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#list> </#list>
} }

@ -10,8 +10,8 @@ import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection; import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiModelProperty;
/** /**
* @Description: ${tableVo.ftlDescription} * @Description: ${tableVo.ftlDescription}
@ -20,7 +20,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ApiModel(value="${tableName}Page对象", description="${tableVo.ftlDescription}") @Schema(description="${tableVo.ftlDescription}")
public class ${entityName}Page { public class ${entityName}Page {
<#list originalColumns as po> <#list originalColumns as po>
@ -46,7 +46,7 @@ public class ${entityName}Page {
<#list subTables as sub> <#list subTables as sub>
@ExcelCollection(name="${sub.ftlDescription}") @ExcelCollection(name="${sub.ftlDescription}")
@ApiModelProperty(value = "${sub.ftlDescription}") @Schema(description = "${sub.ftlDescription}")
private List<${sub.entityName}> ${sub.entityName?uncap_first}List; private List<${sub.entityName}> ${sub.entityName?uncap_first}List;
</#list> </#list>

@ -1,160 +1,160 @@
package org.jeecg.handler.swagger; //package org.jeecg.handler.swagger;
//
import cn.hutool.core.util.ArrayUtil; //import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.ObjectUtil; //import cn.hutool.core.util.ObjectUtil;
import com.alibaba.nacos.api.naming.NamingFactory; //import com.alibaba.nacos.api.naming.NamingFactory;
import com.alibaba.nacos.api.naming.NamingService; //import com.alibaba.nacos.api.naming.NamingService;
import com.alibaba.nacos.api.naming.pojo.Instance; //import com.alibaba.nacos.api.naming.pojo.Instance;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.gateway.route.RouteLocator; //import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.context.annotation.Primary; //import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component; //import org.springframework.stereotype.Component;
//
import springfox.documentation.swagger.web.SwaggerResource; //import springfox.documentation.swagger.web.SwaggerResource;
import springfox.documentation.swagger.web.SwaggerResourcesProvider; //import springfox.documentation.swagger.web.SwaggerResourcesProvider;
//
import java.util.*; //import java.util.*;
//
/** ///**
* swagger // * 聚合各个服务的swagger接口
* @author zyf // * @author zyf
* @date: 2022/4/21 10:55 // * @date: 2022/4/21 10:55
*/ // */
@Component //@Component
@Slf4j //@Slf4j
@Primary //@Primary
public class MySwaggerResourceProvider implements SwaggerResourcesProvider { //public class MySwaggerResourceProvider implements SwaggerResourcesProvider {
/** // /**
* swagger2url // * swagger2默认的url后缀
*/ // */
private static final String SWAGGER2URL = "/v2/api-docs"; // private static final String SWAGGER2URL = "/v2/api-docs";
//
/** // /**
* // * 网关路由
*/ // */
private final RouteLocator routeLocator; // private final RouteLocator routeLocator;
/** // /**
* Nacos // * Nacos名字服务
*/ // */
private NamingService naming; // private NamingService naming;
//
/** // /**
* nacos // * nacos服务地址
*/ // */
@Value("${spring.cloud.nacos.discovery.server-addr}") // @Value("${spring.cloud.nacos.discovery.server-addr}")
private String serverAddr; // private String serverAddr;
/** // /**
* nacos namespace // * nacos namespace
*/ // */
@Value("${spring.cloud.nacos.discovery.namespace:#{null}}") // @Value("${spring.cloud.nacos.discovery.namespace:#{null}}")
private String namespace; // private String namespace;
//
/** // /**
* nacos groupName // * nacos groupName
*/ // */
@Value("${spring.cloud.nacos.config.group:DEFAULT_GROUP:#{null}}") // @Value("${spring.cloud.nacos.config.group:DEFAULT_GROUP:#{null}}")
private String group; // private String group;
//
/** // /**
* nacos username // * nacos username
*/ // */
@Value("${spring.cloud.nacos.discovery.username:#{null}}") // @Value("${spring.cloud.nacos.discovery.username:#{null}}")
private String username; // private String username;
/** // /**
* nacos password // * nacos password
*/ // */
@Value("${spring.cloud.nacos.discovery.password:#{null}}") // @Value("${spring.cloud.nacos.discovery.password:#{null}}")
private String password; // private String password;
//
/** // /**
* Swagger // * Swagger中需要排除的服务
*/ // */
private String[] excludeServiceIds=new String[]{"jeecg-cloud-monitor"}; // private String[] excludeServiceIds=new String[]{"jeecg-cloud-monitor"};
//
//
/** // /**
* // * 网关应用名称
*/ // */
@Value("${spring.application.name}") // @Value("${spring.application.name}")
private String self; // private String self;
//
@Autowired // @Autowired
public MySwaggerResourceProvider(RouteLocator routeLocator) { // public MySwaggerResourceProvider(RouteLocator routeLocator) {
this.routeLocator = routeLocator; // this.routeLocator = routeLocator;
} // }
//
@Override // @Override
public List<SwaggerResource> get() { // public List<SwaggerResource> get() {
List<SwaggerResource> resources = new ArrayList<>(); // List<SwaggerResource> resources = new ArrayList<>();
List<String> routeHosts = new ArrayList<>(); // List<String> routeHosts = new ArrayList<>();
// 获取所有可用的hostserviceId // // 获取所有可用的hostserviceId
routeLocator.getRoutes().filter(route -> route.getUri().getHost() != null) // routeLocator.getRoutes().filter(route -> route.getUri().getHost() != null)
.filter(route -> !self.equals(route.getUri().getHost())) // .filter(route -> !self.equals(route.getUri().getHost()))
.subscribe(route ->{ // .subscribe(route ->{
//update-begin---author:zyf ---date:20220413 for过滤掉无效路由,避免接口文档报错无法打开 // //update-begin---author:zyf ---date:20220413 for过滤掉无效路由,避免接口文档报错无法打开
boolean hasRoute=checkRoute(route.getId()); // boolean hasRoute=checkRoute(route.getId());
if(hasRoute){ // if(hasRoute){
routeHosts.add(route.getUri().getHost()); // routeHosts.add(route.getUri().getHost());
} // }
//update-end---author:zyf ---date:20220413 for过滤掉无效路由,避免接口文档报错无法打开 // //update-end---author:zyf ---date:20220413 for过滤掉无效路由,避免接口文档报错无法打开
}); // });
//
// 记录已经添加过的server存在同一个应用注册了多个服务在nacos上 // // 记录已经添加过的server存在同一个应用注册了多个服务在nacos上
Set<String> dealed = new HashSet<>(); // Set<String> dealed = new HashSet<>();
routeHosts.forEach(instance -> { // routeHosts.forEach(instance -> {
// 拼接url // // 拼接url
String url = "/" + instance.toLowerCase() + SWAGGER2URL; // String url = "/" + instance.toLowerCase() + SWAGGER2URL;
if (!dealed.contains(url)) { // if (!dealed.contains(url)) {
dealed.add(url); // dealed.add(url);
log.info(" Gateway add SwaggerResource: {}",url); // log.info(" Gateway add SwaggerResource: {}",url);
SwaggerResource swaggerResource = new SwaggerResource(); // SwaggerResource swaggerResource = new SwaggerResource();
swaggerResource.setUrl(url); // swaggerResource.setUrl(url);
swaggerResource.setSwaggerVersion("2.0"); // swaggerResource.setSwaggerVersion("2.0");
swaggerResource.setName(instance); // swaggerResource.setName(instance);
//Swagger排除不展示的服务 // //Swagger排除不展示的服务
if(!ArrayUtil.contains(excludeServiceIds,instance)){ // if(!ArrayUtil.contains(excludeServiceIds,instance)){
resources.add(swaggerResource); // resources.add(swaggerResource);
} // }
} // }
}); // });
return resources; // return resources;
} // }
//
/** // /**
* nacos // * 检测nacos中是否有健康实例
* @param routeId // * @param routeId
* @return // * @return
*/ // */
private Boolean checkRoute(String routeId) { // private Boolean checkRoute(String routeId) {
Boolean hasRoute = false; // Boolean hasRoute = false;
try { // try {
//修复使用带命名空间启动网关swagger看不到接口文档的问题 // //修复使用带命名空间启动网关swagger看不到接口文档的问题
Properties properties=new Properties(); // Properties properties=new Properties();
properties.setProperty("serverAddr",serverAddr); // properties.setProperty("serverAddr",serverAddr);
if(namespace!=null && !"".equals(namespace)){ // if(namespace!=null && !"".equals(namespace)){
log.info("nacos.discovery.namespace = {}", namespace); // log.info("nacos.discovery.namespace = {}", namespace);
properties.setProperty("namespace",namespace); // properties.setProperty("namespace",namespace);
} // }
if(username!=null && !"".equals(username)){ // if(username!=null && !"".equals(username)){
properties.setProperty("username",username); // properties.setProperty("username",username);
} // }
if(password!=null && !"".equals(password)){ // if(password!=null && !"".equals(password)){
properties.setProperty("password",password); // properties.setProperty("password",password);
} // }
//【issues/5115】因swagger文档导致gateway内存溢出 // //【issues/5115】因swagger文档导致gateway内存溢出
if (this.naming == null) { // if (this.naming == null) {
this.naming = NamingFactory.createNamingService(properties); // this.naming = NamingFactory.createNamingService(properties);
} // }
log.info(" config.group : {}", group); // log.info(" config.group : {}", group);
List<Instance> list = this.naming.selectInstances(routeId, group , true); // List<Instance> list = this.naming.selectInstances(routeId, group , true);
if (ObjectUtil.isNotEmpty(list)) { // if (ObjectUtil.isNotEmpty(list)) {
hasRoute = true; // hasRoute = true;
} // }
} catch (Exception e) { // } catch (Exception e) {
e.printStackTrace(); // e.printStackTrace();
} // }
return hasRoute; // return hasRoute;
} // }
} //}

@ -1,52 +1,52 @@
package org.jeecg.handler.swagger; //package org.jeecg.handler.swagger;
//
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus; //import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; //import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger.web.*; //import springfox.documentation.swagger.web.*;
//
import java.util.ArrayList; //import java.util.ArrayList;
import java.util.List; //import java.util.List;
//
/** ///**
* swagger doc.html访 // * swagger聚合接口三个接口都是 doc.html需要访问的接口
* @author zyf // * @author zyf
* @date: 2022/4/21 10:55 // * @date: 2022/4/21 10:55
*/ // */
@RestController //@RestController
@RequestMapping("/swagger-resources") //@RequestMapping("/swagger-resources")
public class SwaggerResourceController { //public class SwaggerResourceController {
private MySwaggerResourceProvider swaggerResourceProvider; // private MySwaggerResourceProvider swaggerResourceProvider;
/** // /**
* swagger // * 生产环境关闭swagger文档
*/ // */
@Value("${knife4j.production:#{null}}") // @Value("${knife4j.production:#{null}}")
private Boolean production; // private Boolean production;
//
@Autowired // @Autowired
public SwaggerResourceController(MySwaggerResourceProvider swaggerResourceProvider) { // public SwaggerResourceController(MySwaggerResourceProvider swaggerResourceProvider) {
this.swaggerResourceProvider = swaggerResourceProvider; // this.swaggerResourceProvider = swaggerResourceProvider;
} // }
//
@RequestMapping(value = "/configuration/security") // @RequestMapping(value = "/configuration/security")
public ResponseEntity<SecurityConfiguration> securityConfiguration() { // public ResponseEntity<SecurityConfiguration> securityConfiguration() {
return new ResponseEntity<>(SecurityConfigurationBuilder.builder().build(), HttpStatus.OK); // return new ResponseEntity<>(SecurityConfigurationBuilder.builder().build(), HttpStatus.OK);
} // }
//
@RequestMapping(value = "/configuration/ui") // @RequestMapping(value = "/configuration/ui")
public ResponseEntity<UiConfiguration> uiConfiguration() { // public ResponseEntity<UiConfiguration> uiConfiguration() {
return new ResponseEntity<>(UiConfigurationBuilder.builder().build(), HttpStatus.OK); // return new ResponseEntity<>(UiConfigurationBuilder.builder().build(), HttpStatus.OK);
} // }
//
@RequestMapping // @RequestMapping
public ResponseEntity<List<SwaggerResource>> swaggerResources() { // public ResponseEntity<List<SwaggerResource>> swaggerResources() {
// 是否开启生产环境屏蔽swagger // // 是否开启生产环境屏蔽swagger
if (production != null && production) { // if (production != null && production) {
return new ResponseEntity<>(new ArrayList<>(), HttpStatus.OK); // return new ResponseEntity<>(new ArrayList<>(), HttpStatus.OK);
} // }
return new ResponseEntity<>(swaggerResourceProvider.get(), HttpStatus.OK); // return new ResponseEntity<>(swaggerResourceProvider.get(), HttpStatus.OK);
} // }
} //}

@ -9,10 +9,9 @@ import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.config.ConfigService; import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.config.listener.Listener; import com.alibaba.nacos.api.config.listener.Listener;
import com.alibaba.nacos.api.exception.NacosException; import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.common.utils.StringUtils;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.jeecg.common.base.BaseMap; import org.jeecg.common.base.BaseMap;
import org.jeecg.common.constant.CacheConstant; import org.jeecg.common.constant.CacheConstant;
import org.jeecg.common.util.RedisUtil; import org.jeecg.common.util.RedisUtil;
@ -32,6 +31,7 @@ import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware; import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.context.annotation.DependsOn; import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import java.net.URI; import java.net.URI;
@ -170,9 +170,9 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware {
dynamicRouteService.add(definition); dynamicRouteService.add(definition);
} }
} }
if(ObjectUtils.isNotEmpty(baseMap)){ if(!ObjectUtils.isEmpty(baseMap)){
String delRouterId = baseMap.get("delRouterId"); String delRouterId = baseMap.get("delRouterId");
if (ObjectUtils.isNotEmpty(delRouterId)) { if (!ObjectUtils.isEmpty(delRouterId)) {
dynamicRouteService.delete(delRouterId); dynamicRouteService.delete(delRouterId);
} }
} }

@ -1,6 +1,8 @@
package org.jeecg.modules.test.feign.controller; package org.jeecg.modules.test.feign.controller;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
@ -8,8 +10,6 @@ import org.jeecg.modules.test.feign.client.JeecgTestClient;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.alibaba.csp.sentinel.annotation.SentinelResource; import com.alibaba.csp.sentinel.annotation.SentinelResource;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/** /**
* *
@ -19,7 +19,7 @@ import io.swagger.annotations.ApiOperation;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sys/test") @RequestMapping("/sys/test")
@Api(tags = "【微服务】单元测试") @Tag(name = "【微服务】单元测试")
public class JeecgTestFeignController { public class JeecgTestFeignController {
@Autowired @Autowired
@ -32,7 +32,7 @@ public class JeecgTestFeignController {
* @return * @return
*/ */
@GetMapping("/getMessage") @GetMapping("/getMessage")
@ApiOperation(value = "测试feign调用demo服务1", notes = "测试feign @SentinelResource熔断写法 | 测试熔断关闭jeecg-demo服务") @Operation(summary = "测试feign @SentinelResource熔断写法 | 测试熔断关闭jeecg-demo服务")
@SentinelResource(value = "test_more_getMessage", fallback = "getDefaultUser") @SentinelResource(value = "test_more_getMessage", fallback = "getDefaultUser")
public Result<String> getMessage(@RequestParam(value = "name", required = false) String name) { public Result<String> getMessage(@RequestParam(value = "name", required = false) String name) {
log.info("---------Feign fallbackFactory优先级高于@SentinelResource-----------------"); log.info("---------Feign fallbackFactory优先级高于@SentinelResource-----------------");
@ -47,7 +47,7 @@ public class JeecgTestFeignController {
* @return * @return
*/ */
@GetMapping("/getMessage2") @GetMapping("/getMessage2")
@ApiOperation(value = "测试feign调用demo服务2", notes = "测试feign fallbackFactory熔断写法 | 测试熔断关闭jeecg-demo服务") @Operation(summary = "测试feign fallbackFactory熔断写法 | 测试熔断关闭jeecg-demo服务")
public Result<String> getMessage2(@RequestParam(value = "name", required = false) String name) { public Result<String> getMessage2(@RequestParam(value = "name", required = false) String name) {
log.info("---------测试 Feign fallbackFactory-----------------"); log.info("---------测试 Feign fallbackFactory-----------------");
String resultMsg = jeecgTestClient.getMessage(" I am jeecg-system 服务节点,呼叫 jeecg-demo!"); String resultMsg = jeecgTestClient.getMessage(" I am jeecg-system 服务节点,呼叫 jeecg-demo!");
@ -56,7 +56,7 @@ public class JeecgTestFeignController {
@GetMapping("/fallback") @GetMapping("/fallback")
@ApiOperation(value = "测试熔断", notes = "测试熔断") @Operation(summary = "测试熔断")
@SentinelResource(value = "test_more_fallback", fallback = "getDefaultUser") @SentinelResource(value = "test_more_fallback", fallback = "getDefaultUser")
public Result<Object> test(@RequestParam(value = "name", required = false) String name) { public Result<Object> test(@RequestParam(value = "name", required = false) String name) {
if (StringUtils.isEmpty(name)) { if (StringUtils.isEmpty(name)) {

@ -3,6 +3,8 @@ package org.jeecg.modules.test.rabbitmq.controller;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.boot.starter.rabbitmq.client.RabbitMqClient; import org.jeecg.boot.starter.rabbitmq.client.RabbitMqClient;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.base.BaseMap; import org.jeecg.common.base.BaseMap;
@ -13,8 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.RandomUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/** /**
@ -24,7 +24,7 @@ import io.swagger.annotations.ApiOperation;
*/ */
@RestController @RestController
@RequestMapping("/sys/test") @RequestMapping("/sys/test")
@Api(tags = "【微服务】MQ单元测试") @Tag(name = "【微服务】MQ单元测试")
public class JeecgMqTestController { public class JeecgMqTestController {
@Autowired @Autowired
@ -39,7 +39,7 @@ public class JeecgMqTestController {
* @return * @return
*/ */
@GetMapping(value = "/rabbitmq") @GetMapping(value = "/rabbitmq")
@ApiOperation(value = "测试rabbitmq", notes = "测试rabbitmq") @Operation(summary = "测试rabbitmq")
public Result<?> rabbitMqClientTest(HttpServletRequest req) { public Result<?> rabbitMqClientTest(HttpServletRequest req) {
//rabbitmq消息队列测试 //rabbitmq消息队列测试
BaseMap map = new BaseMap(); BaseMap map = new BaseMap();
@ -50,7 +50,7 @@ public class JeecgMqTestController {
} }
@GetMapping(value = "/rabbitmq2") @GetMapping(value = "/rabbitmq2")
@ApiOperation(value = "rabbitmq消息总线测试", notes = "rabbitmq消息总线测试") @Operation(summary = "rabbitmq消息总线测试")
public Result<?> rabbitmq2(HttpServletRequest req) { public Result<?> rabbitmq2(HttpServletRequest req) {
//rabbitmq消息总线测试 //rabbitmq消息总线测试

@ -6,9 +6,8 @@ package org.jeecg.modules.test.seata.order.controller;
* @date: 2022/01/24 * @date: 2022/01/24
* @version: V1.0 * @version: V1.0
*/ */
import io.swagger.annotations.Api; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.modules.test.seata.order.dto.PlaceOrderRequest; import org.jeecg.modules.test.seata.order.dto.PlaceOrderRequest;
import org.jeecg.modules.test.seata.order.service.SeataOrderService; import org.jeecg.modules.test.seata.order.service.SeataOrderService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -20,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping("/test/seata/order") @RequestMapping("/test/seata/order")
@Api(tags = "seata测试") @Tag(name = "seata测试")
public class SeataOrderController { public class SeataOrderController {
@Autowired @Autowired
@ -30,7 +29,7 @@ public class SeataOrderController {
* *
*/ */
@PostMapping("/placeOrder") @PostMapping("/placeOrder")
@ApiOperation(value = "自由下单", notes = "自由下单") @Operation(summary = "自由下单")
public String placeOrder(@Validated @RequestBody PlaceOrderRequest request) { public String placeOrder(@Validated @RequestBody PlaceOrderRequest request) {
orderService.placeOrder(request); orderService.placeOrder(request);
return "下单成功"; return "下单成功";
@ -40,7 +39,7 @@ public class SeataOrderController {
* - * -
*/ */
@PostMapping("/test1") @PostMapping("/test1")
@ApiOperation(value = "测试商品库存不足", notes = "测试商品库存不足") @Operation(summary = "测试商品库存不足")
public String test1() { public String test1() {
//商品单价10元库存20个,用户余额50元模拟一次性购买22个。 期望异常回滚 //商品单价10元库存20个,用户余额50元模拟一次性购买22个。 期望异常回滚
orderService.placeOrder(new PlaceOrderRequest(1L, 1L, 22)); orderService.placeOrder(new PlaceOrderRequest(1L, 1L, 22));
@ -51,7 +50,7 @@ public class SeataOrderController {
* - * -
*/ */
@PostMapping("/test2") @PostMapping("/test2")
@ApiOperation(value = "测试用户账户余额不足", notes = "测试用户账户余额不足") @Operation(summary = "测试用户账户余额不足")
public String test2() { public String test2() {
//商品单价10元库存20个用户余额50元模拟一次性购买6个。 期望异常回滚 //商品单价10元库存20个用户余额50元模拟一次性购买6个。 期望异常回滚
orderService.placeOrder(new PlaceOrderRequest(1L, 1L, 6)); orderService.placeOrder(new PlaceOrderRequest(1L, 1L, 6));

@ -1,5 +1,7 @@
package org.jeecg.modules.test.sharding.controller; package org.jeecg.modules.test.sharding.controller;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.base.controller.JeecgController;
@ -10,8 +12,6 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
/** /**
@ -21,7 +21,7 @@ import lombok.extern.slf4j.Slf4j;
* @version: V1.0 * @version: V1.0
*/ */
@Slf4j @Slf4j
@Api(tags = "分库分表测试") @Tag(name = "分库分表测试")
@RestController @RestController
@RequestMapping("/sharding") @RequestMapping("/sharding")
public class JeecgShardingDemoController extends JeecgController<ShardingSysLog, IShardingSysLogService> { public class JeecgShardingDemoController extends JeecgController<ShardingSysLog, IShardingSysLogService> {
@ -33,7 +33,7 @@ public class JeecgShardingDemoController extends JeecgController<ShardingSysLog,
* @return * @return
*/ */
@PostMapping(value = "/test1") @PostMapping(value = "/test1")
@ApiOperation(value = "单库分表插入", notes = "单库分表") @Operation(summary = "单库分表")
public Result<?> add() { public Result<?> add() {
log.info("---------------------------------单库分表插入--------------------------------"); log.info("---------------------------------单库分表插入--------------------------------");
int size = 10; int size = 10;
@ -52,7 +52,7 @@ public class JeecgShardingDemoController extends JeecgController<ShardingSysLog,
* @return * @return
*/ */
@PostMapping(value = "/list1") @PostMapping(value = "/list1")
@ApiOperation(value = "单库分表查询", notes = "单库分表") @Operation(summary = "单库分表")
public Result<?> list() { public Result<?> list() {
return Result.OK(shardingSysLogService.list()); return Result.OK(shardingSysLogService.list());
} }
@ -62,7 +62,7 @@ public class JeecgShardingDemoController extends JeecgController<ShardingSysLog,
* @return * @return
*/ */
@PostMapping(value = "/test2") @PostMapping(value = "/test2")
@ApiOperation(value = "分库分表插入", notes = "分库分表") @Operation(summary = "分库分表")
public Result<?> test2() { public Result<?> test2() {
int start=20; int start=20;
int size=30; int size=30;
@ -81,7 +81,7 @@ public class JeecgShardingDemoController extends JeecgController<ShardingSysLog,
* @return * @return
*/ */
@PostMapping(value = "/list2") @PostMapping(value = "/list2")
@ApiOperation(value = "分库分表查询", notes = "分库分表") @Operation(summary = "分库分表")
public Result<?> list2() { public Result<?> list2() {
return Result.OK(shardingSysLogService.list()); return Result.OK(shardingSysLogService.list());
} }

Loading…
Cancel
Save