模糊查询

This commit is contained in:
陈向学 2024-12-17 19:05:43 +08:00
parent b46b59e2a2
commit e7dc4cb866
1 changed files with 2 additions and 2 deletions

View File

@ -421,11 +421,11 @@ namespace Competition.Mysql.DAL
if(string.IsNullOrEmpty(req.SHIP_NAME_EN) && string.IsNullOrEmpty(req.VOYAGE_NO) && string.IsNullOrEmpty(req.STANDARD_NAME) && string.IsNullOrEmpty(req.MONITOR_ID) && string.IsNullOrEmpty(req.BILL_NO)) if(string.IsNullOrEmpty(req.SHIP_NAME_EN) && string.IsNullOrEmpty(req.VOYAGE_NO) && string.IsNullOrEmpty(req.STANDARD_NAME) && string.IsNullOrEmpty(req.MONITOR_ID) && string.IsNullOrEmpty(req.BILL_NO))
{ {
T2 = "T_STK_STORAGE"; T2 = "T_STK_STORAGE WHERE STOCK_BALANCE > 0 AND ";
} }
else else
{ {
T2 = "(select * FROM T_STK_STORAGE WHERE "; T2 = "(select * FROM T_STK_STORAGE WHERE STOCK_BALANCE > 0 AND ";
string tmp1="",tmp2="",tmp3="",tmp4="",tmp5=""; string tmp1="",tmp2="",tmp3="",tmp4="",tmp5="";
if(!string.IsNullOrEmpty(req.SHIP_NAME_EN)) if(!string.IsNullOrEmpty(req.SHIP_NAME_EN))
{ {