|
@@ -68,13 +68,41 @@ public class TaApplicationController extends BaseController {
|
68
|
68
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
69
|
69
|
public ResponseBean taApplicationList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
70
|
70
|
@ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
71
|
|
- @ApiParam("表单进度") @RequestParam(value ="process", defaultValue = "0") Integer process) throws Exception{
|
|
71
|
+ @ApiParam("表单进度") @RequestParam(value ="process", defaultValue = "0") Integer process,
|
|
72
|
+ @ApiParam(value = "申请开始时间", example = "2022-06-01") @RequestParam(value ="applyStart", required = false) String applyStart,
|
|
73
|
+ @ApiParam(value = "申请结束时间", example = "2022-06-30") @RequestParam(value ="applyEnd", required = false) String applyEnd,
|
|
74
|
+ @ApiParam(value = "审核开始时间", example = "2022-06-01") @RequestParam(value ="auditStart", required = false) String auditStart,
|
|
75
|
+ @ApiParam(value = "审核结束时间", example = "2022-06-30") @RequestParam(value ="auditEnd", required = false) String auditEnd,
|
|
76
|
+ @ApiParam(value = "发证开始时间", example = "2022-06-01") @RequestParam(value ="makeStart", required = false) String makeStart,
|
|
77
|
+ @ApiParam(value = "发证结束时间", example = "2022-06-30") @RequestParam(value ="makeEnd", required = false) String makeEnd,
|
|
78
|
+ @ApiParam("申请类型") @RequestParam(value ="applyType", required = false) String applyType,
|
|
79
|
+ @ApiParam("申领方式") @RequestParam(value ="applyMethod", required = false) Integer applyMethod,
|
|
80
|
+ @ApiParam("付款状态") @RequestParam(value ="payStatus", required = false) Integer payStatus,
|
|
81
|
+ @ApiParam("审核状态") @RequestParam(value ="verifyStatus", required = false) Integer verifyStatus,
|
|
82
|
+ @ApiParam("犬主") @RequestParam(value ="personName", required = false) String personName,
|
|
83
|
+ @ApiParam("手机号") @RequestParam(value ="phone", required = false) String phone,
|
|
84
|
+ @ApiParam("犬名") @RequestParam(value ="petName", required = false) String petName,
|
|
85
|
+ @ApiParam("卡号") @RequestParam(value ="originCardNo", required = false) String originCardNo) throws Exception{
|
72
|
86
|
|
73
|
87
|
SysUser sysUser = currentUser();
|
74
|
88
|
|
75
|
89
|
IPage<TaApplication> pg = new Page<>(pageNum, pageSize);
|
76
|
90
|
QueryWrapper<TaApplication> queryWrapper = new QueryWrapper<>();
|
77
|
91
|
queryWrapper.gt("status", Constants.STATUS_DELETE);
|
|
92
|
+ queryWrapper.eq(!StringUtils.isEmpty(applyType), "apply_type", applyType);
|
|
93
|
+ queryWrapper.eq(null != applyMethod, "apply_method", applyMethod);
|
|
94
|
+ queryWrapper.eq(null != payStatus, "pay_status", payStatus);
|
|
95
|
+ queryWrapper.eq(null != verifyStatus, "verify_status", verifyStatus);
|
|
96
|
+ queryWrapper.like(!StringUtils.isEmpty(personName), "person_name", "%" + personName + "%");
|
|
97
|
+ queryWrapper.like(!StringUtils.isEmpty(phone), "phone", "%" + phone + "%");
|
|
98
|
+ queryWrapper.like(!StringUtils.isEmpty(petName), "pet_name", "%" + petName + "%");
|
|
99
|
+ queryWrapper.like(!StringUtils.isEmpty(originCardNo), "origin_card_no", "%" + originCardNo + "%");
|
|
100
|
+ queryWrapper.ge(!StringUtils.isEmpty(applyStart), "create_date", applyStart);
|
|
101
|
+ queryWrapper.le(!StringUtils.isEmpty(applyEnd), "create_date", applyEnd);
|
|
102
|
+ queryWrapper.ge(!StringUtils.isEmpty(auditStart), "verify_date", auditStart);
|
|
103
|
+ queryWrapper.le(!StringUtils.isEmpty(auditEnd), "verify_date", auditEnd);
|
|
104
|
+ queryWrapper.ge(!StringUtils.isEmpty(makeStart), "make_date", makeStart);
|
|
105
|
+ queryWrapper.le(!StringUtils.isEmpty(makeEnd), "make_date", makeEnd);
|
78
|
106
|
|
79
|
107
|
if (Constants.WORKFLOW_PROCESS_AUDIT == process) {
|
80
|
108
|
// 过滤待审批列表
|