Commit fbef9421 authored by 朱晨阳's avatar 朱晨阳

施工电站列表添加筛选参数

parent 73a68e1c
...@@ -23,8 +23,10 @@ ...@@ -23,8 +23,10 @@
ps.work_order_id = hygf_work_order.sequence_nbr ps.work_order_id = hygf_work_order.sequence_nbr
) as ownersName ) as ownersName
FROM hygf_work_order FROM hygf_work_order, hygf_work_order_power_station, hygf_peasant_household
WHERE hygf_work_order.is_delete=0 WHERE hygf_work_order.is_delete=0
and hygf_work_order_power_station.work_order_id = hygf_work_order.sequence_nbr
and hygf_peasant_household.sequence_nbr = hygf_work_order_power_station.peasant_household_id
<if test="dto.workOrderNum!=null and dto.workOrderNum!=''"> <if test="dto.workOrderNum!=null and dto.workOrderNum!=''">
and hygf_work_order.work_order_num like concat(concat('%',#{dto.workOrderNum}),'%') and hygf_work_order.work_order_num like concat(concat('%',#{dto.workOrderNum}),'%')
</if> </if>
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
and hygf_work_order.region_company_id =#{dto.regionCompanyId} and hygf_work_order.region_company_id =#{dto.regionCompanyId}
</if> </if>
<if test="dto.ownersName!=null and dto.ownersName!=''"> <if test="dto.ownersName!=null and dto.ownersName!=''">
and ownersName like concat ('%',#{dto.ownersName},'%') and hygf_peasant_household.owners_name like concat ('%',#{dto.ownersName},'%')
</if> </if>
ORDER BY ORDER BY
hygf_work_order.rec_date DESC, hygf_work_order.rec_date DESC,
......
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 to comment