测试修改

dev
徐杰盟 2024-03-12 13:15:47 +08:00
parent ee1489fe2e
commit 32edbfce61
1 changed files with 5 additions and 2 deletions

View File

@ -462,21 +462,24 @@ public class OrderTempService extends BaseService {
String findSql = ""; String findSql = "";
System.out.println(customerId);
System.out.println(supermarketId);
if (supermarketId != null) { if (supermarketId != null) {
findSql = " AND SUPERMARKET_ID = ? \n"; findSql = " AND SUPERMARKET_ID = ? \n";
System.out.println(supermarketId);
paraList.add(supermarketId); paraList.add(supermarketId);
} }
if (customerId != null) { if (customerId != null) {
System.out.println(customerId);
findSql = " AND CUSTOMER_ID = ? \n"; findSql = " AND CUSTOMER_ID = ? \n";
paraList.add(customerId); paraList.add(customerId);
} }
if (stm != null && etm != null) { if (stm != null && etm != null) {
System.out.println("stm:" + stm);
System.out.println("etm:" + etm);
findSql = " AND CREATE_TIME BETWEEN ? AND ? \n"; findSql = " AND CREATE_TIME BETWEEN ? AND ? \n";
paraList.add(stm + STM_SUFFIX); paraList.add(stm + STM_SUFFIX);
paraList.add(etm + ETM_SUFFIX); paraList.add(etm + ETM_SUFFIX);
} else if (tm != null) { } else if (tm != null) {
System.out.println("tm:" + tm);
findSql = " AND CREATE_TIME BETWEEN ? AND ? \n"; findSql = " AND CREATE_TIME BETWEEN ? AND ? \n";
paraList.add(tm + STM_SUFFIX); paraList.add(tm + STM_SUFFIX);
paraList.add(tm + ETM_SUFFIX); paraList.add(tm + ETM_SUFFIX);