src/main/resources/mapper/UserPositionMapper.xml
@@ -549,6 +549,11 @@ WHERE sell_order_id is not null </select> <select id="CountPositionAllProfitAndLoseByUserId" resultType="decimal" parameterType="integer"> SELECT sum(all_profit_and_lose) FROM user_position WHERE sell_order_id is not null and user_id = #{userId} </select> <delete id="deleteByUserId" parameterType="integer"> DELETE FROM user_position WHERE user_id = #{userId}