|
|
@@ -263,6 +263,7 @@ public class InsFeeDetailController extends BaseController {
|
|
|
String enddate = pageRequest.getColumnFilterValue(pageRequest, "enddate"); // 截止时间
|
|
|
String frameNo = pageRequest.getColumnFilterValue(pageRequest, "frameNo"); // 车架号
|
|
|
String licenseNo = pageRequest.getColumnFilterValue(pageRequest, "licenseNo"); // 车牌号
|
|
|
+ String policyno = pageRequest.getColumnFilterValue(pageRequest, "policyno"); // 保单号
|
|
|
String orderno = pageRequest.getColumnFilterValue(pageRequest, "orderno"); // 订单号
|
|
|
String inscompany = pageRequest.getColumnFilterValue(pageRequest, "inscompany"); // 保险公司
|
|
|
String settletype = pageRequest.getColumnFilterValue(pageRequest, "settletype"); // 结算类型 A保险公司 B业务员
|
|
|
@@ -305,6 +306,10 @@ public class InsFeeDetailController extends BaseController {
|
|
|
whereStr.append(" and orderno=?");
|
|
|
array.add(orderno);
|
|
|
}
|
|
|
+ if (!StringUtils.isEmpty(policyno)) {
|
|
|
+ whereStr.append(" and policyno=?");
|
|
|
+ array.add(policyno);
|
|
|
+ }
|
|
|
if (!StringUtils.isEmpty(inscompany)) {
|
|
|
whereStr.append(" and inscompany=?");
|
|
|
array.add(inscompany);
|
|
|
@@ -314,8 +319,8 @@ public class InsFeeDetailController extends BaseController {
|
|
|
array.add(userid);
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(username)) {
|
|
|
- whereStr.append(" and username=?");
|
|
|
- array.add(username);
|
|
|
+ whereStr.append(" and username like ?");
|
|
|
+ array.add("%"+username+ "%");
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(deptid)) {
|
|
|
whereStr.append(" and deptid like ?");
|
|
|
@@ -326,11 +331,11 @@ public class InsFeeDetailController extends BaseController {
|
|
|
array.add(agreeid);
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(riskCode)) {
|
|
|
- whereStr.append(" and producname=?");
|
|
|
+ whereStr.append(" and riskCode=?");
|
|
|
array.add(riskCode);
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(startdate) && !StringUtils.isEmpty(enddate)) {
|
|
|
- whereStr.append(" and exists(select 1 from ins_order a where a.orderno=t.orderno and (DATE_FORMAT(a.audittime, '%Y-%m-%d') between date ? and date ?))");
|
|
|
+ whereStr.append(" and exists(select 1 from ins_ply_income a where a.orderno=t.orderno and (DATE_FORMAT(a.pay_date, '%Y-%m-%d') between date ? and date ?))");
|
|
|
array.add(startdate);
|
|
|
array.add(enddate);
|
|
|
}
|
|
|
@@ -400,21 +405,60 @@ public class InsFeeDetailController extends BaseController {
|
|
|
int pageSize = pageRequest.getPageSize();
|
|
|
|
|
|
String orderno = pageRequest.getColumnFilterValue(pageRequest, "orderno"); // 订单号
|
|
|
+ String policyno = pageRequest.getColumnFilterValue(pageRequest, "policyno"); // 保单号
|
|
|
+ String riskCode = pageRequest.getColumnFilterValue(pageRequest, "riskCode"); // 保单号
|
|
|
String userid = pageRequest.getColumnFilterValue(pageRequest, "userid");
|
|
|
+ String username = pageRequest.getColumnFilterValue(pageRequest, "username"); // 业务员
|
|
|
String auditstatus = pageRequest.getColumnFilterValue(pageRequest, "auditstatus");
|
|
|
+ String licenseNo = pageRequest.getColumnFilterValue(pageRequest, "licenseNo"); // 车牌号
|
|
|
+ String deptid = pageRequest.getColumnFilterValue(pageRequest, "deptid"); // 机构
|
|
|
+ String inscompany = pageRequest.getColumnFilterValue(pageRequest, "inscompany"); // 保险公司
|
|
|
+ String startdate = pageRequest.getColumnFilterValue(pageRequest, "startdate"); // 开始时间
|
|
|
+ String enddate = pageRequest.getColumnFilterValue(pageRequest, "enddate"); // 截止时间
|
|
|
|
|
|
StringBuffer whereStr = new StringBuffer(" where 1=1");
|
|
|
ArrayList array = new ArrayList();
|
|
|
|
|
|
+
|
|
|
if (!StringUtils.isEmpty(orderno)) {
|
|
|
whereStr.append(" and orderno=?");
|
|
|
array.add(orderno);
|
|
|
}
|
|
|
-
|
|
|
+ if (!StringUtils.isEmpty(policyno)) {
|
|
|
+ whereStr.append(" and policyno=?");
|
|
|
+ array.add(policyno);
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(licenseNo)) {
|
|
|
+ whereStr.append(" and licenseno=?");
|
|
|
+ array.add(licenseNo);
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(inscompany)) {
|
|
|
+ whereStr.append(" and inscompany=?");
|
|
|
+ array.add(inscompany);
|
|
|
+ }
|
|
|
if (!StringUtils.isEmpty(userid)) {
|
|
|
whereStr.append(" and refereescode=?");
|
|
|
array.add(userid);
|
|
|
}
|
|
|
+ if (!StringUtils.isEmpty(username)) {
|
|
|
+ whereStr.append(" and refereesname like ?");
|
|
|
+ array.add("%"+username+ "%");
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(deptid)) {
|
|
|
+ whereStr.append(" and deptid like ?");
|
|
|
+ array.add(deptid + "%");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!StringUtils.isEmpty(riskCode)) {
|
|
|
+ whereStr.append(" and riskCode=?");
|
|
|
+ array.add(riskCode);
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(startdate) && !StringUtils.isEmpty(enddate)) {
|
|
|
+ whereStr.append(" and exists(select 1 from ins_ply_income a where a.orderno=t.orderno and (DATE_FORMAT(a.pay_date, '%Y-%m-%d') between date ? and date ?))");
|
|
|
+ array.add(startdate);
|
|
|
+ array.add(enddate);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (!StringUtils.isEmpty(auditstatus)) {
|
|
|
whereStr.append(" and auditstatus=?");
|
|
|
@@ -439,6 +483,8 @@ public class InsFeeDetailController extends BaseController {
|
|
|
int pageSize = pageRequest.getPageSize();
|
|
|
|
|
|
String orderno = pageRequest.getColumnFilterValue(pageRequest, "orderno"); // 订单号
|
|
|
+ String policyno = pageRequest.getColumnFilterValue(pageRequest, "policyno"); // 订单号
|
|
|
+
|
|
|
String deptid = pageRequest.getColumnFilterValue(pageRequest, "deptid");
|
|
|
String auditstatus = pageRequest.getColumnFilterValue(pageRequest, "auditstatus");
|
|
|
String comcode = pageRequest.getColumnFilterValue(pageRequest, "comcode");
|
|
|
@@ -465,7 +511,10 @@ public class InsFeeDetailController extends BaseController {
|
|
|
whereStr.append(" and orderno=?");
|
|
|
array.add(orderno);
|
|
|
}
|
|
|
-
|
|
|
+ if (!StringUtils.isEmpty(policyno)) {
|
|
|
+ whereStr.append(" and policyno=?");
|
|
|
+ array.add(policyno);
|
|
|
+ }
|
|
|
if (!StringUtils.isEmpty(deptid)) {
|
|
|
whereStr.append(" and comcode=?");
|
|
|
array.add(deptid);
|