1
zj
2026-01-28 86587c1ffa0bdfa2a171dce96540c7617dd44dec
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}