| | |
| | | from pr_production_node |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="selectNameByNodeId" parameterType="java.lang.Long" resultType="String"> |
| | | select content from pr_production_node where id = #{id} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | delete from pr_production_node |
| | | where id = #{id,jdbcType=BIGINT} |
| | |
| | | </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 |