From 564bf7ab6a639c2c4557d35b8fd9b51dca60a738 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 22 八月 2023 13:32:34 +0800
Subject: [PATCH] #规则完善

---
 src/main/resources/mapper/PlanMapper.xml |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/PlanMapper.xml b/src/main/resources/mapper/PlanMapper.xml
index 6915a1e..666b5e6 100644
--- a/src/main/resources/mapper/PlanMapper.xml
+++ b/src/main/resources/mapper/PlanMapper.xml
@@ -107,4 +107,34 @@
         ORDER BY mp.create_time DESC
     </select>
 
+    <select id="selectPlanUrlPlanIdUrl" resultType="java.lang.String">
+        select url from man_plan_url
+        where 1=1
+        and id=#{id}
+    </select>
+
+    <select id="selectPlanUrlPlanIdName" resultType="java.lang.String">
+        select name from man_plan_url
+        where 1=1
+        and id=#{id}
+    </select>
+
+    <select id="selectPlanUrlPlanIdSize" resultType="java.lang.Long">
+        select file_size from man_plan_url
+        where 1=1
+        and id=#{id}
+    </select>
+
+    <select id="selectPlanUrlId" resultType="java.lang.Integer">
+        select id from man_plan_url
+        where 1=1
+        and plan_id=#{planId}
+    </select>
+
+    <insert id="increasePlanUrl">
+        insert into man_plan_url(plan_id,url,name,file_size)
+        values(#{planId},#{url},#{name},#{size})
+    </insert>
+
+
 </mapper>

--
Gitblit v1.9.1