${if(len(LotId1)==0,"",",表名 r where 1=1 and a."+state+" = r.moduleid(+) and r.timekey in ('"+LotId1+"')")}
你前面是如何写的?
为什么是,表名 r 看不懂