liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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.dingzhuo.energy.project.conglomeratepush.mapper.ConglomeratePushLogMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="orderMiningSendResultMap" type="com.dingzhuo.energy.project.conglomeratepush.domain.ConglomeratePushLog">
        <result column="id" property="id"/>
        <result column="push_time" property="pushTime"/>
        <result column="push_content" property="pushContent"/>
        <result column="push_status" property="pushStatus"/>
        <result column="push_result" property="pushResult"/>
        <result column="push_count" property="pushCount"/>
        <result column="error_info" property="errorInfo"/>
    </resultMap>
 
    <insert id="saveLog" parameterType="ConglomeratePushLog">
        insert into conglomerate_push_log
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null  and id != ''">id,</if>
            <if test="pushTime != null ">push_time,</if>
            <if test="pushContent != null  and pushContent != ''">push_content,</if>
            <if test="pushStatus != null ">push_status,</if>
            <if test="pushResult != null ">push_result,</if>
            <if test="pushCount != null  and pushCount != ''">push_count,</if>
            <if test="errorInfo != null  and errorInfo != ''">error_info,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null  and id != ''">#{id},</if>
            <if test="pushTime != null ">#{pushTime},</if>
            <if test="pushContent != null  and pushContent != ''">#{pushContent},</if>
            <if test="pushStatus != null ">#{pushStatus},</if>
            <if test="pushResult != null ">#{pushResult},</if>
            <if test="pushCount != null  and pushCount != ''">#{pushCount},</if>
            <if test="errorInfo != null  and errorInfo != ''">#{errorInfo},</if>
        </trim>
    </insert>
 
</mapper>