Browse Source

以城找人 - 新增以姓名找人

feature/syp_points
songyunpeng 5 years ago
parent
commit
84466447fd
  1. 5
      esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/dto/epdc/form/EpdcScreenResidentInfoByCurrentAddressFormDTO.java
  2. 6
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml

5
esua-epdc/epdc-module/epdc-user/epdc-user-client/src/main/java/com/elink/esua/epdc/dto/epdc/form/EpdcScreenResidentInfoByCurrentAddressFormDTO.java

@ -28,7 +28,10 @@ public class EpdcScreenResidentInfoByCurrentAddressFormDTO {
/**
* 当前居住地址
*/
@NotBlank(message = "居住地址不能为空")
private String currentAddress;
/**
* 居住人姓名
*/
private String residentName;
}

6
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml

@ -475,6 +475,9 @@
<if test="currentAddress!=null and currentAddress!=''">
and t.CURRENT_ADDRESS like concat('%', #{currentAddress}, '%')
</if>
<if test="residentName!=null and residentName!=''">
and t.RESIDENTS_NAME like concat('%', #{residentName}, '%')
</if>
group by t.ID
LIMIT #{pageIndex},#{pageSize}
</select>
@ -488,6 +491,9 @@
<if test="currentAddress!=null and currentAddress!=''">
and CURRENT_ADDRESS like concat('%', #{currentAddress}, '%')
</if>
<if test="residentName!=null and residentName!=''">
and t.RESIDENTS_NAME like concat('%', #{residentName}, '%')
</if>
</select>
<select id="selectPeopleByCurrentAddressExportList"
resultType="com.elink.esua.epdc.dto.epdc.result.EpdcScreenResidentInfoByCurrentAddressResultDTO">

Loading…
Cancel
Save