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
83bf9e9f
Commit
83bf9e9f
authored
Sep 26, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整接口
parent
68d2f615
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
236 additions
and
11 deletions
+236
-11
api-server/src/main/java/com/zq/api/feign/OpenFeign.java
+2
-0
api-server/src/main/java/com/zq/api/service/IApiLogic.java
+9
-1
api-server/src/main/java/com/zq/api/service/impl/ApiV100Logic.java
+5
-0
civil-common-utils/src/main/java/com/zq/common/constant/DBName.java
+7
-2
config-server/src/main/resources/properties/config-dev.yml
+4
-2
config-server/src/main/resources/properties/config-product.yml
+4
-2
open-server/src/main/java/com/zq/open/controller/api/NaturalPersonApi.java
+33
-0
open-server/src/main/java/com/zq/open/dao/NaturalPersonDao.java
+17
-0
open-server/src/main/java/com/zq/open/entity/NaturalPerson.java
+55
-0
open-server/src/main/java/com/zq/open/service/NaturalPersonService.java
+29
-0
open-server/src/main/java/com/zq/open/vo/NaturalPersonSearchVo.java
+19
-0
open-server/src/main/java/com/zq/open/vo/NaturalPersonVo.java
+31
-0
open-server/src/main/resources/application.yml
+6
-0
open-server/src/main/resources/bootstrap.yml
+2
-2
resource-server/src/main/java/com/zq/resource/service/CategoryInterfaceService.java
+8
-0
resource-server/src/main/resources/application.yml
+2
-2
sys-server/src/main/java/com/zq/system/modules/system/entity/SysInfo.java
+3
-0
No files found.
api-server/src/main/java/com/zq/api/feign/OpenFeign.java
View file @
83bf9e9f
...
...
@@ -18,4 +18,6 @@ public interface OpenFeign {
@PostMapping
(
value
=
"/marriage/search"
)
ResultVo
marriageSearch
(
@RequestBody
Map
<
String
,
Object
>
paramsMap
);
@PostMapping
(
value
=
"/naturalPerson/search"
)
ResultVo
naturalPersonSearch
(
@RequestBody
Map
<
String
,
Object
>
paramsMap
);
}
api-server/src/main/java/com/zq/api/service/IApiLogic.java
View file @
83bf9e9f
...
...
@@ -203,7 +203,7 @@ public interface IApiLogic extends IApiCommon {
*/
ApiResp
getCremationStatsList
(
ApiForm
form
);
/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
门户
接口↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
开放
接口↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
/**
* 婚姻搜索接口
...
...
@@ -212,4 +212,12 @@ public interface IApiLogic extends IApiCommon {
* @return
*/
ApiResp
marriageSearch
(
ApiForm
form
);
/**
* 自然人搜索接口
*
* @param form
* @return
*/
ApiResp
naturalPersonSearch
(
ApiForm
form
);
}
api-server/src/main/java/com/zq/api/service/impl/ApiV100Logic.java
View file @
83bf9e9f
...
...
@@ -154,4 +154,9 @@ public class ApiV100Logic extends BaseApiLogic implements IApiLogic {
}
return
ApiUtils
.
toApiResp
(
form
,
openFeign
.
marriageSearch
(
paramsMap
));
}
@Override
public
ApiResp
naturalPersonSearch
(
ApiForm
form
)
{
return
ApiUtils
.
toApiResp
(
form
,
openFeign
.
naturalPersonSearch
(
form
.
getParamsMap
()));
}
}
civil-common-utils/src/main/java/com/zq/common/constant/DBName.java
View file @
83bf9e9f
...
...
@@ -52,7 +52,12 @@ public class DBName {
public
final
static
String
GXSHJZ
=
"gxshjz"
;
/**
* 资源目录管理
*
Oracle
资源目录管理
*/
public
final
static
String
RESOURCE
=
"resource"
;
public
final
static
String
OZY
=
"ozy"
;
/**
* Oracle中台
*/
public
final
static
String
OZT
=
"ozt"
;
}
config-server/src/main/resources/properties/config-dev.yml
View file @
83bf9e9f
...
...
@@ -45,9 +45,11 @@ jdbc.gxshjz.url: jdbc:mysql://47.107.148.253:3306/gx-shjz?characterEncoding=utf8
jdbc.resource.url
:
jdbc:mysql://47.107.148.253:3306/mz_resource?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
ojdbc.driver-class-name
:
oracle.jdbc.driver.OracleDriver
ojdbc.username
:
zy
ojdbc.password
:
123456
ojdbc.mzzt.url
:
jdbc:oracle:thin:@//127.0.0.1:1522/XEPDB1
ojdbc.zy.username
:
zy
ojdbc.zy.password
:
123456
ojdbc.zt.username
:
zt
ojdbc.zt.password
:
123456
#jwt
jwt
:
...
...
config-server/src/main/resources/properties/config-product.yml
View file @
83bf9e9f
...
...
@@ -45,9 +45,11 @@ jdbc.gxshjz.url: jdbc:mysql://192.168.0.193:3306/gx-shjz?characterEncoding=utf8&
jdbc.resource.url
:
jdbc:mysql://192.168.0.193:3306/mz_resource?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
ojdbc.driver-class-name
:
oracle.jdbc.driver.OracleDriver
ojdbc.username
:
zy
ojdbc.password
:
LSZ192125mcm
ojdbc.mzzt.url
:
jdbc:oracle:thin:@//192.168.0.31:1521/mzzt
ojdbc.zy.username
:
zy
ojdbc.zy.password
:
LSZ192125mcm
ojdbc.zt.username
:
zt
ojdbc.zt.password
:
LSZ192125mcm
#jwt
jwt
:
...
...
open-server/src/main/java/com/zq/open/controller/api/NaturalPersonApi.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
controller
.
api
;
import
cn.hutool.core.util.IdcardUtil
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.common.vo.ResultVo
;
import
com.zq.open.service.NaturalPersonService
;
import
com.zq.open.vo.NaturalPersonSearchVo
;
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
;
@Api
(
tags
=
"自然人相关接口"
)
@RequiredArgsConstructor
@RestController
@RequestMapping
(
value
=
"/open/api/naturalPerson"
)
public
class
NaturalPersonApi
{
private
final
NaturalPersonService
naturalPersonService
;
@ApiOperation
(
"自然人信息搜素接口"
)
@PostMapping
(
value
=
"/search"
)
public
ResultVo
search
(
@RequestBody
NaturalPersonSearchVo
vo
)
{
AssertUtils
.
hasText
(
vo
.
getIdCard
(),
"缺少身份号"
);
AssertUtils
.
isTrue
(
IdcardUtil
.
isValidCard
(
vo
.
getIdCard
()),
"身份号不正确"
);
return
ResultVo
.
success
(
naturalPersonService
.
search
(
vo
));
}
}
open-server/src/main/java/com/zq/open/dao/NaturalPersonDao.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
dao
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.common.constant.DBName
;
import
com.zq.open.entity.NaturalPerson
;
import
org.springframework.stereotype.Repository
;
/**
* @author wilmiam
* @since 2021/9/26 17:33
*/
@DS
(
DBName
.
OZT
)
@Repository
public
interface
NaturalPersonDao
extends
BaseMapper
<
NaturalPerson
>
{
}
open-server/src/main/java/com/zq/open/entity/NaturalPerson.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
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
;
/**
* @author wilmiam
* @since 2021/9/26 17:33
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName
(
value
=
"NATURAL_PERSON"
)
public
class
NaturalPerson
{
/**
* 主键
*/
@ApiModelProperty
(
"主键"
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 姓名
*/
@ApiModelProperty
(
"姓名"
)
private
String
name
;
/**
* 身份证号
*/
@ApiModelProperty
(
"身份证号"
)
private
String
idCard
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
}
open-server/src/main/java/com/zq/open/service/NaturalPersonService.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
service
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.zq.common.utils.AssertUtils
;
import
com.zq.open.dao.NaturalPersonDao
;
import
com.zq.open.entity.NaturalPerson
;
import
com.zq.open.vo.NaturalPersonSearchVo
;
import
com.zq.open.vo.NaturalPersonVo
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
/**
* @author wilmiam
* @since 2021/9/26 17:42
*/
@Service
@RequiredArgsConstructor
public
class
NaturalPersonService
{
private
final
NaturalPersonDao
naturalPersonDao
;
public
NaturalPersonVo
search
(
NaturalPersonSearchVo
vo
)
{
NaturalPerson
naturalPerson
=
naturalPersonDao
.
selectOne
(
Wrappers
.
lambdaQuery
(
NaturalPerson
.
builder
().
name
(
vo
.
getName
()).
idCard
(
vo
.
getIdCard
()).
build
()));
AssertUtils
.
notNull
(
naturalPerson
,
"查询为空"
);
return
NaturalPersonVo
.
builder
().
name
(
naturalPerson
.
getName
()).
idCard
(
naturalPerson
.
getIdCard
()).
build
();
}
}
open-server/src/main/java/com/zq/open/vo/NaturalPersonSearchVo.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author wilmiam
* @since 2021/9/23 11:20
*/
@Data
public
class
NaturalPersonSearchVo
{
@ApiModelProperty
(
"姓名"
)
private
String
name
;
@ApiModelProperty
(
"身份证号码"
)
private
String
idCard
;
}
open-server/src/main/java/com/zq/open/vo/NaturalPersonVo.java
0 → 100644
View file @
83bf9e9f
package
com
.
zq
.
open
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author wilmiam
* @since 2021/9/26 17:33
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public
class
NaturalPersonVo
{
/**
* 姓名
*/
@ApiModelProperty
(
"姓名"
)
private
String
name
;
/**
* 身份证号
*/
@ApiModelProperty
(
"身份证号"
)
private
String
idCard
;
}
open-server/src/main/resources/application.yml
View file @
83bf9e9f
...
...
@@ -33,6 +33,12 @@ spring:
username
:
${jdbc.username}
password
:
${jdbc.password}
driver-class-name
:
${jdbc.driver-class-name}
ozt
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
${ojdbc.mzzt.url}
username
:
${ojdbc.zt.username}
password
:
${ojdbc.zt.password}
driver-class-name
:
${ojdbc.driver-class-name}
druid
:
# 初始连接数
initial-size
:
10
...
...
open-server/src/main/resources/bootstrap.yml
View file @
83bf9e9f
...
...
@@ -15,5 +15,5 @@ eureka:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
#
defaultZone: http://admin:123456@192.168.0.191:8800/eureka/
#
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
defaultZone
:
http://admin:123456@192.168.0.191:8800/eureka/
resource-server/src/main/java/com/zq/resource/service/CategoryInterfaceService.java
View file @
83bf9e9f
...
...
@@ -214,6 +214,14 @@ public class CategoryInterfaceService {
categoryInterface
.
setUpdateTime
(
DateUtil
.
date
());
categoryInterfaceDao
.
updateById
(
categoryInterface
);
List
<
InterfaceAttach
>
interfaceAttachList
=
interfaceAttachDao
.
selectList
(
Wrappers
.
lambdaQuery
(
InterfaceAttach
.
builder
().
businessId
(
categoryInterface
.
getId
()).
build
()));
interfaceAttachList
.
forEach
(
interfaceAttach
->
{
interfaceAttach
.
setCascadeguid
(
""
);
interfaceAttach
.
setUpdateTime
(
DateUtil
.
date
());
interfaceAttachDao
.
updateById
(
interfaceAttach
);
});
}
}
}
...
...
resource-server/src/main/resources/application.yml
View file @
83bf9e9f
...
...
@@ -30,8 +30,8 @@ spring:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
${ojdbc.mzzt.url}
username
:
${ojdbc.username}
password
:
${ojdbc.password}
username
:
${ojdbc.
zy.
username}
password
:
${ojdbc.
zy.
password}
driver-class-name
:
${ojdbc.driver-class-name}
druid
:
# 初始连接数
...
...
sys-server/src/main/java/com/zq/system/modules/system/entity/SysInfo.java
View file @
83bf9e9f
...
...
@@ -21,6 +21,9 @@ public class SysInfo {
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
@ApiModelProperty
(
"appId"
)
private
String
appId
;
@ApiModelProperty
(
"系统标识"
)
private
String
systemTag
;
...
...
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