|
|
@@ -1806,6 +1806,10 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
@Transactional
|
|
|
public InvoiceingResult addInvoicing(InsPlyIncomeInvoiceVO invoicingVo) {
|
|
|
log.info("开票:invoicingVo=[{}]", JSONUtil.toJsonStr(invoicingVo));
|
|
|
+ // add by lipf, 如果是保司开票, 设置发票号为空
|
|
|
+ if("2".equals(invoicingVo.getInvoiceType())){
|
|
|
+ invoicingVo.setInvoiceNo(null);
|
|
|
+ }
|
|
|
try {
|
|
|
this.valide4Invoicing(invoicingVo);
|
|
|
InvoiceingResult result = new InvoiceingResult();
|
|
|
@@ -5115,6 +5119,16 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
@Override
|
|
|
public Page<ExportSuperviseSettlementExcelDto> platformSettlementExcel(Page page, SettlementQueryVo settlementQueryVo) {
|
|
|
log.info("查询平台结算记录:settlementQueryVo=[{}]", JSONUtil.toJsonStr(settlementQueryVo));
|
|
|
+
|
|
|
+ if(StrUtil.isEmpty(settlementQueryVo.getSettlementDateStart())
|
|
|
+ && StrUtil.isEmpty(settlementQueryVo.getSettlementDateEnd())
|
|
|
+ && settlementQueryVo.getSettlementTime() != null &&
|
|
|
+ settlementQueryVo.getSettlementTime().length ==2){
|
|
|
+ DateUtil.parse(settlementQueryVo.getSettlementDateStart());
|
|
|
+ settlementQueryVo.setSettlementDateStart(DateUtil.format(LocalDate.parse(settlementQueryVo.getSettlementTime()[0], DateTimeFormatter.ISO_DATE).atStartOfDay(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ settlementQueryVo.setSettlementDateEnd(DateUtil.format(LocalDate.parse(settlementQueryVo.getSettlementTime()[1], DateTimeFormatter.ISO_DATE).plusDays(1).atStartOfDay(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ }
|
|
|
+
|
|
|
// 设置空条件
|
|
|
setNoneCondition(settlementQueryVo);
|
|
|
settlementQueryVo.setSystemCode(baseController.getSystemCode());
|