Pārlūkot izejas kodu

202410242244 #comment 筹划方案算法缺少表中数据添加

lhq 1 mēnesi atpakaļ
vecāks
revīzija
52d2187aa0

+ 8 - 3
orbit-base-plan/base-plan-service/src/main/resources/mapper/AlgSechemeStepWindowMapper.xml

@@ -1,10 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.base.plan.mapper.AlgSchemeStepWindowMapper">
+    <update id="updateStepIdByParentId">
+        update alg_scheme_step_window
+        set scheme_step_id = #{schemeStepId}
+        where parent_id = #{parentId}
+    </update>
 
-<!--    <bind name="parentId" value="'%' + parentId + '%'"/>
-    CONCAT(#{parentId},'%')
--->
+    <!--    <bind name="parentId" value="'%' + parentId + '%'"/>
+        CONCAT(#{parentId},'%')
+    -->
 
     <select id="getAlgSchemeStepWindowByParentIdSubstring"
             resultType="com.base.plan.model.entity.AlgSchemeStepWindow">