<?xml version="1.0" encoding="utf-8" ?>
<select>
  <selectstr>
SELECT pricelistid
	,bednettypeid
	,0 AS line_diameter
	,0 AS varvalue
FROM (
	SELECT u_pricelist.pricelistid
		,CASE @varclass WHEN 0 THEN 0 ELSE u_bednet_type.bednettypeid END AS bednettypeid
	FROM u_pricelist
	CROSS JOIN u_bednet_type
	) v_varmx
GROUP BY pricelistid
	,bednettypeid
  </selectstr>
  <where>
  </where>
  <displayfields>
    <field field="pid" compute="getrow()">序</field>
    <field field="bednettypeid" mapper="">床网类别</field>
    <field field="pricelistid" mapper="">价格表</field>
    <field field="line_diameter" >线径MM</field>
    <field field="varvalue">变量值</field>
  </displayfields>
</select>
