删除项目物料功能
@ -344,4 +344,8 @@ public interface PartInformationMapper extends BaseMapper<PartInformationEntity>
List<PartInformationVo> getProjectCustomerPartByPartNo(@Param("site") String site, @Param("partNo") String partNo);
void batchSaveCustomerPart(List<PartInformationVo> customerPartList);
void deleteProjectPart(PlmProjectPartData data);
void deleteCustomerPart(PlmProjectPartData data);
}
@ -4387,7 +4387,9 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
// 删除项目物料信息
partInformationMapper.deleteProjectPart(data);
// 删除客户料号信息
partInformationMapper.deleteCustomerPart(data);
@ -2656,4 +2656,14 @@
(#{item.site}, #{item.customerNo}, #{item.partNo}, #{item.customerPartNo}, getDate(), #{item.createBy})
</foreach>
</insert>
<delete id="deleteProjectPart">
delete from plm_project_part
where site = #{site} and project_id = #{projectId} and test_part_no = #{testPartNo}
</delete>
<delete id="deleteCustomerPart">
delete from plm_customer_part_info
where site = #{site} and customer_no = #{customerNo} and part_no = #{testPartNo}
</mapper>