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
97a65874
Commit
97a65874
authored
Mar 18, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.7-friend-改为批量
parent
d4f0e49d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
15 deletions
+55
-15
TSocialSoldierLogController.java
...1/yifu/social/controller/TSocialSoldierLogController.java
+13
-0
TSocialSoldierLogMapper.java
...d/plus/v1/yifu/social/mapper/TSocialSoldierLogMapper.java
+3
-0
TSocialSoldierLogService.java
...plus/v1/yifu/social/service/TSocialSoldierLogService.java
+9
-0
TSocialFriendServiceImpl.java
...v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
+2
-2
TSocialSoldierLogServiceImpl.java
...ifu/social/service/impl/TSocialSoldierLogServiceImpl.java
+6
-0
TSocialSoldierLogMapper.xml
...biz/src/main/resources/mapper/TSocialSoldierLogMapper.xml
+22
-13
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialSoldierLogController.java
View file @
97a65874
...
@@ -31,6 +31,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
...
@@ -31,6 +31,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
...
@@ -62,6 +63,18 @@ public class TSocialSoldierLogController {
...
@@ -62,6 +63,18 @@ public class TSocialSoldierLogController {
return
new
R
<>(
tSocialSoldierLogService
.
getTSocialSoldierLogPage
(
page
,
tSocialSoldierLog
));
return
new
R
<>(
tSocialSoldierLogService
.
getTSocialSoldierLogPage
(
page
,
tSocialSoldierLog
));
}
}
/**
* @Description: 获取最新的拉取时间
* @Author: hgw
* @Date: 2025/3/18 18:09
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.time.LocalDateTime>
**/
@Operation
(
description
=
"获取最新的拉取时间"
)
@GetMapping
(
"/getMaxTimeToLog"
)
public
R
<
LocalDateTime
>
getMaxTimeToLog
()
{
return
R
.
ok
(
tSocialSoldierLogService
.
getMaxTimeToLog
());
}
/**
/**
* 不分页查询
* 不分页查询
*
*
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TSocialSoldierLogMapper.java
View file @
97a65874
...
@@ -26,6 +26,7 @@ import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialSoldierLogSearchVo;
...
@@ -26,6 +26,7 @@ import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialSoldierLogSearchVo;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -46,4 +47,6 @@ public interface TSocialSoldierLogMapper extends BaseMapper<TSocialSoldierLog> {
...
@@ -46,4 +47,6 @@ public interface TSocialSoldierLogMapper extends BaseMapper<TSocialSoldierLog> {
List
<
TSocialSoldierLogExportVo
>
getTSocialSoldierLogList
(
@Param
(
"tSocialSoldierLog"
)
TSocialSoldierLogSearchVo
tSocialSoldierLog
);
List
<
TSocialSoldierLogExportVo
>
getTSocialSoldierLogList
(
@Param
(
"tSocialSoldierLog"
)
TSocialSoldierLogSearchVo
tSocialSoldierLog
);
LocalDateTime
getMaxTimeToLog
();
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialSoldierLogService.java
View file @
97a65874
...
@@ -25,6 +25,7 @@ import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialSoldierLog;
...
@@ -25,6 +25,7 @@ import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialSoldierLog;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -42,6 +43,14 @@ public interface TSocialSoldierLogService extends IService<TSocialSoldierLog> {
...
@@ -42,6 +43,14 @@ public interface TSocialSoldierLogService extends IService<TSocialSoldierLog> {
*/
*/
IPage
<
TSocialSoldierLog
>
getTSocialSoldierLogPage
(
Page
<
TSocialSoldierLog
>
page
,
TSocialSoldierLogSearchVo
tSocialSoldierLog
);
IPage
<
TSocialSoldierLog
>
getTSocialSoldierLogPage
(
Page
<
TSocialSoldierLog
>
page
,
TSocialSoldierLogSearchVo
tSocialSoldierLog
);
/**
* @Description: 获取最新的拉取时间
* @Author: hgw
* @Date: 2025/3/18 18:10
* @return: java.time.LocalDateTime
**/
LocalDateTime
getMaxTimeToLog
();
void
listExport
(
HttpServletResponse
response
,
TSocialSoldierLogSearchVo
searchVo
);
void
listExport
(
HttpServletResponse
response
,
TSocialSoldierLogSearchVo
searchVo
);
List
<
TSocialSoldierLog
>
noPageDiy
(
TSocialSoldierLogSearchVo
searchVo
);
List
<
TSocialSoldierLog
>
noPageDiy
(
TSocialSoldierLogSearchVo
searchVo
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
View file @
97a65874
...
@@ -292,7 +292,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -292,7 +292,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
updateSocial
.
setYgsHandleStatus
(
ygsHandleStatus
);
updateSocial
.
setYgsHandleStatus
(
ygsHandleStatus
);
// 拉取审核结果,加日志
// 拉取审核结果,加日志
if
(
Common
.
isNotNull
(
ygsHandleStatus
))
{
if
(
Common
.
isNotNull
(
ygsHandleStatus
))
{
socialLog
=
tSocialSoldierLogService
.
getSocialFriendLog
(
socialInfo
,
"
提交
"
,
"社保"
socialLog
=
tSocialSoldierLogService
.
getSocialFriendLog
(
socialInfo
,
"
拉取
"
,
"社保"
,
getStatusName
(
Integer
.
parseInt
(
ygsHandleStatus
)));
,
getStatusName
(
Integer
.
parseInt
(
ygsHandleStatus
)));
tSocialSoldierLogService
.
save
(
socialLog
);
tSocialSoldierLogService
.
save
(
socialLog
);
}
}
...
@@ -365,7 +365,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -365,7 +365,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
// 拉取审核结果,加日志
// 拉取审核结果,加日志
if
(
Common
.
isNotNull
(
ysdHandleStatus
))
{
if
(
Common
.
isNotNull
(
ysdHandleStatus
))
{
socialLog
=
tSocialSoldierLogService
.
getSocialFriendLog
(
socialInfo
,
"
提交
"
,
"医保"
socialLog
=
tSocialSoldierLogService
.
getSocialFriendLog
(
socialInfo
,
"
拉取
"
,
"医保"
,
getStatusName
(
Integer
.
parseInt
(
ysdHandleStatus
)));
,
getStatusName
(
Integer
.
parseInt
(
ysdHandleStatus
)));
tSocialSoldierLogService
.
save
(
socialLog
);
tSocialSoldierLogService
.
save
(
socialLog
);
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialSoldierLogServiceImpl.java
View file @
97a65874
...
@@ -41,6 +41,7 @@ import javax.servlet.ServletOutputStream;
...
@@ -41,6 +41,7 @@ import javax.servlet.ServletOutputStream;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -64,6 +65,11 @@ public class TSocialSoldierLogServiceImpl extends ServiceImpl<TSocialSoldierLogM
...
@@ -64,6 +65,11 @@ public class TSocialSoldierLogServiceImpl extends ServiceImpl<TSocialSoldierLogM
return
baseMapper
.
getTSocialSoldierLogPage
(
page
,
tSocialSoldierLog
);
return
baseMapper
.
getTSocialSoldierLogPage
(
page
,
tSocialSoldierLog
);
}
}
@Override
public
LocalDateTime
getMaxTimeToLog
()
{
return
baseMapper
.
getMaxTimeToLog
();
}
/**
/**
* 自动化日志批量导出
* 自动化日志批量导出
*
*
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialSoldierLogMapper.xml
View file @
97a65874
...
@@ -132,4 +132,13 @@
...
@@ -132,4 +132,13 @@
</if>
</if>
</if>
</if>
</select>
</select>
<!--tSocialSoldierLog简单分页查询-->
<select
id=
"getMaxTimeToLog"
resultType=
"java.time.LocalDateTime"
>
SELECT
max(a.CREATE_TIME)
FROM t_social_soldier_log a
where a.TYPE = '拉取'
</select>
</mapper>
</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