|
@@ -235,7 +235,7 @@
|
|
<update id="openPay" parameterType="integer">
|
|
<update id="openPay" parameterType="integer">
|
|
UPDATE replacement_instrument_activity
|
|
UPDATE replacement_instrument_activity
|
|
SET open_flag_ = 1
|
|
SET open_flag_ = 1
|
|
- WHERE cooperation_organ_id_ = #{cooperationOrganId}
|
|
|
|
|
|
+ WHERE replacement_instrument_cooperation_id_ = #{replacementInstrumentCooperationId}
|
|
AND open_flag_ = 0
|
|
AND open_flag_ = 0
|
|
AND instruments_id_ > 0
|
|
AND instruments_id_ > 0
|
|
</update>
|
|
</update>
|
|
@@ -252,7 +252,7 @@
|
|
FROM replacement_instrument_activity ria
|
|
FROM replacement_instrument_activity ria
|
|
LEFT JOIN sys_user su ON su.id_ = ria.user_id_
|
|
LEFT JOIN sys_user su ON su.id_ = ria.user_id_
|
|
LEFT JOIN goods g ON g.id_ = ria.instruments_id_
|
|
LEFT JOIN goods g ON g.id_ = ria.instruments_id_
|
|
- WHERE cooperation_organ_id_ = #{cooperationOrganId}
|
|
|
|
|
|
+ WHERE replacement_instrument_cooperation_id_ = #{replacementInstrumentCooperationId}
|
|
AND open_flag_ = 0
|
|
AND open_flag_ = 0
|
|
AND instruments_id_ > 0
|
|
AND instruments_id_ > 0
|
|
</select>
|
|
</select>
|