问题修改,功能开发
This commit is contained in:
parent
9b9fa60a92
commit
2cf48d0f35
|
|
@ -139,7 +139,8 @@
|
|||
<select id="getPaTypeList" resultType="com.bonus.gzgqj.business.bases.entity.PaTypeVo">
|
||||
select pt.id, pt.parent_id parentId,pt.name model ,pt.num,
|
||||
pt.price,pt.unit ,pt.weight,pt.is_consumables ,
|
||||
pt.remarks,pt.is_active ,pt.level,pt.warn_num,pt1.`name` name ,pt2.name type
|
||||
pt.remarks,pt.is_active ,pt.level,pt.warn_num,pt1.`name` name ,pt2.name type,
|
||||
pt.remarks
|
||||
FROM pa_type pt
|
||||
left join pa_type pt1 on pt.parent_id=pt1.id and pt1.`level`=2 and pt1.is_active=1
|
||||
left join pa_type pt2 on pt1.parent_id=pt2.id and pt2.`level`=1 and pt2.is_active=1
|
||||
|
|
@ -148,7 +149,8 @@
|
|||
and (
|
||||
pt2.name like concat('%',#{keyWord},'%') or
|
||||
pt1.name like concat('%',#{keyWord},'%') or
|
||||
pt.name like concat('%',#{keyWord},'%')
|
||||
pt.name like concat('%',#{keyWord},'%') or
|
||||
pt.remarks like concat('%',#{keyWord},'%')
|
||||
)
|
||||
</if>
|
||||
<if test="name!=null and name!=''">
|
||||
|
|
|
|||
Loading…
Reference in New Issue