Merge #109 into master from cc_20260420_export
feat:数量不一致 * cc_20260420_export: (7 commits squashed) - feat:提示修改 - feat:提示修改 - feat:导出调整 - feat:管理员查询所有 非管理员权限查询 - feat:管理员查询所有 非管理员权限查询 - feat:fix - feat:数量不一致 Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/109
This commit is contained in:
@@ -141,6 +141,43 @@
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 分页查询总数 -->
|
||||
<select id="pageCount" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from zxjp_split_order a
|
||||
left join store_${enterpriseId} b
|
||||
on a.related_store_id = b.store_id
|
||||
where a.deleted = 0
|
||||
<if test="request.splitNo != null and request.splitNo != ''">
|
||||
AND a.split_no LIKE CONCAT('%', #{request.splitNo}, '%')
|
||||
</if>
|
||||
<if test="request.splitType != null">
|
||||
AND a.split_type = #{request.splitType}
|
||||
</if>
|
||||
<if test="request.payerAccountName != null and request.payerAccountName != ''">
|
||||
AND a.payer_account_name LIKE CONCAT('%', #{request.payerAccountName}, '%')
|
||||
</if>
|
||||
<if test="request.payeeAccountName != null and request.payeeAccountName != ''">
|
||||
AND a.payee_account_name LIKE CONCAT('%', #{request.payeeAccountName}, '%')
|
||||
</if>
|
||||
<if test="request.expenseTypeCode != null and request.expenseTypeCode != ''">
|
||||
AND a.expense_type_code = #{request.expenseTypeCode}
|
||||
</if>
|
||||
<if test="request.relatedStoreId != null and request.relatedStoreId != ''">
|
||||
AND a.related_store_id = #{request.relatedStoreId}
|
||||
</if>
|
||||
<if test="request.relatedDocNo != null and request.relatedDocNo != ''">
|
||||
AND a.related_doc_no LIKE CONCAT('%', #{request.relatedDocNo}, '%')
|
||||
</if>
|
||||
<if test="request.status != null and request.status != ''">
|
||||
AND a.status = #{request.status}
|
||||
</if>
|
||||
<if test="request.source != null">
|
||||
AND a.source = #{request.source}
|
||||
</if>
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
AND (b.store_name LIKE CONCAT('%', #{request.keyword}, '%') OR b.store_num LIKE CONCAT('%', #{request.keyword}, '%'))
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user