Browse Source

2025-06-23

技术参数卡 控制只读未生效
master
fengyuan_yang 9 months ago
parent
commit
3d049c68ef
  1. 4
      src/main/resources/mapper/project/ProjectDao.xml
  2. 34
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

4
src/main/resources/mapper/project/ProjectDao.xml

@ -766,7 +766,9 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_
</select> </select>
<update id="updateProjectFinalCustomerNo"> <update id="updateProjectFinalCustomerNo">
update plm_project_info set final_customer_id = #{finalCustomerId} where site = #{site} and project_id = #{projectId}
update plm_project_info
set final_customer_id = #{finalCustomerId}
where site = #{site} and project_id = #{projectId}
</update> </update>
<select id="queryProjectSiteUserRole" resultType="com.spring.modules.sys.entity.SysUserEntity"> <select id="queryProjectSiteUserRole" resultType="com.spring.modules.sys.entity.SysUserEntity">

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

@ -401,8 +401,7 @@
set process = #{process}, set process = #{process},
overPrintOperator = #{overPrintOperator}, overPrintOperator = #{overPrintOperator},
printOperator = #{printOperator} printOperator = #{printOperator}
where site = #{site}
and code_no = #{codeNo}
where site = #{site} and code_no = #{codeNo}
</update> </update>
<select id="getTestPartChangeData" resultType="PlmProjectPartData"> <select id="getTestPartChangeData" resultType="PlmProjectPartData">
@ -512,7 +511,8 @@
</update> </update>
<select id="searchBMcustomerInfo" resultType="PlmTechnicalSpecificationSheetData"> <select id="searchBMcustomerInfo" resultType="PlmTechnicalSpecificationSheetData">
select a.site,
select
a.site,
a.code_no, a.code_no,
a.picture_addess, a.picture_addess,
a.customerPictureChangeRemark, a.customerPictureChangeRemark,
@ -538,12 +538,9 @@
pcpi.customer_part_no pcpi.customer_part_no
from plm_technical_specification_sheet a from plm_technical_specification_sheet a
left join plm_project_info b on a.site = b.site and a.project_id = b.project_id left join plm_project_info b on a.site = b.site and a.project_id = b.project_id
left join view_Project_final_Part c
on a.site = c.site and a.test_part_no = c.test_part_no and a.project_id = c.project_id
left join plm_customer_part_info pcpi
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and b.customer_id = pcpi.customer_no
where a.site = #{site}
and a.code_no = #{codeNo}
left join view_Project_final_Part c on a.site = c.site and a.test_part_no = c.test_part_no and a.project_id = c.project_id
left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and b.customer_id = pcpi.customer_no
where a.site = #{site} and a.code_no = #{codeNo}
</select> </select>
<update id="updateBMcustomerInfo"> <update id="updateBMcustomerInfo">
@ -2392,8 +2389,10 @@
</select> </select>
<insert id="saveCustomerPartNo"> <insert id="saveCustomerPartNo">
insert into plm_customer_part_info(site, customer_no, part_no, customer_part_no, create_date, create_by)
values (#{site}, #{customerId}, #{partNo}, #{customerPartNo}, getdate(), #{username})
insert into plm_customer_part_info
(site, customer_no, part_no, customer_part_no, create_date, create_by)
values
(#{site}, #{customerId}, #{partNo}, #{customerPartNo}, getdate(), #{username})
</insert> </insert>
<update id="updateCustomerPartNo"> <update id="updateCustomerPartNo">
@ -2401,9 +2400,7 @@
set customer_part_no = #{customerPartNo}, set customer_part_no = #{customerPartNo},
update_by = #{username}, update_by = #{username},
update_date = getdate() update_date = getdate()
where site = #{site}
and customer_no = #{customerId}
and part_no = #{partNo}
where site = #{site} and customer_no = #{customerId} and part_no = #{partNo}
</update> </update>
<select id="technicalSpecificationList" resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData"> <select id="technicalSpecificationList" resultType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
@ -2730,8 +2727,7 @@
set is_remark = 1 set is_remark = 1
where site = #{site} and document_no = #{codeNo} and document_type = 'BM' and is_remark = 0 where site = #{site} and document_no = #{codeNo} and document_type = 'BM' and is_remark = 0
</update> </update>
<update id="updateBMProcessInfo"
parameterType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
<update id="updateBMProcessInfo" parameterType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
UPDATE plm_technical_specification_sheet UPDATE plm_technical_specification_sheet
SET simplex_duplex = #{simplexDuplex}, SET simplex_duplex = #{simplexDuplex},
repeat = #{repeat}, repeat = #{repeat},
@ -2749,12 +2745,10 @@
slitting_tolerance = #{slittingTolerance}, slitting_tolerance = #{slittingTolerance},
label_length = #{labelLength}, label_length = #{labelLength},
label_width = #{labelWidth} label_width = #{labelWidth}
where site = #{site}
and code_no = #{codeNo}
where site = #{site} and code_no = #{codeNo}
</update> </update>
<select id="nodeList" resultType="com.spring.modules.sampleManagement.entity.NodeVo"
parameterType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
<select id="nodeList" resultType="com.spring.modules.sampleManagement.entity.NodeVo" parameterType="com.spring.modules.sampleManagement.data.PlmTechnicalSpecificationSheetData">
SELECT SELECT
d.node_id AS nodeId, d.node_id AS nodeId,
d.node_name AS nodeName d.node_name AS nodeName

Loading…
Cancel
Save