|  |  |  | 
|---|
|  |  |  | <if test="record.batch != null and record.batch !='' "> | 
|---|
|  |  |  | and batch = #{record.batch} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <if test="record.queryKey != null and record.queryKey !='' "> | 
|---|
|  |  |  | and (instr(c.name,#{record.queryKey}) or instr(c.goods_no, #{record.queryKey}) or instr(c.zjm, #{record.queryKey})) | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.storeId != null and record.storeId !='' "> | 
|---|
|  |  |  | and STORE_ID = #{record.storeId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="record.batch != null and record.batch !='' "> | 
|---|
|  |  |  | and batch = #{record.batch} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.queryKey != null and record.queryKey !='' "> | 
|---|
|  |  |  | and (instr(c.name,#{record.queryKey}) or instr(c.goods_no, #{record.queryKey}) or instr(c.zjm, #{record.queryKey})) | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.storeId != null and record.storeId !='' "> | 
|---|
|  |  |  | and STORE_ID = #{record.storeId} | 
|---|
|  |  |  | </if> | 
|---|