| | |
| | | and a.state = #{state} |
| | | </select> |
| | | |
| | | <select id="selectByMemberIdAndBelongNum" resultType="cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrderItem"> |
| | | SELECT |
| | | a.* |
| | | FROM igt_on_hook_plan_order_item a |
| | | where |
| | | a.member_id = #{memberId} |
| | | and a.belong_num = #{recordNum} |
| | | 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> |