在后台发票列表接口,添加了租户id字段

This commit is contained in:
wen 2022-01-04 15:01:05 +08:00
parent 0bf00a46d4
commit cba1b6c681
3 changed files with 13 additions and 0 deletions

View File

@ -160,6 +160,7 @@ public class XhpcInvoiceController extends BaseController {
return AjaxResult.error("要回显的订单发票id有误"); return AjaxResult.error("要回显的订单发票id有误");
} }
return AjaxResult.success(specificInvoiceWrap); return AjaxResult.success(specificInvoiceWrap);
} }
} }

View File

@ -30,6 +30,11 @@ public class AllInvoiceOrdersRequest {
*/ */
@JsonProperty("invoiceType") @JsonProperty("invoiceType")
private Integer invoiceType; private Integer invoiceType;
/**
* 租户id
*/
@JsonProperty("tenantId")
private String tenantId;
/** /**
* 发票状态0表示未开票1表示已经开票2表示开票失败 * 发票状态0表示未开票1表示已经开票2表示开票失败
*/ */

View File

@ -74,6 +74,7 @@
SELECT SELECT
invoice_id, invoice_id,
invoice_type, invoice_type,
tenant_id,
creator, creator,
creator_type, creator_type,
invoice_money, invoice_money,
@ -94,6 +95,9 @@
<if test="invoiceType!=null"> <if test="invoiceType!=null">
and invoice_type = #{invoiceType} and invoice_type = #{invoiceType}
</if> </if>
<if test="tenantId!=null">
and tenant_id = #{tenantId}
</if>
<if test="status!=null"> <if test="status!=null">
and status = #{status} and status = #{status}
</if> </if>
@ -128,6 +132,9 @@
<if test="invoiceType!=null"> <if test="invoiceType!=null">
and invoice_type = #{invoiceType} and invoice_type = #{invoiceType}
</if> </if>
<if test="tenantId!=null">
and tenant_id = #{tenantId}
</if>
<if test="status!=null"> <if test="status!=null">
and status = #{status} and status = #{status}
</if> </if>