|
@@ -357,6 +357,10 @@ public class CwFinanceInvoiceService extends ServiceImpl<CwFinanceInvoiceMapper,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return cwFinanceInvoiceDTO;
|
|
|
}
|
|
|
|
|
@@ -375,9 +379,10 @@ public class CwFinanceInvoiceService extends ServiceImpl<CwFinanceInvoiceMapper,
|
|
|
if (StringUtils.isBlank(cwFinanceInvoice.getReceivablesStatus())){
|
|
|
cwFinanceInvoice.setReceivablesStatus("0");
|
|
|
}
|
|
|
- if(StringUtils.isBlank(cwFinanceInvoice.getReportType())){
|
|
|
+ if(StringUtils.isNotEmpty(cwFinanceInvoice.getReportType())){
|
|
|
cwFinanceInvoice.setReportType(cwFinanceInvoiceDTO.getReportType());
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(cwFinanceInvoiceDTO.getId())){
|
|
@@ -430,11 +435,11 @@ public class CwFinanceInvoiceService extends ServiceImpl<CwFinanceInvoiceMapper,
|
|
|
cwFinanceInvoiceBase.setType("2");
|
|
|
cwFinanceInvoiceBaseMapper.updateById(cwFinanceInvoiceBase);
|
|
|
}
|
|
|
- if (cwFinanceInvoiceBase.getProgramId().equals("")){
|
|
|
- cwFinanceInvoiceBase.setType("0");
|
|
|
- cwFinanceInvoiceBaseMapper.updateById(cwFinanceInvoiceBase);
|
|
|
- }
|
|
|
+ }else {
|
|
|
+ cwFinanceInvoiceBase.setType("0");
|
|
|
+ cwFinanceInvoiceBaseMapper.updateById(cwFinanceInvoiceBase);
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
}else{
|
|
|
cwFinanceInvoiceBaseMapper.delete(new QueryWrapper<CwFinanceInvoiceBase>().lambda()
|