|
@@ -18,36 +18,36 @@
|
|
|
column="act_id"/>
|
|
column="act_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
- <select id="selectFormRecordByActId" resultType="com.linkwechat.domain.activity.vo.FormRecordVo">
|
|
|
|
|
- select
|
|
|
|
|
- wafr.act_id as actId,
|
|
|
|
|
- wafr.user_id as userId,
|
|
|
|
|
- MAX(wafr.user_nick_name) as userNickName,
|
|
|
|
|
- GROUP_CONCAT(CONCAT(wafr.form_name, ':', wafr.form_val) SEPARATOR ',') as userInfo
|
|
|
|
|
- from
|
|
|
|
|
- `jeecg-boot`.we_application_form_record wafr
|
|
|
|
|
- where
|
|
|
|
|
- 1=1
|
|
|
|
|
- and wafr.act_id = #{actId}
|
|
|
|
|
- group by wafr.act_id, wafr.user_id
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+<!-- <select id="selectFormRecordByActId" resultType="com.linkwechat.domain.activity.vo.FormRecordVo">-->
|
|
|
|
|
+<!-- select-->
|
|
|
|
|
+<!-- wafr.act_id as actId,-->
|
|
|
|
|
+<!-- wafr.user_id as userId,-->
|
|
|
|
|
+<!-- MAX(wafr.user_nick_name) as userNickName,-->
|
|
|
|
|
+<!-- GROUP_CONCAT(CONCAT(wafr.form_name, ':', wafr.form_val) SEPARATOR ',') as userInfo-->
|
|
|
|
|
+<!-- from-->
|
|
|
|
|
+<!-- we_application_form_record wafr-->
|
|
|
|
|
+<!-- where-->
|
|
|
|
|
+<!-- 1=1-->
|
|
|
|
|
+<!-- and wafr.act_id = #{actId}-->
|
|
|
|
|
+<!-- group by wafr.act_id, wafr.user_id-->
|
|
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
|
|
- <select id="selectWinRecordByActId" resultType="com.linkwechat.domain.activity.vo.WinRecordVo">
|
|
|
|
|
- select
|
|
|
|
|
- wpr.id as id,
|
|
|
|
|
- wpr.act_id as actId,
|
|
|
|
|
- wpr.user_id as userId,
|
|
|
|
|
- wpr.user_phone as userPhone,
|
|
|
|
|
- wpr.user_name as userNickName
|
|
|
|
|
- from
|
|
|
|
|
- `jeecg-boot`.we_prize_record wpr
|
|
|
|
|
- where
|
|
|
|
|
- 1=1
|
|
|
|
|
- and wpr.act_id = #{actId}
|
|
|
|
|
- <if test="prizeType != null and prizeType != ''">
|
|
|
|
|
- and wpr.prize_type != 5
|
|
|
|
|
- </if>
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+<!-- <select id="selectWinRecordByActId" resultType="com.linkwechat.domain.activity.vo.WinRecordVo">-->
|
|
|
|
|
+<!-- select-->
|
|
|
|
|
+<!-- wpr.id as id,-->
|
|
|
|
|
+<!-- wpr.act_id as actId,-->
|
|
|
|
|
+<!-- wpr.user_id as userId,-->
|
|
|
|
|
+<!-- wpr.user_phone as userPhone,-->
|
|
|
|
|
+<!-- wpr.user_name as userNickName-->
|
|
|
|
|
+<!-- from-->
|
|
|
|
|
+<!-- `jeecg-boot`.we_prize_record wpr-->
|
|
|
|
|
+<!-- where-->
|
|
|
|
|
+<!-- 1=1-->
|
|
|
|
|
+<!-- and wpr.act_id = #{actId}-->
|
|
|
|
|
+<!-- <if test="prizeType != null and prizeType != ''">-->
|
|
|
|
|
+<!-- and wpr.prize_type != 5-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
|
|
<select id="selectPrizesByActId" resultType="com.linkwechat.domain.WePrize">
|
|
<select id="selectPrizesByActId" resultType="com.linkwechat.domain.WePrize">
|
|
|
select
|
|
select
|