|
|
@@ -723,5 +723,23 @@
|
|
|
from public_release
|
|
|
where order_no= #{orderNo}
|
|
|
</select>
|
|
|
+ <select id="selectMyNewPublic" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ where a.status in(1,2) and a.aid = #{aid}
|
|
|
+ order by a.release_start desc limit 10
|
|
|
+ </select>
|
|
|
+ <select id="selectOutListBoById" resultType="com.goafanti.weChat.bo.OutPublicReleaseList">
|
|
|
+ select a.id ,c.name aname,date_format(a.release_start,'%Y-%m-%d %H:%i:%S') releaseStarts,a.aid,a.public_type publicType,
|
|
|
+ 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,
|
|
|
+ date_format(a.update_time ,'%Y-%m-%d %H:%i:%S') updateTimes,a.update_status updateStatus,a.district_name districtName,
|
|
|
+ a.assist,a.assist_aid assistAid,a.assist_aid_name assistAidName,a.type,a.main_name mainName,a.reject_name rejectName,
|
|
|
+ a.assistant_aid assistantAid ,a.assistant_name assistantName,a.public_again publicAgain,a.user_names userNames,
|
|
|
+ ea.total_amount expenseAmount ,a.clock_in clockIn,c2.name reviewerName,a.tech_start_process techStartProcess
|
|
|
+ from public_release a left join admin c on a.aid =c.id
|
|
|
+ left join admin c2 on c.reviewer=c2.id
|
|
|
+ left join (select * from expense_account where status in (0,1,2,3)) ea on a.id =ea.prid
|
|
|
+ where a.id= #{id}
|
|
|
+ </select>
|
|
|
</mapper>
|
|
|
|