| | |
| | | select a.* from cannon_own_record a where a.member_id = #{memberId} and a.id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <resultMap id="awardsMap" type="com.xcong.excoin.modules.fish.vo.AwardsVo"> |
| | | <result property="consume" column="consume" /> |
| | | <collection property="awardVo" ofType="com.xcong.excoin.modules.fish.vo.AwardVo" > |
| | | <result property="name" column="name" /> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <select id="getAwards" resultMap="awardsMap"> |
| | | select |
| | | a.consume, |
| | | b.name |
| | | from cannon_award_set a |
| | | inner join cannon_award b on a.code = b.activity_code |
| | | where b.type = 1; |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getCannonAwardSet" resultType="com.xcong.excoin.modules.fish.entity.CannonAwardSet"> |
| | | select a.* from cannon_award_set a |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectCannonAward" resultType="com.xcong.excoin.modules.fish.entity.CannonAward"> |
| | | select a.* from cannon_award a where a.type = 1; |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectCannonAwardByCode" resultType="com.xcong.excoin.modules.fish.entity.CannonAward"> |
| | | select a.* from cannon_award a where a.code = #{code} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectCannonAccountMoneyChangeByMemberId" resultType="java.lang.Integer"> |
| | | select COUNT(a.id) from cannon_account_money_change a where a.type = 4 |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |