xiaoyong931011
2022-10-26 e92fd4ee90a7296fcb2336409d128dfd1bf653f4
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>