| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?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="cn.com.goldenwater.dcproj.dao.AttProjectInsuranceParticipDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.AttProjectInsuranceParticip" id="attProjectInsuranceParticipResultMap">
- <result property="id" column="ID"/>
- <result property="projectId" column="PROJECT_ID"/>
- <result property="legalEntity" column="LEGAL_ENTITY"/>
- <result property="legalContactPhone" column="LEGAL_CONTACT_PHONE"/>
- <result property="constructorUnit" column="CONSTRUCTOR_UNIT"/>
- <result property="constructorContactPhone" column="CONSTRUCTOR_CONTACT_PHONE"/>
- <result property="supervisorUnit" column="SUPERVISOR_UNIT"/>
- <result property="supervisorContactPhone" column="SUPERVISOR_CONTACT_PHONE"/>
- <result property="designUnit" column="DESIGN_UNIT"/>
- <result property="designContactPhone" column="DESIGN_CONTACT_PHONE"/>
- <result property="otherParticipantUnit" column="OTHER_PARTICIPANT_UNIT"/>
- <result property="otherContactPhone" column="OTHER_CONTACT_PHONE"/>
- <result property="remark" column="REMARK"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- PROJECT_ID,
- LEGAL_ENTITY,
- LEGAL_CONTACT_PHONE,
- CONSTRUCTOR_UNIT,
- CONSTRUCTOR_CONTACT_PHONE,
- SUPERVISOR_UNIT,
- SUPERVISOR_CONTACT_PHONE,
- DESIGN_UNIT,
- DESIGN_CONTACT_PHONE,
- OTHER_PARTICIPANT_UNIT,
- OTHER_CONTACT_PHONE,
- REMARK,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{projectId},
- #{legalEntity},
- #{legalContactPhone},
- #{constructorUnit},
- #{constructorContactPhone},
- #{supervisorUnit},
- #{supervisorContactPhone},
- #{designUnit},
- #{designContactPhone},
- #{otherParticipantUnit},
- #{otherContactPhone},
- #{remark},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="projectId != null and projectId != ''">and PROJECT_ID = #{projectId}</if>
- <if test="legalEntity != null and legalEntity != ''">and LEGAL_ENTITY = #{legalEntity}</if>
- <if test="legalContactPhone != null and legalContactPhone != ''">and LEGAL_CONTACT_PHONE = #{legalContactPhone}</if>
- <if test="constructorUnit != null and constructorUnit != ''">and CONSTRUCTOR_UNIT = #{constructorUnit}</if>
- <if test="constructorContactPhone != null and constructorContactPhone != ''">and CONSTRUCTOR_CONTACT_PHONE = #{constructorContactPhone}</if>
- <if test="supervisorUnit != null and supervisorUnit != ''">and SUPERVISOR_UNIT = #{supervisorUnit}</if>
- <if test="supervisorContactPhone != null and supervisorContactPhone != ''">and SUPERVISOR_CONTACT_PHONE = #{supervisorContactPhone}</if>
- <if test="designUnit != null and designUnit != ''">and DESIGN_UNIT = #{designUnit}</if>
- <if test="designContactPhone != null and designContactPhone != ''">and DESIGN_CONTACT_PHONE = #{designContactPhone}</if>
- <if test="otherParticipantUnit != null and otherParticipantUnit != ''">and OTHER_PARTICIPANT_UNIT = #{otherParticipantUnit}</if>
- <if test="otherContactPhone != null and otherContactPhone != ''">and OTHER_CONTACT_PHONE = #{otherContactPhone}</if>
- <if test="remark != null and remark != ''">and REMARK = #{remark}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="attProjectInsuranceParticipResultMap" parameterType="String" >
- select <include refid="table_columns" /> from ATT_PROJECT_INSURANCE_PARTICIP where ID = #{id}
- </select>
- <select id="getBy" resultMap="attProjectInsuranceParticipResultMap">
- select <include refid="table_columns" /> from ATT_PROJECT_INSURANCE_PARTICIP <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="attProjectInsuranceParticipResultMap">
- select <include refid="table_columns" /> from ATT_PROJECT_INSURANCE_PARTICIP
- </select>
- <select id="findList" resultMap="attProjectInsuranceParticipResultMap">
- select <include refid="table_columns" /> from ATT_PROJECT_INSURANCE_PARTICIP <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from ATT_PROJECT_INSURANCE_PARTICIP <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.AttProjectInsuranceParticip">
- insert into ATT_PROJECT_INSURANCE_PARTICIP( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update ATT_PROJECT_INSURANCE_PARTICIP set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.AttProjectInsuranceParticip">
- update ATT_PROJECT_INSURANCE_PARTICIP set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update ATT_PROJECT_INSURANCE_PARTICIP set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.AttProjectInsuranceParticip">
- update ATT_PROJECT_INSURANCE_PARTICIP
- <trim prefix="set" suffixOverrides=",">
- <if test="projectId != null and projectId != ''">PROJECT_ID = #{projectId},</if>
- <if test="legalEntity != null and legalEntity != ''">LEGAL_ENTITY = #{legalEntity},</if>
- <if test="legalContactPhone != null and legalContactPhone != ''">LEGAL_CONTACT_PHONE = #{legalContactPhone},</if>
- <if test="constructorUnit != null and constructorUnit != ''">CONSTRUCTOR_UNIT = #{constructorUnit},</if>
- <if test="constructorContactPhone != null and constructorContactPhone != ''">CONSTRUCTOR_CONTACT_PHONE = #{constructorContactPhone},</if>
- <if test="supervisorUnit != null and supervisorUnit != ''">SUPERVISOR_UNIT = #{supervisorUnit},</if>
- <if test="supervisorContactPhone != null and supervisorContactPhone != ''">SUPERVISOR_CONTACT_PHONE = #{supervisorContactPhone},</if>
- <if test="designUnit != null and designUnit != ''">DESIGN_UNIT = #{designUnit},</if>
- <if test="designContactPhone != null and designContactPhone != ''">DESIGN_CONTACT_PHONE = #{designContactPhone},</if>
- <if test="otherParticipantUnit != null and otherParticipantUnit != ''">OTHER_PARTICIPANT_UNIT = #{otherParticipantUnit},</if>
- <if test="otherContactPhone != null and otherContactPhone != ''">OTHER_CONTACT_PHONE = #{otherContactPhone},</if>
- <if test="remark != null and remark != ''">REMARK = #{remark},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.AttProjectInsuranceParticip">
- update ATT_PROJECT_INSURANCE_PARTICIP
- <trim prefix="set" suffixOverrides=",">
- <if test="projectId != null and projectId != ''">PROJECT_ID = #{projectId},</if>
- <if test="legalEntity != null and legalEntity != ''">LEGAL_ENTITY = #{legalEntity},</if>
- <if test="legalContactPhone != null and legalContactPhone != ''">LEGAL_CONTACT_PHONE = #{legalContactPhone},</if>
- <if test="constructorUnit != null and constructorUnit != ''">CONSTRUCTOR_UNIT = #{constructorUnit},</if>
- <if test="constructorContactPhone != null and constructorContactPhone != ''">CONSTRUCTOR_CONTACT_PHONE = #{constructorContactPhone},</if>
- <if test="supervisorUnit != null and supervisorUnit != ''">SUPERVISOR_UNIT = #{supervisorUnit},</if>
- <if test="supervisorContactPhone != null and supervisorContactPhone != ''">SUPERVISOR_CONTACT_PHONE = #{supervisorContactPhone},</if>
- <if test="designUnit != null and designUnit != ''">DESIGN_UNIT = #{designUnit},</if>
- <if test="designContactPhone != null and designContactPhone != ''">DESIGN_CONTACT_PHONE = #{designContactPhone},</if>
- <if test="otherParticipantUnit != null and otherParticipantUnit != ''">OTHER_PARTICIPANT_UNIT = #{otherParticipantUnit},</if>
- <if test="otherContactPhone != null and otherContactPhone != ''">OTHER_CONTACT_PHONE = #{otherContactPhone},</if>
- <if test="remark != null and remark != ''">REMARK = #{remark},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|