|
@@ -113,6 +113,15 @@ public class InvoiceListServiceImpl implements InvoiceListService {
|
|
|
|
|
|
@Override
|
|
|
public Object invoiceStatusUpdate(InvoiceStatusUpdateReqVo reqVo) {
|
|
|
+ InvoiceListDO invoiceListDO = invoiceListMapper.selectById(reqVo.getId());
|
|
|
+ if(null == invoiceListDO){
|
|
|
+ throw exception(INVOICE_LIST_NOT_EXISTS);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!invoiceListDO.getStatus().equals(0)){
|
|
|
+ throw exception(INVOICE_STATUS_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
int update = invoiceListMapper.update(null, new LambdaUpdateWrapper<InvoiceListDO>()
|
|
|
.eq(InvoiceListDO::getId, reqVo.getId()).set(InvoiceListDO::getFileUrl, reqVo.getFileUrl()).set(InvoiceListDO::getStatus, reqVo.getStatus()));
|
|
|
|