refactor(wms): 用 documentId 替代 referenceNo
- 在 WmsJournalEntry、WmsJournalEntryBo、WmsJournalEntryVo 中将 referenceNo 字段改为 documentId - 更新 WmsFinancialDocumentMapper.xml 中的相关 SQL 语句 - 修改 WmsJournalEntryServiceImpl 中的查询条件
This commit is contained in:
@@ -53,7 +53,7 @@ public class WmsJournalEntry extends BaseEntity {
|
||||
/**
|
||||
* 参考单据号
|
||||
*/
|
||||
private String referenceNo;
|
||||
private Long documentId;
|
||||
/**
|
||||
* 关联订单ID
|
||||
*/
|
||||
|
||||
@@ -61,7 +61,7 @@ public class WmsJournalEntryBo extends BaseEntity {
|
||||
/**
|
||||
* 参考单据号
|
||||
*/
|
||||
private String referenceNo;
|
||||
private Long documentId;
|
||||
|
||||
/**
|
||||
* 关联订单ID
|
||||
|
||||
@@ -73,7 +73,7 @@ public class WmsJournalEntryVo {
|
||||
* 参考单据号
|
||||
*/
|
||||
@ExcelProperty(value = "参考单据号")
|
||||
private String referenceNo;
|
||||
private Long documentId;
|
||||
|
||||
/**
|
||||
* 关联订单ID
|
||||
|
||||
@@ -67,7 +67,7 @@ public class WmsJournalEntryServiceImpl implements IWmsJournalEntryService {
|
||||
lqw.eq(bo.getAccountId() != null, WmsJournalEntry::getAccountId, bo.getAccountId());
|
||||
lqw.eq(bo.getDebitAmount() != null, WmsJournalEntry::getDebitAmount, bo.getDebitAmount());
|
||||
lqw.eq(bo.getCreditAmount() != null, WmsJournalEntry::getCreditAmount, bo.getCreditAmount());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getReferenceNo()), WmsJournalEntry::getReferenceNo, bo.getReferenceNo());
|
||||
lqw.eq(bo.getDocumentId() !=null, WmsJournalEntry::getDocumentId, bo.getDocumentId());
|
||||
lqw.eq(bo.getRelatedOrderId() != null, WmsJournalEntry::getRelatedOrderId, bo.getRelatedOrderId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), WmsJournalEntry::getStatus, bo.getStatus());
|
||||
return lqw;
|
||||
|
||||
Reference in New Issue
Block a user