|
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSupplierVo">
|
|
|
- select id, supplier_no, supplier_name, abutment_by, abutment, contact_number, representative, address, state, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, task_process_key, task_node_key from supplier
|
|
|
+ select id, supplier_no, supplier_name, abutment_by, abutment, contact_number, representative, address, state, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, task_process_key, task_node_key from {DBNAME}.supplier
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSupplierList" parameterType="Supplier" resultMap="SupplierResult">
|
|
@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertSupplier" parameterType="Supplier" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into supplier
|
|
|
+ insert into {DBNAME}.supplier
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="supplierNo != null">supplier_no,</if>
|
|
|
<if test="supplierName != null">supplier_name,</if>
|
|
@@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateSupplier" parameterType="Supplier">
|
|
|
- update supplier
|
|
|
+ update {DBNAME}.supplier
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="supplierNo != null">supplier_no = #{supplierNo},</if>
|
|
|
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
|
@@ -123,11 +123,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteSupplierById" parameterType="Long">
|
|
|
- delete from supplier where id = #{id}
|
|
|
+ delete from {DBNAME}.supplier where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteSupplierByIds" parameterType="String">
|
|
|
- delete from supplier where id in
|
|
|
+ delete from {DBNAME}.supplier where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|