Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aa750235
authored
Jul 21, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保证活跃度检测时间和人脸识别的时间保持一致
1 parent
df764430
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
20 deletions
src/main/java/com/subsidy/mapper/ActivityDetectionMapper.java
src/main/java/com/subsidy/service/impl/ImageCheckRecordServiceImpl.java
src/main/resources/mapper/ActivityDetectionMapper.xml
src/main/java/com/subsidy/mapper/ActivityDetectionMapper.java
View file @
aa75023
...
...
@@ -6,6 +6,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.subsidy.vo.activity.GetCheckHistoryVO
;
import
org.springframework.stereotype.Repository
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
/**
* <p>
* 活跃度检测表 Mapper 接口
...
...
@@ -32,4 +35,8 @@ public interface ActivityDetectionMapper extends BaseMapper<ActivityDetectionDO>
*/
void
updateTime
(
ActivityDetectionDO
activityDetectionDO
);
/**
* 强制保持活跃度检测和人脸识别的createDate一致
*/
void
updateImageCheckCreateDate
(
Long
id
,
Integer
status
,
LocalDateTime
createDate
,
LocalDateTime
updateDate
);
}
src/main/java/com/subsidy/service/impl/ImageCheckRecordServiceImpl.java
View file @
aa75023
...
...
@@ -331,8 +331,9 @@ public class ImageCheckRecordServiceImpl extends ServiceImpl<ImageCheckRecordMap
// if (null != imageCheckRecordDO.getPaperId()) {
// activityDetectionDO.setCheckType(2);
// }
activityDetectionMapper
.
updateById
(
activityDetectionDO
);
imageCheckRecordMapper
.
updateById
(
imageCheckRecordDO
);
activityDetectionMapper
.
updateImageCheckCreateDate
(
activityDetectionDO
.
getId
(),
activityDetectionDO
.
getStatus
(),
imageCheckRecordDO
.
getCreateDate
(),
imageCheckRecordDO
.
getUpdateDate
());
// activityDetectionMapper.updateById(activityDetectionDO);
}
return
imageCheckRecordDO
;
}
...
...
src/main/resources/mapper/ActivityDetectionMapper.xml
View file @
aa75023
...
...
@@ -2,25 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.subsidy.mapper.ActivityDetectionMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"com.subsidy.model.ActivityDetectionDO"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"create_date"
property=
"createDate"
/>
<result
column=
"update_date"
property=
"updateDate"
/>
<result
column=
"delete_date"
property=
"deleteDate"
/>
<result
column=
"class_id"
property=
"classId"
/>
<result
column=
"member_id"
property=
"memberId"
/>
<result
column=
"status"
property=
"status"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
create_date,
update_date,
delete_date,
id, class_id, member_id, status
</sql>
<select
id=
"getCheckHistory"
resultType=
"com.subsidy.vo.activity.GetCheckHistoryVO"
>
SELECT
t.id,
...
...
@@ -53,4 +34,9 @@
set t.order_no = #{orderNo} where t.id = #{id}
</update>
<update
id=
"updateImageCheckCreateDate"
parameterType=
"com.subsidy.model.ActivityDetectionDO"
>
update activity_detection t
set t.status = #{status},t.create_date = #{createDate},t.update_date = #{updateDate} where t.id = #{id}
</update>
</mapper>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment