Commit a72240d7 by huangtao

供应商

parent a66e51bd
......@@ -9,7 +9,12 @@
(select dept_name from sys_dept d where d.id = a.ly_dept_id) as lyDeptName
,(select dept_name from sys_dept d where d.id = a.fy_dept_id) as fyDeptName
from physic_apply a
where a.del_flag =0 and a.status=#{req.status}
where a.del_flag =0
<if test="req.status !=null">
and a.status=#{req.status}
</if>
<if test="req.keyword != null and req.keyword != ''">
AND (
a.physic_name LIKE CONCAT('%', #{req.keyword}, '%')
......@@ -18,6 +23,7 @@
)
</if>
order by a.create_time desc
</select>
</mapper>
......@@ -5,7 +5,10 @@
<select id="selectDestroyPage" resultType="com.jmai.physic.entity.PhysicDestroy">
select * from physic_destroy
where del_flag =0 and status=#{req.status}
where del_flag =0
<if test="req.status !=null">
and status=#{req.status}
</if>
<if test="req.keyword != null and req.keyword != ''">
AND (
sick_name LIKE CONCAT('%', #{req.keyword}, '%')
......
......@@ -4,7 +4,10 @@
<select id="selectRecordPage" resultType="com.jmai.physic.entity.PhysicRecord">
select * from physic_record
where del_flag =0 and status=#{req.status}
where del_flag =0
<if test="req.status !=null">
and status=#{req.status}
</if>
<if test="req.keyword != null and req.keyword != ''">
AND (
physic_name LIKE CONCAT('%', #{req.keyword}, '%')
......
......@@ -10,7 +10,10 @@
<select id="selectWarehousePage" resultType="com.jmai.physic.vo.PhysicWarehouseVO">
select a.id as physicWarehouseId,a.*,b.dept_name as deptName from physic_warehouse a
left join sys_dept b on a.dept_id =b.id
where a.del_flag =0 and a.status=#{req.status}
where a.del_flag =0
<if test="req.status !=null">
and a.status=#{req.status}
</if>
<if test="req.keyword != null and req.keyword != ''">
AND (
a.physic_name LIKE CONCAT('%', #{req.keyword}, '%')
......@@ -18,6 +21,9 @@
OR a.factory_name LIKE CONCAT('%', #{req.keyword}, '%')
)
</if>
order by a.create_time desc
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment