From f35e726d541bfc92c9ddffca7d902d7bbb0b873c Mon Sep 17 00:00:00 2001 From: qiaosen Date: Thu, 23 Jun 2022 10:21:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TbProjectContribController.java | 116 ++++++++++++++++++ .../controller/TbProjectController.java | 116 ++++++++++++++++++ .../controller/TbProjectUseController.java | 116 ++++++++++++++++++ .../project/dao/TbProjectContribDao.java | 16 +++ .../modules/project/dao/TbProjectDao.java | 16 +++ .../modules/project/dao/TbProjectUseDao.java | 16 +++ .../project/dto/TbProjectContribDTO.java | 56 +++++++++ .../modules/project/dto/TbProjectDTO.java | 62 ++++++++++ .../modules/project/dto/TbProjectUseDTO.java | 56 +++++++++ .../entity/TbProjectContribEntity.java | 79 ++++++++++++ .../project/entity/TbProjectEntity.java | 91 ++++++++++++++ .../project/entity/TbProjectUseEntity.java | 79 ++++++++++++ .../project/excel/TbProjectContribExcel.java | 55 +++++++++ .../modules/project/excel/TbProjectExcel.java | 61 +++++++++ .../project/excel/TbProjectUseExcel.java | 55 +++++++++ .../service/TbProjectContribService.java | 15 +++ .../project/service/TbProjectService.java | 15 +++ .../project/service/TbProjectUseService.java | 15 +++ .../impl/TbProjectContribServiceImpl.java | 34 +++++ .../service/impl/TbProjectServiceImpl.java | 34 +++++ .../service/impl/TbProjectUseServiceImpl.java | 34 +++++ 21 files changed, 1137 insertions(+) create mode 100644 renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectContribController.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectController.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectUseController.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectContribDao.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectDao.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectUseDao.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectContribDTO.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectDTO.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectUseDTO.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectContribEntity.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectEntity.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectUseEntity.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectContribExcel.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectExcel.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectUseExcel.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/TbProjectContribService.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/TbProjectService.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/TbProjectUseService.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectContribServiceImpl.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectServiceImpl.java create mode 100644 renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectUseServiceImpl.java diff --git a/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectContribController.java b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectContribController.java new file mode 100644 index 00000000..e5b396ef --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectContribController.java @@ -0,0 +1,116 @@ +package io.renren.modules.project.controller; + +import io.renren.common.annotation.LogOperation; +import io.renren.common.constant.Constant; +import io.renren.common.page.PageData; +import io.renren.common.utils.ExcelUtils; +import io.renren.common.utils.Result; +import io.renren.common.validator.AssertUtils; +import io.renren.common.validator.ValidatorUtils; +import io.renren.common.validator.group.AddGroup; +import io.renren.common.validator.group.DefaultGroup; +import io.renren.common.validator.group.UpdateGroup; +import io.renren.modules.project.dto.TbProjectContribDTO; +import io.renren.modules.project.excel.TbProjectContribExcel; +import io.renren.modules.project.service.TbProjectContribService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** +* 项目贡献表 +* +* @author qs +* @since 3.0 2022-06-22 +*/ +@RestController +@RequestMapping("projectcontrib") +@Api(tags="项目贡献表") +public class TbProjectContribController { + @Autowired + private TbProjectContribService tbProjectContribService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") + }) + @RequiresPermissions("project:tbprojectcontrib:page") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = tbProjectContribService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @RequiresPermissions("project:tbprojectcontrib:info") + public Result get(@PathVariable("id") Long id){ + TbProjectContribDTO data = tbProjectContribService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @RequiresPermissions("project:tbprojectcontrib:save") + public Result save(@RequestBody TbProjectContribDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + tbProjectContribService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @RequiresPermissions("project:tbprojectcontrib:update") + public Result update(@RequestBody TbProjectContribDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + tbProjectContribService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @RequiresPermissions("project:tbprojectcontrib:delete") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + tbProjectContribService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @RequiresPermissions("project:tbprojectcontrib:export") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = tbProjectContribService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, "项目贡献表", list, TbProjectContribExcel.class); + } + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectController.java b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectController.java new file mode 100644 index 00000000..ba5812d0 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectController.java @@ -0,0 +1,116 @@ +package io.renren.modules.project.controller; + +import io.renren.common.annotation.LogOperation; +import io.renren.common.constant.Constant; +import io.renren.common.page.PageData; +import io.renren.common.utils.ExcelUtils; +import io.renren.common.utils.Result; +import io.renren.common.validator.AssertUtils; +import io.renren.common.validator.ValidatorUtils; +import io.renren.common.validator.group.AddGroup; +import io.renren.common.validator.group.DefaultGroup; +import io.renren.common.validator.group.UpdateGroup; +import io.renren.modules.project.dto.TbProjectDTO; +import io.renren.modules.project.excel.TbProjectExcel; +import io.renren.modules.project.service.TbProjectService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** +* 项目表 +* +* @author qiaosen +* @since 3.0 2022-06-22 +*/ +@RestController +@RequestMapping("project") +@Api(tags="项目表") +public class TbProjectController { + @Autowired + private TbProjectService tbProjectService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") + }) + @RequiresPermissions("project:tbproject:page") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = tbProjectService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @RequiresPermissions("project:tbproject:info") + public Result get(@PathVariable("id") Long id){ + TbProjectDTO data = tbProjectService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @RequiresPermissions("project:tbproject:save") + public Result save(@RequestBody TbProjectDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + tbProjectService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @RequiresPermissions("project:tbproject:update") + public Result update(@RequestBody TbProjectDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + tbProjectService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @RequiresPermissions("project:tbproject:delete") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + tbProjectService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @RequiresPermissions("project:tbproject:export") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = tbProjectService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, "项目表", list, TbProjectExcel.class); + } + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectUseController.java b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectUseController.java new file mode 100644 index 00000000..c943f87b --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/controller/TbProjectUseController.java @@ -0,0 +1,116 @@ +package io.renren.modules.project.controller; + +import io.renren.common.annotation.LogOperation; +import io.renren.common.constant.Constant; +import io.renren.common.page.PageData; +import io.renren.common.utils.ExcelUtils; +import io.renren.common.utils.Result; +import io.renren.common.validator.AssertUtils; +import io.renren.common.validator.ValidatorUtils; +import io.renren.common.validator.group.AddGroup; +import io.renren.common.validator.group.DefaultGroup; +import io.renren.common.validator.group.UpdateGroup; +import io.renren.modules.project.dto.TbProjectUseDTO; +import io.renren.modules.project.excel.TbProjectUseExcel; +import io.renren.modules.project.service.TbProjectUseService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** +* 项目使用表 +* +* @author qs sunlightcs@gmail.com +* @since 3.0 2022-06-22 +*/ +@RestController +@RequestMapping("projectuse") +@Api(tags="项目使用表") +public class TbProjectUseController { + @Autowired + private TbProjectUseService tbProjectUseService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") + }) + @RequiresPermissions("project:tbprojectuse:page") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = tbProjectUseService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @RequiresPermissions("project:tbprojectuse:info") + public Result get(@PathVariable("id") Long id){ + TbProjectUseDTO data = tbProjectUseService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @RequiresPermissions("project:tbprojectuse:save") + public Result save(@RequestBody TbProjectUseDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + tbProjectUseService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @RequiresPermissions("project:tbprojectuse:update") + public Result update(@RequestBody TbProjectUseDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + tbProjectUseService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @RequiresPermissions("project:tbprojectuse:delete") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + tbProjectUseService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @RequiresPermissions("project:tbprojectuse:export") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = tbProjectUseService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, "项目使用表", list, TbProjectUseExcel.class); + } + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectContribDao.java b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectContribDao.java new file mode 100644 index 00000000..aae4739f --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectContribDao.java @@ -0,0 +1,16 @@ +package io.renren.modules.project.dao; + +import io.renren.common.dao.BaseDao; +import io.renren.modules.project.entity.TbProjectContribEntity; +import org.apache.ibatis.annotations.Mapper; + +/** +* 项目贡献表 +* +* @author qs +* @since 3.0 2022-06-22 +*/ +@Mapper +public interface TbProjectContribDao extends BaseDao { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectDao.java b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectDao.java new file mode 100644 index 00000000..3fd6505b --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectDao.java @@ -0,0 +1,16 @@ +package io.renren.modules.project.dao; + +import io.renren.common.dao.BaseDao; +import io.renren.modules.project.entity.TbProjectEntity; +import org.apache.ibatis.annotations.Mapper; + +/** +* 项目表 +* +* @author qiaosen +* @since 3.0 2022-06-22 +*/ +@Mapper +public interface TbProjectDao extends BaseDao { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectUseDao.java b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectUseDao.java new file mode 100644 index 00000000..fdff1c25 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dao/TbProjectUseDao.java @@ -0,0 +1,16 @@ +package io.renren.modules.project.dao; + +import io.renren.common.dao.BaseDao; +import io.renren.modules.project.entity.TbProjectUseEntity; +import org.apache.ibatis.annotations.Mapper; + +/** +* 项目使用表 +* +* @author qs sunlightcs@gmail.com +* @since 3.0 2022-06-22 +*/ +@Mapper +public interface TbProjectUseDao extends BaseDao { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectContribDTO.java b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectContribDTO.java new file mode 100644 index 00000000..c2dc0422 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectContribDTO.java @@ -0,0 +1,56 @@ +package io.renren.modules.project.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** +* 项目贡献表 +* +* @author qs +* @since 3.0 2022-06-22 +*/ +@Data +@ApiModel(value = "项目贡献表") +public class TbProjectContribDTO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + private Long id; + @ApiModelProperty(value = "项目名称") + private String projectName; + @ApiModelProperty(value = "应用名称") + private String resourceName; + @ApiModelProperty(value = "能力名称") + private String abilityName; + @ApiModelProperty(value = "能力类型") + private String abilityType; + @ApiModelProperty(value = "上架时间") + private Date applyTime; + @ApiModelProperty(value = "申请次数") + private String applyNum; + @ApiModelProperty(value = "浏览次数") + private String browseNum; + @ApiModelProperty(value = "创建人") + private Long creator; + @ApiModelProperty(value = "创建时间") + private Date createDate; + @ApiModelProperty(value = "修改人") + private Long updater; + @ApiModelProperty(value = "修改时间") + private Date updateDate; + @ApiModelProperty(value = "备用字段") + private String note1; + @ApiModelProperty(value = "备用字段") + private String note2; + @ApiModelProperty(value = "备用字段") + private String note3; + @ApiModelProperty(value = "备用字段") + private String note4; + @ApiModelProperty(value = "备用字段") + private String note5; + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectDTO.java b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectDTO.java new file mode 100644 index 00000000..0af390ee --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectDTO.java @@ -0,0 +1,62 @@ +package io.renren.modules.project.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** +* 项目表 +* +* @author qiaosen +* @since 3.0 2022-06-22 +*/ +@Data +@ApiModel(value = "项目表") +public class TbProjectDTO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + private Long id; + @ApiModelProperty(value = "项目名称") + private String projectName; + @ApiModelProperty(value = "申请单位") + private String applyDep; + @ApiModelProperty(value = "申请人") + private String applyUser; + @ApiModelProperty(value = "申请时间") + private Date applyTime; + @ApiModelProperty(value = "所属区市") + private String regionName; + @ApiModelProperty(value = "责任处室") + private String respDep; + @ApiModelProperty(value = "业务联系人") + private String businessUser; + @ApiModelProperty(value = "业务联系电话") + private String businessPhone; + @ApiModelProperty(value = "技术联系人") + private String techUser; + @ApiModelProperty(value = "技术联系电话") + private String techPhone; + @ApiModelProperty(value = "创建人") + private Long creator; + @ApiModelProperty(value = "创建时间") + private Date createDate; + @ApiModelProperty(value = "修改人") + private Long updater; + @ApiModelProperty(value = "修改时间") + private Date updateDate; + @ApiModelProperty(value = "备用字段") + private String note1; + @ApiModelProperty(value = "备用字段") + private String note2; + @ApiModelProperty(value = "备用字段") + private String note3; + @ApiModelProperty(value = "备用字段") + private String note4; + @ApiModelProperty(value = "备用字段") + private String note5; + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectUseDTO.java b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectUseDTO.java new file mode 100644 index 00000000..21c9ae47 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/dto/TbProjectUseDTO.java @@ -0,0 +1,56 @@ +package io.renren.modules.project.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** +* 项目使用表 +* +* @author qs sunlightcs@gmail.com +* @since 3.0 2022-06-22 +*/ +@Data +@ApiModel(value = "项目使用表") +public class TbProjectUseDTO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + private Long id; + @ApiModelProperty(value = "项目名称") + private String projectName; + @ApiModelProperty(value = "应用名称") + private String resourceName; + @ApiModelProperty(value = "能力名称") + private String abilityName; + @ApiModelProperty(value = "能力类型") + private String abilityType; + @ApiModelProperty(value = "上架时间") + private Date applyTime; + @ApiModelProperty(value = "申请次数") + private String applyNum; + @ApiModelProperty(value = "浏览次数") + private String browseNum; + @ApiModelProperty(value = "创建人") + private Long creator; + @ApiModelProperty(value = "创建时间") + private Date createDate; + @ApiModelProperty(value = "修改人") + private Long updater; + @ApiModelProperty(value = "修改时间") + private Date updateDate; + @ApiModelProperty(value = "备用字段") + private String note1; + @ApiModelProperty(value = "备用字段") + private String note2; + @ApiModelProperty(value = "备用字段") + private String note3; + @ApiModelProperty(value = "备用字段") + private String note4; + @ApiModelProperty(value = "备用字段") + private String note5; + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectContribEntity.java b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectContribEntity.java new file mode 100644 index 00000000..3ffb917b --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectContribEntity.java @@ -0,0 +1,79 @@ +package io.renren.modules.project.entity; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import com.baomidou.mybatisplus.annotation.*; +import java.util.Date; +import io.renren.common.entity.BaseEntity; + +/** + * 项目贡献表 + * + * @author qs + * @since 3.0 2022-06-22 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("tb_project_contrib") +public class TbProjectContribEntity extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 项目名称 + */ + private String projectName; + /** + * 应用名称 + */ + private String resourceName; + /** + * 能力名称 + */ + private String abilityName; + /** + * 能力类型 + */ + private String abilityType; + /** + * 上架时间 + */ + private Date applyTime; + /** + * 申请次数 + */ + private String applyNum; + /** + * 浏览次数 + */ + private String browseNum; + /** + * 修改人 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Long updater; + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Date updateDate; + /** + * 备用字段 + */ + private String note1; + /** + * 备用字段 + */ + private String note2; + /** + * 备用字段 + */ + private String note3; + /** + * 备用字段 + */ + private String note4; + /** + * 备用字段 + */ + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectEntity.java b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectEntity.java new file mode 100644 index 00000000..84c8eec4 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectEntity.java @@ -0,0 +1,91 @@ +package io.renren.modules.project.entity; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import com.baomidou.mybatisplus.annotation.*; +import java.util.Date; +import io.renren.common.entity.BaseEntity; + +/** + * 项目表 + * + * @author qiaosen + * @since 3.0 2022-06-22 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("tb_project") +public class TbProjectEntity extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 项目名称 + */ + private String projectName; + /** + * 申请单位 + */ + private String applyDep; + /** + * 申请人 + */ + private String applyUser; + /** + * 申请时间 + */ + private Date applyTime; + /** + * 所属区市 + */ + private String regionName; + /** + * 责任处室 + */ + private String respDep; + /** + * 业务联系人 + */ + private String businessUser; + /** + * 业务联系电话 + */ + private String businessPhone; + /** + * 技术联系人 + */ + private String techUser; + /** + * 技术联系电话 + */ + private String techPhone; + /** + * 修改人 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Long updater; + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Date updateDate; + /** + * 备用字段 + */ + private String note1; + /** + * 备用字段 + */ + private String note2; + /** + * 备用字段 + */ + private String note3; + /** + * 备用字段 + */ + private String note4; + /** + * 备用字段 + */ + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectUseEntity.java b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectUseEntity.java new file mode 100644 index 00000000..5ea696c6 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/entity/TbProjectUseEntity.java @@ -0,0 +1,79 @@ +package io.renren.modules.project.entity; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import com.baomidou.mybatisplus.annotation.*; +import java.util.Date; +import io.renren.common.entity.BaseEntity; + +/** + * 项目使用表 + * + * @author qs sunlightcs@gmail.com + * @since 3.0 2022-06-22 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("tb_project_use") +public class TbProjectUseEntity extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 项目名称 + */ + private String projectName; + /** + * 应用名称 + */ + private String resourceName; + /** + * 能力名称 + */ + private String abilityName; + /** + * 能力类型 + */ + private String abilityType; + /** + * 上架时间 + */ + private Date applyTime; + /** + * 申请次数 + */ + private String applyNum; + /** + * 浏览次数 + */ + private String browseNum; + /** + * 修改人 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Long updater; + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Date updateDate; + /** + * 备用字段 + */ + private String note1; + /** + * 备用字段 + */ + private String note2; + /** + * 备用字段 + */ + private String note3; + /** + * 备用字段 + */ + private String note4; + /** + * 备用字段 + */ + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectContribExcel.java b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectContribExcel.java new file mode 100644 index 00000000..b84b35ef --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectContribExcel.java @@ -0,0 +1,55 @@ +package io.renren.modules.project.excel; + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.annotation.write.style.ColumnWidth; +import com.alibaba.excel.annotation.write.style.ContentRowHeight; +import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.Data; +import java.util.Date; + +/** + * 项目贡献表 + * + * @author qs + * @since 3.0 2022-06-22 + */ +@Data +@ContentRowHeight(20) +@HeadRowHeight(20) +@ColumnWidth(25) +public class TbProjectContribExcel { + @ExcelProperty(value = "主键", index = 0) + private Long id; + @ExcelProperty(value = "项目名称", index = 1) + private String projectName; + @ExcelProperty(value = "应用名称", index = 2) + private String resourceName; + @ExcelProperty(value = "能力名称", index = 3) + private String abilityName; + @ExcelProperty(value = "能力类型", index = 4) + private String abilityType; + @ExcelProperty(value = "上架时间", index = 5) + private Date applyTime; + @ExcelProperty(value = "申请次数", index = 6) + private String applyNum; + @ExcelProperty(value = "浏览次数", index = 7) + private String browseNum; + @ExcelProperty(value = "创建人", index = 8) + private Long creator; + @ExcelProperty(value = "创建时间", index = 9) + private Date createDate; + @ExcelProperty(value = "修改人", index = 10) + private Long updater; + @ExcelProperty(value = "修改时间", index = 11) + private Date updateDate; + @ExcelProperty(value = "备用字段", index = 12) + private String note1; + @ExcelProperty(value = "备用字段", index = 13) + private String note2; + @ExcelProperty(value = "备用字段", index = 14) + private String note3; + @ExcelProperty(value = "备用字段", index = 15) + private String note4; + @ExcelProperty(value = "备用字段", index = 16) + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectExcel.java b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectExcel.java new file mode 100644 index 00000000..587aabef --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectExcel.java @@ -0,0 +1,61 @@ +package io.renren.modules.project.excel; + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.annotation.write.style.ColumnWidth; +import com.alibaba.excel.annotation.write.style.ContentRowHeight; +import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.Data; +import java.util.Date; + +/** + * 项目表 + * + * @author qiaosen + * @since 3.0 2022-06-22 + */ +@Data +@ContentRowHeight(20) +@HeadRowHeight(20) +@ColumnWidth(25) +public class TbProjectExcel { + @ExcelProperty(value = "主键", index = 0) + private Long id; + @ExcelProperty(value = "项目名称", index = 1) + private String projectName; + @ExcelProperty(value = "申请单位", index = 2) + private String applyDep; + @ExcelProperty(value = "申请人", index = 3) + private String applyUser; + @ExcelProperty(value = "申请时间", index = 4) + private Date applyTime; + @ExcelProperty(value = "所属区市", index = 5) + private String regionName; + @ExcelProperty(value = "责任处室", index = 6) + private String respDep; + @ExcelProperty(value = "业务联系人", index = 7) + private String businessUser; + @ExcelProperty(value = "业务联系电话", index = 8) + private String businessPhone; + @ExcelProperty(value = "技术联系人", index = 9) + private String techUser; + @ExcelProperty(value = "技术联系电话", index = 10) + private String techPhone; + @ExcelProperty(value = "创建人", index = 11) + private Long creator; + @ExcelProperty(value = "创建时间", index = 12) + private Date createDate; + @ExcelProperty(value = "修改人", index = 13) + private Long updater; + @ExcelProperty(value = "修改时间", index = 14) + private Date updateDate; + @ExcelProperty(value = "备用字段", index = 15) + private String note1; + @ExcelProperty(value = "备用字段", index = 16) + private String note2; + @ExcelProperty(value = "备用字段", index = 17) + private String note3; + @ExcelProperty(value = "备用字段", index = 18) + private String note4; + @ExcelProperty(value = "备用字段", index = 19) + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectUseExcel.java b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectUseExcel.java new file mode 100644 index 00000000..cd107882 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/excel/TbProjectUseExcel.java @@ -0,0 +1,55 @@ +package io.renren.modules.project.excel; + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.annotation.write.style.ColumnWidth; +import com.alibaba.excel.annotation.write.style.ContentRowHeight; +import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.Data; +import java.util.Date; + +/** + * 项目使用表 + * + * @author qs sunlightcs@gmail.com + * @since 3.0 2022-06-22 + */ +@Data +@ContentRowHeight(20) +@HeadRowHeight(20) +@ColumnWidth(25) +public class TbProjectUseExcel { + @ExcelProperty(value = "主键", index = 0) + private Long id; + @ExcelProperty(value = "项目名称", index = 1) + private String projectName; + @ExcelProperty(value = "应用名称", index = 2) + private String resourceName; + @ExcelProperty(value = "能力名称", index = 3) + private String abilityName; + @ExcelProperty(value = "能力类型", index = 4) + private String abilityType; + @ExcelProperty(value = "上架时间", index = 5) + private Date applyTime; + @ExcelProperty(value = "申请次数", index = 6) + private String applyNum; + @ExcelProperty(value = "浏览次数", index = 7) + private String browseNum; + @ExcelProperty(value = "创建人", index = 8) + private Long creator; + @ExcelProperty(value = "创建时间", index = 9) + private Date createDate; + @ExcelProperty(value = "修改人", index = 10) + private Long updater; + @ExcelProperty(value = "修改时间", index = 11) + private Date updateDate; + @ExcelProperty(value = "备用字段", index = 12) + private String note1; + @ExcelProperty(value = "备用字段", index = 13) + private String note2; + @ExcelProperty(value = "备用字段", index = 14) + private String note3; + @ExcelProperty(value = "备用字段", index = 15) + private String note4; + @ExcelProperty(value = "备用字段", index = 16) + private String note5; +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectContribService.java b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectContribService.java new file mode 100644 index 00000000..8f27e871 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectContribService.java @@ -0,0 +1,15 @@ +package io.renren.modules.project.service; + +import io.renren.common.service.CrudService; +import io.renren.modules.project.dto.TbProjectContribDTO; +import io.renren.modules.project.entity.TbProjectContribEntity; + +/** + * 项目贡献表 + * + * @author qs + * @since 3.0 2022-06-22 + */ +public interface TbProjectContribService extends CrudService { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectService.java b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectService.java new file mode 100644 index 00000000..21e47313 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectService.java @@ -0,0 +1,15 @@ +package io.renren.modules.project.service; + +import io.renren.common.service.CrudService; +import io.renren.modules.project.dto.TbProjectDTO; +import io.renren.modules.project.entity.TbProjectEntity; + +/** + * 项目表 + * + * @author qiaosen + * @since 3.0 2022-06-22 + */ +public interface TbProjectService extends CrudService { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectUseService.java b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectUseService.java new file mode 100644 index 00000000..bc334317 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/TbProjectUseService.java @@ -0,0 +1,15 @@ +package io.renren.modules.project.service; + +import io.renren.common.service.CrudService; +import io.renren.modules.project.dto.TbProjectUseDTO; +import io.renren.modules.project.entity.TbProjectUseEntity; + +/** + * 项目使用表 + * + * @author qs sunlightcs@gmail.com + * @since 3.0 2022-06-22 + */ +public interface TbProjectUseService extends CrudService { + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectContribServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectContribServiceImpl.java new file mode 100644 index 00000000..7047662d --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectContribServiceImpl.java @@ -0,0 +1,34 @@ +package io.renren.modules.project.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import io.renren.common.service.impl.CrudServiceImpl; +import io.renren.common.constant.Constant; +import io.renren.modules.project.dao.TbProjectContribDao; +import io.renren.modules.project.dto.TbProjectContribDTO; +import io.renren.modules.project.entity.TbProjectContribEntity; +import io.renren.modules.project.service.TbProjectContribService; +import io.renren.modules.security.user.SecurityUser; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 项目贡献表 + * + * @author qs + * @since 3.0 2022-06-22 + */ +@Service +public class TbProjectContribServiceImpl extends CrudServiceImpl implements TbProjectContribService { + + @Override + public QueryWrapper getWrapper(Map params){ + QueryWrapper wrapper = new QueryWrapper<>(); + + + return wrapper; + } + + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectServiceImpl.java new file mode 100644 index 00000000..064adc22 --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectServiceImpl.java @@ -0,0 +1,34 @@ +package io.renren.modules.project.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import io.renren.common.service.impl.CrudServiceImpl; +import io.renren.common.constant.Constant; +import io.renren.modules.project.dao.TbProjectDao; +import io.renren.modules.project.dto.TbProjectDTO; +import io.renren.modules.project.entity.TbProjectEntity; +import io.renren.modules.project.service.TbProjectService; +import io.renren.modules.security.user.SecurityUser; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 项目表 + * + * @author qiaosen + * @since 3.0 2022-06-22 + */ +@Service +public class TbProjectServiceImpl extends CrudServiceImpl implements TbProjectService { + + @Override + public QueryWrapper getWrapper(Map params){ + QueryWrapper wrapper = new QueryWrapper<>(); + + + return wrapper; + } + + +} \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectUseServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectUseServiceImpl.java new file mode 100644 index 00000000..24c6f6bb --- /dev/null +++ b/renren-admin/src/main/java/io/renren/modules/project/service/impl/TbProjectUseServiceImpl.java @@ -0,0 +1,34 @@ +package io.renren.modules.project.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import io.renren.common.service.impl.CrudServiceImpl; +import io.renren.common.constant.Constant; +import io.renren.modules.project.dao.TbProjectUseDao; +import io.renren.modules.project.dto.TbProjectUseDTO; +import io.renren.modules.project.entity.TbProjectUseEntity; +import io.renren.modules.project.service.TbProjectUseService; +import io.renren.modules.security.user.SecurityUser; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 项目使用表 + * + * @author qs sunlightcs@gmail.com + * @since 3.0 2022-06-22 + */ +@Service +public class TbProjectUseServiceImpl extends CrudServiceImpl implements TbProjectUseService { + + @Override + public QueryWrapper getWrapper(Map params){ + QueryWrapper wrapper = new QueryWrapper<>(); + + + return wrapper; + } + + +} \ No newline at end of file