|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="com.jeeplus.modules.workinvoice.dao.WorkInvoiceDao">
|
|
|
|
|
|
<sql id="workInvoiceColumns">
|
|
|
- a.id AS "id",
|
|
|
+ DISTINCT(a.id) AS "id",
|
|
|
a.number AS "number",
|
|
|
a.process_instance_id AS "processInstanceId",
|
|
|
a.client_id AS "client.id",
|
|
@@ -913,7 +913,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="queryCount" resultType="int" >
|
|
|
- SELECT count(1)
|
|
|
+ SELECT count(DISTINCT(a.id))
|
|
|
FROM work_invoice a
|
|
|
<include refid="workInvoiceJoins"/>
|
|
|
left join work_invoice_detail wid on a.id = wid.invoice_id
|