|
|
@@ -6,9 +6,9 @@
|
|
|
|
|
|
<!-- 保存广告信息信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveBusinessAdvertInfo" parameterType="Map">
|
|
|
- insert into business_advert(classify,ad_name,location_type_cd,ad_type_cd,advert_id,operate,start_time,state,end_time,community_id,b_id,location_obj_id,seq)
|
|
|
+ insert into business_advert(classify,ad_name,location_type_cd,ad_type_cd,advert_id,operate,start_time,state,end_time,community_id,b_id,location_obj_id,seq,view_type)
|
|
|
values
|
|
|
- (#{classify},#{adName},#{locationTypeCd},#{adTypeCd},#{advertId},#{operate},#{startTime},#{state},#{endTime},#{communityId},#{bId},#{locationObjId},#{seq})
|
|
|
+ (#{classify},#{adName},#{locationTypeCd},#{adTypeCd},#{advertId},#{operate},#{startTime},#{state},#{endTime},#{communityId},#{bId},#{locationObjId},#{seq},#{viewType})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 查询广告信息信息(Business) add by wuxw 2018-07-03 -->
|
|
|
@@ -17,7 +17,7 @@
|
|
|
locationTypeCd,t.ad_type_cd,t.ad_type_cd adTypeCd,t.advert_id,t.advert_id
|
|
|
advertId,t.operate,t.start_time,t.start_time startTime,t.state,t.end_time,t.end_time
|
|
|
endTime,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.location_obj_id,t.location_obj_id
|
|
|
- locationObjId,t.seq
|
|
|
+ locationObjId,t.seq,t.view_type,t.view_type viewType
|
|
|
from business_advert t
|
|
|
where 1 =1
|
|
|
<if test="classify !=null and classify != ''">
|
|
|
@@ -64,9 +64,9 @@
|
|
|
<!-- 保存广告信息信息至 instance表中 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveAdvertInfoInstance" parameterType="Map">
|
|
|
insert into advert(
|
|
|
- classify,ad_name,location_type_cd,status_cd,ad_type_cd,advert_id,start_time,state,end_time,community_id,b_id,location_obj_id,seq
|
|
|
+ classify,ad_name,location_type_cd,status_cd,ad_type_cd,advert_id,start_time,state,end_time,community_id,b_id,location_obj_id,seq,view_type
|
|
|
) select
|
|
|
- t.classify,t.ad_name,t.location_type_cd,'0',t.ad_type_cd,t.advert_id,t.start_time,t.state,t.end_time,t.community_id,t.b_id,t.location_obj_id,t.seq
|
|
|
+ t.classify,t.ad_name,t.location_type_cd,'0',t.ad_type_cd,t.advert_id,t.start_time,t.state,t.end_time,t.community_id,t.b_id,t.location_obj_id,t.seq,t.view_type
|
|
|
from business_advert t where 1=1
|
|
|
<if test="classify !=null and classify != ''">
|
|
|
and t.classify= #{classify}
|
|
|
@@ -143,6 +143,9 @@
|
|
|
<if test="seq !=null and seq != ''">
|
|
|
, t.seq= #{seq}
|
|
|
</if>
|
|
|
+ <if test="viewType != null and viewType != ''">
|
|
|
+ , t.view_type = #{viewType}
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
<if test="advertId !=null and advertId != ''">
|
|
|
and t.advert_id= #{advertId}
|
|
|
@@ -158,7 +161,7 @@
|
|
|
locationTypeCd,t.status_cd,t.status_cd statusCd,t.ad_type_cd,t.ad_type_cd adTypeCd,t.advert_id,t.advert_id
|
|
|
advertId,t.start_time,t.start_time startTime,t.state,t.end_time,t.end_time endTime,t.community_id,t.community_id
|
|
|
communityId,t.b_id,t.b_id bId,t.location_obj_id,t.location_obj_id locationObjId,t.seq,td1.name
|
|
|
- classifyName,td2.name stateName,t.create_time createTime,td3.name locationObjName
|
|
|
+ classifyName,td2.name stateName,t.create_time createTime,td3.name locationObjName,t.view_type,t.view_type viewType
|
|
|
from advert t
|
|
|
left join t_dict td1 on t.classify = td1.status_cd and td1.table_name = 'advert' and td1.table_columns = 'classify'
|
|
|
left join t_dict td2 on t.state = td2.status_cd and td2.table_name = 'advert' and td2.table_columns = 'state'
|
|
|
@@ -203,6 +206,9 @@
|
|
|
<if test="createTime != null and createTime != ''">
|
|
|
and t.create_Time = #{createTime}
|
|
|
</if>
|
|
|
+ <if test="viewType != null and viewType != ''">
|
|
|
+ and t.view_type = #{viewType}
|
|
|
+ </if>
|
|
|
order by t.create_time desc
|
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|
|
|
@@ -242,6 +248,9 @@
|
|
|
<if test="seq !=null and seq != ''">
|
|
|
, t.seq= #{seq}
|
|
|
</if>
|
|
|
+ <if test="viewType != null and viewType != ''">
|
|
|
+ , t.view_type = #{viewType}
|
|
|
+ </if>
|
|
|
where 1=1
|
|
|
<if test="advertId !=null and advertId != ''">
|
|
|
and t.advert_id= #{advertId}
|
|
|
@@ -292,5 +301,8 @@
|
|
|
<if test="seq !=null and seq != ''">
|
|
|
and t.seq= #{seq}
|
|
|
</if>
|
|
|
+ <if test="viewType != null and viewType != ''">
|
|
|
+ and t.view_type = #{viewType}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|