diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 951372d..9a4cfae 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -6,11 +6,6 @@
-
-
-
-
-
@@ -185,7 +180,7 @@
-
+
1724047244829
@@ -502,7 +497,14 @@
1725621190899
-
+
+ 1725625264736
+
+
+
+ 1725625264736
+
+
diff --git a/cloud-market-server/src/main/resources/mapper/market/MyApiMapper.xml b/cloud-market-server/src/main/resources/mapper/market/MyApiMapper.xml
index 30942ae..f9945f7 100644
--- a/cloud-market-server/src/main/resources/mapper/market/MyApiMapper.xml
+++ b/cloud-market-server/src/main/resources/mapper/market/MyApiMapper.xml
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where my_id = #{myId}
- UPDATE my_api SET `my_num` = my_num-1 ,`my_states` = 'N' WHERE `user_id` = #{userId} and `api_id` = #{apiId};
+ UPDATE my_api SET `my_num` = my_num-1 ,`my_states` = 'N' WHERE `user_id` = #{userId} and `api_id` = #{apiId} and my_num>0;