xiaoyong931011
2022-10-27 ac397945cddd60cdc1c95d79c17bfca074e5687e
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>