|
@@ -8,6 +8,7 @@ import com.njyunzhi.pet_identity.entity.*;
|
8
|
8
|
import com.njyunzhi.pet_identity.service.ITaCardNoService;
|
9
|
9
|
import com.njyunzhi.pet_identity.service.ITaOrderService;
|
10
|
10
|
import com.njyunzhi.pet_identity.service.ITaPetIdentityService;
|
|
11
|
+import com.njyunzhi.pet_identity.vo.ApplicationParams;
|
11
|
12
|
import com.njyunzhi.pet_identity.vo.AuditParam;
|
12
|
13
|
import com.njyunzhi.pet_identity.vo.MakeCardParam;
|
13
|
14
|
import io.swagger.annotations.Api;
|
|
@@ -95,53 +96,28 @@ public class TaApplicationController extends BaseController {
|
95
|
96
|
SysUser sysUser = currentUser();
|
96
|
97
|
|
97
|
98
|
IPage<TaApplication> pg = new Page<>(pageNum, pageSize);
|
98
|
|
- QueryWrapper<TaApplication> queryWrapper = new QueryWrapper<>();
|
99
|
|
- queryWrapper.gt("status", Constants.STATUS_DELETE);
|
100
|
|
- queryWrapper.eq(!StringUtils.isEmpty(applyType), "apply_type", applyType);
|
101
|
|
- queryWrapper.eq(null != applyMethod, "apply_method", applyMethod);
|
102
|
|
- queryWrapper.eq(null != status, "status", status);
|
103
|
|
- queryWrapper.eq(null != payStatus, "pay_status", payStatus);
|
104
|
|
- queryWrapper.eq(null != verifyStatus, "verify_status", verifyStatus);
|
105
|
|
- queryWrapper.eq(null != isOrg, "is_org", isOrg);
|
106
|
|
- queryWrapper.like(!StringUtils.isEmpty(orgName), "org_name", "%" + orgName + "%");
|
107
|
|
- queryWrapper.like(!StringUtils.isEmpty(personName), "person_name", "%" + personName + "%");
|
108
|
|
- queryWrapper.like(!StringUtils.isEmpty(phone), "phone", "%" + phone + "%");
|
109
|
|
- queryWrapper.like(!StringUtils.isEmpty(petName), "pet_name", "%" + petName + "%");
|
110
|
|
- queryWrapper.like(!StringUtils.isEmpty(originCardNo), "origin_card_no", "%" + originCardNo + "%");
|
111
|
|
- queryWrapper.ge(!StringUtils.isEmpty(applyStart), "create_date", applyStart);
|
112
|
|
- queryWrapper.le(!StringUtils.isEmpty(applyEnd), "create_date", applyEnd);
|
113
|
|
- queryWrapper.ge(!StringUtils.isEmpty(auditStart), "verify_date", auditStart);
|
114
|
|
- queryWrapper.le(!StringUtils.isEmpty(auditEnd), "verify_date", auditEnd);
|
115
|
|
- queryWrapper.ge(!StringUtils.isEmpty(makeStart), "make_date", makeStart);
|
116
|
|
- queryWrapper.le(!StringUtils.isEmpty(makeEnd), "make_date", makeEnd);
|
117
|
|
-
|
118
|
|
- if (Constants.WORKFLOW_PROCESS_AUDIT == process) {
|
119
|
|
- // 过滤待审批列表
|
120
|
|
- queryWrapper.in("status", new Integer[] { Constants.WORKFLOW_STATUS_PROCESSING, Constants.WORKFLOW_STATUS_AUDIT });
|
121
|
|
- } else if (Constants.WORKFLOW_PROCESS_MADE == process) {
|
122
|
|
- // 过滤待制卡列表
|
123
|
|
- // 必须是审核通过的, 且是初次提审或者挂失补办的
|
124
|
|
- queryWrapper.in("status", new Integer[] { Constants.WORKFLOW_STATUS_AUDIT, Constants.WORKFLOW_STATUS_MADE });
|
125
|
|
- queryWrapper.eq("verify_Status", Constants.AUDIT_STATUS_PASSED);
|
126
|
|
- queryWrapper.in("apply_type", new String[] { Constants.APPLY_TYPE_FIRST, Constants.APPLY_TYPE_REISSUE});
|
127
|
|
- }
|
128
|
99
|
|
129
|
|
-// // 审核人角色
|
130
|
|
-// if (Constants.USER_AUDITOR.equals(sysUser.getRoleName())) {
|
131
|
|
-// queryWrapper.ge("status", Constants.WORKFLOW_STATUS_PROCESSING);
|
132
|
|
-// queryWrapper.le("status", Constants.WORKFLOW_STATUS_AUDIT);
|
133
|
|
-// }
|
134
|
|
-//
|
135
|
|
-// // 发证(制卡)人角色
|
136
|
|
-// if (Constants.USER_MAKER.equals(sysUser.getRoleName())) {
|
137
|
|
-// queryWrapper.ge("status", Constants.WORKFLOW_STATUS_AUDIT);
|
138
|
|
-// queryWrapper.le("status", Constants.WORKFLOW_STATUS_MADE);
|
139
|
|
-// }
|
140
|
|
-
|
141
|
|
- queryWrapper.orderByAsc("status");
|
142
|
|
- queryWrapper.orderByDesc("create_date");
|
143
|
|
-
|
144
|
|
- IPage<TaApplication> result = iTaApplicationService.page(pg, queryWrapper);
|
|
100
|
+ ApplicationParams params = new ApplicationParams();
|
|
101
|
+ params.setProcess(process);
|
|
102
|
+ params.setApplyStart(applyStart);
|
|
103
|
+ params.setApplyEnd(applyEnd);
|
|
104
|
+ params.setAuditStart(auditStart);
|
|
105
|
+ params.setAuditEnd(auditEnd);
|
|
106
|
+ params.setMakeStart(makeStart);
|
|
107
|
+ params.setMakeEnd(makeEnd);
|
|
108
|
+ params.setApplyType(applyType);
|
|
109
|
+ params.setApplyMethod(applyMethod);
|
|
110
|
+ params.setPayStatus(payStatus);
|
|
111
|
+ params.setVerifyStatus(verifyStatus);
|
|
112
|
+ params.setPersonName(personName);
|
|
113
|
+ params.setPhone(phone);
|
|
114
|
+ params.setPetName(petName);
|
|
115
|
+ params.setOriginCardNo(originCardNo);
|
|
116
|
+ params.setIsOrg(isOrg);
|
|
117
|
+ params.setOrgName(orgName);
|
|
118
|
+ params.setStatus(status);
|
|
119
|
+
|
|
120
|
+ IPage<TaApplication> result = iTaApplicationService.getPageBy(pg, params);
|
145
|
121
|
return ResponseBean.success(result);
|
146
|
122
|
}
|
147
|
123
|
|