SysEvaluationSumMMapper.xml 3.8 KB
<?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.chinagas.modules.insight.mapper.SysEvaluationSumMMapper">

    <insert id="add" parameterType="com.chinagas.modules.insight.domian.SysEvaluationSumM">
        insert into sys_evaluation_sum_m
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="sysName != null and sysName != ''">sys_name,</if>
            <if test="yearMonth != null and yearMonth != ''">`year_month`,</if>
            <if test="accountsNum != null and accountsNum != ''">accounts_num,</if>
            <if test="activeAccountsNum != null and activeAccountsNum != ''">active_accounts_num,</if>
            <if test="visitsNum != null and visitsNum != ''">visits_num,</if>
            <if test="bussCoreNum != null and bussCoreNum != ''">buss_core_num,</if>
            <if test="segment001 != null and segment001 != ''">segment001,</if>
            <if test="segment002 != null and segment002 != ''">segment002,</if>
            <if test="segment003 != null and segment003 != ''">segment003,</if>
            <if test="segment004 != null and segment004 != ''">segment004,</if>
            <if test="segment005 != null and segment005 != ''">segment005,</if>
            <if test="segment006 != null and segment006 != ''">segment006,</if>
            <if test="segment007 != null and segment007 != ''">segment007,</if>
            <if test="segment008 != null and segment008 != ''">segment008,</if>
            <if test="segment009 != null and segment009 != ''">segment009,</if>
            <if test="segment010 != null and segment010 != ''">segment010,</if>
            <if test="createTime != null">create_time,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="createdBy != null and createdBy != ''">created_by,</if>
            <if test="lastModifiedBy != null and lastModifiedBy != ''">last_modified_by,</if>
            <if test="deleteFlag != null">delete_flag,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="sysName != null and sysName != ''">#{sysName},</if>
            <if test="yearMonth != null and yearMonth != ''">#{yearMonth},</if>
            <if test="accountsNum != null and accountsNum != ''">#{accountsNum},</if>
            <if test="activeAccountsNum != null and activeAccountsNum != ''">#{activeAccountsNum},</if>
            <if test="visitsNum != null and visitsNum != ''">#{visitsNum},</if>
            <if test="bussCoreNum != null and bussCoreNum != ''">#{bussCoreNum},</if>
            <if test="segment001 != null and segment001 != ''">#{segment001},</if>
            <if test="segment002 != null and segment002 != ''">#{segment002},</if>
            <if test="segment003 != null and segment003 != ''">#{segment003},</if>
            <if test="segment004 != null and segment004 != ''">#{segment004},</if>
            <if test="segment005 != null and segment005 != ''">#{segment005},</if>
            <if test="segment006 != null and segment006 != ''">#{segment006},</if>
            <if test="segment007 != null and segment007 != ''">#{segment007},</if>
            <if test="segment008 != null and segment008 != ''">#{segment008},</if>
            <if test="segment009 != null and segment009 != ''">#{segment009},</if>
            <if test="segment010 != null and segment010 != ''">#{segment010},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="createdBy != null and createdBy != ''">#{createdBy},</if>
            <if test="lastModifiedBy != null and lastModifiedBy != ''">#{lastModifiedBy},</if>
            <if test="deleteFlag != null">#{deleteFlag},</if>
        </trim>
    </insert>

</mapper>