Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
0e385e67
Commit
0e385e67
authored
Aug 31, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据数据库修改实体类表
parent
64f94cb0
Show whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
1499 additions
and
810 deletions
+1499
-810
resource-server/pom.xml
+8
-9
resource-server/src/main/java/com/zq/resource/controller/admin/CategoryController.java
+0
-6
resource-server/src/main/java/com/zq/resource/controller/admin/GovAffairController.java
+0
-57
resource-server/src/main/java/com/zq/resource/controller/admin/GovMonitorController.java
+0
-57
resource-server/src/main/java/com/zq/resource/controller/admin/MetadataController.java
+0
-66
resource-server/src/main/java/com/zq/resource/controller/admin/SystemController.java
+10
-23
resource-server/src/main/java/com/zq/resource/dao/CategoryInterfaceAttachDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/CategoryInterfaceDao.java
+5
-4
resource-server/src/main/java/com/zq/resource/dao/CodeItemDao.java
+5
-4
resource-server/src/main/java/com/zq/resource/dao/CodeMainDao.java
+5
-4
resource-server/src/main/java/com/zq/resource/dao/DataCategoryDao.java
+2
-2
resource-server/src/main/java/com/zq/resource/dao/DataCategoryGroupDao.java
+5
-4
resource-server/src/main/java/com/zq/resource/dao/DataDictDao.java
+1
-1
resource-server/src/main/java/com/zq/resource/dao/DbInfoDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityCategoryDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityLabelDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/DeptDutyDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/DeptDutyLiabilityDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/OrgDeptDao.java
+1
-7
resource-server/src/main/java/com/zq/resource/dao/StandardCategoryNameDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/StandardDataDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/StandardDataMappingDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/dao/SystemAreaDao.java
+1
-1
resource-server/src/main/java/com/zq/resource/dao/SystemInfoDao.java
+17
-0
resource-server/src/main/java/com/zq/resource/entity/CategoryInterface.java
+143
-0
resource-server/src/main/java/com/zq/resource/entity/CategoryInterfaceAttach.java
+13
-25
resource-server/src/main/java/com/zq/resource/entity/CodeItem.java
+65
-0
resource-server/src/main/java/com/zq/resource/entity/CodeMain.java
+17
-23
resource-server/src/main/java/com/zq/resource/entity/DataCategory.java
+111
-23
resource-server/src/main/java/com/zq/resource/entity/DataCategoryGroup.java
+82
-0
resource-server/src/main/java/com/zq/resource/entity/DataDict.java
+12
-11
resource-server/src/main/java/com/zq/resource/entity/DbInfo.java
+89
-0
resource-server/src/main/java/com/zq/resource/entity/DepLiability.java
+59
-0
resource-server/src/main/java/com/zq/resource/entity/DepLiabilityCategory.java
+58
-0
resource-server/src/main/java/com/zq/resource/entity/DepLiabilityLabel.java
+58
-0
resource-server/src/main/java/com/zq/resource/entity/DeptDuty.java
+59
-0
resource-server/src/main/java/com/zq/resource/entity/DeptDutyLiability.java
+59
-0
resource-server/src/main/java/com/zq/resource/entity/InfoMetadata.java
+0
-130
resource-server/src/main/java/com/zq/resource/entity/OrgDept.java
+16
-6
resource-server/src/main/java/com/zq/resource/entity/StandardCategoryName.java
+83
-0
resource-server/src/main/java/com/zq/resource/entity/StandardData.java
+125
-0
resource-server/src/main/java/com/zq/resource/entity/StandardDataMapping.java
+131
-0
resource-server/src/main/java/com/zq/resource/entity/SystemArea.java
+2
-2
resource-server/src/main/java/com/zq/resource/entity/SystemInfo.java
+31
-55
resource-server/src/main/java/com/zq/resource/service/CategoryService.java
+1
-7
resource-server/src/main/java/com/zq/resource/service/GovAffairService.java
+0
-65
resource-server/src/main/java/com/zq/resource/service/GovMonitorService.java
+0
-65
resource-server/src/main/java/com/zq/resource/service/MetadataService.java
+0
-73
resource-server/src/main/java/com/zq/resource/service/SystemInfoService.java
+54
-0
resource-server/src/main/java/com/zq/resource/service/SystemService.java
+0
-79
resource-server/src/main/java/com/zq/resource/vo/SystemInfoFindVo.java
+1
-1
No files found.
resource-server/pom.xml
View file @
0e385e67
...
...
@@ -28,33 +28,32 @@
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<!--Spring boot 安全框架-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<!-- 连接配置中心 -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-config
</artifactId>
</dependency>
<!--Spring boot 测试-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<!--Spring boot Web容器-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<!--Spring boot
测试
-->
<!--Spring boot
安全框架
-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<!--Spring devtools 热部署-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
runtime
</scope>
<optional>
true
</optional>
</dependency>
<!--Spring boot Redis-->
<dependency>
...
...
resource-server/src/main/java/com/zq/resource/controller/admin/CategoryController.java
View file @
0e385e67
...
...
@@ -41,12 +41,6 @@ public class CategoryController {
@ApiOperation
(
"添加目录"
)
@PostMapping
(
value
=
"/addCategory"
)
public
ResultVo
addCategory
(
@RequestBody
DataCategory
vo
)
{
AssertUtils
.
hasText
(
vo
.
getCategoryName
(),
"缺少目录名称"
);
AssertUtils
.
notNull
(
vo
.
getSourceType
(),
"缺少属性类型"
);
AssertUtils
.
notNull
(
vo
.
getSecurityType
(),
"缺少涉密类型"
);
AssertUtils
.
notNull
(
vo
.
getShareType
(),
"缺少共享类型"
);
AssertUtils
.
notNull
(
vo
.
getLevelType
(),
"缺少层级类型"
);
AssertUtils
.
notNull
(
vo
.
getLoadType
(),
"缺少挂载类型"
);
categoryService
.
addCategory
(
vo
);
return
ResultVo
.
success
();
...
...
resource-server/src/main/java/com/zq/resource/controller/admin/GovAffairController.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
controller
.
admin
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.resource.entity.GovAffairItem
;
import
com.zq.resource.service.GovAffairService
;
import
com.zq.resource.vo.GovAffairItemFindVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author wilmiam
* @since 2021/8/19 14:33
*/
@Api
(
tags
=
"政务服务事项相关接口"
)
@RequiredArgsConstructor
@RestController
@RequestMapping
(
value
=
"/resource/admin/govAffair"
)
public
class
GovAffairController
{
private
final
GovAffairService
govAffairService
;
@ApiOperation
(
"获取政务服务事项列表"
)
@PostMapping
(
value
=
"/getGovAffairList"
)
public
ResultVo
<
PageVo
<
GovAffairItem
>>
getGovAffairList
(
@RequestBody
GovAffairItemFindVo
vo
)
{
return
ResultVo
.
success
(
govAffairService
.
getGovAffairList
(
vo
));
}
@ApiOperation
(
"添加政务服务事项"
)
@PostMapping
(
value
=
"/addGovAffair"
)
public
ResultVo
addGovAffair
(
@RequestBody
GovAffairItem
vo
)
{
AssertUtils
.
notNull
(
vo
.
getDeptId
(),
"缺少部门ID"
);
AssertUtils
.
notNull
(
vo
.
getAffairItemType
(),
"缺少事项类型"
);
AssertUtils
.
hasText
(
vo
.
getItemName
(),
"缺少事项名称"
);
AssertUtils
.
hasText
(
vo
.
getItemCode
(),
"缺少事项代码"
);
AssertUtils
.
hasText
(
vo
.
getDocument
(),
"缺少办理材料名称"
);
govAffairService
.
addGovAffair
(
vo
);
return
ResultVo
.
success
();
}
@ApiOperation
(
"修改政务服务事项"
)
@PostMapping
(
value
=
"/modifyGovAffair"
)
public
ResultVo
modifyGovAffair
(
@RequestBody
GovAffairItem
vo
)
{
AssertUtils
.
hasText
(
vo
.
getId
());
govAffairService
.
modifyGovAffair
(
vo
);
return
ResultVo
.
success
();
}
}
resource-server/src/main/java/com/zq/resource/controller/admin/GovMonitorController.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
controller
.
admin
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.resource.entity.GovMonitorItem
;
import
com.zq.resource.service.GovMonitorService
;
import
com.zq.resource.vo.GovMonitorItemFindVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author wilmiam
* @since 2021/8/19 14:33
*/
@Api
(
tags
=
"政务监管事项相关接口"
)
@RequiredArgsConstructor
@RestController
@RequestMapping
(
value
=
"/resource/admin/govMonitor"
)
public
class
GovMonitorController
{
private
final
GovMonitorService
govMonitorService
;
@ApiOperation
(
"获取政务监管事项列表"
)
@PostMapping
(
value
=
"/getGovMonitorList"
)
public
ResultVo
<
PageVo
<
GovMonitorItem
>>
getGovMonitorList
(
@RequestBody
GovMonitorItemFindVo
vo
)
{
return
ResultVo
.
success
(
govMonitorService
.
getGovMonitorList
(
vo
));
}
@ApiOperation
(
"添加政务监管事项"
)
@PostMapping
(
value
=
"/addGovMonitor"
)
public
ResultVo
addGovMonitor
(
@RequestBody
GovMonitorItem
vo
)
{
AssertUtils
.
notNull
(
vo
.
getDeptId
(),
"缺少部门ID"
);
AssertUtils
.
notNull
(
vo
.
getMonitorItemType
(),
"缺少事项类型"
);
AssertUtils
.
hasText
(
vo
.
getItemName
(),
"缺少事项名称"
);
AssertUtils
.
hasText
(
vo
.
getSubItemName
(),
"缺少子项名称"
);
AssertUtils
.
hasText
(
vo
.
getMainItemCode
(),
"缺少主项代码"
);
govMonitorService
.
addGovMonitor
(
vo
);
return
ResultVo
.
success
();
}
@ApiOperation
(
"修改政务监管事项"
)
@PostMapping
(
value
=
"/modifyGovMonitor"
)
public
ResultVo
modifyGovMonitor
(
@RequestBody
GovMonitorItem
vo
)
{
AssertUtils
.
hasText
(
vo
.
getId
());
govMonitorService
.
modifyGovMonitor
(
vo
);
return
ResultVo
.
success
();
}
}
resource-server/src/main/java/com/zq/resource/controller/admin/MetadataController.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
controller
.
admin
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.resource.entity.InfoMetadata
;
import
com.zq.resource.service.MetadataService
;
import
com.zq.resource.vo.InfoMetadataFindVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author wilmiam
* @since 2021/8/19 14:33
*/
@Api
(
tags
=
"元数据相关接口"
)
@RequiredArgsConstructor
@RestController
@RequestMapping
(
value
=
"/resource/admin/metadata"
)
public
class
MetadataController
{
private
final
MetadataService
metadataService
;
@ApiOperation
(
"获取元数据列表"
)
@PostMapping
(
value
=
"/getMetadataList"
)
public
ResultVo
<
PageVo
<
InfoMetadata
>>
getMetadataList
(
@RequestBody
InfoMetadataFindVo
vo
)
{
return
ResultVo
.
success
(
metadataService
.
getMetadataList
(
vo
));
}
@ApiOperation
(
"添加字典"
)
@PostMapping
(
value
=
"/addMetadata"
)
public
ResultVo
addMetadata
(
@RequestBody
InfoMetadata
vo
)
{
AssertUtils
.
hasText
(
vo
.
getMetaName
(),
"缺少元数据名称"
);
AssertUtils
.
notNull
(
vo
.
getBelongCategoryId
(),
"缺少所属目录ID"
);
AssertUtils
.
notNull
(
vo
.
getFormatType
(),
"缺少资源格式"
);
AssertUtils
.
hasText
(
vo
.
getDataItemName
(),
"缺少数据项名称"
);
AssertUtils
.
notNull
(
vo
.
getShareType
(),
"缺少分享类型"
);
AssertUtils
.
hasText
(
vo
.
getShareOption
(),
"缺少共享属性"
);
AssertUtils
.
hasText
(
vo
.
getShareCondition
(),
"缺少共享条件"
);
AssertUtils
.
hasText
(
vo
.
getShareMode
(),
"缺少共享方式"
);
AssertUtils
.
hasText
(
vo
.
getOpenOption
(),
"缺少开发属性"
);
AssertUtils
.
notNull
(
vo
.
getUpdateCycle
(),
"缺少更新周期"
);
AssertUtils
.
hasText
(
vo
.
getDataType
(),
"缺少数据分类"
);
AssertUtils
.
notNull
(
vo
.
getIssueDate
(),
"缺少发布日期"
);
AssertUtils
.
hasText
(
vo
.
getGovDataCode
(),
"缺少数据资源代码"
);
AssertUtils
.
notNull
(
vo
.
getIfLicense
(),
"缺少是否为电子证照"
);
metadataService
.
addMetadata
(
vo
);
return
ResultVo
.
success
();
}
@ApiOperation
(
"修改字典"
)
@PostMapping
(
value
=
"/modifyMetadata"
)
public
ResultVo
modifyMetadata
(
@RequestBody
InfoMetadata
vo
)
{
AssertUtils
.
hasText
(
vo
.
getId
());
metadataService
.
modifyMetadata
(
vo
);
return
ResultVo
.
success
();
}
}
resource-server/src/main/java/com/zq/resource/controller/admin/SystemController.java
View file @
0e385e67
...
...
@@ -3,9 +3,9 @@ package com.zq.resource.controller.admin;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.resource.entity.
InfoSystem
;
import
com.zq.resource.service.SystemService
;
import
com.zq.resource.vo.
InfoSystem
FindVo
;
import
com.zq.resource.entity.
SystemInfo
;
import
com.zq.resource.service.System
Info
Service
;
import
com.zq.resource.vo.
SystemInfo
FindVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -24,43 +24,30 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping
(
value
=
"/resource/admin/system"
)
public
class
SystemController
{
private
final
System
Service
system
Service
;
private
final
System
InfoService
systemInfo
Service
;
@ApiOperation
(
"获取系统列表"
)
@PostMapping
(
value
=
"/getSystemList"
)
public
ResultVo
<
PageVo
<
InfoSystem
>>
getSystemList
(
@RequestBody
InfoSystem
FindVo
vo
)
{
return
ResultVo
.
success
(
systemService
.
getSystemList
(
vo
));
public
ResultVo
<
PageVo
<
SystemInfo
>>
getSystemList
(
@RequestBody
SystemInfo
FindVo
vo
)
{
return
ResultVo
.
success
(
system
Info
Service
.
getSystemList
(
vo
));
}
@ApiOperation
(
"添加系统"
)
@PostMapping
(
value
=
"/addSystem"
)
public
ResultVo
addSystem
(
@RequestBody
InfoSystem
vo
)
{
public
ResultVo
addSystem
(
@RequestBody
SystemInfo
vo
)
{
AssertUtils
.
hasText
(
vo
.
getSystemName
(),
"缺少系统名称"
);
AssertUtils
.
hasText
(
vo
.
getBelongDeptId
(),
"缺少所属部门ID"
);
AssertUtils
.
notNull
(
vo
.
getSystemType
(),
"缺少系统类型"
);
AssertUtils
.
notNull
(
vo
.
getSystemLevelType
(),
"缺少系统层级"
);
AssertUtils
.
notNull
(
vo
.
getCoverLevelType
(),
"缺少覆盖层级"
);
AssertUtils
.
notNull
(
vo
.
getNetworkType
(),
"缺少网络类型"
);
AssertUtils
.
notNull
(
vo
.
getRunStatus
(),
"缺少运行状态"
);
AssertUtils
.
notNull
(
vo
.
getCloudType
(),
"缺少云类别"
);
AssertUtils
.
hasText
(
vo
.
getCloudName
(),
"缺少云名称"
);
AssertUtils
.
notNull
(
vo
.
getComputerRoomType
(),
"缺少机房建设类型"
);
AssertUtils
.
hasText
(
vo
.
getComputerRoomName
(),
"缺少机房名称"
);
AssertUtils
.
notNull
(
vo
.
getDatabaseType
(),
"缺少数据库类型"
);
AssertUtils
.
hasText
(
vo
.
getDatabaseName
(),
"缺少数据库名称"
);
AssertUtils
.
notNull
(
vo
.
getDatabaseQuantity
(),
"缺少数据库数量"
);
AssertUtils
.
notNull
(
vo
.
getDatabaseDeploymentType
(),
"缺少数据库部署方式"
);
systemService
.
addSystem
(
vo
);
system
Info
Service
.
addSystem
(
vo
);
return
ResultVo
.
success
();
}
@ApiOperation
(
"修改系统"
)
@PostMapping
(
value
=
"/modifySystem"
)
public
ResultVo
modifySystem
(
@RequestBody
InfoSystem
vo
)
{
public
ResultVo
modifySystem
(
@RequestBody
SystemInfo
vo
)
{
AssertUtils
.
hasText
(
vo
.
getId
());
systemService
.
modifySystem
(
vo
);
system
Info
Service
.
modifySystem
(
vo
);
return
ResultVo
.
success
();
}
...
...
resource-server/src/main/java/com/zq/resource/dao/CategoryInterfaceAttachDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.CategoryInterfaceAttach
;
import
org.springframework.stereotype.Repository
;
/**
* 接口资源说明附件表(CategoryInterfaceAttach)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:34
*/
@Repository
public
interface
CategoryInterfaceAttachDao
extends
BaseMapper
<
CategoryInterfaceAttach
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/
GovAffairItem
Dao.java
→
resource-server/src/main/java/com/zq/resource/dao/
CategoryInterface
Dao.java
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.
GovAffairItem
;
import
com.zq.resource.entity.
CategoryInterface
;
import
org.springframework.stereotype.Repository
;
/**
*
机构的政务服务事项表(GovAffairItem
)表数据库访问层
*
资源目录-接口资源表(CategoryInterface
)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:5
4
* @since 2021-08-
31 15:23:3
4
*/
@Repository
public
interface
GovAffairItemDao
extends
BaseMapper
<
GovAffairItem
>
{
public
interface
CategoryInterfaceDao
extends
BaseMapper
<
CategoryInterface
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/
GovMonitor
ItemDao.java
→
resource-server/src/main/java/com/zq/resource/dao/
Code
ItemDao.java
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.
GovMonitor
Item
;
import
com.zq.resource.entity.
Code
Item
;
import
org.springframework.stereotype.Repository
;
/**
*
机构的监管事项表(GovMonitor
Item)表数据库访问层
*
代码子项管理(Code
Item)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:5
4
* @since 2021-08-
31 15:23:3
4
*/
@Repository
public
interface
GovMonitorItemDao
extends
BaseMapper
<
GovMonitor
Item
>
{
public
interface
CodeItemDao
extends
BaseMapper
<
Code
Item
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/
InfoMetadata
Dao.java
→
resource-server/src/main/java/com/zq/resource/dao/
CodeMain
Dao.java
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.
InfoMetadata
;
import
com.zq.resource.entity.
CodeMain
;
import
org.springframework.stereotype.Repository
;
/**
*
资源元数据表(InfoMetadata
)表数据库访问层
*
代码主项管理(CodeMain
)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:54
* @since 2021-08-
31 15:23:36
*/
@Repository
public
interface
InfoMetadataDao
extends
BaseMapper
<
InfoMetadata
>
{
public
interface
CodeMainDao
extends
BaseMapper
<
CodeMain
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DataCategoryDao.java
View file @
0e385e67
...
...
@@ -5,10 +5,10 @@ import com.zq.resource.entity.DataCategory;
import
org.springframework.stereotype.Repository
;
/**
* 资源目录(DataCategory)表数据库访问层
* 资源目录
管理表
(DataCategory)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:52
* @since 2021-08-
31 15:23:37
*/
@Repository
public
interface
DataCategoryDao
extends
BaseMapper
<
DataCategory
>
{
...
...
resource-server/src/main/java/com/zq/resource/dao/
InfoSystem
Dao.java
→
resource-server/src/main/java/com/zq/resource/dao/
DataCategoryGroup
Dao.java
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.
InfoSystem
;
import
com.zq.resource.entity.
DataCategoryGroup
;
import
org.springframework.stereotype.Repository
;
/**
*
系统资源信息表(InfoSystem
)表数据库访问层
*
资源目录分类(DataCategoryGroup
)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:54
* @since 2021-08-
31 15:23:38
*/
@Repository
public
interface
InfoSystemDao
extends
BaseMapper
<
InfoSystem
>
{
public
interface
DataCategoryGroupDao
extends
BaseMapper
<
DataCategoryGroup
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DataDictDao.java
View file @
0e385e67
...
...
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
* 数据字典表(DataDict)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:54
* @since 2021-08-
31 15:23:39
*/
@Repository
public
interface
DataDictDao
extends
BaseMapper
<
DataDict
>
{
...
...
resource-server/src/main/java/com/zq/resource/dao/DbInfoDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DbInfo
;
import
org.springframework.stereotype.Repository
;
/**
* 数据库信息表(DbInfo)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:40
*/
@Repository
public
interface
DbInfoDao
extends
BaseMapper
<
DbInfo
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityCategoryDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DepLiabilityCategory
;
import
org.springframework.stereotype.Repository
;
/**
* 事项-资源目录表(DepLiabilityCategory)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:41
*/
@Repository
public
interface
DepLiabilityCategoryDao
extends
BaseMapper
<
DepLiabilityCategory
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DepLiability
;
import
org.springframework.stereotype.Repository
;
/**
* 职责办事项管理(DepLiability)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:40
*/
@Repository
public
interface
DepLiabilityDao
extends
BaseMapper
<
DepLiability
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DepLiabilityLabelDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DepLiabilityLabel
;
import
org.springframework.stereotype.Repository
;
/**
* 事项-标签表(DepLiabilityLabel)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:42
*/
@Repository
public
interface
DepLiabilityLabelDao
extends
BaseMapper
<
DepLiabilityLabel
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DeptDutyDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DeptDuty
;
import
org.springframework.stereotype.Repository
;
/**
* 机构职责(DeptDuty)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:43
*/
@Repository
public
interface
DeptDutyDao
extends
BaseMapper
<
DeptDuty
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/DeptDutyLiabilityDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.DeptDutyLiability
;
import
org.springframework.stereotype.Repository
;
/**
* 职责-事项表(DeptDutyLiability)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:44
*/
@Repository
public
interface
DeptDutyLiabilityDao
extends
BaseMapper
<
DeptDutyLiability
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/OrgDeptDao.java
View file @
0e385e67
...
...
@@ -2,20 +2,15 @@ package com.zq.resource.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.OrgDept
;
import
com.zq.resource.vo.OrgDeptFindVo
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* 机构表(OrgDept)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 11:25:54
* @since 2021-08-
31 15:23:45
*/
@Repository
public
interface
OrgDeptDao
extends
BaseMapper
<
OrgDept
>
{
List
<
OrgDept
>
queryPageList
(
OrgDeptFindVo
vo
);
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/StandardCategoryNameDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.StandardCategoryName
;
import
org.springframework.stereotype.Repository
;
/**
* 元数据所属领域表(StandardCategoryName)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:46
*/
@Repository
public
interface
StandardCategoryNameDao
extends
BaseMapper
<
StandardCategoryName
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/StandardDataDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.StandardData
;
import
org.springframework.stereotype.Repository
;
/**
* 数据元表(StandardData)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:47
*/
@Repository
public
interface
StandardDataDao
extends
BaseMapper
<
StandardData
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/StandardDataMappingDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.StandardDataMapping
;
import
org.springframework.stereotype.Repository
;
/**
* 映射元数据表(StandardDataMapping)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:48
*/
@Repository
public
interface
StandardDataMappingDao
extends
BaseMapper
<
StandardDataMapping
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/dao/SystemAreaDao.java
View file @
0e385e67
...
...
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
* 行政区域信息表(SystemArea)表数据库访问层
*
* @author makejava
* @since 2021-08-
19 15:09:48
* @since 2021-08-
31 15:23:49
*/
@Repository
public
interface
SystemAreaDao
extends
BaseMapper
<
SystemArea
>
{
...
...
resource-server/src/main/java/com/zq/resource/dao/SystemInfoDao.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.SystemInfo
;
import
org.springframework.stereotype.Repository
;
/**
* 系统表(SystemInfo)表数据库访问层
*
* @author makejava
* @since 2021-08-31 15:23:50
*/
@Repository
public
interface
SystemInfoDao
extends
BaseMapper
<
SystemInfo
>
{
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/CategoryInterface.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 资源目录-接口资源表(CategoryInterface)实体类
*
* @author makejava
* @since 2021-08-31 15:23:34
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"CATEGORY_INTERFACE"
)
public
class
CategoryInterface
{
/**
* 自增
*/
@ApiModelProperty
(
"自增"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 服务中文名称
*/
@ApiModelProperty
(
"服务中文名称"
)
private
String
cnName
;
/**
* 服务英文名称
*/
@ApiModelProperty
(
"服务英文名称"
)
private
String
enName
;
/**
* 服务描述
*/
@ApiModelProperty
(
"服务描述"
)
private
String
serviceDesc
;
/**
* 国家平台目录ID
*/
@ApiModelProperty
(
"国家平台目录ID"
)
private
String
cataId
;
/**
* 共享类型
*/
@ApiModelProperty
(
"共享类型"
)
private
Integer
serviceshareType
;
/**
* 服务的有效地址
*/
@ApiModelProperty
(
"服务的有效地址"
)
private
String
url
;
/**
* 协议类型: 0-RESTAPI; 1-WEBSERVICE
*/
@ApiModelProperty
(
"协议类型: 0-RESTAPI; 1-WEBSERVICE"
)
private
Integer
serviceType
;
/**
* 数据字典:方法类型
*/
@ApiModelProperty
(
"数据字典:方法类型"
)
private
Integer
methodType
;
/**
* 输入参数描述, 见表INPUTPARAMS_CONTENT
*/
@ApiModelProperty
(
"输入参数描述, 见表INPUTPARAMS_CONTENT"
)
private
String
inputParams
;
/**
* 返回参数描述, 见表OUTPUTPARAMS_CONTENT
*/
@ApiModelProperty
(
"返回参数描述, 见表OUTPUTPARAMS_CONTENT"
)
private
String
outputParams
;
/**
* 响应示例
*/
@ApiModelProperty
(
"响应示例"
)
private
String
output
;
/**
* 调用示例
*/
@ApiModelProperty
(
"调用示例"
)
private
String
callExample
;
/**
* 数据字典:响应类型
*/
@ApiModelProperty
(
"数据字典:响应类型"
)
private
Integer
responseType
;
/**
* 技术支持联系人
*/
@ApiModelProperty
(
"技术支持联系人"
)
private
String
supporter
;
/**
* 技术支持联系人手机
*/
@ApiModelProperty
(
"技术支持联系人手机"
)
private
String
supporterPhone
;
/**
* 接口说明文档
*/
@ApiModelProperty
(
"接口说明文档"
)
private
String
attach
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/
GovMonitorItem
.java
→
resource-server/src/main/java/com/zq/resource/entity/
CategoryInterfaceAttach
.java
View file @
0e385e67
...
...
@@ -12,17 +12,17 @@ import lombok.NoArgsConstructor;
import
java.util.Date
;
/**
*
机构的监管事项表(GovMonitorItem
)实体类
*
接口资源说明附件表(CategoryInterfaceAttach
)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:36
* @since 2021-08-
31 15:23:34
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"
GOV_MONITOR_ITEM"
,
schema
=
"ZY
"
)
public
class
GovMonitorItem
{
@TableName
(
value
=
"
CATEGORY_INTERFACE_ATTACH
"
)
public
class
CategoryInterfaceAttach
{
/**
* 自增
...
...
@@ -32,34 +32,22 @@ public class GovMonitorItem {
private
String
id
;
/**
*
机构id
*
接口资源ID
*/
@ApiModelProperty
(
"
机构id
"
)
private
String
dept
Id
;
@ApiModelProperty
(
"
接口资源ID
"
)
private
String
categoryInterface
Id
;
/**
*
监管事项: 类型包括1行政检查、2行政强制、3行政处罚、4其他行政权力。
*
文件名称带上后缀
*/
@ApiModelProperty
(
"
监管事项: 类型包括1行政检查、2行政强制、3行政处罚、4其他行政权力。
"
)
private
Integer
monitorItemTyp
e
;
@ApiModelProperty
(
"
文件名称带上后缀
"
)
private
String
filenam
e
;
/**
*
事项名称
*
附件二进制内容(文件类型为:JPG,GIF,PNG,TXT,DOC,DOCX,PDF,XLS,XLSX;文件大小最大10M)
*/
@ApiModelProperty
(
"事项名称"
)
private
String
itemName
;
/**
* 子项名称
*/
@ApiModelProperty
(
"子项名称"
)
private
String
subItemName
;
/**
* 主项代码
*/
@ApiModelProperty
(
"主项代码"
)
private
String
mainItemCode
;
@ApiModelProperty
(
"附件二进制内容(文件类型为:JPG,GIF,PNG,TXT,DOC,DOCX,PDF,XLS,XLSX;文件大小最大10M)"
)
private
Object
filecontent
;
/**
* 创建时间
...
...
resource-server/src/main/java/com/zq/resource/entity/CodeItem.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 代码子项管理(CodeItem)实体类
*
* @author makejava
* @since 2021-08-31 15:23:35
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"CODE_ITEM"
)
public
class
CodeItem
{
/**
* 自增id
*/
@ApiModelProperty
(
"自增id"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 代码项主项id
*/
@ApiModelProperty
(
"代码项主项id"
)
private
String
codeMainId
;
/**
* 代码项子项文本
*/
@ApiModelProperty
(
"代码项子项文本"
)
private
String
itemText
;
/**
* 代码项子项值
*/
@ApiModelProperty
(
"代码项子项值"
)
private
String
itemValue
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/
GovAffairItem
.java
→
resource-server/src/main/java/com/zq/resource/entity/
CodeMain
.java
View file @
0e385e67
...
...
@@ -12,54 +12,48 @@ import lombok.NoArgsConstructor;
import
java.util.Date
;
/**
*
机构的政务服务事项表(GovAffairItem
)实体类
*
代码主项管理(CodeMain
)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:35
* @since 2021-08-
31 15:23:36
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"
GOV_AFFAIR_ITEM"
,
schema
=
"ZY
"
)
public
class
GovAffairItem
{
@TableName
(
value
=
"
CODE_MAIN
"
)
public
class
CodeMain
{
/**
*
自增
*
id
*/
@ApiModelProperty
(
"
自增
"
)
@ApiModelProperty
(
"
id
"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
*
机构id
*
社会信用代码(来源部门)
*/
@ApiModelProperty
(
"
机构id
"
)
@ApiModelProperty
(
"
社会信用代码(来源部门)
"
)
private
String
deptId
;
/**
*
政务服务事项类型: 包括1行政许可、2行政确认、3行政裁决、4行政征收、5行政给付、6行政奖励、7其他行政权力、8公共服务。
*
来源系统
*/
@ApiModelProperty
(
"
政务服务事项类型: 包括1行政许可、2行政确认、3行政裁决、4行政征收、5行政给付、6行政奖励、7其他行政权力、8公共服务。
"
)
private
Integer
affairItemType
;
@ApiModelProperty
(
"
来源系统
"
)
private
String
appId
;
/**
*
事
项名称
*
代码
项名称
*/
@ApiModelProperty
(
"
事
项名称"
)
private
String
itemN
ame
;
@ApiModelProperty
(
"
代码
项名称"
)
private
String
codeC
ame
;
/**
*
事项代码
*
描述
*/
@ApiModelProperty
(
"事项代码"
)
private
String
itemCode
;
/**
* 办理材料名称
*/
@ApiModelProperty
(
"办理材料名称"
)
private
String
document
;
@ApiModelProperty
(
"描述"
)
private
String
description
;
/**
* 创建时间
...
...
resource-server/src/main/java/com/zq/resource/entity/DataCategory.java
View file @
0e385e67
...
...
@@ -12,16 +12,16 @@ import lombok.NoArgsConstructor;
import
java.util.Date
;
/**
* 资源目录(DataCategory)实体类
* 资源目录
管理表
(DataCategory)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:34
* @since 2021-08-
31 15:23:37
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DATA_CATEGORY"
,
schema
=
"ZY"
)
@TableName
(
value
=
"DATA_CATEGORY"
)
public
class
DataCategory
{
/**
...
...
@@ -32,40 +32,130 @@ public class DataCategory {
private
String
id
;
/**
*
目录名称
*
国家平台目录ID区共享平台返回的目录ID,UUID
*/
@ApiModelProperty
(
"
目录名称
"
)
private
String
cat
egoryName
;
@ApiModelProperty
(
"
国家平台目录ID区共享平台返回的目录ID,UUID
"
)
private
String
cat
aId
;
/**
*
资源目录属性:分为1基础信息资源目录、2主题信息资源目录、3部门信息资源目录。
*
区共享平台返回的目录分类ID
*/
@ApiModelProperty
(
"
资源目录属性:分为1基础信息资源目录、2主题信息资源目录、3部门信息资源目录。
"
)
private
Integer
sourceType
;
@ApiModelProperty
(
"
区共享平台返回的目录分类ID
"
)
private
String
groupId
;
/**
*
数据资源涉密属性:分为1涉密政务数据资源目录和2非涉密政务数据资源目录。
*
信息资源目录名称
*/
@ApiModelProperty
(
"
数据资源涉密属性:分为1涉密政务数据资源目录和2非涉密政务数据资源目录。
"
)
private
Integer
securityTyp
e
;
@ApiModelProperty
(
"
信息资源目录名称
"
)
private
String
cataTitl
e
;
/**
*
共享类型:资源目录按共享类型分为1无条件共享、2有条件共享、3不予共享等三种类型
*
信息资源目录编码
*/
@ApiModelProperty
(
"
共享类型:资源目录按共享类型分为1无条件共享、2有条件共享、3不予共享等三种类型
"
)
private
Integer
shareTyp
e
;
@ApiModelProperty
(
"
信息资源目录编码
"
)
private
String
catacod
e
;
/**
*
层级属性:分为自治区级、自治区/市两级、自治区/市/县三级、自治区/市/县/乡四级、自治区/市/县/乡/村五级。
*
资源目录提供方部门ID
*/
@ApiModelProperty
(
"
层级属性:分为自治区级、自治区/市两级、自治区/市/县三级、自治区/市/县/乡四级、自治区/市/县/乡/村五级。
"
)
private
Integer
levelType
;
@ApiModelProperty
(
"
资源目录提供方部门ID
"
)
private
String
deptId
;
/**
*
资源挂载方式:分为库表、接口、文件三种方式。
*
信息资源摘要
*/
@ApiModelProperty
(
"资源挂载方式:分为库表、接口、文件三种方式。"
)
private
Integer
loadType
;
@ApiModelProperty
(
"信息资源摘要"
)
private
String
description
;
/**
* 数据字典:信息资源格式分类
*/
@ApiModelProperty
(
"数据字典:信息资源格式分类"
)
private
String
resourceFormat
;
/**
* 信息项列表(这个通过跟库、文件、接口资源表关联获得)
*/
@ApiModelProperty
(
"信息项列表(这个通过跟库、文件、接口资源表关联获得)"
)
private
String
columnList
;
/**
* 信息资源目录发布时间,格式为:YYYY-MM-DD HH:MM:SS
*/
@ApiModelProperty
(
"信息资源目录发布时间,格式为: YYYY-MM-DD HH:MM:SS"
)
private
Date
publishedTime
;
/**
* 数据字典:共享类型
*/
@ApiModelProperty
(
"数据字典:共享类型"
)
private
Integer
sharedType
;
/**
* 共享条件
*/
@ApiModelProperty
(
"共享条件"
)
private
String
sharedCondition
;
/**
* 数据字典:共享方式
*/
@ApiModelProperty
(
"数据字典:共享方式"
)
private
String
sharedWay
;
/**
* 向社会开放类型(数据字典:开放类型)
*/
@ApiModelProperty
(
"向社会开放类型(数据字典:开放类型)"
)
private
Integer
openType
;
/**
* 数据字典:更新周期
*/
@ApiModelProperty
(
"数据字典:更新周期"
)
private
String
updateCycle
;
/**
* 数据字典:所属领域
*/
@ApiModelProperty
(
"数据字典:所属领域"
)
private
String
belongField
;
/**
* 开放条件描述
*/
@ApiModelProperty
(
"开放条件描述"
)
private
String
openCondition
;
/**
* 不向社会开放理由依据
*/
@ApiModelProperty
(
"不向社会开放理由依据"
)
private
String
useDemand
;
/**
* 层级属性
*/
@ApiModelProperty
(
"层级属性"
)
private
String
hierarchyValue
;
/**
* 不向社会开放理由依据附件, 见表ATTACH_LIST(通过跟上传表关联获得)
*/
@ApiModelProperty
(
"不向社会开放理由依据附件, 见表ATTACH_LIST (通过跟上传表关联获得)"
)
private
String
attach
;
/**
* 见数据字典 开放领域
*/
@ApiModelProperty
(
"见数据字典 开放领域"
)
private
String
openField
;
/**
* 可发布目录:1应发布目录:0(应发布目录的发布状态为未提交,可发布目录状态为发布)
*/
@ApiModelProperty
(
"可发布目录:1 应发布目录:0(应发布目录的发布状态为未提交,可发布目录状态为发布)"
)
private
String
isPublishBasicInfo
;
/**
* 创建时间
...
...
@@ -84,5 +174,4 @@ public class DataCategory {
*/
@ApiModelProperty
(
"共享状态: 0-未注册, 1-已注册"
)
private
Integer
shareStatus
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DataCategoryGroup.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 资源目录分类(DataCategoryGroup)实体类
*
* @author makejava
* @since 2021-08-31 15:23:39
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DATA_CATEGORY_GROUP"
)
public
class
DataCategoryGroup
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 目录分类编码
*/
@ApiModelProperty
(
"目录分类编码"
)
private
String
groupId
;
/**
* 目录分类名称
*/
@ApiModelProperty
(
"目录分类名称"
)
private
String
groupName
;
/**
* 父目录分类编码
*/
@ApiModelProperty
(
"父目录分类编码"
)
private
String
parentId
;
/**
* 目录分类授权部门的社会信用代码
*/
@ApiModelProperty
(
"目录分类授权部门的社会信用代码"
)
private
String
creditCode
;
/**
* 目录分类描述
*/
@ApiModelProperty
(
"目录分类描述"
)
private
String
remark
;
/**
* 目录分类排序编号
*/
@ApiModelProperty
(
"目录分类排序编号"
)
private
Integer
orderNum
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DataDict.java
View file @
0e385e67
...
...
@@ -9,19 +9,20 @@ import lombok.Builder;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 数据字典表(DataDict)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:35
* @since 2021-08-
31 15:23:40
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DATA_DICT"
,
schema
=
"ZY"
)
@TableName
(
value
=
"DATA_DICT"
)
public
class
DataDict
{
/**
...
...
@@ -32,27 +33,27 @@ public class DataDict {
private
String
id
;
/**
* 类型代码
,如:update_cycle
* 类型代码
*/
@ApiModelProperty
(
"类型代码
,如:update_cycle
"
)
@ApiModelProperty
(
"类型代码"
)
private
String
type
;
/**
* 类型描述
,如:更新周期
* 类型描述
*/
@ApiModelProperty
(
"类型描述
,如:更新周期
"
)
@ApiModelProperty
(
"类型描述"
)
private
String
typeDesc
;
/**
* 代码
:1
* 代码
*/
@ApiModelProperty
(
"代码
:1
"
)
private
Integer
code
;
@ApiModelProperty
(
"代码"
)
private
BigDecimal
code
;
/**
* 代码描述
:实时
* 代码描述
*/
@ApiModelProperty
(
"代码描述
:实时
"
)
@ApiModelProperty
(
"代码描述"
)
private
String
codeDesc
;
/**
...
...
resource-server/src/main/java/com/zq/resource/entity/DbInfo.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 数据库信息表(DbInfo)实体类
*
* @author makejava
* @since 2021-08-31 15:23:40
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DB_INFO"
)
public
class
DbInfo
{
/**
* ID
*/
@ApiModelProperty
(
"ID"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 数据库IP
*/
@ApiModelProperty
(
"数据库IP"
)
private
String
dbIp
;
/**
* 数据库端口
*/
@ApiModelProperty
(
"数据库端口"
)
private
String
dbPort
;
/**
* 数据库名称
*/
@ApiModelProperty
(
"数据库名称"
)
private
String
dbName
;
/**
* 账号
*/
@ApiModelProperty
(
"账号"
)
private
String
dbUser
;
/**
* 密码
*/
@ApiModelProperty
(
"密码"
)
private
String
dbPwd
;
/**
* 规定机构部门
*/
@ApiModelProperty
(
"规定机构部门"
)
private
String
deptId
;
/**
* 描述
*/
@ApiModelProperty
(
"描述"
)
private
String
remark
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DepLiability.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 职责办事项管理(DepLiability)实体类
*
* @author makejava
* @since 2021-08-31 15:23:41
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DEP_LIABILITY"
)
public
class
DepLiability
{
/**
* ID
*/
@ApiModelProperty
(
"ID"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 职责ID
*/
@ApiModelProperty
(
"职责ID"
)
private
String
deptDutyId
;
/**
* 部门办事项名称
*/
@ApiModelProperty
(
"部门办事项名称"
)
private
String
businessName
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DepLiabilityCategory.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 事项-资源目录表(DepLiabilityCategory)实体类
*
* @author makejava
* @since 2021-08-31 15:23:42
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DEP_LIABILITY_CATEGORY"
)
public
class
DepLiabilityCategory
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 事项ID
*/
@ApiModelProperty
(
"事项ID"
)
private
String
depLiabilityId
;
/**
* 资源目录ID
*/
@ApiModelProperty
(
"资源目录ID"
)
private
String
categoryId
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DepLiabilityLabel.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 事项-标签表(DepLiabilityLabel)实体类
*
* @author makejava
* @since 2021-08-31 15:23:43
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DEP_LIABILITY_LABEL"
)
public
class
DepLiabilityLabel
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 事项ID
*/
@ApiModelProperty
(
"事项ID"
)
private
String
depLiabilityId
;
/**
* 标签
*/
@ApiModelProperty
(
"标签"
)
private
String
label
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DeptDuty.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 机构职责(DeptDuty)实体类
*
* @author makejava
* @since 2021-08-31 15:23:43
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DEPT_DUTY"
)
public
class
DeptDuty
{
/**
* ID
*/
@ApiModelProperty
(
"ID"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 处室职责描述
*/
@ApiModelProperty
(
"处室职责描述"
)
private
String
duties
;
/**
* 处室统一社会信用代码
*/
@ApiModelProperty
(
"处室统一社会信用代码"
)
private
String
creditCode
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/DeptDutyLiability.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 职责-事项表(DeptDutyLiability)实体类
*
* @author makejava
* @since 2021-08-31 15:23:44
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"DEPT_DUTY_LIABILITY"
)
public
class
DeptDutyLiability
{
/**
* ID
*/
@ApiModelProperty
(
"ID"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 职责ID
*/
@ApiModelProperty
(
"职责ID"
)
private
String
deptDutyId
;
/**
* 事项ID
*/
@ApiModelProperty
(
"事项ID"
)
private
String
depLiabilityId
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/InfoMetadata.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 资源元数据表(InfoMetadata)实体类
*
* @author makejava
* @since 2021-08-19 11:28:37
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"INFO_METADATA"
,
schema
=
"ZY"
)
public
class
InfoMetadata
{
/**
* 自增
*/
@ApiModelProperty
(
"自增"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 元数据名称
*/
@ApiModelProperty
(
"元数据名称"
)
private
String
metaName
;
/**
* 归属资源目录id
*/
@ApiModelProperty
(
"归属资源目录id"
)
private
String
belongCategoryId
;
/**
* 数据资源格式: 分为1电子文件、2电子表格、3数据库类、4图形图像类、5流媒体类、6接口类。
*/
@ApiModelProperty
(
"数据资源格式: 分为1电子文件、2电子表格、3数据库类、4图形图像类、5流媒体类、6接口类。"
)
private
Integer
formatType
;
/**
* 对结构化数据资源,描述其具体的信息项名称
*/
@ApiModelProperty
(
"对结构化数据资源,描述其具体的信息项名称"
)
private
String
dataItemName
;
/**
* 共享类型:资源目录按共享类型分为1无条件共享、2有条件共享、3不予共享等三种类型
*/
@ApiModelProperty
(
"共享类型:资源目录按共享类型分为1无条件共享、2有条件共享、3不予共享等三种类型"
)
private
Integer
shareType
;
/**
* 共享属性:对政务数据资源共享类型和条件的描述,包括共享类型、共享条件、共享方式。
*/
@ApiModelProperty
(
"共享属性:对政务数据资源共享类型和条件的描述,包括共享类型、共享条件、共享方式。"
)
private
String
shareOption
;
/**
* 共享条件:无条件共享类和有条件共享类的政务数据资源,应标明使用要求,包括作为行政依据、工作参考、业务协同等;有条件共享类的政务数据资源还应注明共享条件和共享范围;对于不予类的政务数据资源,应注明相关的法律、行政法规或党中央、国务院政策依据。
*/
@ApiModelProperty
(
"共享条件:无条件共享类和有条件共享类的政务数据资源,应标明使用要求,包括作为行政依据、工作参考、业务协同等;有条件共享类的政务数据资源还应注明共享条件和共享范围;对于不予类的政务数据资源,应注明相关的法律、行政法规或党中央、国务院政策依据。"
)
private
String
shareCondition
;
/**
* 共享方式:获取数据资源的方式。原则上应通过数据共享交换平台方式获取。确因条件所限可采用其他方式,如文件夹、纸质文档、电子文档等方式。
*/
@ApiModelProperty
(
"共享方式:获取数据资源的方式。原则上应通过数据共享交换平台方式获取。确因条件所限可采用其他方式,如文件夹、纸质文档、电子文档等方式。"
)
private
String
shareMode
;
/**
* 开放属性:对政务数据资源向社会开放,以及开放条件的描述,包括是否向社会开放、开放条件。
*/
@ApiModelProperty
(
"开放属性:对政务数据资源向社会开放,以及开放条件的描述,包括是否向社会开放、开放条件。"
)
private
String
openOption
;
/**
* 更新周期:数据资源更新的频度。分为1实时、2每日、3每周、4每月、5每季度、6每年等。
*/
@ApiModelProperty
(
"更新周期:数据资源更新的频度。分为1实时、2每日、3每周、4每月、5每季度、6每年等。"
)
private
Integer
updateCycle
;
/**
* 数据资源分类:描述数据资源的分类,包括所属领域、服务分类、以及标签分类。
*/
@ApiModelProperty
(
"数据资源分类:描述数据资源的分类,包括所属领域、服务分类、以及标签分类。"
)
private
String
dataType
;
/**
* 发布日期
*/
@ApiModelProperty
(
"发布日期"
)
private
Date
issueDate
;
/**
* 政务数据资源代码
*/
@ApiModelProperty
(
"政务数据资源代码"
)
private
String
govDataCode
;
/**
* 描述政务数据资源是否属于电子证照。
*/
@ApiModelProperty
(
"描述政务数据资源是否属于电子证照。"
)
private
Integer
ifLicense
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
resource-server/src/main/java/com/zq/resource/entity/OrgDept.java
View file @
0e385e67
...
...
@@ -3,7 +3,6 @@ package com.zq.resource.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
...
...
@@ -16,13 +15,13 @@ import java.util.Date;
* 机构表(OrgDept)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:38
* @since 2021-08-
31 15:23:45
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"ORG_DEPT"
,
schema
=
"ZY"
)
@TableName
(
value
=
"ORG_DEPT"
)
public
class
OrgDept
{
/**
...
...
@@ -36,7 +35,6 @@ public class OrgDept {
* 上级机构id
*/
@ApiModelProperty
(
"上级机构id"
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
private
String
parentId
;
/**
...
...
@@ -46,12 +44,18 @@ public class OrgDept {
private
String
deptName
;
/**
* 机构类型:1 业务处室 2二层机构 3二层机构业务科室
* 机构类型:1 业务处室 2二层机构 3
二层机构业务科室
*/
@ApiModelProperty
(
"机构类型:1 业务处室 2二层机构 3二层机构业务科室"
)
@ApiModelProperty
(
"机构类型:1 业务处室 2二层机构 3
二层机构业务科室"
)
private
Integer
deptType
;
/**
* 部门的统一信用代码
*/
@ApiModelProperty
(
"部门的统一信用代码"
)
private
String
creditCode
;
/**
* 行政区域编号
*/
@ApiModelProperty
(
"行政区域编号"
)
...
...
@@ -88,6 +92,12 @@ public class OrgDept {
private
String
responsibility
;
/**
* 排序编号,默认为0
*/
@ApiModelProperty
(
"排序编号,默认为0"
)
private
Integer
orderNum
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
...
...
resource-server/src/main/java/com/zq/resource/entity/StandardCategoryName.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 元数据所属领域表(StandardCategoryName)实体类
*
* @author makejava
* @since 2021-08-31 15:23:46
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"STANDARD_CATEGORY_NAME"
)
public
class
StandardCategoryName
{
/**
* id
*/
@ApiModelProperty
(
"id"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 所属领域
*/
@ApiModelProperty
(
"所属领域"
)
private
String
standardName
;
/**
* 编目名称
*/
@ApiModelProperty
(
"编目名称"
)
private
String
label
;
/**
* 父级所属领域编码
*/
@ApiModelProperty
(
"父级所属领域编码"
)
private
String
parentCategoryNum
;
/**
* 是否通用
*/
@ApiModelProperty
(
"是否通用"
)
private
Boolean
isGeneral
;
/**
* 区平台对应的领域编码
*/
@ApiModelProperty
(
"区平台对应的领域编码"
)
private
String
cascadeCategoryNum
;
/**
* 编目标签, 若为顶级传:F9ROOT
*/
@ApiModelProperty
(
"编目标签, 若为顶级传:F9ROOT"
)
private
String
standardLevel
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/StandardData.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 数据元表(StandardData)实体类
*
* @author makejava
* @since 2021-08-31 15:23:47
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"STANDARD_DATA"
)
public
class
StandardData
{
/**
* 自增id
*/
@ApiModelProperty
(
"自增id"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 所属领域id
*/
@ApiModelProperty
(
"所属领域id"
)
private
String
categoryId
;
/**
* 数据元名称
*/
@ApiModelProperty
(
"数据元名称"
)
private
String
standardName
;
/**
* 数据元类型
*/
@ApiModelProperty
(
"数据元类型"
)
private
String
standardDataType
;
/**
* 数据元长度
*/
@ApiModelProperty
(
"数据元长度"
)
private
String
standardDataLength
;
/**
* 精度
*/
@ApiModelProperty
(
"精度"
)
private
String
fieldPrecision
;
/**
* 代码项guid
*/
@ApiModelProperty
(
"代码项guid"
)
private
String
codeGuid
;
/**
* 英文名称
*/
@ApiModelProperty
(
"英文名称"
)
private
String
englishName
;
/**
* 标准级别
*/
@ApiModelProperty
(
"标准级别"
)
private
String
standardLevel
;
/**
* 内部标识符
*/
@ApiModelProperty
(
"内部标识符"
)
private
String
identification
;
/**
* 是否非空
*/
@ApiModelProperty
(
"是否非空"
)
private
String
notNull
;
/**
* 数据标准编目
*/
@ApiModelProperty
(
"数据标准编目"
)
private
String
standardNum
;
/**
* 编目名称
*/
@ApiModelProperty
(
"编目名称"
)
private
String
label
;
/**
* 所属领域编码
*/
@ApiModelProperty
(
"所属领域编码"
)
private
String
categoryNum
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/StandardDataMapping.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 映射元数据表(StandardDataMapping)实体类
*
* @author makejava
* @since 2021-08-31 15:23:49
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"STANDARD_DATA_MAPPING"
)
public
class
StandardDataMapping
{
/**
* 自增id
*/
@ApiModelProperty
(
"自增id"
)
@TableId
(
type
=
IdType
.
ASSIGN_UUID
)
private
String
id
;
/**
* 数据库Id
*/
@ApiModelProperty
(
"数据库Id"
)
private
String
dbId
;
/**
* 数据元id
*/
@ApiModelProperty
(
"数据元id"
)
private
String
standardId
;
/**
* 表名
*/
@ApiModelProperty
(
"表名"
)
private
String
tableName
;
/**
* 数据库表名
*/
@ApiModelProperty
(
"数据库表名"
)
private
String
tableSqlname
;
/**
* 列名
*/
@ApiModelProperty
(
"列名"
)
private
String
fieldName
;
/**
* 列类型
*/
@ApiModelProperty
(
"列类型"
)
private
String
fieldType
;
/**
* 列长度
*/
@ApiModelProperty
(
"列长度"
)
private
Integer
length
;
/**
* 列精度
*/
@ApiModelProperty
(
"列精度"
)
private
Integer
precision
;
/**
* 是否主键
*/
@ApiModelProperty
(
"是否主键"
)
private
Boolean
isPk
;
/**
* 数据标准编目
*/
@ApiModelProperty
(
"数据标准编目"
)
private
String
standardNum
;
/**
* 数据源名称
*/
@ApiModelProperty
(
"数据源名称"
)
private
String
connecttionName
;
/**
* 统一信用代码
*/
@ApiModelProperty
(
"统一信用代码"
)
private
String
creditCode
;
/**
* 是否为空
*/
@ApiModelProperty
(
"是否为空"
)
private
Boolean
isNull
;
/**
* 是否启用ssl连接
*/
@ApiModelProperty
(
"是否启用ssl连接"
)
private
Boolean
usessl
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
resource-server/src/main/java/com/zq/resource/entity/SystemArea.java
View file @
0e385e67
...
...
@@ -12,13 +12,13 @@ import lombok.NoArgsConstructor;
* 行政区域信息表(SystemArea)实体类
*
* @author makejava
* @since 2021-08-
19 15:09:48
* @since 2021-08-
31 15:23:50
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"SYSTEM_AREA"
,
schema
=
"ZY"
)
@TableName
(
value
=
"SYSTEM_AREA"
)
public
class
SystemArea
{
/**
...
...
resource-server/src/main/java/com/zq/resource/entity/
InfoSystem
.java
→
resource-server/src/main/java/com/zq/resource/entity/
SystemInfo
.java
View file @
0e385e67
...
...
@@ -12,17 +12,17 @@ import lombok.NoArgsConstructor;
import
java.util.Date
;
/**
* 系统
资源信息表(InfoSystem
)实体类
* 系统
表(SystemInfo
)实体类
*
* @author makejava
* @since 2021-08-
19 11:28:37
* @since 2021-08-
31 15:23:50
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"
INFO_SYSTEM"
,
schema
=
"ZY
"
)
public
class
InfoSystem
{
@TableName
(
value
=
"
SYSTEM_INFO
"
)
public
class
SystemInfo
{
/**
* 自增
...
...
@@ -44,82 +44,58 @@ public class InfoSystem {
private
String
belongDeptId
;
/**
*
信息系统分类:分为1政务服务业务办理系统、2执法监管系统、3共享交换平台、4办公OA、5视频会商系统、6监控系统、7热线系统、8财务系统、9人事系统、10政府网站。
*
对外提供的IP
*/
@ApiModelProperty
(
"
信息系统分类:分为1政务服务业务办理系统、2执法监管系统、3共享交换平台、4办公OA、5视频会商系统、6监控系统、7热线系统、8财务系统、9人事系统、10政府网站。
"
)
private
Integer
systemType
;
@ApiModelProperty
(
"
对外提供的IP
"
)
private
String
provideIp
;
/**
*
信息系统所属层级:分为1国垂、2区垂、3市垂。
*
对外提供的URL地址
*/
@ApiModelProperty
(
"
信息系统所属层级:分为1国垂、2区垂、3市垂。
"
)
private
Integer
systemLevelType
;
@ApiModelProperty
(
"
对外提供的URL地址
"
)
private
String
provideUrl
;
/**
*
覆盖层级:分为1自治区级、2自治区/市两级、3自治区/市/县三级、4自治区/市/县/乡四级、自治区/市/县/乡/村五级。
*
联系人电话
*/
@ApiModelProperty
(
"
覆盖层级:分为1自治区级、2自治区/市两级、3自治区/市/县三级、4自治区/市/县/乡四级、自治区/市/县/乡/村五级。
"
)
private
Integer
coverLevelTyp
e
;
@ApiModelProperty
(
"
联系人电话
"
)
private
String
phon
e
;
/**
*
接入网络:分为电1子政务外网、2电子政务内网、3互联网、4业务专网。
*
联系人姓名
*/
@ApiModelProperty
(
"
接入网络:分为电1子政务外网、2电子政务内网、3互联网、4业务专网。
"
)
private
Integer
networkType
;
@ApiModelProperty
(
"
联系人姓名
"
)
private
String
contact
;
/**
*
运行状态: 分为在用、停用、在建。
*
排序号默认为0
*/
@ApiModelProperty
(
"
运行状态: 分为在用、停用、在建。
"
)
private
Integer
runStatus
;
@ApiModelProperty
(
"
排序号默认为0
"
)
private
Integer
orderNum
;
/**
*
云类别分为1政务云、2行业云、市云、3阿里云、4腾讯云、5华为云。
*
应用系统描述
*/
@ApiModelProperty
(
"
云类别分为1政务云、2行业云、市云、3阿里云、4腾讯云、5华为云。
"
)
private
Integer
cloudType
;
@ApiModelProperty
(
"
应用系统描述
"
)
private
String
remark
;
/**
*
云名称
*
区共享平台返回的应用系统ID,UUID
*/
@ApiModelProperty
(
"
云名称
"
)
private
String
c
loudName
;
@ApiModelProperty
(
"
区共享平台返回的应用系统ID,UUID
"
)
private
String
c
ascadeguid
;
/**
*
机房(数据中心)建设方式,建设方式分为1自建、2租用。
*
应用KEY,用于接口调用
*/
@ApiModelProperty
(
"
机房(数据中心)建设方式,建设方式分为1自建、2租用。
"
)
private
Integer
computerRoomType
;
@ApiModelProperty
(
"
应用KEY,用于接口调用
"
)
private
String
appKey
;
/**
*
机房名称
*
应用SECRET,用于接口调用
*/
@ApiModelProperty
(
"机房名称"
)
private
String
computerRoomName
;
/**
* 数据库类型分为1mysql、2oracle、3sqlserver、4Memcached、5Redis、6MongoDB、7达梦、8人大金仓、9其他。
*/
@ApiModelProperty
(
"数据库类型分为1mysql、2oracle、3sqlserver、4Memcached、5Redis、6MongoDB、7达梦、8人大金仓、9其他。"
)
private
Integer
databaseType
;
/**
* 数据库名称
*/
@ApiModelProperty
(
"数据库名称"
)
private
String
databaseName
;
/**
* 系统对应的数据库数量
*/
@ApiModelProperty
(
"系统对应的数据库数量"
)
private
Integer
databaseQuantity
;
/**
* 数据库部署方式: 1分为集群、2分布式、3集中式。
*/
@ApiModelProperty
(
"数据库部署方式: 1分为集群、2分布式、3集中式。"
)
private
Integer
databaseDeploymentType
;
@ApiModelProperty
(
"应用SECRET,用于接口调用"
)
private
String
appSecret
;
/**
* 创建时间
...
...
resource-server/src/main/java/com/zq/resource/service/CategoryService.java
View file @
0e385e67
...
...
@@ -32,7 +32,7 @@ public class CategoryService {
LambdaQueryWrapper
<
DataCategory
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
DataCategory
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getCategoryName
()))
{
lambdaQuery
.
like
(
DataCategory:
:
getCat
egoryNam
e
,
vo
.
getCategoryName
());
lambdaQuery
.
like
(
DataCategory:
:
getCat
aTitl
e
,
vo
.
getCategoryName
());
vo
.
setCategoryName
(
null
);
}
...
...
@@ -51,12 +51,6 @@ public class CategoryService {
DataCategory
dataCategory
=
dataCategoryDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
dataCategory
,
"无此目录"
);
dataCategory
.
setCategoryName
(
vo
.
getCategoryName
());
dataCategory
.
setSourceType
(
vo
.
getSourceType
());
dataCategory
.
setSecurityType
(
vo
.
getSecurityType
());
dataCategory
.
setShareType
(
vo
.
getShareType
());
dataCategory
.
setLevelType
(
vo
.
getLevelType
());
dataCategory
.
setLoadType
(
vo
.
getLoadType
());
dataCategory
.
setUpdateTime
(
DateUtil
.
date
());
dataCategoryDao
.
updateById
(
dataCategory
);
...
...
resource-server/src/main/java/com/zq/resource/service/GovAffairService.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
service
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.resource.dao.GovAffairItemDao
;
import
com.zq.resource.entity.GovAffairItem
;
import
com.zq.resource.vo.GovAffairItemFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/8/20 10:04
*/
@Service
@RequiredArgsConstructor
public
class
GovAffairService
{
private
final
GovAffairItemDao
govAffairItemDao
;
public
PageVo
<
GovAffairItem
>
getGovAffairList
(
GovAffairItemFindVo
vo
)
{
LambdaQueryWrapper
<
GovAffairItem
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
GovAffairItem
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getItemName
()))
{
lambdaQuery
.
like
(
GovAffairItem:
:
getItemName
,
vo
.
getItemName
());
vo
.
setItemName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getItemCode
()))
{
lambdaQuery
.
like
(
GovAffairItem:
:
getItemCode
,
vo
.
getItemCode
());
vo
.
setItemCode
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getDocument
()))
{
lambdaQuery
.
like
(
GovAffairItem:
:
getDocument
,
vo
.
getDocument
());
vo
.
setDocument
(
null
);
}
return
PagingUtils
.
paging
(
vo
,
govAffairItemDao
,
GovAffairItem
.
class
,
lambdaQuery
);
}
public
void
addGovAffair
(
GovAffairItem
vo
)
{
vo
.
setCreateTime
(
DateUtil
.
date
());
vo
.
setUpdateTime
(
DateUtil
.
date
());
govAffairItemDao
.
insert
(
vo
);
}
public
void
modifyGovAffair
(
GovAffairItem
vo
)
{
GovAffairItem
govAffairItem
=
govAffairItemDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
govAffairItem
,
"无此服务事项"
);
govAffairItem
.
setDeptId
(
vo
.
getDeptId
());
govAffairItem
.
setAffairItemType
(
vo
.
getAffairItemType
());
govAffairItem
.
setItemName
(
vo
.
getItemName
());
govAffairItem
.
setItemCode
(
vo
.
getItemCode
());
govAffairItem
.
setDocument
(
vo
.
getDocument
());
govAffairItem
.
setUpdateTime
(
DateUtil
.
date
());
govAffairItemDao
.
updateById
(
govAffairItem
);
}
}
resource-server/src/main/java/com/zq/resource/service/GovMonitorService.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
service
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.resource.dao.GovMonitorItemDao
;
import
com.zq.resource.entity.GovMonitorItem
;
import
com.zq.resource.vo.GovMonitorItemFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/8/20 11:07
*/
@Service
@RequiredArgsConstructor
public
class
GovMonitorService
{
private
final
GovMonitorItemDao
govMonitorItemDao
;
public
PageVo
<
GovMonitorItem
>
getGovMonitorList
(
GovMonitorItemFindVo
vo
)
{
LambdaQueryWrapper
<
GovMonitorItem
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
GovMonitorItem
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getItemName
()))
{
lambdaQuery
.
like
(
GovMonitorItem:
:
getItemName
,
vo
.
getItemName
());
vo
.
setItemName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getSubItemName
()))
{
lambdaQuery
.
like
(
GovMonitorItem:
:
getSubItemName
,
vo
.
getSubItemName
());
vo
.
setSubItemName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getMainItemCode
()))
{
lambdaQuery
.
like
(
GovMonitorItem:
:
getMainItemCode
,
vo
.
getMainItemCode
());
vo
.
setMainItemCode
(
null
);
}
return
PagingUtils
.
paging
(
vo
,
govMonitorItemDao
,
GovMonitorItem
.
class
,
lambdaQuery
);
}
public
void
addGovMonitor
(
GovMonitorItem
vo
)
{
vo
.
setCreateTime
(
DateUtil
.
date
());
vo
.
setUpdateTime
(
DateUtil
.
date
());
govMonitorItemDao
.
insert
(
vo
);
}
public
void
modifyGovMonitor
(
GovMonitorItem
vo
)
{
GovMonitorItem
govMonitorItem
=
govMonitorItemDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
govMonitorItem
,
"无此监管事项"
);
govMonitorItem
.
setDeptId
(
vo
.
getDeptId
());
govMonitorItem
.
setMonitorItemType
(
vo
.
getMonitorItemType
());
govMonitorItem
.
setItemName
(
vo
.
getItemName
());
govMonitorItem
.
setSubItemName
(
vo
.
getSubItemName
());
govMonitorItem
.
setMainItemCode
(
vo
.
getMainItemCode
());
govMonitorItem
.
setUpdateTime
(
DateUtil
.
date
());
govMonitorItemDao
.
updateById
(
govMonitorItem
);
}
}
resource-server/src/main/java/com/zq/resource/service/MetadataService.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
service
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.resource.dao.InfoMetadataDao
;
import
com.zq.resource.entity.InfoMetadata
;
import
com.zq.resource.vo.InfoMetadataFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/8/20 11:23
*/
@Service
@RequiredArgsConstructor
public
class
MetadataService
{
private
final
InfoMetadataDao
infoMetadataDao
;
public
PageVo
<
InfoMetadata
>
getMetadataList
(
InfoMetadataFindVo
vo
)
{
LambdaQueryWrapper
<
InfoMetadata
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
InfoMetadata
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getMetaName
()))
{
lambdaQuery
.
like
(
InfoMetadata:
:
getMetaName
,
vo
.
getMetaName
());
vo
.
setMetaName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getDataItemName
()))
{
lambdaQuery
.
like
(
InfoMetadata:
:
getDataItemName
,
vo
.
getDataItemName
());
vo
.
setDataItemName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getGovDataCode
()))
{
lambdaQuery
.
like
(
InfoMetadata:
:
getGovDataCode
,
vo
.
getGovDataCode
());
vo
.
setGovDataCode
(
null
);
}
return
PagingUtils
.
paging
(
vo
,
infoMetadataDao
,
InfoMetadata
.
class
,
lambdaQuery
);
}
public
void
addMetadata
(
InfoMetadata
vo
)
{
vo
.
setCreateTime
(
DateUtil
.
date
());
vo
.
setUpdateTime
(
DateUtil
.
date
());
infoMetadataDao
.
insert
(
vo
);
}
public
void
modifyMetadata
(
InfoMetadata
vo
)
{
InfoMetadata
infoMetadata
=
infoMetadataDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
infoMetadata
,
"无此元数据"
);
infoMetadata
.
setMetaName
(
vo
.
getMetaName
());
infoMetadata
.
setBelongCategoryId
(
vo
.
getBelongCategoryId
());
infoMetadata
.
setFormatType
(
vo
.
getFormatType
());
infoMetadata
.
setDataItemName
(
vo
.
getDataItemName
());
infoMetadata
.
setShareType
(
vo
.
getShareType
());
infoMetadata
.
setShareOption
(
vo
.
getShareOption
());
infoMetadata
.
setShareCondition
(
vo
.
getShareCondition
());
infoMetadata
.
setShareMode
(
vo
.
getShareMode
());
infoMetadata
.
setOpenOption
(
vo
.
getOpenOption
());
infoMetadata
.
setUpdateCycle
(
vo
.
getUpdateCycle
());
infoMetadata
.
setDataType
(
vo
.
getDataType
());
infoMetadata
.
setIssueDate
(
vo
.
getIssueDate
());
infoMetadata
.
setGovDataCode
(
vo
.
getGovDataCode
());
infoMetadata
.
setIfLicense
(
vo
.
getIfLicense
());
infoMetadataDao
.
updateById
(
infoMetadata
);
}
}
resource-server/src/main/java/com/zq/resource/service/SystemInfoService.java
0 → 100644
View file @
0e385e67
package
com
.
zq
.
resource
.
service
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.resource.dao.SystemInfoDao
;
import
com.zq.resource.entity.SystemInfo
;
import
com.zq.resource.vo.SystemInfoFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/8/20 11:40
*/
@Service
@RequiredArgsConstructor
public
class
SystemInfoService
{
private
final
SystemInfoDao
systemInfoDao
;
public
PageVo
<
SystemInfo
>
getSystemList
(
SystemInfoFindVo
vo
)
{
LambdaQueryWrapper
<
SystemInfo
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
SystemInfo
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getSystemName
()))
{
lambdaQuery
.
like
(
SystemInfo:
:
getSystemName
,
vo
.
getSystemName
());
vo
.
setSystemName
(
null
);
}
return
PagingUtils
.
paging
(
vo
,
systemInfoDao
,
SystemInfo
.
class
,
lambdaQuery
);
}
public
void
addSystem
(
SystemInfo
vo
)
{
vo
.
setCreateTime
(
DateUtil
.
date
());
vo
.
setUpdateTime
(
DateUtil
.
date
());
systemInfoDao
.
insert
(
vo
);
}
public
void
modifySystem
(
SystemInfo
vo
)
{
SystemInfo
SystemInfo
=
systemInfoDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
SystemInfo
,
"无此系统"
);
SystemInfo
.
setSystemName
(
vo
.
getSystemName
());
SystemInfo
.
setBelongDeptId
(
vo
.
getBelongDeptId
());
SystemInfo
.
setUpdateTime
(
DateUtil
.
date
());
systemInfoDao
.
updateById
(
SystemInfo
);
}
}
resource-server/src/main/java/com/zq/resource/service/SystemService.java
deleted
100644 → 0
View file @
64f94cb0
package
com
.
zq
.
resource
.
service
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.utils.PagingUtils
;
import
com.zq.common.vo.PageVo
;
import
com.zq.resource.dao.InfoSystemDao
;
import
com.zq.resource.entity.InfoSystem
;
import
com.zq.resource.vo.InfoSystemFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/8/20 11:40
*/
@Service
@RequiredArgsConstructor
public
class
SystemService
{
private
final
InfoSystemDao
infoSystemDao
;
public
PageVo
<
InfoSystem
>
getSystemList
(
InfoSystemFindVo
vo
)
{
LambdaQueryWrapper
<
InfoSystem
>
lambdaQuery
=
Wrappers
.
lambdaQuery
(
InfoSystem
.
class
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getSystemName
()))
{
lambdaQuery
.
like
(
InfoSystem:
:
getSystemName
,
vo
.
getSystemName
());
vo
.
setSystemName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getCloudName
()))
{
lambdaQuery
.
like
(
InfoSystem:
:
getCloudName
,
vo
.
getCloudName
());
vo
.
setCloudName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getComputerRoomName
()))
{
lambdaQuery
.
like
(
InfoSystem:
:
getComputerRoomName
,
vo
.
getComputerRoomName
());
vo
.
setComputerRoomName
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getDatabaseName
()))
{
lambdaQuery
.
like
(
InfoSystem:
:
getDatabaseName
,
vo
.
getDatabaseName
());
vo
.
setDatabaseName
(
null
);
}
return
PagingUtils
.
paging
(
vo
,
infoSystemDao
,
InfoSystem
.
class
,
lambdaQuery
);
}
public
void
addSystem
(
InfoSystem
vo
)
{
vo
.
setCreateTime
(
DateUtil
.
date
());
vo
.
setUpdateTime
(
DateUtil
.
date
());
infoSystemDao
.
insert
(
vo
);
}
public
void
modifySystem
(
InfoSystem
vo
)
{
InfoSystem
infoSystem
=
infoSystemDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
infoSystem
,
"无此系统"
);
infoSystem
.
setSystemName
(
vo
.
getSystemName
());
infoSystem
.
setBelongDeptId
(
vo
.
getBelongDeptId
());
infoSystem
.
setSystemType
(
vo
.
getSystemType
());
infoSystem
.
setSystemLevelType
(
vo
.
getSystemLevelType
());
infoSystem
.
setCoverLevelType
(
vo
.
getCoverLevelType
());
infoSystem
.
setNetworkType
(
vo
.
getNetworkType
());
infoSystem
.
setRunStatus
(
vo
.
getRunStatus
());
infoSystem
.
setCloudType
(
vo
.
getCloudType
());
infoSystem
.
setCloudName
(
vo
.
getCloudName
());
infoSystem
.
setComputerRoomType
(
vo
.
getComputerRoomType
());
infoSystem
.
setComputerRoomName
(
vo
.
getComputerRoomName
());
infoSystem
.
setDatabaseType
(
vo
.
getDatabaseType
());
infoSystem
.
setDatabaseName
(
vo
.
getDatabaseName
());
infoSystem
.
setDatabaseQuantity
(
vo
.
getDatabaseQuantity
());
infoSystem
.
setDatabaseDeploymentType
(
vo
.
getDatabaseDeploymentType
());
infoSystem
.
setUpdateTime
(
DateUtil
.
date
());
infoSystemDao
.
updateById
(
infoSystem
);
}
}
resource-server/src/main/java/com/zq/resource/vo/
InfoSystem
FindVo.java
→
resource-server/src/main/java/com/zq/resource/vo/
SystemInfo
FindVo.java
View file @
0e385e67
...
...
@@ -19,7 +19,7 @@ import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Builder
public
class
InfoSystem
FindVo
extends
PageReqVo
{
public
class
SystemInfo
FindVo
extends
PageReqVo
{
/**
* 自增
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment