Commit 8ce5a5e7 authored by 朱晨阳's avatar 朱晨阳

合同列表添加状态搜索

parent 82de31a1
...@@ -23,6 +23,11 @@ public class HouseholdContractPageDto extends Page<HouseholdContract> { ...@@ -23,6 +23,11 @@ public class HouseholdContractPageDto extends Page<HouseholdContract> {
private String initiateStatus; private String initiateStatus;
/** /**
* 签署状态
*/
private String status;
/**
* 农户id * 农户id
*/ */
private Long peasantHouseholdId; private Long peasantHouseholdId;
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
from hygf_household_contract from hygf_household_contract
LEFT JOIN hygf_peasant_household php ON php.sequence_nbr = hygf_household_contract.peasant_household_id LEFT JOIN hygf_peasant_household php ON php.sequence_nbr = hygf_household_contract.peasant_household_id
<where> <where>
<if test="dto.status != null and dto.status !=''">
and hygf_household_contract.status = #{dto.status}
</if>
<if test="dto.name != null and dto.name !='' "> <if test="dto.name != null and dto.name !='' ">
and hygf_household_contract.name like concat('%',#{dto.name},'%') and hygf_household_contract.name like concat('%',#{dto.name},'%')
</if> </if>
...@@ -48,6 +51,7 @@ ...@@ -48,6 +51,7 @@
<if test="dto.province != null and dto.province !=''"> <if test="dto.province != null and dto.province !=''">
and php.project_address like concat ('%',#{dto.province},'%') and php.project_address like concat ('%',#{dto.province},'%')
</if> </if>
</where> </where>
<if test="dto.orderBy == null "> <if test="dto.orderBy == null ">
ORDER BY hygf_household_contract.rec_date DESC ORDER BY hygf_household_contract.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