修改#41229
This commit is contained in:
+5
-1
@@ -50,7 +50,11 @@
|
||||
where pmbp.project_id=#{projectId}
|
||||
</select>
|
||||
<select id="getMonthMailCount" resultType="java.lang.Integer">
|
||||
SELECT count(*) FROM pay_mail_bill WHERE DATE_FORMAT(create_time,'%Y-%m') = #{time} AND post_status = '1'
|
||||
select count(*) from (
|
||||
select id from pay_mail_bill WHERE DATE_FORMAT(create_time,'%Y-%m') = #{time} AND post_status = '1'
|
||||
UNION ALL
|
||||
select id from pay_mail_contract WHERE DATE_FORMAT(create_time,'%Y-%m') = #{time} AND post_status = '1'
|
||||
) A
|
||||
</select>
|
||||
|
||||
<select id="pageList" resultType="com.jero.mail.entity.PayMailBill">
|
||||
|
||||
Reference in New Issue
Block a user