|
@@ -11,6 +11,16 @@
|
|
<result property="supplierType" column="supplier_type"/>
|
|
<result property="supplierType" column="supplier_type"/>
|
|
<result property="supplierState" column="supplier_state"/>
|
|
<result property="supplierState" column="supplier_state"/>
|
|
<result property="supplierAdvancePurchase" column="supplier_advance_purchase"/>
|
|
<result property="supplierAdvancePurchase" column="supplier_advance_purchase"/>
|
|
|
|
+ <result property="postalCode" column="postal_code"/>
|
|
|
|
+ <result property="projectPerson" column="project_person"/>
|
|
|
|
+ <result property="telephone" column="telephone"/>
|
|
|
|
+ <result property="bankAccountName" column="bank_account_name"/>
|
|
|
|
+ <result property="bankOfDeposit" column="bank_of_deposit"/>
|
|
|
|
+ <result property="bankAccountNumber" column="bank_account_number"/>
|
|
|
|
+ <result property="created" column="created"/>
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
|
+ <result property="updated" column="updated"/>
|
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insertBaseSupplier" parameterType="com.ozs.base.domain.BaseSupplier">
|
|
<insert id="insertBaseSupplier" parameterType="com.ozs.base.domain.BaseSupplier">
|
|
@@ -31,7 +41,37 @@
|
|
supplier_state,
|
|
supplier_state,
|
|
</if>
|
|
</if>
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != ''">
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != ''">
|
|
- supplier_advance_purchase
|
|
|
|
|
|
+ supplier_advance_purchase,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="postalCode != null and postalCode != ''">
|
|
|
|
+ postal_code,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectPerson != null and projectPerson != ''">
|
|
|
|
+ project_person,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="telephone != null and telephone != ''">
|
|
|
|
+ telephone,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">
|
|
|
|
+ bank_account_name,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">
|
|
|
|
+ bank_of_deposit,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountNumber != null and bankAccountNumber != ''">
|
|
|
|
+ bank_account_number,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="created != null and created != ''">
|
|
|
|
+ created,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null and createTime != ''">
|
|
|
|
+ create_time,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updated != null and updated != ''">
|
|
|
|
+ updated,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null and updateTime != ''">
|
|
|
|
+ update_time
|
|
</if>
|
|
</if>
|
|
) values (
|
|
) values (
|
|
<if test="supplierName != null and supplierName != ''">
|
|
<if test="supplierName != null and supplierName != ''">
|
|
@@ -50,13 +90,45 @@
|
|
#{supplierState},
|
|
#{supplierState},
|
|
</if>
|
|
</if>
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != ''">
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != ''">
|
|
- #{supplierAdvancePurchase}
|
|
|
|
|
|
+ #{supplierAdvancePurchase},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="postalCode != null and postalCode != ''">
|
|
|
|
+ #{postalCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectPerson != null and projectPerson != ''">
|
|
|
|
+ #{projectPerson},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="telephone != null and telephone != ''">
|
|
|
|
+ #{telephone},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">
|
|
|
|
+ #{bankAccountName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">
|
|
|
|
+ #{bankOfDeposit},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountNumber != null and bankAccountNumber != ''">
|
|
|
|
+ #{bankAccountNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="created != null and created != ''">
|
|
|
|
+ #{created},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null and createTime != ''">
|
|
|
|
+ #{createTime},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updated != null and updated != ''">
|
|
|
|
+ #{updated},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null and updateTime != ''">
|
|
|
|
+ #{updateTime}
|
|
</if>
|
|
</if>
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<delete id="deleteBaseSupplier" parameterType="java.lang.Integer">
|
|
<delete id="deleteBaseSupplier" parameterType="java.lang.Integer">
|
|
- delete from base_supplier where id = #{id}
|
|
|
|
|
|
+ delete
|
|
|
|
+ from base_supplier
|
|
|
|
+ where id = #{id}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<update id="updateBaseSupplier" parameterType="com.ozs.base.domain.BaseSupplier">
|
|
<update id="updateBaseSupplier" parameterType="com.ozs.base.domain.BaseSupplier">
|
|
@@ -80,6 +152,36 @@
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != '' ">
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != '' ">
|
|
supplier_advance_purchase = #{supplierAdvancePurchase},
|
|
supplier_advance_purchase = #{supplierAdvancePurchase},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="postalCode != null and postalCode != ''">
|
|
|
|
+ postal_code = #{postalCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectPerson != null and projectPerson != ''">
|
|
|
|
+ project_person = #{projectPerson},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="telephone != null and telephone != ''">
|
|
|
|
+ telephone = #{telephone},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">
|
|
|
|
+ bank_account_name = #{bankAccountName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">
|
|
|
|
+ bank_of_deposit = #{bankOfDeposit},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountNumber != null and bankAccountNumber != ''">
|
|
|
|
+ bank_account_number = #{bankAccountNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="created != null and created != ''">
|
|
|
|
+ created = #{created},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null and createTime != ''">
|
|
|
|
+ create_time = #{createTime},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updated != null and updated != ''">
|
|
|
|
+ updated = #{updated},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null and updateTime != ''">
|
|
|
|
+ update_time = #{updateTime},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -106,7 +208,37 @@
|
|
supplier_state = #{supplierState},
|
|
supplier_state = #{supplierState},
|
|
</if>
|
|
</if>
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != '' ">
|
|
<if test="supplierAdvancePurchase != null and supplierAdvancePurchase != '' ">
|
|
- supplier_advance_purchase = #{supplierAdvancePurchase}
|
|
|
|
|
|
+ supplier_advance_purchase = #{supplierAdvancePurchase},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="postalCode != null and postalCode != ''">
|
|
|
|
+ postal_code = #{postalCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectPerson != null and projectPerson != ''">
|
|
|
|
+ project_person = #{projectPerson},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="telephone != null and telephone != ''">
|
|
|
|
+ telephone = #{telephone},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">
|
|
|
|
+ bank_account_name = #{bankAccountName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">
|
|
|
|
+ bank_of_deposit = #{bankOfDeposit},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bankAccountNumber != null and bankAccountNumber != ''">
|
|
|
|
+ bank_account_number = #{bankAccountNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="created != null and created != ''">
|
|
|
|
+ created = #{created},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createTime != null and createTime != ''">
|
|
|
|
+ create_time = #{createTime},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updated != null and updated != ''">
|
|
|
|
+ updated = #{updated},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null and updateTime != ''">
|
|
|
|
+ update_time = #{updateTime}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|