change:整机发运明细表
This commit is contained in:
parent
a97d42f812
commit
b5900ccd56
@ -60,6 +60,8 @@ public class CompleteShipDetailReportPlugin extends AbstractReportListDataPlugin
|
||||
Date start = filter.getDate("yem_fshipdate_start");
|
||||
Date end = filter.getDate("yem_fshipdate_end");
|
||||
|
||||
String fisshiped = filter.getString("yem_fisshiped");
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("1=1");
|
||||
if (YEM.isNotEmpty(start)) {
|
||||
@ -68,6 +70,14 @@ public class CompleteShipDetailReportPlugin extends AbstractReportListDataPlugin
|
||||
if (YEM.isNotEmpty(end)) {
|
||||
sb.append(" AND TO_DATE(yem_shipdate, 'yyyy-MM-dd') <= ").append(String.format("TO_DATE('%s','yyyy-MM-dd')", formatDate(end)));
|
||||
}
|
||||
if (YEM.isNotEmpty(fisshiped)) {
|
||||
if ("A".equals(fisshiped)) {//已发货
|
||||
sb.append(" AND yem_dnbillno IS NOT NULL AND yem_dnbillno != '' ");
|
||||
}
|
||||
if ("B".equals(fisshiped)) {//未发货
|
||||
sb.append(" AND yem_dnbillno IS NULL OR yem_dnbillno = ''");
|
||||
}
|
||||
}
|
||||
|
||||
dataSet = dataSet.where(sb.toString());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user