|
|
@ -17,16 +17,40 @@
|
|
|
|
column="id" ofType="com.kiisoo.ic.activity.entity.PmnActivityPromotionParam"
|
|
|
|
column="id" ofType="com.kiisoo.ic.activity.entity.PmnActivityPromotionParam"
|
|
|
|
select="selectParamsByInstanceId">
|
|
|
|
select="selectParamsByInstanceId">
|
|
|
|
</collection>
|
|
|
|
</collection>
|
|
|
|
<!-- <collection property="stores" javaType="ArrayList"-->
|
|
|
|
</resultMap>
|
|
|
|
<!-- column="id" ofType="com.kiisoo.ic.store.entity.PoiStore"-->
|
|
|
|
<resultMap type="com.kiisoo.ic.activity.bean.ActivityInstanceVO"
|
|
|
|
<!-- select="selectStoresByInstanceId" fetchType="lazy">-->
|
|
|
|
id="activityInstanceVOMapStores">
|
|
|
|
<!-- </collection>-->
|
|
|
|
<result column="schedule_id" property="scheduleId"/>
|
|
|
|
|
|
|
|
<result column="name" property="name"/>
|
|
|
|
|
|
|
|
<result column="begin_time" property="beginTime"/>
|
|
|
|
|
|
|
|
<result column="end_time" property="endTime"/>
|
|
|
|
|
|
|
|
<result column="status" property="status"/>
|
|
|
|
|
|
|
|
<result column="id" property="id"/>
|
|
|
|
|
|
|
|
<collection property="params" javaType="ArrayList"
|
|
|
|
|
|
|
|
column="id" ofType="com.kiisoo.ic.activity.entity.PmnActivityPromotionParam"
|
|
|
|
|
|
|
|
select="selectParamsByInstanceId">
|
|
|
|
|
|
|
|
</collection>
|
|
|
|
|
|
|
|
<collection property="stores" javaType="ArrayList"
|
|
|
|
|
|
|
|
column="id" ofType="com.kiisoo.ic.store.entity.PoiStore"
|
|
|
|
|
|
|
|
select="selectStoresByInstanceId">
|
|
|
|
|
|
|
|
</collection>
|
|
|
|
|
|
|
|
<collection property="organizations" javaType="ArrayList"
|
|
|
|
|
|
|
|
column="id" ofType="com.kiisoo.ic.generalize.entity.PrivilageOrganizational"
|
|
|
|
|
|
|
|
select="selectOrgByInstanceId">
|
|
|
|
|
|
|
|
</collection>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<select id="selectParamsByInstanceId" parameterType="int"
|
|
|
|
<select id="selectParamsByInstanceId" parameterType="int"
|
|
|
|
resultType="com.kiisoo.ic.activity.entity.PmnActivityPromotionParam">
|
|
|
|
resultType="com.kiisoo.ic.activity.entity.PmnActivityPromotionParam">
|
|
|
|
select * from pmn_activity_promotion_param where id in(select param_id from pmn_activity_instance_config where instance_id=#{instanceId})
|
|
|
|
select * from pmn_activity_promotion_param where id in(select param_id from pmn_activity_instance_config where instance_id=#{instanceId})
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrgByInstanceId" parameterType="int"
|
|
|
|
|
|
|
|
resultType="com.kiisoo.ic.generalize.entity.PrivilageOrganizational">
|
|
|
|
|
|
|
|
select * from privilage_organizational
|
|
|
|
|
|
|
|
where
|
|
|
|
|
|
|
|
id in(select org_id from pmn_activity_store_relation where instance_id=#{instanceId})
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectStoresByInstanceId" parameterType="int"
|
|
|
|
<select id="selectStoresByInstanceId" parameterType="int"
|
|
|
|
resultType="com.kiisoo.ic.store.bean.PoiStoreDTO">
|
|
|
|
resultType="com.kiisoo.ic.store.bean.PoiStoreDTO">
|
|
|
|
select t.*,
|
|
|
|
select t.*,
|
|
|
@ -84,7 +108,7 @@ select * from pmn_activity_promotion_param where id in(select param_id from pmn_
|
|
|
|
order by create_time desc
|
|
|
|
order by create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getVO" resultMap="activityInstanceVOMap">
|
|
|
|
<select id="getVO" resultMap="activityInstanceVOMapStores">
|
|
|
|
select t.* from pmn_activity_instance t where id = #{instanceId} limit 0,1
|
|
|
|
select t.* from pmn_activity_instance t where id = #{instanceId} limit 0,1
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|