郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.gkhy.safePlatform.specialWork.repository.WorkAnalysisConsumerLogRepository" >
    <resultMap id="WorkAnalysisConsumerLog" type="com.gkhy.safePlatform.specialWork.entity.WorkAnalysisConsumerLog" >
        <result column="id" property="id" jdbcType="BIGINT" />
        <result column="work_id" property="workId" jdbcType="BIGINT"/>
        <result column="work_permit_no" property="workPermitNo" jdbcType="VARCHAR"/>
        <result column="work_id" property="workId" jdbcType="BIGINT"/>
        <result column="analysis_id" property="analysisId" jdbcType="BIGINT"/>
        <result column="message_key" property="messageKey" jdbcType="VARCHAR"/>
 
    </resultMap>
    <select id="countByMessageKey" resultType="java.lang.Long">
        select count(*)
        from work_analysis_consumer_log
        where message_key = #{messageKey}
 
 
    </select>
 
 
</mapper>