Commit 26e5bf24 authored by 朱晨阳's avatar 朱晨阳

合同列表接口修改, 添加时间筛选

parent aab46b19
......@@ -58,4 +58,6 @@ public class HouseholdContractPageDto{
private String regionalCompaniesName;
//省份
private String province;
private String startTime;
private String endTime;
}
......@@ -18,6 +18,12 @@
<if test="dto.status != null and dto.status !=''">
and hygf_household_contract.status = #{dto.status}
</if>
<if test="dto.startTime != null and dto.startTime !=''">
and hygf_household_contract.dzhtqy_create_time &gt;= #{dto.startTime}
</if>
<if test="dto.endTime != null and dto.endTime !=''">
and hygf_household_contract.dzhtqy_create_time &lt;= #{dto.endTime}
</if>
<if test="dto.projectAddress != null and dto.projectAddress != '' and dto.projectAddress.contains('/'.toString())">
AND hygf_household_contract.project_address_name LIKE CONCAT('%', #{dto.projectAddress}, '%')
</if>
......
......@@ -93,6 +93,7 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
// }else{
// qw.orderBy(Boolean.TRUE, Boolean.FALSE, "rec_date");
// }
PageHelper.startPage(dto.getCurrent(), dto.getSize());
List<HouseholdContract> list = householdContractMapper.selectPage(dto);
if(CollectionUtils.isNotEmpty(list)) {
......
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