|  |  |  | 
|---|
|  |  |  | c.NAME as gs_NAME, | 
|---|
|  |  |  | c.UNIT as gs_UNIT, | 
|---|
|  |  |  | c.good_type as gs_good_type, | 
|---|
|  |  |  | c.measure as gs_measure, | 
|---|
|  |  |  | c.GOODS_SORT_ID as gs_GOODS_SORT_ID, | 
|---|
|  |  |  | c.SUPPLIER_ID as gs_SUPPLIER_ID, | 
|---|
|  |  |  | (select TYPE_NAME from sys_goods_type t where t.id=c.GOODS_SORT_ID) gs_goodsSortName, | 
|---|
|  |  |  | 
|---|
|  |  |  | c.volume as gs_volume, | 
|---|
|  |  |  | c.price as gs_price, | 
|---|
|  |  |  | c.wholesale as gs_wholesale, | 
|---|
|  |  |  | c.img as gs_img, | 
|---|
|  |  |  | a.shop_id, | 
|---|
|  |  |  | a.company_id | 
|---|
|  |  |  | from | 
|---|
|  |  |  | 
|---|
|  |  |  | </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 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> | 
|---|