|
@@ -197,8 +197,11 @@ public class InsurancePolicyRecordController {
|
|
|
|
|
|
@ApiOperation(value="列表")
|
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name="policyId",value = "每月投保单ID",required = true,paramType = "query")
|
|
|
+ })
|
|
|
public MessageResult<Map> pageList(
|
|
|
- String id,
|
|
|
+ String policyId,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
@RequestAttribute String subject){
|
|
@@ -213,8 +216,8 @@ public class InsurancePolicyRecordController {
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("create_time","desc"));
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
+ if (StringUtils.isNotEmpty(policyId)) {
|
|
|
+ searchParams.put("policyId",policyId);
|
|
|
}
|
|
|
|
|
|
Page<InsurancePolicyRecord> page = insurancePolicyRecordService.pageSearch(searchParams,pageIndex,pageSize,sortList);
|