修改导出排序
This commit is contained in:
parent
a68b8f0b3e
commit
9584cf19e1
|
|
@ -19,6 +19,7 @@
|
|||
FROM pa_type
|
||||
where pa_type.`level`=3 AND is_active=1 and (num=0 or num is null)
|
||||
</select>
|
||||
|
||||
<select id="findByPage" resultType="com.bonus.gzgqj.business.bases.entity.PaTypeVo">
|
||||
select pt.id, pt.parent_id parentId,pt.name model ,pt.num,
|
||||
IFNULL(pt.price,0) as price,pt.unit ,pt.weight,pt.is_consumables ,
|
||||
|
|
@ -42,17 +43,9 @@
|
|||
<if test='isWarn=="2"'>
|
||||
and pt.num>0
|
||||
</if>
|
||||
ORDER BY
|
||||
CASE
|
||||
WHEN pt.name REGEXP '^[0-9]+$' THEN 1
|
||||
ELSE 0
|
||||
END,
|
||||
CASE
|
||||
WHEN pt.name REGEXP '^[0-9]+$' THEN CAST(pt.name AS UNSIGNED)
|
||||
ELSE NULL
|
||||
END,
|
||||
pt.name ASC
|
||||
ORDER BY pt2.name, pt1.name, pt.name
|
||||
</select>
|
||||
|
||||
<!--工程统计领料单查询-->
|
||||
<select id="getProListPage" resultType="com.bonus.gzgqj.business.bases.entity.ProjectInfoVo">
|
||||
SELECT pro.id proId,pro.name proName,tpa.lyNum lyNum,tpa.lydNum,mm.money lyMoney
|
||||
|
|
|
|||
Loading…
Reference in New Issue