|
|
@ -16,12 +16,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="plantArea" column="plant_area" /> |
|
|
|
<result property="postalCode" column="postal_code" /> |
|
|
|
<result property="customerFax" column="customer_fax" /> |
|
|
|
<result property="firstAddTime" column="first_add_time" /> |
|
|
|
<result property="updateInfoTime" column="update_info_time" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSysShippingAddressVo"> |
|
|
|
select delivery_id, enterprise_code, enterprise_name, customer_phone, customer_name, delivery_address, customer_name_two, detailed_description, plant_area, postal_code, customer_fax, first_add_time, update_info_time from sys_shipping_address |
|
|
|
select delivery_id, enterprise_code, enterprise_name, customer_phone, customer_name, delivery_address, customer_name_two, detailed_description, plant_area, postal_code, customer_fax, create_by, create_time, update_by, update_time from sys_shipping_address |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSysShippingAddressList" parameterType="SysShippingAddress" resultMap="SysShippingAddressResult"> |
|
|
@ -56,7 +58,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="plantArea != null">plant_area,</if> |
|
|
|
<if test="postalCode != null">postal_code,</if> |
|
|
|
<if test="customerFax != null">customer_fax,</if> |
|
|
|
first_add_time, |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
|
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="enterpriseCode != null">#{enterpriseCode},</if> |
|
|
@ -69,7 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="plantArea != null">#{plantArea},</if> |
|
|
|
<if test="postalCode != null">#{postalCode},</if> |
|
|
|
<if test="customerFax != null">#{customerFax},</if> |
|
|
|
now(), |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
|
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -86,7 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="plantArea != null">plant_area = #{plantArea},</if> |
|
|
|
<if test="postalCode != null">postal_code = #{postalCode},</if> |
|
|
|
<if test="customerFax != null">customer_fax = #{customerFax},</if> |
|
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
</trim> |
|
|
|
where delivery_id = #{deliveryId} |
|
|
|
</update> |
|
|
|