|
@@ -262,7 +262,7 @@ public class DataCollectController {
|
|
|
" ,RIGHT(mo.cbSysBarCode,1) as line,mo.Status,cb.cDeptID,cb.cDepName,mo.MoDId " +
|
|
|
" from mom_orderdetail mo " +
|
|
|
" left join ca_batchmap cb on SUBSTRING(mo.cbSysBarCode, 8, 15) = cb.cMOCode and RIGHT(mo.cbSysBarCode,1) = cb.iMOSubSN " +
|
|
|
- " where mo.Status in (3,4) " +
|
|
|
+ " where mo.Status = 3 " +
|
|
|
" )tmp ";
|
|
|
int totalCount = 0;
|
|
|
try (Connection connection = sqlServerDataSource.getConnection()) {
|
|
@@ -288,7 +288,7 @@ public class DataCollectController {
|
|
|
" ,RIGHT(mo.cbSysBarCode,1) as line,mo.Status,cb.cDeptID,cb.cDepName " +
|
|
|
" from mom_orderdetail mo " +
|
|
|
" left join ca_batchmap cb on SUBSTRING(mo.cbSysBarCode, 8, 15) = cb.cMOCode and RIGHT(mo.cbSysBarCode,1) = cb.iMOSubSN " +
|
|
|
- " where mo.Status in (3,4) " +
|
|
|
+ " where mo.Status = 3 " +
|
|
|
" ORDER BY mo.MoDId OFFSET ? ROWS FETCH NEXT ? ROWS ONLY ";
|
|
|
List<ErpOrderInfo> resList = new ArrayList<>();
|
|
|
SimpleDateFormat sdfAll = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|