| | |
| | | <result property="idType" column="id_type"/> |
| | | <result property="ageUnit" column="age_unit"/> |
| | | <result property="career" column="career"/> |
| | | <result property="dwPhone" column="dw_phone"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjCustomerVo"> |
| | |
| | | age, |
| | | id_type, |
| | | age_unit, |
| | | career |
| | | career, |
| | | dw_phone |
| | | from tj_customer |
| | | </sql> |
| | | |
| | |
| | | <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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="cusName != null and cusName != ''">#{cusName},</if> |
| | |
| | | <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> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <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> |
| | | </trim> |
| | | where cus_id = #{cusId} |
| | | </update> |