1
zj
2026-03-12 3a35e98f09c9320f8e1586d091b1c80c6c505610
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}