方便的sql语句,不用根据所传的参数不同而写方法重载,只要加个真值就ok了。
sql="from Tproduct t where '1'='1'"
sql=sql+" and t.nproType='"+proTranTypeId+" ";
sql=sql+" and t.ntotalInduId='"+totalId+" ";
方便的sql语句,不用根据所传的参数不同而写方法重载,只要加个真值就ok了。
sql="from Tproduct t where '1'='1'"
sql=sql+" and t.nproType='"+proTranTypeId+" ";
sql=sql+" and t.ntotalInduId='"+totalId+" ";