Commit aa750235 by 涂亚平

保证活跃度检测时间和人脸识别的时间保持一致

1 parent df764430
...@@ -6,6 +6,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -6,6 +6,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.activity.GetCheckHistoryVO; import com.subsidy.vo.activity.GetCheckHistoryVO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
import java.util.Date;
/** /**
* <p> * <p>
* 活跃度检测表 Mapper 接口 * 活跃度检测表 Mapper 接口
...@@ -32,4 +35,8 @@ public interface ActivityDetectionMapper extends BaseMapper<ActivityDetectionDO> ...@@ -32,4 +35,8 @@ public interface ActivityDetectionMapper extends BaseMapper<ActivityDetectionDO>
*/ */
void updateTime(ActivityDetectionDO activityDetectionDO); void updateTime(ActivityDetectionDO activityDetectionDO);
/**
* 强制保持活跃度检测和人脸识别的createDate一致
*/
void updateImageCheckCreateDate(Long id, Integer status, LocalDateTime createDate,LocalDateTime updateDate);
} }
...@@ -331,8 +331,9 @@ public class ImageCheckRecordServiceImpl extends ServiceImpl<ImageCheckRecordMap ...@@ -331,8 +331,9 @@ public class ImageCheckRecordServiceImpl extends ServiceImpl<ImageCheckRecordMap
// if (null != imageCheckRecordDO.getPaperId()) { // if (null != imageCheckRecordDO.getPaperId()) {
// activityDetectionDO.setCheckType(2); // activityDetectionDO.setCheckType(2);
// } // }
activityDetectionMapper.updateById(activityDetectionDO);
imageCheckRecordMapper.updateById(imageCheckRecordDO); imageCheckRecordMapper.updateById(imageCheckRecordDO);
activityDetectionMapper.updateImageCheckCreateDate(activityDetectionDO.getId(),activityDetectionDO.getStatus(),imageCheckRecordDO.getCreateDate(),imageCheckRecordDO.getUpdateDate());
// activityDetectionMapper.updateById(activityDetectionDO);
} }
return imageCheckRecordDO; return imageCheckRecordDO;
} }
......
...@@ -2,25 +2,6 @@ ...@@ -2,25 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.ActivityDetectionMapper"> <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 id="getCheckHistory" resultType="com.subsidy.vo.activity.GetCheckHistoryVO">
SELECT SELECT
t.id, t.id,
...@@ -53,4 +34,9 @@ ...@@ -53,4 +34,9 @@
set t.order_no = #{orderNo} where t.id = #{id} set t.order_no = #{orderNo} where t.id = #{id}
</update> </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> </mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!