feat:发票号
This commit is contained in:
1 parent
b6ab272f7f
commit
b661d333e7
3 files changed
+15
No files matched your search
+5
@@ -27,4 +27,9 @@ public class WalletRechargeApplyDto extends WalletRechargeApplyEntity {
|
||||
* 审批相关
|
||||
*/
|
||||
private Boolean isFindCheckUser = false;
|
||||
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
private String invoiceCode;
|
||||
}
|
||||
+5
@@ -45,4 +45,9 @@ public class WalletRechargeApplyVo extends WalletRechargeApplyEntity implements
|
||||
*/
|
||||
private Integer totalPrice;
|
||||
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
private String invoiceCode;
|
||||
|
||||
}
|
||||
+5
@@ -65,14 +65,19 @@
|
||||
t.unique_code as walletTypeUniqueCode,
|
||||
t.icon as walletTypeIcon,
|
||||
t.is_rule as isRule,
|
||||
i.code as invoiceCode,
|
||||
(select sum(i.price)
|
||||
from wallet_recharge_import i
|
||||
where i.del_flag = '0'
|
||||
and i.apply_id = a.id) as totalPrice
|
||||
from wallet_recharge_apply a
|
||||
left join wallet_type t on a.wallet_type_id = t.id and t.del_flag = '0'
|
||||
left join wallet_recharge_invoice i on i.id = a.invoice_id and i.del_flag = '0'
|
||||
<where>
|
||||
<include refid="whereA"/>
|
||||
<if test="dto.invoiceCode != null">
|
||||
and i.code = #{dto.invoiceCode}
|
||||
</if>
|
||||
</where>
|
||||
group by a.id
|
||||
<if test="dto.processStatus != null and dto.processStatus == 2">
|
||||
|
||||
Reference in new issue
Block a user