feat: 优化钢构包查询
This commit is contained in:
parent
d679fd47bd
commit
f1345a3249
|
|
@ -3,10 +3,7 @@
|
||||||
<mapper namespace="com.nflg.wms.repository.mapper.WmsStructuralPackageMapper">
|
<mapper namespace="com.nflg.wms.repository.mapper.WmsStructuralPackageMapper">
|
||||||
|
|
||||||
<select id="search" resultType="com.nflg.wms.common.pojo.vo.PackageVO">
|
<select id="search" resultType="com.nflg.wms.common.pojo.vo.PackageVO">
|
||||||
SELECT *
|
SELECT *,get_modelnos(model_ids) as "modelNos"
|
||||||
FROM (
|
|
||||||
SELECT DISTINCT ON ("no") id,"no","order_no","name",drawing_no,weight,cate,eco,version,remark,enable,create_by
|
|
||||||
,create_time,update_by,update_time,get_modelnos(model_ids) as "modelNos"
|
|
||||||
FROM wms_structural_package
|
FROM wms_structural_package
|
||||||
<where>
|
<where>
|
||||||
<if test="request.no!=null and request.no!=''">
|
<if test="request.no!=null and request.no!=''">
|
||||||
|
|
@ -25,8 +22,6 @@
|
||||||
and latest=true
|
and latest=true
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY "no",id DESC
|
|
||||||
) t
|
|
||||||
ORDER BY id DESC
|
ORDER BY id DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue