Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
16fe8194
Commit
16fe8194
authored
Nov 25, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(wealth): 开票管理
parent
754c27c8
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
360 additions
and
90 deletions
+360
-90
ReceiptInvoiceConvert.java
.../wealth/convert/receiptInvoice/ReceiptInvoiceConvert.java
+4
-5
ReceiptDO.java
...yudao/module/wealth/dal/dataobject/receipt/ReceiptDO.java
+1
-1
ReceiptInvoiceDO.java
...ealth/dal/dataobject/receiptInvoice/ReceiptInvoiceDO.java
+23
-6
ReceivableDO.java
...module/wealth/dal/dataobject/receivable/ReceivableDO.java
+4
-2
InvoicingLinkEnum.java
.../iocoder/yudao/module/wealth/enums/InvoicingLinkEnum.java
+1
-1
InvoicingStatusEnum.java
...ocoder/yudao/module/wealth/enums/InvoicingStatusEnum.java
+1
-1
ReceiptInvoiceService.java
.../wealth/service/receiptInvoice/ReceiptInvoiceService.java
+6
-10
ReceiptInvoiceServiceImpl.java
...lth/service/receiptInvoice/ReceiptInvoiceServiceImpl.java
+172
-28
ReceivableService.java
...o/module/wealth/service/receivable/ReceivableService.java
+1
-1
ReceivableServiceImpl.java
...dule/wealth/service/receivable/ReceivableServiceImpl.java
+16
-1
ReceiptInvoiceCreateReqVO.java
...e/wealth/vo/receiptInvoice/ReceiptInvoiceCreateReqVO.java
+3
-0
ReceiptInvoiceDetailVO.java
...dule/wealth/vo/receiptInvoice/ReceiptInvoiceDetailVO.java
+47
-11
ReceiptInvoiceUpdateDataReqVO.java
...alth/vo/receiptInvoice/ReceiptInvoiceUpdateDataReqVO.java
+3
-3
ReceiptInvoiceUpdateInfoReqVO.java
...alth/vo/receiptInvoice/ReceiptInvoiceUpdateInfoReqVO.java
+40
-0
ReceivableBackVO.java
...r/yudao/module/wealth/vo/receivable/ReceivableBackVO.java
+8
-2
ReceivableBaseVO.java
...r/yudao/module/wealth/vo/receivable/ReceivableBaseVO.java
+3
-0
ReceivableUpdateReqVO.java
...ao/module/wealth/vo/receivable/ReceivableUpdateReqVO.java
+7
-4
ReceiptInvoiceController.java
...roller/admin/receiptInvoice/ReceiptInvoiceController.java
+16
-10
ReceiptInvoiceMapper.xml
.../resources/mapper/receiptInvoice/ReceiptInvoiceMapper.xml
+4
-4
No files found.
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/convert/receiptInvoice/ReceiptInvoiceConvert.java
View file @
16fe8194
...
...
@@ -4,10 +4,7 @@ import java.util.*;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptInvoice.ReceiptInvoiceDO
;
import
cn.iocoder.yudao.module.wealth.dal.dataobject.receiptInvoiceLog.ReceiptInvoiceLogDO
;
import
cn.iocoder.yudao.module.wealth.vo.receiptInvoice.ReceiptInvoiceLogBackVO
;
import
cn.iocoder.yudao.module.wealth.vo.receiptInvoice.ReceiptInvoicePageBackVO
;
import
cn.iocoder.yudao.module.wealth.vo.receiptInvoice.ReceiptInvoiceCreateReqVO
;
import
cn.iocoder.yudao.module.wealth.vo.receiptInvoice.ReceiptInvoiceUpdateReqVO
;
import
cn.iocoder.yudao.module.wealth.vo.receiptInvoice.*
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.factory.Mappers
;
...
...
@@ -32,7 +29,7 @@ public interface ReceiptInvoiceConvert {
* @param bean
* @return
*/
ReceiptInvoiceDO
convert
(
ReceiptInvoiceUpdateReqVO
bean
);
ReceiptInvoiceDO
convert
(
ReceiptInvoiceUpdate
Data
ReqVO
bean
);
/***
* 实体转返回VO
...
...
@@ -56,4 +53,6 @@ public interface ReceiptInvoiceConvert {
PageResult
<
ReceiptInvoicePageBackVO
>
convertPage
(
PageResult
<
ReceiptInvoiceDO
>
page
);
List
<
ReceiptInvoiceLogBackVO
>
logDOtoLogVOList
(
List
<
ReceiptInvoiceLogDO
>
invoiceLogDOs
);
ReceiptInvoiceDO
convert
(
ReceiptInvoiceUpdateInfoReqVO
updateReqVO
);
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/dal/dataobject/receipt/ReceiptDO.java
View file @
16fe8194
...
...
@@ -233,7 +233,7 @@ public class ReceiptDO extends BaseDO {
private
Integer
invoicingStatus
;
/**
* 开票
明细
状态
* 开票
资料
状态
*/
private
Integer
invoiceDataStatus
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/dal/dataobject/receiptInvoice/ReceiptInvoiceDO.java
View file @
16fe8194
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
dal
.
dataobject
.
receiptInvoice
;
import
lombok.*
;
import
java.util.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.*
;
import
java.util.Date
;
/**
* 收款单开票信息 DO
...
...
@@ -49,9 +51,9 @@ public class ReceiptInvoiceDO extends BaseDO {
*/
private
Long
applyUserId
;
/**
* 备注
*
开票资料
备注
*/
private
String
r
emark
;
private
String
invoiceR
emark
;
/**
* 申请人姓名
*/
...
...
@@ -99,7 +101,7 @@ public class ReceiptInvoiceDO extends BaseDO {
/**
* 发票信息最后修改时间
*/
private
String
invoiceInfoSaveTime
;
private
Date
invoiceInfoSaveTime
;
/**
* 开发票人id
*/
...
...
@@ -125,4 +127,19 @@ public class ReceiptInvoiceDO extends BaseDO {
*/
private
String
tidanNo
;
/**
* 开票币种符号
*/
private
Long
currencyId
;
/**
* 开票金额
*/
private
java
.
math
.
BigDecimal
invoiceMoney
;
/**
* 开票信息备注
*/
private
String
invoiceInfoRemark
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/dal/dataobject/receivable/ReceivableDO.java
View file @
16fe8194
...
...
@@ -152,12 +152,14 @@ public class ReceivableDO extends BaseDO {
* 含税金额
*/
private
BigDecimal
taxAmount
;
/**
* 核销金额
*/
private
BigDecimal
writeOffAmount
;
/**
* 基准金额
*/
private
BigDecimal
baseAmount
;
/**
* 备注
*/
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/enums/InvoicingLinkEnum.java
View file @
16fe8194
...
...
@@ -29,7 +29,7 @@ public enum InvoicingLinkEnum implements IntArrayValuable {
/**
* 驳回开票信息
*/
REJECT_INVOICE_
INFO
(
4
,
"驳回开票信息"
,
"Reject Invoice Info
"
),
REJECT_INVOICE_
DATA
(
4
,
"驳回开票资料"
,
"Reject Invoice Data
"
),
/**
* 提交开票
*/
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/enums/InvoicingStatusEnum.java
View file @
16fe8194
...
...
@@ -21,7 +21,7 @@ public enum InvoicingStatusEnum implements IntArrayValuable {
/**
* 已取消
*/
CANCELLED
(
4
,
"已
作废
"
,
"Cancelled"
),
CANCELLED
(
4
,
"已
取消
"
,
"Cancelled"
),
/**
* 不开票
*/
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptInvoice/ReceiptInvoiceService.java
View file @
16fe8194
...
...
@@ -26,13 +26,7 @@ public interface ReceiptInvoiceService extends IService<ReceiptInvoiceDO> {
* 更新收款单开票信息
* @param updateReqVO 更新信息
*/
void
updateReceiptInvoice
(
@Valid
ReceiptInvoiceUpdateReqVO
updateReqVO
);
/**
* 删除收款单开票信息
* @param id 编号
*/
void
deleteReceiptInvoice
(
Long
id
);
void
updateReceiptInvoiceData
(
@Valid
ReceiptInvoiceUpdateDataReqVO
updateReqVO
);
/**
* 获得收款单开票信息
...
...
@@ -64,9 +58,11 @@ public interface ReceiptInvoiceService extends IService<ReceiptInvoiceDO> {
*/
List
<
ReceiptInvoiceDO
>
getReceiptInvoiceList
(
ReceiptInvoiceQueryVO
query
);
Boolean
rejectInvoiceInfo
(
@Valid
ReceiptInvoiceOperateReqVO
rejectReqVO
);
Boolean
rejectInvoiceInfo
(
@Valid
ReceiptInvoiceOperateReqVO
reqVO
);
Boolean
cancelInvoice
(
@Valid
ReceiptInvoiceOperateReqVO
reqVO
);
Boolean
cancelInvoice
(
@Valid
ReceiptInvoiceOperateReqVO
rejectR
eqVO
);
Boolean
deleteInvoiceInfo
(
@Valid
ReceiptInvoiceOperateReqVO
r
eqVO
);
Boolean
deleteInvoice
(
@Valid
ReceiptInvoiceOperateReqVO
reject
ReqVO
);
void
updateReceiptInvoiceInfo
(
@Valid
ReceiptInvoiceUpdateInfoReqVO
update
ReqVO
);
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptInvoice/ReceiptInvoiceServiceImpl.java
View file @
16fe8194
This diff is collapsed.
Click to expand it.
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receivable/ReceivableService.java
View file @
16fe8194
...
...
@@ -161,7 +161,7 @@ public interface ReceivableService extends IService<ReceivableDO> {
List
<
ReceivableBackVO
>
receivableList
(
List
<
Long
>
ids
);
/**
* 根据
付款单ID得到付款单
明细列表
* 根据
收款单ID得到应收
明细列表
*
* @param id
* @return
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receivable/ReceivableServiceImpl.java
View file @
16fe8194
...
...
@@ -40,6 +40,7 @@ import org.springframework.validation.annotation.Validated;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutionException
;
...
...
@@ -284,7 +285,21 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
@Override
public
List
<
ReceivableBackVO
>
getReceivableListByReceiptId
(
Long
id
)
{
return
receivableMapper
.
getReceivableBackVoListByReceiptId
(
id
);
List
<
ReceivableBackVO
>
receivableBackVOList
=
receivableMapper
.
getReceivableBackVoListByReceiptId
(
id
);
receivableBackVOList
.
forEach
(
receivableBackVO
->
{
if
(
receivableBackVO
.
getDiscountTotal
()
==
null
)
{
receivableBackVO
.
setDiscountTotal
(
BigDecimal
.
ZERO
);
}
receivableBackVO
.
setNotIncludedTaxAmount
(
receivableBackVO
.
getTotalAmount
());
receivableBackVO
.
setActualAmount
(
receivableBackVO
.
getTaxAmount
().
subtract
(
receivableBackVO
.
getDiscountTotal
()));
if
(
receivableBackVO
.
getWriteOffAmount
()
==
null
)
{
receivableBackVO
.
setWriteOffAmount
(
BigDecimal
.
ZERO
);
}
receivableBackVO
.
setNotWriteOffAmount
(
receivableBackVO
.
getActualAmount
().
subtract
(
receivableBackVO
.
getWriteOffAmount
()));
// 核销比例 = 已核销金额 / 实际金额,保留两位小数字符串
receivableBackVO
.
setWriteOffProportion
(
receivableBackVO
.
getWriteOffAmount
().
divide
(
receivableBackVO
.
getActualAmount
(),
2
,
RoundingMode
.
HALF_UP
).
toString
());
});
return
receivableBackVOList
;
}
@Override
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptInvoice/ReceiptInvoiceCreateReqVO.java
View file @
16fe8194
...
...
@@ -12,6 +12,9 @@ import java.math.BigDecimal;
@ApiModel
(
"管理后台 - 收款单开票信息创建 Request VO"
)
public
class
ReceiptInvoiceCreateReqVO
{
@ApiModelProperty
(
value
=
"收款单id"
,
required
=
true
)
private
Long
receiptId
;
@ApiModelProperty
(
value
=
"发票抬头"
)
private
String
invoiceHeader
;
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptInvoice/ReceiptInvoiceDetailVO.java
View file @
16fe8194
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
vo
.
receiptInvoice
;
import
cn.iocoder.yudao.module.wealth.vo.receivable.ReceivableBackVO
;
import
cn.iocoder.yudao.module.wealth.vo.receivable.WealthMoneyAmountVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -13,26 +14,38 @@ import java.util.List;
public
class
ReceiptInvoiceDetailVO
{
//订单信息/基础信息
@ApiModelProperty
(
value
=
"开票编号"
)
private
String
invoiceNo
;
@ApiModelProperty
(
value
=
"收款单id"
)
private
Long
receiptId
;
@ApiModelProperty
(
value
=
"收款单号(例:SKD001)"
)
private
String
receiptNo
;
@ApiModelProperty
(
value
=
"订单id"
)
private
Long
orderId
;
@ApiModelProperty
(
value
=
"客户id"
)
private
Long
customerId
;
@ApiModelProperty
(
value
=
"客户名称"
)
private
String
customerName
;
@ApiModelProperty
(
value
=
"应收总金额/已收总金额统计"
)
private
List
<
WealthMoneyAmountVO
>
receiptAmount
;
@ApiModelProperty
(
value
=
"应收总美元"
)
private
java
.
math
.
BigDecimal
receivableTotalAmountUsd
;
@ApiModelProperty
(
value
=
"
订单号(NG2414248L)
"
)
private
String
orderNo
;
@ApiModelProperty
(
value
=
"
已收总美元
"
)
private
java
.
math
.
BigDecimal
writeOffAmountUsd
;
@ApiModelProperty
(
value
=
"
应收金额(多币种换行,应该从应收明细中取)
"
)
private
Integer
receivableTotalAmount
;
@ApiModelProperty
(
value
=
"
总核销比例
"
)
private
String
writeOffProportion
;
@ApiModelProperty
(
value
=
"开票状态"
)
private
Integer
invoicingStatus
;
@ApiModelProperty
(
value
=
"开票
编号
"
)
private
String
invoiceNo
;
@ApiModelProperty
(
value
=
"开票
资料状态
"
)
private
Integer
invoiceDataStatus
;
@ApiModelProperty
(
value
=
"开票类型(字典表 invoicing_type)"
)
private
Integer
invoiceTypeId
;
...
...
@@ -62,13 +75,21 @@ public class ReceiptInvoiceDetailVO {
@ApiModelProperty
(
value
=
"发票号码"
)
private
String
invoiceNumber
;
@ApiModelProperty
(
value
=
"开票备注"
)
@ApiModelProperty
(
value
=
"开票
资料
备注"
)
private
String
invoiceRemark
;
@ApiModelProperty
(
value
=
"开票金额(暂时不知道从哪拿)"
)
// TODO 暂时不知道从哪拿
@ApiModelProperty
(
value
=
"开票金额"
)
private
java
.
math
.
BigDecimal
invoiceMoney
;
@ApiModelProperty
(
value
=
"开票币种"
)
private
Long
currencyId
;
@ApiModelProperty
(
value
=
"开票币种符号"
)
private
String
currencySymbol
;
@ApiModelProperty
(
value
=
"开票信息备注"
)
private
String
invoiceInfoRemark
;
@ApiModelProperty
(
value
=
"开发票人id"
)
private
Long
invoicerId
;
...
...
@@ -86,4 +107,19 @@ public class ReceiptInvoiceDetailVO {
@ApiModelProperty
(
value
=
"日志"
)
private
List
<
ReceiptInvoiceLogBackVO
>
invoiceLog
;
@ApiModelProperty
(
value
=
"收款人"
)
// TODO 待确认
private
String
payee
;
@ApiModelProperty
(
value
=
"核销人"
)
// TODO 待确认
private
String
writeOffUser
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
creator
;
@ApiModelProperty
(
value
=
"更新人"
)
private
String
updater
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptInvoice/ReceiptInvoiceUpdateReqVO.java
→
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptInvoice/ReceiptInvoiceUpdate
Data
ReqVO.java
View file @
16fe8194
...
...
@@ -8,10 +8,10 @@ import lombok.ToString;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
@ApiModel
(
"管理后台 - 收款单开票
信息
更新 Request VO"
)
@ApiModel
(
"管理后台 - 收款单开票
资料
更新 Request VO"
)
@Data
@ToString
(
callSuper
=
true
)
public
class
ReceiptInvoiceUpdateReqVO
{
public
class
ReceiptInvoiceUpdate
Data
ReqVO
{
@ApiModelProperty
(
value
=
"主键"
,
required
=
true
)
@NotNull
(
message
=
"主键不能为空"
)
...
...
@@ -42,6 +42,6 @@ public class ReceiptInvoiceUpdateReqVO {
private
String
invoiceAddress
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
r
emark
;
private
String
invoiceR
emark
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptInvoice/ReceiptInvoiceUpdateInfoReqVO.java
0 → 100644
View file @
16fe8194
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
vo
.
receiptInvoice
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.ToString
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
@ApiModel
(
"管理后台 - 收款单开票资料更新 Request VO"
)
@Data
@ToString
(
callSuper
=
true
)
public
class
ReceiptInvoiceUpdateInfoReqVO
{
@ApiModelProperty
(
value
=
"主键"
,
required
=
true
)
@NotNull
(
message
=
"主键不能为空"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"发票号码"
)
private
String
invoiceNumber
;
@ApiModelProperty
(
value
=
"开票类型(字典表 invoicing_type)"
)
private
Integer
invoiceTypeId
;
@ApiModelProperty
(
value
=
"开票金额"
)
private
java
.
math
.
BigDecimal
invoiceMoney
;
@ApiModelProperty
(
value
=
"开票币种"
)
private
Long
currencyId
;
@ApiModelProperty
(
value
=
"开发票人id"
)
private
Long
invoicerId
;
@ApiModelProperty
(
value
=
"开票时间"
)
private
Date
invoiceTime
;
@ApiModelProperty
(
value
=
"开票信息备注"
)
private
String
invoiceInfoRemark
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receivable/ReceivableBackVO.java
View file @
16fe8194
...
...
@@ -216,13 +216,19 @@ public class ReceivableBackVO {
@ApiModelProperty
(
value
=
"不含税金额"
)
private
BigDecimal
notIncludedTaxAmount
;
@ApiModelProperty
(
value
=
"核销金额"
)
private
BigDecimal
writeOffAmount
;
@ApiModelProperty
(
value
=
"未核销金额"
)
private
BigDecimal
notWriteOffAmount
;
@ApiModelProperty
(
value
=
"核销比例"
)
private
BigDecimal
writeOffProportion
;
private
String
writeOffProportion
;
@ApiModelProperty
(
value
=
"基准金额"
)
private
BigDecimal
baseAmount
;
@ApiModelProperty
(
value
=
"实际金额"
)
@ApiModelProperty
(
value
=
"实际金额"
)
private
BigDecimal
actualAmount
;
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receivable/ReceivableBaseVO.java
View file @
16fe8194
...
...
@@ -102,6 +102,9 @@ public class ReceivableBaseVO {
@ApiModelProperty
(
value
=
"含税金额"
)
private
BigDecimal
taxAmount
;
@ApiModelProperty
(
value
=
"核销金额"
)
private
BigDecimal
writeOffAmount
;
@ApiModelProperty
(
value
=
"基准金额"
)
private
BigDecimal
baseAmount
;
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receivable/ReceivableUpdateReqVO.java
View file @
16fe8194
package
cn
.
iocoder
.
yudao
.
module
.
wealth
.
vo
.
receivable
;
import
lombok.*
;
import
java.util.*
;
import
io.swagger.annotations.*
;
import
javax.validation.constraints.*
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
import
javax.validation.constraints.NotNull
;
@ApiModel
(
"管理后台 - 应收款更新 Request VO"
)
@Data
...
...
yudao-module-wealth/yudao-module-wealth-rest/src/main/java/cn/iocoder/yudao/module/wealth/controller/admin/receiptInvoice/ReceiptInvoiceController.java
View file @
16fe8194
...
...
@@ -25,15 +25,21 @@ public class ReceiptInvoiceController {
private
ReceiptInvoiceService
receiptInvoiceService
;
@PostMapping
(
"/create"
)
@ApiOperation
(
"
创建收款单开票信息
"
)
@ApiOperation
(
"
申请开票
"
)
public
CommonResult
<
Long
>
createReceiptInvoice
(
@Valid
@RequestBody
ReceiptInvoiceCreateReqVO
createReqVO
)
{
return
success
(
receiptInvoiceService
.
createReceiptInvoice
(
createReqVO
));
}
@PutMapping
(
"/update"
)
@PostMapping
(
"/update/data"
)
@ApiOperation
(
"更新收款单开票资料"
)
public
CommonResult
<
Boolean
>
updateReceiptInvoiceData
(
@Valid
@RequestBody
ReceiptInvoiceUpdateDataReqVO
updateReqVO
)
{
receiptInvoiceService
.
updateReceiptInvoiceData
(
updateReqVO
);
return
success
(
true
);
}
@PostMapping
(
"/update/info"
)
@ApiOperation
(
"更新收款单开票信息"
)
public
CommonResult
<
Boolean
>
updateReceiptInvoice
(
@Valid
@RequestBody
ReceiptInvoiceUpdate
ReqVO
updateReqVO
)
{
receiptInvoiceService
.
updateReceiptInvoice
(
updateReqVO
);
public
CommonResult
<
Boolean
>
updateReceiptInvoice
Info
(
@Valid
@RequestBody
ReceiptInvoiceUpdateInfo
ReqVO
updateReqVO
)
{
receiptInvoiceService
.
updateReceiptInvoice
Info
(
updateReqVO
);
return
success
(
true
);
}
...
...
@@ -53,22 +59,22 @@ public class ReceiptInvoiceController {
@PostMapping
(
"/reject"
)
@ApiOperation
(
"驳回开票信息"
)
public
CommonResult
<
Boolean
>
rejectInvoiceInfo
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
re
jectRe
qVO
)
{
Boolean
res
=
receiptInvoiceService
.
rejectInvoiceInfo
(
re
jectRe
qVO
);
public
CommonResult
<
Boolean
>
rejectInvoiceInfo
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
reqVO
)
{
Boolean
res
=
receiptInvoiceService
.
rejectInvoiceInfo
(
reqVO
);
return
success
(
res
);
}
@PostMapping
(
"/cancel"
)
@ApiOperation
(
"取消开票"
)
public
CommonResult
<
Boolean
>
cancelInvoice
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
re
jectRe
qVO
)
{
Boolean
res
=
receiptInvoiceService
.
cancelInvoice
(
re
jectRe
qVO
);
public
CommonResult
<
Boolean
>
cancelInvoice
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
reqVO
)
{
Boolean
res
=
receiptInvoiceService
.
cancelInvoice
(
reqVO
);
return
success
(
res
);
}
@PostMapping
(
"/delete"
)
@ApiOperation
(
"删除开票"
)
public
CommonResult
<
Boolean
>
deleteInvoice
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
rejectR
eqVO
)
{
Boolean
res
=
receiptInvoiceService
.
deleteInvoice
(
rejectR
eqVO
);
public
CommonResult
<
Boolean
>
deleteInvoice
Info
(
@RequestBody
@Valid
ReceiptInvoiceOperateReqVO
r
eqVO
)
{
Boolean
res
=
receiptInvoiceService
.
deleteInvoice
Info
(
r
eqVO
);
return
success
(
res
);
}
...
...
yudao-module-wealth/yudao-module-wealth-rest/src/main/resources/mapper/receiptInvoice/ReceiptInvoiceMapper.xml
View file @
16fe8194
...
...
@@ -30,10 +30,10 @@
resultType=
"cn.iocoder.yudao.module.wealth.vo.receiptInvoice.ReceiptInvoiceDetailVO"
>
SELECT
eri.*,
er.
state AS receiptState
,
er.
write_off_proportion
,
er.
receipt_no
,
er.
order_no
er.
invoicing_status
,
er.
invoice_data_status
,
er.
customer_id
,
er.
customer_name
FROM ecw_receipt_invoice eri
LEFT JOIN ecw_receipt er ON eri.receipt_id = er.id
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment