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
50592a96
Commit
50592a96
authored
Jul 12, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.5' into MVP1.5.5
parents
0584fcf0
222196d8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
107 additions
and
2 deletions
+107
-2
TSettleDomainEkpVo.java
...fu/cloud/plus/v1/yifu/archives/vo/TSettleDomainEkpVo.java
+6
-0
MsgTask.java
...main/java/com/yifu/cloud/plus/v1/job/compont/MsgTask.java
+15
-0
MsgInfo.java
.../main/java/com/yifu/cloud/plus/v1/msg/entity/MsgInfo.java
+1
-1
MsgInfoController.java
.../yifu/cloud/plus/v1/msg/controller/MsgInfoController.java
+15
-0
MsgInfoMapper.java
...java/com/yifu/cloud/plus/v1/msg/mapper/MsgInfoMapper.java
+3
-0
MsgInfoService.java
...va/com/yifu/cloud/plus/v1/msg/service/MsgInfoService.java
+2
-0
MsgInfoServiceImpl.java
...fu/cloud/plus/v1/msg/service/impl/MsgInfoServiceImpl.java
+46
-0
MsgInfoMapper.xml
.../yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
+18
-0
application.yml
yifu-order/yifu-order-biz/src/main/resources/application.yml
+1
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TSettleDomainEkpVo.java
View file @
50592a96
...
...
@@ -441,4 +441,10 @@ public class TSettleDomainEkpVo implements Serializable {
*/
@Schema
(
description
=
"BU归属"
)
private
String
buBelong
;
@Schema
(
description
=
"一级指标归属"
,
name
=
"firstIndicatorBelong"
)
private
String
firstIndicatorBelong
;
@Schema
(
description
=
"二级指标归属"
,
name
=
"secondIndicatorBelong"
)
private
String
secondIndicatorBelong
;
}
yifu-job/yifu-job-api/src/main/java/com/yifu/cloud/plus/v1/job/compont/MsgTask.java
View file @
50592a96
...
...
@@ -37,5 +37,20 @@ public class MsgTask {
"/msg/inner/updateOverTimeMsg"
,
""
,
Object
.
class
,
SecurityConstants
.
FROM_IN
);
log
.
info
(
"-------------每29分钟刷新 超时待办提醒定时任务结束------------"
);
}
/**
* @Author wzb
* @Description 每29分钟刷新 薪资状态变更待支出提醒
* @Date 17:23 2023/7/3
* @Param
* @return
**/
public
void
createChangeStatusMsg
()
{
log
.
info
(
"-------------每29分钟刷新 薪资状态变更待支出提醒-定时任务开始------------"
);
HttpDaprUtil
.
invokeMethodPost
(
daprMsgProperties
.
getAppUrl
(),
daprMsgProperties
.
getAppId
(),
"/msg/inner/statusChangeTimeMsg"
,
""
,
Object
.
class
,
SecurityConstants
.
FROM_IN
);
log
.
info
(
"-------------每29分钟刷新 薪资状态变更待支出提醒定时任务结束------------"
);
}
}
\ No newline at end of file
yifu-msg/yifu-msg-api/src/main/java/com/yifu/cloud/plus/v1/msg/entity/MsgInfo.java
View file @
50592a96
...
...
@@ -74,7 +74,7 @@ public class MsgInfo {
@ExcelAttribute
(
name
=
"0 接单 1 超时 2变更"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"0 接单 1 超时 2变更不能超过1个字符"
)
@ExcelProperty
(
"0 接单 1 超时 2变更"
)
@Schema
(
description
=
"0 接单 1 超时 2变更"
)
@Schema
(
description
=
"0 接单 1 超时 2变更
3薪资状态待支出
"
)
private
String
alertType
;
/**
...
...
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/controller/MsgInfoController.java
View file @
50592a96
...
...
@@ -89,4 +89,19 @@ public class MsgInfoController {
public
void
updateOverTimeMsg
()
{
msgInfoService
.
updateOverTimeMsg
();
}
/**
* @Author wzb
* @Description 每29分钟刷新 薪资状态变更待支出提醒
* @Date 14:29 2023/7/3
* @Param
* @return
**/
@Operation
(
summary
=
"每29分钟刷新 -薪资状态变更待支出提醒"
,
description
=
"每29分钟刷新 薪资状态变更待支出提醒"
)
@Inner
@PostMapping
(
"/inner/statusChangeTimeMsg"
)
public
void
statusChangeTimeMsg
()
{
msgInfoService
.
statusChangeTimeMsg
();
}
}
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/mapper/MsgInfoMapper.java
View file @
50592a96
...
...
@@ -45,5 +45,8 @@ public interface MsgInfoMapper extends BaseMapper<MsgInfo> {
List
<
MsgInfo
>
getMsgByTask
();
List
<
MsgInfo
>
getMsgByTaskOne
();
List
<
MsgInfo
>
getMsgInfo
(
@Param
(
"msgInfo"
)
MsgInfo
msgInfo
);
}
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/service/MsgInfoService.java
View file @
50592a96
...
...
@@ -44,4 +44,6 @@ public interface MsgInfoService extends IService<MsgInfo> {
R
<
Boolean
>
createMsg
(
EkpAlertVo
vo
);
void
updateOverTimeMsg
();
void
statusChangeTimeMsg
();
}
yifu-msg/yifu-msg-biz/src/main/java/com/yifu/cloud/plus/v1/msg/service/impl/MsgInfoServiceImpl.java
View file @
50592a96
...
...
@@ -155,4 +155,50 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl
this
.
saveBatch
(
saves
);
}
}
/**
* @Author wzb
* @Description 薪资状态变更待支出提醒
* @Date 14:58 2023/7/3
* @Param
* @return
**/
@Transactional
@Override
public
void
statusChangeTimeMsg
(){
// 1. 删除未读的待支出状态变更,如果有继续生成
baseMapper
.
delete
(
Wrappers
.<
MsgInfo
>
query
().
lambda
()
.
eq
(
MsgInfo:
:
getReadStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
MsgInfo:
:
getAlertType
,
CommonConstants
.
THREE_STRING
));
List
<
MsgInfo
>
temps
=
baseMapper
.
selectList
(
Wrappers
.<
MsgInfo
>
query
().
lambda
()
.
eq
(
MsgInfo:
:
getAlertType
,
CommonConstants
.
THREE_STRING
)
.
eq
(
MsgInfo:
:
getReadStatus
,
CommonConstants
.
ONE_STRING
));
Map
<
String
,
MsgInfo
>
tempMap
=
new
HashMap
<>();
if
(
Common
.
isNotNull
(
temps
)){
for
(
MsgInfo
msg:
temps
){
tempMap
.
put
(
msg
.
getOrderNo
(),
msg
);
}
}
List
<
MsgInfo
>
msgInfos
=
baseMapper
.
getMsgByTaskOne
();
List
<
MsgInfo
>
saves
=
new
ArrayList
<>();
if
(
Common
.
isNotNull
(
msgInfos
)){
//2. 重新生成
MsgInfo
temp
;
for
(
MsgInfo
ms:
msgInfos
){
temp
=
tempMap
.
get
(
ms
.
getOrderNo
());
if
(
Common
.
isNotNull
(
temp
)){
tempMap
.
remove
(
ms
.
getOrderNo
());
continue
;
}
ms
.
setCreateTime
(
LocalDateTime
.
now
());
ms
.
setUrl
(
MesConstants
.
orderUrl
+
ms
.
getOrderId
());
saves
.
add
(
ms
);
}
if
(
Common
.
isNotNull
(
tempMap
)){
this
.
removeByIds
(
tempMap
.
values
());
}
this
.
saveBatch
(
saves
);
}
}
}
yifu-msg/yifu-msg-biz/src/main/resources/mapper/MsgInfoMapper.xml
View file @
50592a96
...
...
@@ -129,4 +129,22 @@
) x
where x.date1 > date2
</select>
<select
id=
"getMsgByTaskOne"
resultMap=
"msgInfoMap"
>
SELECT
b1.fd_3ac901ba3b9d3e domain_name,
o.fd_no ALERT_USER,
b1.fd_3ac901c5184274 ORDER_NO,
b1.fd_id ORDER_ID,
'3' AS ALERT_TYPE
FROM
lbpm_workitem a
LEFT JOIN lbpm_node e ON e.fd_id = a.fd_node_id
LEFT JOIN lbpm_process p ON p.fd_id = e.fd_process_id
LEFT JOIN ekp_ea33075576149bb8a4f5 b1 ON p.fd_model_id = b1.fd_id
LEFT JOIN sys_org_element o ON o.fd_id = fd_expected_id
WHERE
b1.fd_3bddc3d6c8a734 = '待支出'
AND b1.fd_id IS NOT NULL
</select>
</mapper>
yifu-order/yifu-order-biz/src/main/resources/application.yml
View file @
50592a96
...
...
@@ -71,7 +71,7 @@ spring:
#所有上传文件最大大小
max-request-size
:
100MB
#单个文件最大大小
max-file-size
:
5
0MB
max-file-size
:
10
0MB
#swagger 文档 https://springdoc.org/
### OpenAPI3 注解
# OpenAPI 3 注解位置
...
...
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