@@ -373,7 +373,9 @@ PUBLIC
SET
PLACE_AMOUNT =(PLACE_AMOUNT + #{amount})
WHERE
- PLACE_ID = #{id}
+ PLACE_ID = #{id}
+ AND
+ <![CDATA[PLACE_AMOUNT + #{amount} >= 0]]>
</update>
<select id="getPlaceInfoByPlaceId" parameterType="integer" resultType="PlaceInfo">