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
80cf0683
Commit
80cf0683
authored
Nov 08, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化查询条件
parent
e531f83f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
12 deletions
+38
-12
EkpSalaryUtil.java
...a/com/yifu/cloud/plus/v1/yifu/ekp/util/EkpSalaryUtil.java
+4
-8
TSalaryAccountMapper.java
...loud/plus/v1/yifu/salary/mapper/TSalaryAccountMapper.java
+9
-0
TSalaryAccountService.java
...ud/plus/v1/yifu/salary/service/TSalaryAccountService.java
+9
-0
TSalaryAccountServiceImpl.java
...1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
+5
-0
TSalaryStandardServiceImpl.java
.../yifu/salary/service/impl/TSalaryStandardServiceImpl.java
+6
-4
TSalaryAccountMapper.xml
...ry-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
+5
-0
No files found.
yifu-common/yifu-common-ekp/src/main/java/com/yifu/cloud/plus/v1/yifu/ekp/util/EkpSalaryUtil.java
View file @
80cf0683
...
...
@@ -67,18 +67,16 @@ public class EkpSalaryUtil {
}
// 推送主表到ekp
public
String
sendStandardToEKP
(
EkpSalaryStandardParam
param
){
public
String
sendStandardToEKP
(
String
loginName
,
EkpSalaryStandardParam
param
){
log
.
info
(
"推送EKP开始--薪资主表数据"
);
RestTemplate
yourRestTemplate
=
new
RestTemplate
();
try
{
//指向EKP的接口url
//把ModelingAppModelParameterAddForm转换成MultiValueMap
JSONObject
loginName
=
new
JSONObject
();
String
formValues
=
new
ObjectMapper
().
writeValueAsString
(
param
);
loginName
.
append
(
"LoginName"
,
ekpProperties
.
getLoginName
());
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
getDocSubject
());
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"
admin
\"}"
);
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"
"
+
loginName
+
"
\"}"
);
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
wholeForm
.
add
(
"formValues"
,
formValues
);
wholeForm
.
add
(
"fdModelId"
,
ekpProperties
.
getStandardFdModelId
());
...
...
@@ -106,17 +104,15 @@ public class EkpSalaryUtil {
}
// 退表到ekp
public
String
backStandardToEKP
(
EkpSalaryBackParam
param
){
public
String
backStandardToEKP
(
String
loginName
,
EkpSalaryBackParam
param
){
log
.
info
(
"推送EKP开始--薪资退表"
);
RestTemplate
yourRestTemplate
=
new
RestTemplate
();
try
{
//指向EKP的接口url
//把ModelingAppModelParameterAddForm转换成MultiValueMap
JSONObject
loginName
=
new
JSONObject
();
loginName
.
append
(
"LoginName"
,
ekpProperties
.
getLoginName
());
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
getDocSubject
());
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"
admin
\"}"
);
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"
"
+
loginName
+
"
\"}"
);
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
String
formValues
=
new
ObjectMapper
().
writeValueAsString
(
param
);
wholeForm
.
add
(
"formValues"
,
formValues
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryAccountMapper.java
View file @
80cf0683
...
...
@@ -120,4 +120,13 @@ public interface TSalaryAccountMapper extends BaseMapper<TSalaryAccount> {
int
noPageCountDiy
(
@Param
(
"searchVo"
)
TSalaryAccountSearchVo
searchVo
,
@Param
(
"idList"
)
List
<
String
>
idList
);
/**
* @param salaryId 工资表id
* @Description: 退表回退状态
* @Author: hgw
* @Date: 2022/11/8 15:41
* @return: void
**/
void
backSalaryBySalaryId
(
@Param
(
"salaryId"
)
String
salaryId
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TSalaryAccountService.java
View file @
80cf0683
...
...
@@ -114,4 +114,13 @@ public interface TSalaryAccountService extends IService<TSalaryAccount> {
* @return: java.util.List<com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpSalaryParam>
**/
List
<
EkpSalaryParamVo
>
getEkpSalaryParamList
(
String
salaryId
);
/**
* @param salaryId 工资表id
* @Description: 退表回退状态
* @Author: hgw
* @Date: 2022/11/8 15:41
* @return: void
**/
void
backSalaryBySalaryId
(
String
salaryId
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
View file @
80cf0683
...
...
@@ -229,4 +229,9 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
return
baseMapper
.
getEkpSalaryParamList
(
salaryId
);
}
@Override
public
void
backSalaryBySalaryId
(
String
salaryId
)
{
baseMapper
.
backSalaryBySalaryId
(
salaryId
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardServiceImpl.java
View file @
80cf0683
...
...
@@ -594,9 +594,9 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
standardParam
.
setFd_3b3d3ec85bfeb0
(
s
.
getSalaryMonth
().
substring
(
0
,
4
)
+
CommonConstants
.
CENTER_SPLIT_LINE_STRING
+
s
.
getSalaryMonth
().
substring
(
4
,
6
));
// 推送主表信息
sendBack
=
ekpSalaryUtil
.
sendStandardToEKP
(
standardParam
);
sendBack
=
ekpSalaryUtil
.
sendStandardToEKP
(
s
.
getCreateName
(),
s
tandardParam
);
if
(
Common
.
isEmpty
(
sendBack
)
||
sendBack
.
length
()
!=
32
)
{
sendBack
=
ekpSalaryUtil
.
sendStandardToEKP
(
standardParam
);
sendBack
=
ekpSalaryUtil
.
sendStandardToEKP
(
s
.
getCreateName
(),
s
tandardParam
);
}
s
.
setSendTime
(
new
Date
());
s
.
setSendMonth
(
nowMonth
);
...
...
@@ -901,9 +901,9 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
param
.
setFd_3b3c293745e7b4
(
ss
.
getDeptName
());
param
.
setFd_3b3c2935c13056
(
ss
.
getDeptNo
());
param
.
setFd_3b3c293811c0ee
(
ss
.
getApplyNo
());
String
sendBack
=
ekpSalaryUtil
.
backStandardToEKP
(
param
);
String
sendBack
=
ekpSalaryUtil
.
backStandardToEKP
(
ss
.
getCreateName
(),
param
);
if
(
Common
.
isEmpty
(
sendBack
)
||
sendBack
.
length
()
!=
32
)
{
sendBack
=
ekpSalaryUtil
.
backStandardToEKP
(
param
);
sendBack
=
ekpSalaryUtil
.
backStandardToEKP
(
ss
.
getCreateName
(),
param
);
}
if
(
Common
.
isNotNull
(
sendBack
)
&&
sendBack
.
length
()
==
32
)
{
// 更新薪资为确认不通过
...
...
@@ -911,6 +911,8 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
ss
.
setBackTime
(
new
Date
());
ss
.
setBackEkpId
(
sendBack
);
this
.
updateById
(
ss
);
// 更新报账表
salaryAccountService
.
backSalaryBySalaryId
(
ss
.
getId
());
TIncome
income
=
new
TIncome
();
income
.
setApplyNo
(
applyNo
);
// 删除收入对应编号的明细
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
View file @
80cf0683
...
...
@@ -838,4 +838,9 @@
</if>
</if>
</sql>
<!-- 退表回退状态 -->
<update
id=
"backSalaryBySalaryId"
>
update t_salary_account a set a.SEND_STATUS = '0' where a.SALARY_FORM_ID = #{salaryId}
</update>
</mapper>
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