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