select i.*,et.name as type_name,es.name as size_name,po.org_name as org_name,
select i.id,i.type_id,i.size_id,i.supplier_id,i.shelf_id,i.shelf_location,i.epc,i.org_id_int as org_id,i.state,i.bussiness_state,i.location_state,i.production_date,i.warranty_period,i.maintenance_period,i.location_id,i.location_type,i.term_state,i.area_id,et.name as type_name,es.name as size_name,po.org_name as org_name,
bs.name as supplier_name,COALESCE(bc.name, bw.name) as location_name,
es.photo as photo,es.instructions as instructions
FROM base_inventory i
...
...
@@ -683,6 +683,7 @@
<iftest="req.price !=null and req.price != ''">
and i.price=#{req.price}
</if>
ORDER BY i.type_id,i.size_id
<iftest="pageNo != null and pageNo != '' and pageSize != null and pageSize != '' ">