|
@ -30,6 +30,7 @@ import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
import com.elink.esua.epdc.dto.PartyMembersDTO; |
|
|
import com.elink.esua.epdc.dto.PartyMembersDTO; |
|
|
import com.elink.esua.epdc.excel.PartyMembersExcel; |
|
|
import com.elink.esua.epdc.excel.PartyMembersExcel; |
|
|
import com.elink.esua.epdc.service.PartyMembersService; |
|
|
import com.elink.esua.epdc.service.PartyMembersService; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
@ -55,6 +56,18 @@ public class PartyMembersController { |
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
@DataFilter(tableAlias = "pm", deptId = "grid_id", prefix = "AND", isPendingCreator = false) |
|
|
@DataFilter(tableAlias = "pm", deptId = "grid_id", prefix = "AND", isPendingCreator = false) |
|
|
public Result<PageData<PartyMembersDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
public Result<PageData<PartyMembersDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
|
|
|
String realName = (String)params.get("realName"); |
|
|
|
|
|
String mobile = (String)params.get("mobile"); |
|
|
|
|
|
String identityNo = (String)params.get("identityNo"); |
|
|
|
|
|
if (StringUtils.isNotBlank(realName)){ |
|
|
|
|
|
params.put("realName",realName.trim()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(mobile)){ |
|
|
|
|
|
params.put("mobile",mobile.trim()); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(identityNo)){ |
|
|
|
|
|
params.put("identityNo",identityNo.trim()); |
|
|
|
|
|
} |
|
|
return partyMembersService.pageDIY(params); |
|
|
return partyMembersService.pageDIY(params); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|