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
3423d42b
Commit
3423d42b
authored
Apr 02, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.8-税友批量减少优化
parent
98a00d6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
27 deletions
+40
-27
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+40
-27
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
View file @
3423d42b
...
...
@@ -286,7 +286,22 @@ public class SocialFriendConfig {
// 参保人员名单 数组
JSONArray
cbrymdArr
=
new
JSONArray
();
JSONObject
cbrymdOne
;
String
areaName
=
"安徽省"
;
String
gj
=
"中国"
;
String
hkxz
=
"本地居民户口"
;
JSONObject
jyxx
;
String
startDate
;
JSONArray
blxmlbArr
;
JSONObject
blxmlbOne
;
String
blxm
=
"社保"
;
// 险种类型 例如养老、工伤、医疗等
String
xzlb
;
if
(
type
>
2
)
{
blxm
=
"医保"
;
}
JSONObject
tszdxx
;
// 企业职工基本医疗保险参保登记表 安徽非必填! 数组
String
[]
arr
=
{
qyzgjbylbxcbdjb
};
// 2025-3-14 15:44:32 单个改造为批量
for
(
SociaFriendYgsAddVo
vo
:
listVo
)
{
cbrymdOne
=
new
JSONObject
();
...
...
@@ -298,9 +313,8 @@ public class SocialFriendConfig {
cbrymdOne
.
put
(
"zzhm"
,
vo
.
getEmpIdcard
());
// 国籍(地区) "中国"
cbrymdOne
.
put
(
"gj"
,
"中国"
);
cbrymdOne
.
put
(
"gj"
,
gj
);
// 性别
//cbrymdOne.put("xb", "男")
cbrymdOne
.
put
(
"xb"
,
getSexName
(
vo
.
getEmpIdcard
()));
// 出生日期
cbrymdOne
.
put
(
"csrq"
,
getBirthStr
(
vo
.
getEmpIdcard
()));
...
...
@@ -308,20 +322,19 @@ public class SocialFriendConfig {
cbrymdOne
.
put
(
"mz"
,
vo
.
getEmpNational
());
// 手机号码
cbrymdOne
.
put
(
"sjhm"
,
vo
.
getEmpMobile
());
String
areaName
=
"安徽省"
;
// 户口地所在行政区
cbrymdOne
.
put
(
"hkszdxzq"
,
areaName
);
// 户口所在地地址
cbrymdOne
.
put
(
"hkszddz"
,
areaName
);
// 户口性质
//cbrymdOne.put("hkxz", "居民户口(含农业户口、非农业户口)")
cbrymdOne
.
put
(
"hkxz"
,
"本地居民户口"
);
cbrymdOne
.
put
(
"hkxz"
,
hkxz
);
// 居住地址
cbrymdOne
.
put
(
"jzdz"
,
areaName
);
// 居住地行政区
cbrymdOne
.
put
(
"jzdzxzq"
,
areaName
);
// 社保起缴日期(养老起缴)yyyy-MM-dd
String
startDate
=
vo
.
getSocialStartDate
();
startDate
=
vo
.
getSocialStartDate
();
// 参加工作日期
cbrymdOne
.
put
(
"cjgzrq"
,
startDate
);
// 文化程度 见字典“受教育程度” 空的默认“大学专科”
...
...
@@ -329,13 +342,11 @@ public class SocialFriendConfig {
cbrymdOne
.
put
(
"whcd"
,
vo
.
getEducationName
());
// 办理项目列表
JSONArray
blxmlbArr
=
new
JSONArray
();
JSONObject
blxmlbOne
=
new
JSONObject
();
String
blxm
=
"社保"
;
blxmlbArr
=
new
JSONArray
();
blxmlbOne
=
new
JSONObject
();
// 险种类型 例如养老、工伤、医疗等
String
xzlb
=
"企业职工养老,工伤保险,失业保险"
;
xzlb
=
"企业职工养老,工伤保险,失业保险"
;
if
(
type
>
2
)
{
blxm
=
"医保"
;
xzlb
=
null
;
if
(
Common
.
isNotNull
(
vo
.
getUnitMedicalMoney
())
&&
CommonConstants
.
ONE_INTEGER
.
equals
(
vo
.
getUnitMedicalMoney
()))
{
xzlb
=
"职工基本医疗保险"
;
...
...
@@ -355,7 +366,6 @@ public class SocialFriendConfig {
}
}
}
String
[]
strArr
=
xzlb
.
split
(
","
);
// 办理项目
blxmlbOne
.
put
(
"blxm"
,
blxm
);
// 本次参保日期 格式:yyyy-MM-dd
...
...
@@ -364,12 +374,14 @@ public class SocialFriendConfig {
blxmlbOne
.
put
(
"sbgz"
,
vo
.
getRecordBase
());
// 险种类型 例如养老、工伤、医疗等
blxmlbOne
.
put
(
"xzlb"
,
strArr
);
if
(
Common
.
isNotNull
(
xzlb
))
{
blxmlbOne
.
put
(
"xzlb"
,
xzlb
.
split
(
","
));
}
blxmlbArr
.
add
(
blxmlbOne
);
cbrymdOne
.
put
(
"blxmlb"
,
blxmlbArr
);
// 特色字段信息
JSONObject
tszdxx
=
new
JSONObject
();
tszdxx
=
new
JSONObject
();
// 增员年月 社保必填;yyyyMM 社保起缴日期(养老起缴)到月
tszdxx
.
put
(
"zyny"
,
vo
.
getSocialStartMonth
());
// 同步办理用工劳动备案 社保必填;是
...
...
@@ -406,15 +418,13 @@ public class SocialFriendConfig {
// 社保增员必填
tszdxx
.
put
(
"qyzgshbxzyhmc"
,
vo
.
getQyzgshbxzyhmc
());
}
else
{
// 企业职工基本医疗保险参保登记表 安徽非必填! 数组
String
[]
arr
=
{
qyzgjbylbxcbdjb
};
// 增员、减员必填
tszdxx
.
put
(
"qyzgjbylbxcbdjb"
,
arr
);
}
cbrymdOne
.
put
(
"tszdxx"
,
tszdxx
);
// 就业信息 社保必填;
JSONObject
jyxx
=
new
JSONObject
();
jyxx
=
new
JSONObject
();
// 劳动合同类型
jyxx
.
put
(
"ldhtlx"
,
vo
.
getContractTypeTwo
());
// 劳动合同起始日期
...
...
@@ -440,10 +450,18 @@ public class SocialFriendConfig {
// 参保人员名单 数组
// 参保人员名单 数组
JSONArray
cbrymdArr
=
new
JSONArray
();
JSONObject
cbrymdOne
=
new
JSONObject
();
JSONObject
cbrymdOne
;
JSONArray
blxmlbArr
;
JSONObject
blxmlbOne
;
JSONObject
tszdxx
;
String
blxm
=
"社保"
;
String
[]
arr
=
{
qyzgjbylbxcbdjb
};
if
(
type
>
2
)
{
blxm
=
"医保"
;
}
// 2025-3-14 15:44:32 单个改造为批量
for
(
SociaFriendYgsAddVo
vo
:
listVo
)
{
cbrymdOne
=
new
JSONObject
();
// 姓名
cbrymdOne
.
put
(
"xm"
,
vo
.
getEmpName
());
// 证件类型
...
...
@@ -451,12 +469,8 @@ public class SocialFriendConfig {
// 证件号码"828888200908213819"
cbrymdOne
.
put
(
"zzhm"
,
vo
.
getEmpIdcard
());
// 办理项目列表
JSONArray
blxmlbArr
=
new
JSONArray
();
JSONObject
blxmlbOne
=
new
JSONObject
();
String
blxm
=
"社保"
;
if
(
type
>
2
)
{
blxm
=
"医保"
;
}
blxmlbArr
=
new
JSONArray
();
blxmlbOne
=
new
JSONObject
();
// 办理项目
blxmlbOne
.
put
(
"blxm"
,
blxm
);
// 中断原因 除死亡以外,其他停保原因默认:“在职人员解除/终止劳动合同” 死亡对应“死亡或失踪”
...
...
@@ -467,7 +481,7 @@ public class SocialFriendConfig {
cbrymdOne
.
put
(
"blxmlb"
,
blxmlbArr
);
// 特色字段信息
JSONObject
tszdxx
=
new
JSONObject
();
tszdxx
=
new
JSONObject
();
// 劳动用工备案解除/终止原因 数据字典文档 法律依据 [社保]必填;
tszdxx
.
put
(
"zzyy"
,
vo
.
getZzyy
());
// 社保个人身份材料 无
...
...
@@ -478,7 +492,6 @@ public class SocialFriendConfig {
// tszdxx.put("zgshbxjshmc", )
if
(
type
>
2
)
{
// 职工基本医疗保险参保登记表
String
[]
arr
=
{
qyzgjbylbxcbdjb
};
tszdxx
.
put
(
"zgjbylbxcbdjb"
,
arr
);
}
cbrymdOne
.
put
(
"tszdxx"
,
tszdxx
);
...
...
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