zjh
2024-09-05 9155df2aeab5b0d95c89dd928dbaefbfbaeae9d1
ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
@@ -31,6 +31,8 @@
        <result property="idType" column="id_type"/>
        <result property="ageUnit" column="age_unit"/>
        <result property="career" column="career"/>
        <result property="dwPhone" column="dw_phone"/>
        <result property="pym" column="pym"/>
    </resultMap>
    <sql id="selectTjCustomerVo">
@@ -59,7 +61,9 @@
               age,
               id_type,
               age_unit,
               career
               career,
               dw_phone,
               pym
        from tj_customer
    </sql>
@@ -81,6 +85,7 @@
            <if test="cusIntroduce != null  and cusIntroduce != ''">and cus_introduce = #{cusIntroduce}</if>
            <if test="cusNumber != null ">and cus_number = #{cusNumber}</if>
            <if test="cusIsvip != null  and cusIsvip != ''">and cus_isvip = #{cusIsvip}</if>
            <if test="pym != null  and pym != ''">and pym = #{pym}</if>
        </where>
    </select>
@@ -117,6 +122,8 @@
            <if test="idType != null">id_type,</if>
            <if test="ageUnit != null">age_unit,</if>
            <if test="career != null">career,</if>
            <if test="dwPhone != null">dw_phone,</if>
            <if test="pym != null">pym,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="cusName != null and cusName != ''">#{cusName},</if>
@@ -144,6 +151,8 @@
            <if test="idType != null">#{idType},</if>
            <if test="ageUnit != null">#{ageUnit},</if>
            <if test="career != null">#{career},</if>
            <if test="dw_phone != null">#{dwPhone},</if>
            <if test="pym != null">#{pym},</if>
        </trim>
    </insert>
@@ -175,6 +184,8 @@
            <if test="idType != null">id_type = #{idType},</if>
            <if test="ageUnit != null">age_unit = #{ageUnit},</if>
            <if test="career != null">career = #{career},</if>
            <if test="dwPhone != null">dw_phone = #{dwPhone},</if>
            <if test="pym != null">pym = #{pym},</if>
        </trim>
        where cus_id = #{cusId}
    </update>