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
689b4679
Commit
689b4679
authored
Mar 14, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
明细接口改造
parent
81f8a720
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
69 deletions
+85
-69
EkpFundInfoServiceImpl.java
...loud/plus/v1/ekp/service/impl/EkpFundInfoServiceImpl.java
+3
-1
EkpManagerInfoServiceImpl.java
...d/plus/v1/ekp/service/impl/EkpManagerInfoServiceImpl.java
+4
-1
EkpSalaryInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSalaryInfoServiceImpl.java
+3
-1
EkpSocialInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
+2
-1
DoJointSocialTask.java
...ifu/cloud/plus/v1/yifu/social/util/DoJointSocialTask.java
+73
-65
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpFundInfoServiceImpl.java
View file @
689b4679
...
@@ -31,6 +31,8 @@ import java.util.stream.Collectors;
...
@@ -31,6 +31,8 @@ import java.util.stream.Collectors;
@Service
@Service
public
class
EkpFundInfoServiceImpl
extends
ServiceImpl
<
EkpFundInfoMapper
,
EkpFundInfo
>
implements
EkpFundInfoService
{
public
class
EkpFundInfoServiceImpl
extends
ServiceImpl
<
EkpFundInfoMapper
,
EkpFundInfo
>
implements
EkpFundInfoService
{
private
static
final
Random
rand
=
new
Random
();
/**
/**
//@Description: 公积金明细推送至ekp
//@Description: 公积金明细推送至ekp
//@Author: huyc
//@Author: huyc
...
@@ -268,7 +270,7 @@ public class EkpFundInfoServiceImpl extends ServiceImpl<EkpFundInfoMapper, EkpFu
...
@@ -268,7 +270,7 @@ public class EkpFundInfoServiceImpl extends ServiceImpl<EkpFundInfoMapper, EkpFu
socialInfo
.
setFd_3add9edfbc6f7e
(
"未结算"
);
socialInfo
.
setFd_3add9edfbc6f7e
(
"未结算"
);
//单号
//单号
socialInfo
.
setFd_3adfe95c169c48
(
"GJJ"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
socialInfo
.
setFd_3adfe95c169c48
(
"GJJ"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
+
socialParam
.
getFd_3b0afbaf10df2c
().
substring
(
socialParam
.
getFd_3b0afbaf10df2c
().
length
()
-
4
));
+
rand
.
nextInt
(
999999
));
}
}
/**
/**
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpManagerInfoServiceImpl.java
View file @
689b4679
...
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Service;
...
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.Random
;
/**
/**
* @author huyc
* @author huyc
...
@@ -24,6 +25,8 @@ import java.util.Optional;
...
@@ -24,6 +25,8 @@ import java.util.Optional;
@Service
@Service
public
class
EkpManagerInfoServiceImpl
extends
ServiceImpl
<
EkpManagerInfoMapper
,
EkpManagerInfo
>
implements
EkpManagerInfoService
{
public
class
EkpManagerInfoServiceImpl
extends
ServiceImpl
<
EkpManagerInfoMapper
,
EkpManagerInfo
>
implements
EkpManagerInfoService
{
private
static
final
Random
rand
=
new
Random
();
/**
/**
* //@Description: 工资明细推送至ekp
* //@Description: 工资明细推送至ekp
* //@Author: huyc
* //@Author: huyc
...
@@ -110,6 +113,6 @@ public class EkpManagerInfoServiceImpl extends ServiceImpl<EkpManagerInfoMapper,
...
@@ -110,6 +113,6 @@ public class EkpManagerInfoServiceImpl extends ServiceImpl<EkpManagerInfoMapper,
managerInfo
.
setFd_3adfefaaef583e
(
"未收"
);
managerInfo
.
setFd_3adfefaaef583e
(
"未收"
);
//单号
//单号
managerInfo
.
setFd_3adfef7f5d2b52
(
"GLF"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
managerInfo
.
setFd_3adfef7f5d2b52
(
"GLF"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
+
incomeParam
.
getFd_3b13dae9bd70f8
().
substring
(
incomeParam
.
getFd_3b13dae9bd70f8
().
length
()
-
4
));
+
rand
.
nextInt
(
999999
));
}
}
}
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSalaryInfoServiceImpl.java
View file @
689b4679
...
@@ -30,6 +30,8 @@ import java.util.stream.Collectors;
...
@@ -30,6 +30,8 @@ import java.util.stream.Collectors;
@Service
@Service
public
class
EkpSalaryInfoServiceImpl
extends
ServiceImpl
<
EkpSalaryInfoMapper
,
EkpSalaryInfo
>
implements
EkpSalaryInfoService
{
public
class
EkpSalaryInfoServiceImpl
extends
ServiceImpl
<
EkpSalaryInfoMapper
,
EkpSalaryInfo
>
implements
EkpSalaryInfoService
{
private
static
final
Random
rand
=
new
Random
();
/**
/**
//@Description: 工资明细推送至ekp
//@Description: 工资明细推送至ekp
//@Author: huyc
//@Author: huyc
...
@@ -245,7 +247,7 @@ public class EkpSalaryInfoServiceImpl extends ServiceImpl<EkpSalaryInfoMapper, E
...
@@ -245,7 +247,7 @@ public class EkpSalaryInfoServiceImpl extends ServiceImpl<EkpSalaryInfoMapper, E
salaryInfo
.
setFd_3adfeec7ccdd1c
(
CommonConstants
.
EMPTY_STRING
.
equals
(
salaryParam
.
getFd_3adfee203f86b2
())
?
null
:
Double
.
parseDouble
(
salaryParam
.
getFd_3adfee203f86b2
()));
salaryInfo
.
setFd_3adfeec7ccdd1c
(
CommonConstants
.
EMPTY_STRING
.
equals
(
salaryParam
.
getFd_3adfee203f86b2
())
?
null
:
Double
.
parseDouble
(
salaryParam
.
getFd_3adfee203f86b2
()));
//单号
//单号
salaryInfo
.
setFd_3adfedfa4410aa
(
"GZ"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
salaryInfo
.
setFd_3adfedfa4410aa
(
"GZ"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
+
salaryParam
.
getFd_3b10af838eab5c
().
substring
(
salaryParam
.
getFd_3b10af838eab5c
().
length
()
-
4
));
+
rand
.
nextInt
(
999999
));
}
}
/**
/**
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
View file @
689b4679
...
@@ -33,6 +33,7 @@ import java.util.stream.Collectors;
...
@@ -33,6 +33,7 @@ import java.util.stream.Collectors;
@Service
@Service
public
class
EkpSocialInfoServiceImpl
extends
ServiceImpl
<
EkpSocialInfoMapper
,
EkpSocialInfo
>
implements
EkpSocialInfoService
{
public
class
EkpSocialInfoServiceImpl
extends
ServiceImpl
<
EkpSocialInfoMapper
,
EkpSocialInfo
>
implements
EkpSocialInfoService
{
private
static
final
Random
rand
=
new
Random
();
/**
/**
//@Description: 社保明细推送至ekp
//@Description: 社保明细推送至ekp
//@Author: huyc
//@Author: huyc
...
@@ -346,7 +347,7 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
...
@@ -346,7 +347,7 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
socialInfo
.
setFd_3add9eed23894a
(
"未付"
);
socialInfo
.
setFd_3add9eed23894a
(
"未付"
);
//单号
//单号
socialInfo
.
setFd_3adfe95c169c48
(
"SB"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
socialInfo
.
setFd_3adfe95c169c48
(
"SB"
+
LocalDateTimeUtils
.
formatTime
(
LocalDateTime
.
now
(),
DateUtil
.
DATE_PATTERN
)
+
socialParam
.
getFd_3b0afbe1f94a08
().
substring
(
socialParam
.
getFd_3b0afbe1f94a08
().
length
()
-
4
));
+
rand
.
nextInt
(
999999
));
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/util/DoJointSocialTask.java
View file @
689b4679
...
@@ -675,27 +675,29 @@ public class DoJointSocialTask {
...
@@ -675,27 +675,29 @@ public class DoJointSocialTask {
socialParam
.
setYgFlag
(
CommonConstants
.
ZERO_STRING
);
socialParam
.
setYgFlag
(
CommonConstants
.
ZERO_STRING
);
insertList
.
add
(
socialParam
);
insertList
.
add
(
socialParam
);
}
}
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushSocialInfoToEkp
(
insertList
);
if
(!
insertList
.
isEmpty
())
{
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushSocialInfoToEkp
(
insertList
);
EkpSocialPushInfoVo
vo
=
info
.
getData
();
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
String
idList
=
vo
.
getPaymentIdSum
();
EkpSocialPushInfoVo
vo
=
info
.
getData
();
if
(
Common
.
isNotNull
(
idList
))
{
String
idList
=
vo
.
getPaymentIdSum
();
paymentInfoMapper
.
updateBySocialPaymentList
(
idList
.
substring
(
0
,
idList
.
length
()-
1
));
if
(
Common
.
isNotNull
(
idList
))
{
}
paymentInfoMapper
.
updateBySocialPaymentList
(
idList
.
substring
(
0
,
idList
.
length
()
-
1
));
List
<
TPaymentSocialPush
>
list
=
vo
.
getUnPushInfo
();
}
if
(!
list
.
isEmpty
())
{
List
<
TPaymentSocialPush
>
list
=
vo
.
getUnPushInfo
();
socialPushService
.
saveBatch
(
list
);
if
(!
list
.
isEmpty
())
{
socialPushService
.
saveBatch
(
list
);
}
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setTitle
(
"社保明细批量保存失败"
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setTitle
(
"社保明细批量保存失败"
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
...
@@ -845,22 +847,24 @@ public class DoJointSocialTask {
...
@@ -845,22 +847,24 @@ public class DoJointSocialTask {
}
}
paramList
.
add
(
fundParam
);
paramList
.
add
(
fundParam
);
}
}
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushFundInfoToEkp
(
paramList
);
if
(!
paramList
.
isEmpty
())
{
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushFundInfoToEkp
(
paramList
);
EkpSocialPushInfoVo
vo
=
info
.
getData
();
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
if
(!
Common
.
isEmpty
(
vo
.
getPaymentIds
()))
{
EkpSocialPushInfoVo
vo
=
info
.
getData
();
paymentInfoMapper
.
batchUpdateFundPaymentByList
(
vo
.
getPaymentIds
());
if
(!
Common
.
isEmpty
(
vo
.
getPaymentIds
()))
{
paymentInfoMapper
.
batchUpdateFundPaymentByList
(
vo
.
getPaymentIds
());
}
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"公积金实缴费用推送"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setTitle
(
"公积金批量插入失败"
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"公积金实缴费用推送"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setTitle
(
"公积金批量插入失败"
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
...
@@ -1139,21 +1143,23 @@ public class DoJointSocialTask {
...
@@ -1139,21 +1143,23 @@ public class DoJointSocialTask {
socialParam
.
setFd_3b5cc58d1a70fe
(
adress
.
toString
());
socialParam
.
setFd_3b5cc58d1a70fe
(
adress
.
toString
());
insertList
.
add
(
socialParam
);
insertList
.
add
(
socialParam
);
}
}
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushSocialInfoToEkp
(
insertList
);
if
(!
insertList
.
isEmpty
())
{
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushSocialInfoToEkp
(
insertList
);
EkpSocialPushInfoVo
vo
=
info
.
getData
();
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
List
<
String
>
idList
=
vo
.
getPaymentIds
();
EkpSocialPushInfoVo
vo
=
info
.
getData
();
forecastLibraryMapper
.
updatePushStatus
(
idList
);
List
<
String
>
idList
=
vo
.
getPaymentIds
();
}
else
{
forecastLibraryMapper
.
updatePushStatus
(
idList
);
TSendEkpError
error
=
new
TSendEkpError
();
}
else
{
error
.
setCreateTime
(
new
Date
());
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setCreateTime
(
new
Date
());
error
.
setType
(
CommonConstants
.
TWO_STRING
);
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setCreateUserName
(
"社保预估费用推送"
);
error
.
setType
(
CommonConstants
.
TWO_STRING
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setCreateUserName
(
"社保预估费用推送"
);
error
.
setTitle
(
"社保预估明细批量保存失败"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setNums
(
CommonConstants
.
ONE_INT
);
error
.
setTitle
(
"社保预估明细批量保存失败"
);
tSendEkpErrorService
.
save
(
error
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
...
@@ -1323,21 +1329,23 @@ public class DoJointSocialTask {
...
@@ -1323,21 +1329,23 @@ public class DoJointSocialTask {
fundParam
.
setFd_3b5cc487bb46fa
(
adress
.
toString
());
fundParam
.
setFd_3b5cc487bb46fa
(
adress
.
toString
());
insertList
.
add
(
fundParam
);
insertList
.
add
(
fundParam
);
}
}
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushFundInfoToEkp
(
insertList
);
if
(!
insertList
.
isEmpty
())
{
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
R
<
EkpSocialPushInfoVo
>
info
=
ekpDaprUtil
.
pushFundInfoToEkp
(
insertList
);
EkpSocialPushInfoVo
vo
=
info
.
getData
();
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
List
<
String
>
idList
=
vo
.
getPaymentIds
();
EkpSocialPushInfoVo
vo
=
info
.
getData
();
forecastLibraryMapper
.
updatePushStatus
(
idList
);
List
<
String
>
idList
=
vo
.
getPaymentIds
();
}
else
{
forecastLibraryMapper
.
updatePushStatus
(
idList
);
TSendEkpError
error
=
new
TSendEkpError
();
}
else
{
error
.
setCreateTime
(
new
Date
());
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setCreateTime
(
new
Date
());
error
.
setType
(
CommonConstants
.
TWO_STRING
);
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setCreateUserName
(
"公积金预估费用推送"
);
error
.
setType
(
CommonConstants
.
TWO_STRING
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setCreateUserName
(
"公积金预估费用推送"
);
error
.
setTitle
(
"公积金预估明细批量保存失败"
);
error
.
setLinkId
(
unPushInfo
.
get
(
0
).
getId
());
error
.
setNums
(
CommonConstants
.
ONE_INT
);
error
.
setTitle
(
"公积金预估明细批量保存失败"
);
tSendEkpErrorService
.
save
(
error
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
save
(
error
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
...
...
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