fxi
wzy
2022-10-22 03bd618f5f3055f0a558a65b28a67fd604b27a1e
src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -43,5 +43,14 @@
            limit 1
    </select>
    <select id="selectTotalProfitByMemberIdAndStateAndIsgoal" resultType="java.math.BigDecimal">
        SELECT
            ifnull(sum(a.profit),0)
        FROM igt_on_hook_plan_order_item a
        where  a.member_id = #{memberId}
          and a.is_goal = #{isGoal}
          and a.state = #{state}
    </select>
</mapper>