Browse Source

2025-03-05

优化
master
fengyuan_yang 11 months ago
parent
commit
5ac70a5ea1
  1. 19
      src/main/resources/mapper/change/ChangeManagementMapper.xml

19
src/main/resources/mapper/change/ChangeManagementMapper.xml

@ -1043,12 +1043,21 @@
</update> </update>
<!-- 编辑变更单属性 --> <!-- 编辑变更单属性 -->
<!-- <update id="updateProcessForm2" parameterType="ParamData">-->
<!-- update plm_process_form-->
<!-- set is_remark = 1,-->
<!-- update_date = getDate(),-->
<!-- update_by = #{userName}-->
<!-- where site = #{site} and document_no = #{docNo} and is_remark = 0-->
<!-- </update>-->
<update id="updateProcessForm2" parameterType="ParamData"> <update id="updateProcessForm2" parameterType="ParamData">
update plm_process_form
set is_remark = 1,
update_date = getDate(),
update_by = #{userName}
where site = #{site} and document_no = #{docNo} and is_remark = 0
update a
set A.is_remark = 1,
A.update_date = getDate(),
A.update_by = #{userName}
from plm_process_form a
left join sys_user b on a.domain_control_account = B.domain_control_account
where A.site = #{site} and document_no = #{docNo} and is_remark = 0 AND B.username = #{userName}
</update> </update>
<!-- 编辑变更单属性 --> <!-- 编辑变更单属性 -->

Loading…
Cancel
Save