Fancy
2024-07-05 eead3af59c94c35422463fbbd19d26dffcbacc06
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
@@ -153,6 +153,13 @@
            </if>
        </trim>
    </select>
    <select id="isEndNode" resultType="java.lang.Boolean">
        select
            n.sort >=n1.sort
        from pr_production_node n
                 left join pr_production_node n1 on n.process_id = n1.process_id
        where n1.id = #{id} and n.is_end=1
    </select>
    <update id="deleteLogicById" parameterType="java.lang.Long">
        update pr_production_node set deleted = 1