Browse Source

2025-05-28

归档操作要更改step_id = NULL
master
fengyuan_yang 8 months ago
parent
commit
43fbbf9c0f
  1. 3
      src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java
  2. 21
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

3
src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java

@ -1739,5 +1739,8 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification
data.setStatus("已完成"); data.setStatus("已完成");
// 更新单据状态和节点 // 更新单据状态和节点
technicalSpecificationMapper.updateStatus(data); technicalSpecificationMapper.updateStatus(data);
// 2025-05-28 归档操作要更改step_id = NULL
data.setStepId(null);
technicalSpecificationMapper.updateBMStepId(data);
} }
} }

21
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -2244,16 +2244,16 @@
</select> </select>
<select id="getOADetailForBM" resultType="PlmTechnicalSpecificationSheetData"> <select id="getOADetailForBM" resultType="PlmTechnicalSpecificationSheetData">
select top 1 d.is_reject,
d.node_id,
d.node_name,
dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) as sp
select
top 1
d.is_reject,
d.node_id,
d.node_name,
dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) as sp
from plm_technical_specification_sheet a from plm_technical_specification_sheet a
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
where a.site = #{site}
and a.code_no = #{codeNo}
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
where a.site = #{site} and a.code_no = #{codeNo}
</select> </select>
@ -2517,8 +2517,7 @@
</where> </where>
</select> </select>
<select id="queryTechnicalSpecificationList"
resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
<select id="queryTechnicalSpecificationList" resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
EXEC dbo.getTechnicalSpecificationPageWithSql #{sql}, #{page}, #{limit} EXEC dbo.getTechnicalSpecificationPageWithSql #{sql}, #{page}, #{limit}
</select> </select>

Loading…
Cancel
Save