| | |
| | | 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, |
| | |
| | | </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> |
| | | <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} |
| | |
| | | b.remark, |
| | | b.TYPE AS orderType , |
| | | c.su_name as userName, |
| | | d.SHOP_NAME as shopName |
| | | d.SHOP_NAME as shopName, |
| | | b.SERVICE_ID as serviceId, |
| | | b.ORDER_ID as orderId |
| | | FROM |
| | | sys_out_store_item a |
| | | LEFT JOIN sys_out_store b ON a.OUT_STORE_ID = b.id |
| | |
| | | t2_b.remark, |
| | | t2_b.instore_type, |
| | | t2_c.su_name, |
| | | t2_d.SHOP_NAME |
| | | t2_d.SHOP_NAME, |
| | | '' as serviceId, |
| | | '' as orderId |
| | | FROM |
| | | sys_instore_detail t2_a |
| | | LEFT JOIN sys_instore_info t2_b ON t2_a.INSTORE_ID = t2_b.id |