|
|
@@ -516,20 +516,19 @@ from public_release a left join `user` b on a.uid =b.id left join admin c on a.a
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectByUfid" resultType="com.goafanti.admin.bo.OutPublicRelease">
|
|
|
- select a.id,b.nickname ,c.name aname,date_format(a.release_start,'%Y-%m-%d %H:%i:%S') releaseStarts,a.user_name userName,
|
|
|
+ <select id="selectDtails" resultType="com.goafanti.admin.bo.OutPublicRelease">
|
|
|
+ select a.id,b.nickname ,c.name aname,date_format(a.release_start,'%Y-%m-%d %H:%i:%S') releaseStarts,a.user_name userName,
|
|
|
date_format(a.release_end ,'%Y-%m-%d %H:%i:%S') releaseEnds,date_format(a.create_time ,'%Y-%m-%d %H:%i:%S') createTimes,a.status,
|
|
|
-a.annex_url annexUrl ,a.remarks,a.duration ,a.valid_date validDate
|
|
|
+a.annex_url annexUrl ,a.remarks,a.duration ,a.valid_date validDate ,a.latitude ,a.longitude
|
|
|
from public_release a left join `user` b on a.uid =b.id left join admin c on a.aid =c.id
|
|
|
- where a.ufid= #{id}
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectByid" resultType="com.goafanti.admin.bo.OutPublicRelease">
|
|
|
- select a.id,b.nickname ,c.name aname,date_format(a.release_start,'%Y-%m-%d %H:%i:%S') releaseStarts,a.user_name userName,
|
|
|
-date_format(a.release_end ,'%Y-%m-%d %H:%i:%S') releaseEnds,date_format(a.create_time ,'%Y-%m-%d %H:%i:%S') createTimes,a.status,
|
|
|
-a.annex_url annexUrl ,a.remarks,a.duration ,a.valid_date validDate
|
|
|
- from public_release a left join `user` b on a.uid =b.id left join admin c on a.aid =c.id
|
|
|
- where a.id= #{id}
|
|
|
+ where 1=1
|
|
|
+ <if test="id !=null">
|
|
|
+ and a.id= #{id}
|
|
|
+ </if>
|
|
|
+ <if test="ufid !=null">
|
|
|
+ and a.ufid= #{ufid}
|
|
|
+ </if>
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<select id="listPublicStatistics" resultType="com.goafanti.admin.bo.OutPublicStatistics">
|