Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
34f652a7
Commit
34f652a7
authored
Dec 11, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.3-shuiyou 增减接口
parent
6bf7679b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
249 additions
and
372 deletions
+249
-372
IdCardUtil.java
...com/yifu/cloud/plus/v1/yifu/archives/util/IdCardUtil.java
+48
-0
SociaFriendYgsAddVo.java
...ifu/cloud/plus/v1/yifu/social/vo/SociaFriendYgsAddVo.java
+86
-0
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+113
-371
TSocialFriendPushServiceImpl.java
...ifu/social/service/impl/TSocialFriendPushServiceImpl.java
+2
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/util/IdCardUtil.java
View file @
34f652a7
...
...
@@ -120,4 +120,52 @@ public class IdCardUtil {
}
return
sex
;
}
/**
* @param idNum 身份证
* @Description: 获取身份证的性别-汉字(已知身份证正确)
* @Author: hgw
* @Date: 2024/12/11 17:00
* @return: java.lang.String
**/
public
static
String
getSexName
(
String
idNum
){
String
sex
=
"男"
;
if
(
idNum
!=
null
)
{
String
sexString
=
""
;
if
(
idNum
.
length
()
==
18
)
{
sexString
=
idNum
.
substring
(
16
,
17
);
}
else
if
(
idNum
.
length
()
==
15
)
{
sexString
=
idNum
.
substring
(
14
,
15
);
}
try
{
// 判断性别
if
(
Integer
.
parseInt
(
sexString
)
%
2
==
0
)
{
sex
=
"女"
;
}
}
catch
(
Exception
e
)
{
sex
=
"男"
;
}
}
return
sex
;
}
/**
* @param idNum 身份证
* @Description: 获取身份证的年月日(已知身份证正确)
* @Author: hgw
* @Date: 2024/12/11 17:07
* @return: java.lang.String
**/
public
static
String
getBirthStr
(
String
idNum
)
{
String
birthStr
=
"1990-01-01"
;
if
(
idNum
!=
null
)
{
if
(
idNum
.
length
()
==
18
)
{
birthStr
=
idNum
.
substring
(
6
,
10
)
+
"-"
+
idNum
.
substring
(
10
,
12
)
+
"-"
+
idNum
.
substring
(
12
,
14
);
}
else
if
(
idNum
.
length
()==
15
){
birthStr
=
"19"
+
idNum
.
substring
(
6
,
8
)
+
"-"
+
idNum
.
substring
(
8
,
10
)
+
"-"
+
idNum
.
substring
(
10
,
12
);
}
}
return
birthStr
;
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SociaFriendYgsAddVo.java
0 → 100644
View file @
34f652a7
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author hgw
* @Description 社保士兵养工失增加模板
* @Date 2024-5-10 21:05:29
**/
@Data
public
class
SociaFriendYgsAddVo
implements
Serializable
{
// 社保id,用于回写
@ExcelIgnore
private
String
socialId
;
@ExcelProperty
(
"社保户"
)
private
String
socialHouseholdName
;
// 户配置的“单位统一信用代码”
private
String
unitCreditCode
;
// "行政区划代码"
private
String
areaCode
;
// "社保-登录账户"
private
String
socialAccount
;
// "社保-登录密码"
private
String
socialPassword
;
// "医保-登录账户"
private
String
mediclAccount
;
// "医保-登录密码"
private
String
mediclPassword
;
// "单位编号"
private
String
customerNo
;
@ExcelProperty
(
"员工姓名"
)
private
String
empName
;
@ExcelProperty
(
"员工身份证"
)
private
String
empIdcard
;
@ExcelProperty
(
"民族"
)
private
String
empNational
;
@ExcelProperty
(
"手机号码"
)
private
String
empMobile
;
// yyyy-MM-dd
@ExcelProperty
(
"社保起缴日期"
)
private
String
socialStartDate
;
// whcd 见字典“受教育程度” 空的默认“大学专科”
@ExcelProperty
(
"学历"
)
private
String
educationName
;
@ExcelProperty
(
"备案基数"
)
private
String
recordBase
;
// yyyyMM
@ExcelProperty
(
"社保起缴月"
)
private
String
socialStartMonth
;
// 用工形式ygxs contractType
// 0 订立以完成一定工作任务为期限的劳动合同 1 订立固定期限劳动合同 2 订立无固定期限劳动合同
private
String
contractType
;
// 工作时间制度 派单表的 工时制 1=标准工作时间制度,2=综合计算工时制度,3=不定时工作时间制度
@ExcelProperty
(
"工时制"
)
private
String
workingHours
;
// 0 以完成一定工作为期限的劳动合同 1 固定期限劳动合同 2 无固定期限劳动合同
private
String
contractTypeTwo
;
// "合同到期时间" 劳动合同截止日期 yyyy-MM-dd
@ExcelProperty
(
"合同到期时间"
)
private
String
contractEnd
;
// 中断原因 除死亡以外,其他停保原因默认:“在职人员解除/终止劳动合同” 死亡对应“死亡或失踪”
// 单位提出协商一致21 职工与用人单位协商一致解除劳动合同(18条1款)
// 退休5 第四十四条第二项,劳动者开始依法享受基本养老保险待遇
//死亡16 劳动者死亡,或者被人民法院宣告死亡或者宣告失踪
//个人辞职1 劳动者提前30天书面通知解除或试用期提前3天通知解除合同
//其他20 法律、行政法规规定的其他情形
//合同期满12 劳动合同期满
//单位辞退2 劳动者严重违反用人单位的规章制度
@ExcelProperty
(
"减少原因"
)
private
String
reduceReason
;
// 企业职工社会保险增员花名册 qyzgshbxzyhmc
private
String
qyzgshbxzyhmc
;
// 企业职工基本医疗保险参保登记表 qyzgshbxzyhmc
private
String
qyzgjbylbxcbdjb
;
@ExcelProperty
(
"派单类型"
)
private
String
type
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
View file @
34f652a7
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendPushServiceImpl.java
View file @
34f652a7
...
...
@@ -172,7 +172,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
String
thisTime
=
DateUtil
.
getThisTime
();
// type 1社保增 2社保减 3医保增 4医保减
int
type
=
1
;
String
id
=
socialFriendConfig
.
pushFriendByInfo
(
restTemplate
,
"3"
,
type
,
thisTime
);
SociaFriendYgsAddVo
vo
=
new
SociaFriendYgsAddVo
();
String
id
=
socialFriendConfig
.
pushFriendByInfo
(
restTemplate
,
vo
,
type
,
thisTime
);
return
R
.
ok
(
id
);
}
...
...
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