SysEvaluationPrjSumMMapper.xml 2.23 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.SysEvaluationPrjSumMMapper">

    <insert id="add" parameterType="com.chinagas.modules.insight.domian.SysEvaluationPrjSumM">
        insert into sys_evaluation_prj_sum_m
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="sysName != null and sysName != ''">sys_name,</if>
            <if test="tagType != null and tagType != ''">tag_type,</if>
            <if test="cnt != null and cnt != ''">cnt,</if>
            <if test="unit != null and unit != ''">unit,</if>
            <if test="yearMonth != null and yearMonth != ''">`year_month`,</if>
            <if test="prjOrgNo != null and prjOrgNo != ''">prj_org_no,</if>
            <if test="prjOrgName != null and prjOrgName != ''">prj_org_name,</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="tagType != null and tagType != ''">#{tagType},</if>
            <if test="cnt != null and cnt != ''">#{cnt},</if>
            <if test="unit != null and unit != ''">#{unit},</if>
            <if test="yearMonth != null and yearMonth != ''">#{yearMonth},</if>
            <if test="prjOrgNo != null and prjOrgNo != ''">#{prjOrgNo},</if>
            <if test="prjOrgName != null and prjOrgName != ''">#{prjOrgName},</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>