mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComActRafflePrizeDao">
 
    <resultMap type="com.panzhihua.service_community.entity.ComActRafflePrize" id="ComActRafflePrizeBaseResultMap">
        <result property="id" column="id"/>
        <result property="name" column="name"/>
        <result property="total" column="total"/>
        <result property="surplus" column="surplus"/>
        <result property="image" column="image"/>
        <result property="raffleId" column="raffle_id"/>
    </resultMap>
 
    <select id="selectByRaffleId" resultType="com.panzhihua.common.model.vos.community.raffle.ComActRafflePrizeVO">
        select * from com_act_raffle_prize where raffle_id = #{id}
    </select>
 
    <select id="selectCount" resultType="com.panzhihua.common.model.vos.community.raffle.ComActRafflePrizeCount">
        select sum(total) as total,sum(surplus) as surplus from com_act_raffle_prize where raffle_id = #{id}
    </select>
 
</mapper>