Commit bc77af09e03039d633aef275a5e729ef1abb5693

Authored by puhui999
1 parent 15e21210

perf:【INFRA 基础设施】代码生成示例 demo 代码格式化

Showing 22 changed files with 140 additions and 126 deletions
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo02/Demo02CategoryController.java
... ... @@ -80,11 +80,11 @@ public class Demo02CategoryController {
80 80 @PreAuthorize("@ss.hasPermission('infra:demo02-category:export')")
81 81 @ApiAccessLog(operateType = EXPORT)
82 82 public void exportDemo02CategoryExcel(@Valid Demo02CategoryListReqVO listReqVO,
83   - HttpServletResponse response) throws IOException {
  83 + HttpServletResponse response) throws IOException {
84 84 List<Demo02CategoryDO> list = demo02CategoryService.getDemo02CategoryList(listReqVO);
85 85 // 导出 Excel
86 86 ExcelUtils.write(response, "示例分类.xls", "数据", Demo02CategoryRespVO.class,
87   - BeanUtils.toBean(list, Demo02CategoryRespVO.class));
  87 + BeanUtils.toBean(list, Demo02CategoryRespVO.class));
88 88 }
89 89  
90 90 }
91 91 \ No newline at end of file
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo02/vo/Demo02CategorySaveReqVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo;
2 2  
3 3 import io.swagger.v3.oas.annotations.media.Schema;
4   -import lombok.Data;
5   -
6 4 import jakarta.validation.constraints.NotEmpty;
7 5 import jakarta.validation.constraints.NotNull;
  6 +import lombok.Data;
8 7  
9 8 @Schema(description = "管理后台 - 示例分类新增/修改 Request VO")
10 9 @Data
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpPageReqVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo;
2 2  
3   -import lombok.*;
4   -import io.swagger.v3.oas.annotations.media.Schema;
5 3 import cn.iocoder.yudao.framework.common.pojo.PageParam;
  4 +import io.swagger.v3.oas.annotations.media.Schema;
  5 +import lombok.Data;
  6 +import lombok.EqualsAndHashCode;
  7 +import lombok.ToString;
6 8 import org.springframework.format.annotation.DateTimeFormat;
  9 +
7 10 import java.time.LocalDateTime;
8 11  
9 12 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpRespVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo;
2 2  
  3 +import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
  4 +import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
  5 +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  6 +import com.alibaba.excel.annotation.ExcelProperty;
3 7 import io.swagger.v3.oas.annotations.media.Schema;
4   -import lombok.*;
  8 +import lombok.Data;
5 9  
6 10 import java.time.LocalDateTime;
7   -import com.alibaba.excel.annotation.*;
8   -import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
9   -import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
10 11  
11 12 @Schema(description = "管理后台 - 学生 Response VO")
12 13 @Data
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpSaveReqVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo;
2 2  
3 3 import io.swagger.v3.oas.annotations.media.Schema;
4   -import lombok.*;
5   -import jakarta.validation.constraints.*;
  4 +import jakarta.validation.constraints.NotEmpty;
  5 +import jakarta.validation.constraints.NotNull;
  6 +import lombok.Data;
6 7  
7 8 import java.time.LocalDateTime;
8 9  
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/normal/Demo03StudentNormalController.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal;
2 2  
3   -import org.springframework.web.bind.annotation.*;
4   -import jakarta.annotation.Resource;
5   -import org.springframework.validation.annotation.Validated;
6   -import org.springframework.security.access.prepost.PreAuthorize;
7   -import io.swagger.v3.oas.annotations.tags.Tag;
8   -import io.swagger.v3.oas.annotations.Parameter;
9   -import io.swagger.v3.oas.annotations.Operation;
10   -
11   -import jakarta.validation.*;
12   -import jakarta.servlet.http.*;
13   -import java.util.*;
14   -import java.io.IOException;
15   -
  3 +import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
  4 +import cn.iocoder.yudao.framework.common.pojo.CommonResult;
16 5 import cn.iocoder.yudao.framework.common.pojo.PageParam;
17 6 import cn.iocoder.yudao.framework.common.pojo.PageResult;
18   -import cn.iocoder.yudao.framework.common.pojo.CommonResult;
19 7 import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
20   -import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
21   -
22 8 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
23   -
24   -import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
25   -import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
26   -
27   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.*;
28   -import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
  9 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalPageReqVO;
  10 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalRespVO;
  11 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalSaveReqVO;
29 12 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
30 13 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
  14 +import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
31 15 import cn.iocoder.yudao.module.infra.service.demo.demo03.normal.Demo03StudentNormalService;
  16 +import io.swagger.v3.oas.annotations.Operation;
  17 +import io.swagger.v3.oas.annotations.Parameter;
  18 +import io.swagger.v3.oas.annotations.tags.Tag;
  19 +import jakarta.annotation.Resource;
  20 +import jakarta.servlet.http.HttpServletResponse;
  21 +import jakarta.validation.Valid;
  22 +import org.springframework.security.access.prepost.PreAuthorize;
  23 +import org.springframework.validation.annotation.Validated;
  24 +import org.springframework.web.bind.annotation.*;
  25 +
  26 +import java.io.IOException;
  27 +import java.util.List;
  28 +
  29 +import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
  30 +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
32 31  
33 32 @Tag(name = "管理后台 - 学生")
34 33 @RestController
... ... @@ -66,7 +65,7 @@ public class Demo03StudentNormalController {
66 65 @DeleteMapping("/delete-batch")
67 66 @Parameter(name = "ids", description = "编号", required = true)
68 67 @Operation(summary = "批量删除学生")
69   - @PreAuthorize("@ss.hasPermission('infra:demo03-student:delete')")
  68 + @PreAuthorize("@ss.hasPermission('infra:demo03-student:delete')")
70 69 public CommonResult<Boolean> deleteDemo03Student(@RequestParam("ids") List<Long> ids) {
71 70 demo03StudentNormalService.deleteDemo03StudentByIds(ids);
72 71 return success(true);
... ... @@ -94,12 +93,12 @@ public class Demo03StudentNormalController {
94 93 @PreAuthorize("@ss.hasPermission('infra:demo03-student:export')")
95 94 @ApiAccessLog(operateType = EXPORT)
96 95 public void exportDemo03StudentExcel(@Valid Demo03StudentNormalPageReqVO pageReqVO,
97   - HttpServletResponse response) throws IOException {
  96 + HttpServletResponse response) throws IOException {
98 97 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
99 98 List<Demo03StudentDO> list = demo03StudentNormalService.getDemo03StudentPage(pageReqVO).getList();
100 99 // 导出 Excel
101 100 ExcelUtils.write(response, "学生.xls", "数据", Demo03StudentNormalRespVO.class,
102   - BeanUtils.toBean(list, Demo03StudentNormalRespVO.class));
  101 + BeanUtils.toBean(list, Demo03StudentNormalRespVO.class));
103 102 }
104 103  
105 104 // ==================== 子表(学生课程) ====================
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalPageReqVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo;
2 2  
3   -import lombok.*;
4   -import io.swagger.v3.oas.annotations.media.Schema;
5 3 import cn.iocoder.yudao.framework.common.pojo.PageParam;
  4 +import io.swagger.v3.oas.annotations.media.Schema;
  5 +import lombok.Data;
  6 +import lombok.EqualsAndHashCode;
  7 +import lombok.ToString;
6 8 import org.springframework.format.annotation.DateTimeFormat;
  9 +
7 10 import java.time.LocalDateTime;
8 11  
9 12 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalRespVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo;
2 2  
  3 +import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
  4 +import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
  5 +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  6 +import com.alibaba.excel.annotation.ExcelProperty;
3 7 import io.swagger.v3.oas.annotations.media.Schema;
4   -import lombok.*;
  8 +import lombok.Data;
5 9  
6 10 import java.time.LocalDateTime;
7   -import com.alibaba.excel.annotation.*;
8   -import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
9   -import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
10 11  
11 12 @Schema(description = "管理后台 - 学生 Response VO")
12 13 @Data
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalSaveReqVO.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo;
2 2  
  3 +import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
  4 +import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
3 5 import io.swagger.v3.oas.annotations.media.Schema;
4   -import lombok.*;
5   -import java.util.*;
6   -import jakarta.validation.constraints.*;
  6 +import jakarta.validation.constraints.NotEmpty;
  7 +import jakarta.validation.constraints.NotNull;
  8 +import lombok.Data;
7 9  
8 10 import java.time.LocalDateTime;
9   -import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
10   -import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
  11 +import java.util.List;
11 12  
12 13 @Schema(description = "管理后台 - 学生新增/修改 Request VO")
13 14 @Data
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo01/Demo01ContactMapper.java
... ... @@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo01;
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
5 5 import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
6   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo01.vo.*;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo01.vo.Demo01ContactPageReqVO;
7 7 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo01.Demo01ContactDO;
8 8 import org.apache.ibatis.annotations.Mapper;
9 9  
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo02/Demo02CategoryMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo02;
2 2  
3   -import java.util.*;
4   -
5   -import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
6 3 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
  4 +import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
7 5 import cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo.Demo02CategoryListReqVO;
8 6 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo02.Demo02CategoryDO;
9 7 import org.apache.ibatis.annotations.Mapper;
10 8  
  9 +import java.util.List;
  10 +
11 11 /**
12 12 * 示例分类 Mapper
13 13 *
... ... @@ -24,9 +24,9 @@ public interface Demo02CategoryMapper extends BaseMapperX&lt;Demo02CategoryDO&gt; {
24 24 .orderByDesc(Demo02CategoryDO::getId));
25 25 }
26 26  
27   - default Demo02CategoryDO selectByParentIdAndName(Long parentId, String name) {
28   - return selectOne(Demo02CategoryDO::getParentId, parentId, Demo02CategoryDO::getName, name);
29   - }
  27 + default Demo02CategoryDO selectByParentIdAndName(Long parentId, String name) {
  28 + return selectOne(Demo02CategoryDO::getParentId, parentId, Demo02CategoryDO::getName, name);
  29 + }
30 30  
31 31 default Long selectCountByParentId(Long parentId) {
32 32 return selectCount(Demo02CategoryDO::getParentId, parentId);
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/erp/Demo03CourseErpMapper.java
... ... @@ -19,16 +19,16 @@ public interface Demo03CourseErpMapper extends BaseMapperX&lt;Demo03CourseDO&gt; {
19 19  
20 20 default PageResult<Demo03CourseDO> selectPage(PageParam reqVO, Long studentId) {
21 21 return selectPage(reqVO, new LambdaQueryWrapperX<Demo03CourseDO>()
22   - .eq(Demo03CourseDO::getStudentId, studentId)
23   - .orderByDesc(Demo03CourseDO::getId));
  22 + .eq(Demo03CourseDO::getStudentId, studentId)
  23 + .orderByDesc(Demo03CourseDO::getId));
24 24 }
25 25  
26 26 default int deleteByStudentId(Long studentId) {
27 27 return delete(Demo03CourseDO::getStudentId, studentId);
28 28 }
29 29  
30   - default int deleteByStudentIds(List<Long> studentIds) {
31   - return delete(Demo03CourseDO::getStudentId, studentIds);
32   - }
  30 + default int deleteByStudentIds(List<Long> studentIds) {
  31 + return delete(Demo03CourseDO::getStudentId, studentIds);
  32 + }
33 33  
34 34 }
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/erp/Demo03GradeErpMapper.java
... ... @@ -19,19 +19,20 @@ public interface Demo03GradeErpMapper extends BaseMapperX&lt;Demo03GradeDO&gt; {
19 19  
20 20 default PageResult<Demo03GradeDO> selectPage(PageParam reqVO, Long studentId) {
21 21 return selectPage(reqVO, new LambdaQueryWrapperX<Demo03GradeDO>()
22   - .eq(Demo03GradeDO::getStudentId, studentId)
23   - .orderByDesc(Demo03GradeDO::getId));
  22 + .eq(Demo03GradeDO::getStudentId, studentId)
  23 + .orderByDesc(Demo03GradeDO::getId));
24 24 }
25   - default Demo03GradeDO selectByStudentId(Long studentId) {
  25 +
  26 + default Demo03GradeDO selectByStudentId(Long studentId) {
26 27 return selectOne(Demo03GradeDO::getStudentId, studentId);
27   - }
  28 + }
28 29  
29 30 default int deleteByStudentId(Long studentId) {
30 31 return delete(Demo03GradeDO::getStudentId, studentId);
31 32 }
32 33  
33   - default int deleteByStudentIds(List<Long> studentIds) {
34   - return delete(Demo03GradeDO::getStudentId, studentIds);
35   - }
  34 + default int deleteByStudentIds(List<Long> studentIds) {
  35 + return delete(Demo03GradeDO::getStudentId, studentIds);
  36 + }
36 37  
37 38 }
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/erp/Demo03StudentErpMapper.java
... ... @@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo03.erp;
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
5 5 import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
6   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo.*;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo.Demo03StudentErpPageReqVO;
7 7 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
8 8 import org.apache.ibatis.annotations.Mapper;
9 9  
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/normal/Demo03CourseNormalMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo03.normal;
2 2  
3   -import java.util.*;
4   -
5 3 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
6 4 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
7 5 import org.apache.ibatis.annotations.Mapper;
8 6  
  7 +import java.util.List;
  8 +
9 9 /**
10 10 * 学生课程 Mapper
11 11 *
... ... @@ -22,8 +22,8 @@ public interface Demo03CourseNormalMapper extends BaseMapperX&lt;Demo03CourseDO&gt; {
22 22 return delete(Demo03CourseDO::getStudentId, studentId);
23 23 }
24 24  
25   - default int deleteByStudentIds(List<Long> studentIds) {
26   - return delete(Demo03CourseDO::getStudentId, studentIds);
27   - }
  25 + default int deleteByStudentIds(List<Long> studentIds) {
  26 + return delete(Demo03CourseDO::getStudentId, studentIds);
  27 + }
28 28  
29 29 }
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/normal/Demo03GradeNormalMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo03.normal;
2 2  
3   -import java.util.*;
4   -
5 3 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
6 4 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
7 5 import org.apache.ibatis.annotations.Mapper;
8 6  
  7 +import java.util.List;
  8 +
9 9 /**
10 10 * 学生班级 Mapper
11 11 *
... ... @@ -22,8 +22,8 @@ public interface Demo03GradeNormalMapper extends BaseMapperX&lt;Demo03GradeDO&gt; {
22 22 return delete(Demo03GradeDO::getStudentId, studentId);
23 23 }
24 24  
25   - default int deleteByStudentIds(List<Long> studentIds) {
26   - return delete(Demo03GradeDO::getStudentId, studentIds);
27   - }
  25 + default int deleteByStudentIds(List<Long> studentIds) {
  26 + return delete(Demo03GradeDO::getStudentId, studentIds);
  27 + }
28 28  
29 29 }
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/demo/demo03/normal/Demo03StudentNormalMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.demo.demo03.normal;
2 2  
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4   -import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
5 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
  5 +import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalPageReqVO;
6 7 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
7 8 import org.apache.ibatis.annotations.Mapper;
8   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.*;
9 9  
10 10 /**
11 11 * 学生 Mapper
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/demo/demo01/Demo01ContactService.java
1 1 package cn.iocoder.yudao.module.infra.service.demo.demo01;
2 2  
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo01.vo.*;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo01.vo.Demo01ContactPageReqVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo01.vo.Demo01ContactSaveReqVO;
5 6 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo01.Demo01ContactDO;
6 7 import jakarta.validation.Valid;
7 8  
... ... @@ -37,10 +38,10 @@ public interface Demo01ContactService {
37 38 void deleteDemo01Contact(Long id);
38 39  
39 40 /**
40   - * 批量删除示例联系人
41   - *
42   - * @param ids 编号
43   - */
  41 + * 批量删除示例联系人
  42 + *
  43 + * @param ids 编号
  44 + */
44 45 void deleteDemo01ContactByIds(List<Long> ids);
45 46  
46 47 /**
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/demo/demo02/Demo02CategoryService.java
1 1 package cn.iocoder.yudao.module.infra.service.demo.demo02;
2 2  
3   -import java.util.*;
4   -import jakarta.validation.*;
5   -
6 3 import cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo.Demo02CategoryListReqVO;
7 4 import cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo.Demo02CategorySaveReqVO;
8 5 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo02.Demo02CategoryDO;
  6 +import jakarta.validation.Valid;
  7 +
  8 +import java.util.List;
9 9  
10 10 /**
11 11 * 示例分类 Service 接口
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/demo/demo02/Demo02CategoryServiceImpl.java
... ... @@ -5,10 +5,10 @@ import cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo.Demo02Categ
5 5 import cn.iocoder.yudao.module.infra.controller.admin.demo.demo02.vo.Demo02CategorySaveReqVO;
6 6 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo02.Demo02CategoryDO;
7 7 import cn.iocoder.yudao.module.infra.dal.mysql.demo.demo02.Demo02CategoryMapper;
  8 +import jakarta.annotation.Resource;
8 9 import org.springframework.stereotype.Service;
9 10 import org.springframework.validation.annotation.Validated;
10 11  
11   -import jakarta.annotation.Resource;
12 12 import java.util.List;
13 13 import java.util.Objects;
14 14  
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/demo/demo03/erp/Demo03StudentErpService.java
1 1 package cn.iocoder.yudao.module.infra.service.demo.demo03.erp;
2 2  
3   -import java.util.*;
4   -import jakarta.validation.*;
5   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo.*;
6   -import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
  3 +import cn.iocoder.yudao.framework.common.pojo.PageParam;
  4 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo.Demo03StudentErpPageReqVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.erp.vo.Demo03StudentErpSaveReqVO;
7 7 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
8 8 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
9   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
10   -import cn.iocoder.yudao.framework.common.pojo.PageParam;
  9 +import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
  10 +import jakarta.validation.Valid;
  11 +
  12 +import java.util.List;
11 13  
12 14 /**
13 15 * 学生 Service 接口
... ... @@ -39,10 +41,10 @@ public interface Demo03StudentErpService {
39 41 void deleteDemo03Student(Long id);
40 42  
41 43 /**
42   - * 批量删除学生
43   - *
44   - * @param ids 编号
45   - */
  44 + * 批量删除学生
  45 + *
  46 + * @param ids 编号
  47 + */
46 48 void deleteDemo03StudentByIds(List<Long> ids);
47 49  
48 50 /**
... ... @@ -95,18 +97,18 @@ public interface Demo03StudentErpService {
95 97 void deleteDemo03Course(Long id);
96 98  
97 99 /**
98   - * 批量删除学生课程
99   - *
100   - * @param ids 编号
101   - */
  100 + * 批量删除学生课程
  101 + *
  102 + * @param ids 编号
  103 + */
102 104 void deleteDemo03CourseByIds(List<Long> ids);
103 105  
104   - /**
105   - * 获得学生课程
106   - *
107   - * @param id 编号
  106 + /**
  107 + * 获得学生课程
  108 + *
  109 + * @param id 编号
108 110 * @return 学生课程
109   - */
  111 + */
110 112 Demo03CourseDO getDemo03Course(Long id);
111 113  
112 114 // ==================== 子表(学生班级) ====================
... ... @@ -143,18 +145,18 @@ public interface Demo03StudentErpService {
143 145 void deleteDemo03Grade(Long id);
144 146  
145 147 /**
146   - * 批量删除学生班级
147   - *
148   - * @param ids 编号
149   - */
  148 + * 批量删除学生班级
  149 + *
  150 + * @param ids 编号
  151 + */
150 152 void deleteDemo03GradeByIds(List<Long> ids);
151 153  
152   - /**
153   - * 获得学生班级
154   - *
155   - * @param id 编号
  154 + /**
  155 + * 获得学生班级
  156 + *
  157 + * @param id 编号
156 158 * @return 学生班级
157   - */
  159 + */
158 160 Demo03GradeDO getDemo03Grade(Long id);
159 161  
160 162 }
161 163 \ No newline at end of file
... ...
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/demo/demo03/normal/Demo03StudentNormalService.java
1 1 package cn.iocoder.yudao.module.infra.service.demo.demo03.normal;
2 2  
3   -import java.util.*;
4   -import jakarta.validation.*;
5   -import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.*;
6   -import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
  3 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalPageReqVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.demo.demo03.normal.vo.Demo03StudentNormalSaveReqVO;
7 6 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03CourseDO;
8 7 import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO;
9   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.demo.demo03.Demo03StudentDO;
  9 +import jakarta.validation.Valid;
  10 +
  11 +import java.util.List;
10 12  
11 13 /**
12 14 * 学生 Service 接口
... ... @@ -38,10 +40,10 @@ public interface Demo03StudentNormalService {
38 40 void deleteDemo03Student(Long id);
39 41  
40 42 /**
41   - * 批量删除学生
42   - *
43   - * @param ids 编号
44   - */
  43 + * 批量删除学生
  44 + *
  45 + * @param ids 编号
  46 + */
45 47 void deleteDemo03StudentByIds(List<Long> ids);
46 48  
47 49 /**
... ...