88e030b7
王彪总
init project
|
1
2
3
4
5
|
<?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="communityPublicityV1ServiceDaoImpl">
|
9750b443
王彪总
fix(config): 更新配置...
|
6
|
<!-- 保存项目公示信息 add by wuxw 2018-07-03 -->
|
88e030b7
王彪总
init project
|
7
8
9
10
11
12
13
|
<insert id="saveCommunityPublicityInfo" parameterType="Map">
insert into community_publicity(create_user_id, pub_id, context, collect_count, pub_type, like_count,
create_user_name, title, community_id, read_count, header_img)
values (#{createUserId}, #{pubId}, #{context}, #{collectCount}, #{pubType}, #{likeCount}, #{createUserName},
#{title}, #{communityId}, #{readCount}, #{headerImg})
</insert>
|
9750b443
王彪总
fix(config): 更新配置...
|
14
|
<!-- 查询项目公示信息 add by wuxw 2018-07-03 -->
|
88e030b7
王彪总
init project
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<select id="getCommunityPublicityInfo" parameterType="Map" resultType="Map">
select t.create_user_id,t.create_user_id createUserId,t.pub_id,t.pub_id
pubId,t.context,t.collect_count,t.collect_count collectCount,t.pub_type,t.pub_type
pubType,t.like_count,t.like_count likeCount,t.create_user_name,t.create_user_name
createUserName,t.status_cd,t.status_cd statusCd,t.title,t.community_id,t.community_id
communityId,t.read_count,t.read_count readCount,t.header_img,t.header_img headerImg,
t.create_time createTime,td.`name` pubTypeName
from community_publicity t
left join t_dict td on t.pub_type = td.status_cd and td.table_name = 'community_publicity' and td.table_columns
= 'pub_type'
where 1 =1
<if test="createUserId !=null and createUserId != ''">
and t.create_user_id= #{createUserId}
</if>
<if test="pubId !=null and pubId != ''">
and t.pub_id= #{pubId}
</if>
<if test="context !=null and context != ''">
and t.context= #{context}
</if>
<if test="collectCount !=null and collectCount != ''">
and t.collect_count= #{collectCount}
</if>
<if test="pubType !=null and pubType != ''">
and t.pub_type= #{pubType}
</if>
<if test="likeCount !=null and likeCount != ''">
and t.like_count= #{likeCount}
</if>
<if test="createUserName !=null and createUserName != ''">
and t.create_user_name= #{createUserName}
</if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
<if test="title !=null and title != ''">
and t.title like concat('%',#{title},'%')
</if>
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
</if>
<if test="readCount !=null and readCount != ''">
and t.read_count= #{readCount}
</if>
<if test="headerImg !=null and headerImg != ''">
and t.header_img= #{headerImg}
</if>
order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
</select>
|
9750b443
王彪总
fix(config): 更新配置...
|
68
|
<!-- 修改项目公示信息 add by wuxw 2018-07-03 -->
|
88e030b7
王彪总
init project
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<update id="updateCommunityPublicityInfo" parameterType="Map">
update community_publicity t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="createUserId !=null and createUserId != ''">
, t.create_user_id= #{createUserId}
</if>
<if test="context !=null and context != ''">
, t.context= #{context}
</if>
<if test="collectCount !=null and collectCount != ''">
, t.collect_count= #{collectCount}
</if>
<if test="pubType !=null and pubType != ''">
, t.pub_type= #{pubType}
</if>
<if test="likeCount !=null and likeCount != ''">
, t.like_count= #{likeCount}
</if>
<if test="createUserName !=null and createUserName != ''">
, t.create_user_name= #{createUserName}
</if>
<if test="title !=null and title != ''">
, t.title= #{title}
</if>
<if test="communityId !=null and communityId != ''">
, t.community_id= #{communityId}
</if>
<if test="readCount !=null and readCount != ''">
, t.read_count= #{readCount}
</if>
<if test="headerImg !=null and headerImg != ''">
, t.header_img= #{headerImg}
</if>
where 1=1
<if test="pubId !=null and pubId != ''">
and t.pub_id= #{pubId}
</if>
</update>
|
9750b443
王彪总
fix(config): 更新配置...
|
110
|
<!-- 查询项目公示数量 add by wuxw 2018-07-03 -->
|
88e030b7
王彪总
init project
|
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
<select id="queryCommunityPublicitysCount" parameterType="Map" resultType="Map">
select count(1) count
from community_publicity t
where 1 =1
<if test="createUserId !=null and createUserId != ''">
and t.create_user_id= #{createUserId}
</if>
<if test="pubId !=null and pubId != ''">
and t.pub_id= #{pubId}
</if>
<if test="context !=null and context != ''">
and t.context= #{context}
</if>
<if test="collectCount !=null and collectCount != ''">
and t.collect_count= #{collectCount}
</if>
<if test="pubType !=null and pubType != ''">
and t.pub_type= #{pubType}
</if>
<if test="likeCount !=null and likeCount != ''">
and t.like_count= #{likeCount}
</if>
<if test="createUserName !=null and createUserName != ''">
and t.create_user_name= #{createUserName}
</if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
<if test="title !=null and title != ''">
and t.title like concat('%',#{title},'%')
</if>
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
</if>
<if test="readCount !=null and readCount != ''">
and t.read_count= #{readCount}
</if>
<if test="headerImg !=null and headerImg != ''">
and t.header_img= #{headerImg}
</if>
</select>
</mapper>
|