Commit a72240d7 by huangtao

供应商

parent a66e51bd
...@@ -9,7 +9,12 @@ ...@@ -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.ly_dept_id) as lyDeptName
,(select dept_name from sys_dept d where d.id = a.fy_dept_id) as fyDeptName ,(select dept_name from sys_dept d where d.id = a.fy_dept_id) as fyDeptName
from physic_apply a 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 != ''"> <if test="req.keyword != null and req.keyword != ''">
AND ( AND (
a.physic_name LIKE CONCAT('%', #{req.keyword}, '%') a.physic_name LIKE CONCAT('%', #{req.keyword}, '%')
...@@ -18,6 +23,7 @@ ...@@ -18,6 +23,7 @@
) )
</if> </if>
order by a.create_time desc
</select> </select>
</mapper> </mapper>
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<select id="selectDestroyPage" resultType="com.jmai.physic.entity.PhysicDestroy"> <select id="selectDestroyPage" resultType="com.jmai.physic.entity.PhysicDestroy">
select * from physic_destroy 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 != ''"> <if test="req.keyword != null and req.keyword != ''">
AND ( AND (
sick_name LIKE CONCAT('%', #{req.keyword}, '%') sick_name LIKE CONCAT('%', #{req.keyword}, '%')
......
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
<select id="selectRecordPage" resultType="com.jmai.physic.entity.PhysicRecord"> <select id="selectRecordPage" resultType="com.jmai.physic.entity.PhysicRecord">
select * from physic_record 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 != ''"> <if test="req.keyword != null and req.keyword != ''">
AND ( AND (
physic_name LIKE CONCAT('%', #{req.keyword}, '%') physic_name LIKE CONCAT('%', #{req.keyword}, '%')
......
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<select id="selectWarehousePage" resultType="com.jmai.physic.vo.PhysicWarehouseVO"> <select id="selectWarehousePage" resultType="com.jmai.physic.vo.PhysicWarehouseVO">
select a.id as physicWarehouseId,a.*,b.dept_name as deptName from physic_warehouse a 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 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 != ''"> <if test="req.keyword != null and req.keyword != ''">
AND ( AND (
a.physic_name LIKE CONCAT('%', #{req.keyword}, '%') a.physic_name LIKE CONCAT('%', #{req.keyword}, '%')
...@@ -18,6 +21,9 @@ ...@@ -18,6 +21,9 @@
OR a.factory_name LIKE CONCAT('%', #{req.keyword}, '%') OR a.factory_name LIKE CONCAT('%', #{req.keyword}, '%')
) )
</if> </if>
order by a.create_time desc
</select> </select>
</mapper> </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