no message
This commit is contained in:
@ -28,6 +28,14 @@
|
||||
AND is_delete = 0
|
||||
</select>
|
||||
|
||||
<select id="selectByCompanyName" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM zc_company
|
||||
WHERE company_name = #{company_name}
|
||||
AND is_delete = 0
|
||||
</select>
|
||||
|
||||
<select id="selectById" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
@ -40,7 +48,7 @@
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM zc_company
|
||||
WHERE b_op_id = #{bOpId}
|
||||
WHERE b_op_id = #{operator_id}
|
||||
AND is_delete = 0
|
||||
</select>
|
||||
|
||||
@ -79,13 +87,45 @@
|
||||
is_delete = #{isDelete},
|
||||
</if>
|
||||
<if test="bOpId != null">
|
||||
b_op_id = #{bOpId},
|
||||
b_op_id = #{operator_id},
|
||||
</if>
|
||||
phone = #{phone}
|
||||
</set>
|
||||
WHERE phone = #{phone}
|
||||
</update>
|
||||
|
||||
<update id="updateByCompanyName" parameterType="com.sczx.sync.po.CompanyInfo" >
|
||||
<selectKey keyProperty='id' resultType='java.lang.Long' order='AFTER'>
|
||||
SELECT
|
||||
id
|
||||
from zc_company
|
||||
where company_name = #{company_name}
|
||||
</selectKey>
|
||||
UPDATE zc_company
|
||||
<set>
|
||||
<if test="company_name != null and company_name != ''">
|
||||
company_name = #{company_name},
|
||||
</if>
|
||||
<if test="contact_name != null and contact_name != ''">
|
||||
contact_name = #{contact_name},
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
address = #{address},
|
||||
</if>
|
||||
<if test="citys != null and citys != ''">
|
||||
citys = #{citys},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete},
|
||||
</if>
|
||||
<if test="bOpId != null">
|
||||
b_op_id = #{operator_id},
|
||||
</if>
|
||||
phone = #{phone}
|
||||
</set>
|
||||
WHERE company_name = #{company_name}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 根据电话号码更新公司信息 -->
|
||||
<update id="updateByOpId" parameterType="com.sczx.sync.po.CompanyInfo">
|
||||
@ -117,7 +157,7 @@
|
||||
</if>
|
||||
phone = #{phone}
|
||||
</set>
|
||||
WHERE b_op_id = #{bOpId}
|
||||
WHERE b_op_id = #{operator_id}
|
||||
</update>
|
||||
|
||||
<!-- 插入公司信息 -->
|
||||
@ -137,7 +177,7 @@
|
||||
ali_receiving_account,
|
||||
ali_key
|
||||
) VALUES (
|
||||
#{bOpId},
|
||||
#{operator_id},
|
||||
#{company_name},
|
||||
#{contact_name},
|
||||
#{phone},
|
||||
|
||||
Reference in New Issue
Block a user