Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
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
xingmin
yd-csf
Commits
60b91c6e
Commit
60b91c6e
authored
Dec 19, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约-v1版本
parent
4a3d02a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiTaxationService.java
+4
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiCsfCommonServiceImpl.java
+13
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/response/common/ApiCsfCalculateResponse.java
+7
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiTaxationService.java
0 → 100644
View file @
60b91c6e
package
com
.
yd
.
csf
.
api
.
service
;
public
interface
ApiTaxationService
{
}
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiCsfCommonServiceImpl.java
View file @
60b91c6e
...
...
@@ -105,6 +105,7 @@ public class ApiCsfCommonServiceImpl implements ApiCsfCommonService {
BeanUtils
.
copyProperties
(
request
,
response1
);
response1
.
setCalculateType
(
2
);
response1
.
setRequestValue
(
calculateGenderFromIdCard
(
request
.
getRequestValue
()));
response1
.
setResponseKey
(
getGenderKey
(
response1
.
getRequestValue
()));
responses
.
add
(
response1
);
BeanUtils
.
copyProperties
(
request
,
response2
);
response2
.
setCalculateType
(
3
);
...
...
@@ -127,6 +128,18 @@ public class ApiCsfCommonServiceImpl implements ApiCsfCommonService {
}
/**
* 性别名称值转换性别键
* @param genderName
* @return
*/
public
String
getGenderKey
(
String
genderName
)
{
if
(
StringUtils
.
isBlank
(
genderName
))
{
return
""
;
}
return
"男"
.
equals
(
genderName
)
?
"1"
:
"女"
.
equals
(
genderName
)
?
"2"
:
"0"
;
}
/**
* 通过中文自动加载全部大写的拼音
* @param chinese
* @return
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/response/common/ApiCsfCalculateResponse.java
View file @
60b91c6e
...
...
@@ -25,7 +25,14 @@ public class ApiCsfCalculateResponse {
private
List
<
String
>
requestValueList
;
/**
* 计算返回键
*/
private
String
responseKey
;
/**
* 计算返回值
*/
private
String
responseValue
;
}
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