xiaoyong931011
2022-10-22 6a084a68b3e0e771be7170e0c4fae6c0aec41389
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>