Commit 0a4904cb by Mahjong

来佣比对增加保单跟踪状态

parent 80955531
......@@ -536,7 +536,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
String charset = "UTF-8"; // 读取字符编码
String[] columnName = new String[]{"序号", "来佣编号", "预计来佣年月", "实际来佣年月", "检核年月", "银盾出单机构", "保险公司", "保险分公司",
"保单号", "保费", "来佣类型", "来佣项目", "来佣率", "来佣金额", "来佣状态 ", "经纪人", "S3纵队", "S2体系", "S1分部", "经纪人类型",
"下单时间", "购买方案", "产品险种", "保险种类", "缴费年限", "保障期间"
"下单时间", "购买方案", "产品险种", "保险种类", "缴费年限", "保障期间","保单跟踪状态"
};
String tableName = "YD_Export_ComeCommission";
String CSV_COLUMN_SEPARATOR = ",";//CSV文件列分隔符
......@@ -587,6 +587,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
buf.append(info.getCategoryName()).append(CSV_COLUMN_SEPARATOR);
buf.append(info.getPayTerm()).append(CSV_COLUMN_SEPARATOR);
buf.append(info.getCoverageTerm() == null ? "/" : info.getCoverageTerm()).append(CSV_COLUMN_SEPARATOR);
buf.append(info.getPolicyTrackingStatus() == null ? "/" : handlePolicyTrackingStatus(info.getPolicyTrackingStatus())).append(CSV_COLUMN_SEPARATOR);
buf.append(CSV_ROW_SEPARATOR);
}
......@@ -630,5 +631,32 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
return "";
}
}
public static String handlePolicyTrackingStatus(Long policyTrackingStatus) {
String ret = null;
if (policyTrackingStatus == 1L) {
ret = "承保件";
} else if (policyTrackingStatus == 2L) {
ret = "契撤件";
} else if (policyTrackingStatus == 3L) {
ret = "减额缴清";
} else if (policyTrackingStatus == 4L) {
ret = "失效件";
} else if (policyTrackingStatus == 5L) {
ret = "协议退保/解约件";
}else if (policyTrackingStatus == 6L) {
ret = "退保件";
}else if (policyTrackingStatus == 7L) {
ret = "终止件";
}else if (policyTrackingStatus == 8L) {
ret = "豁免保费";
}else if (policyTrackingStatus == 9L) {
ret = "犹退件";
}else if (policyTrackingStatus == 10L) {
ret = "保全件";
}else if (policyTrackingStatus == 11L) {
ret = "理赔件";
}
return ret;
}
}
......@@ -47,6 +47,7 @@ public class ComeCommissionVO {
private Long s1Id;
private Long s2Id;
private Long s3Id;
private Long policyTrackingStatus;//保单跟踪状态
public Long getOrderId() {
return orderId;
......@@ -403,4 +404,12 @@ public class ComeCommissionVO {
public void setYdBranchName(String ydBranchName) {
this.ydBranchName = ydBranchName;
}
public Long getPolicyTrackingStatus() {
return policyTrackingStatus;
}
public void setPolicyTrackingStatus(Long policyTrackingStatus) {
this.policyTrackingStatus = policyTrackingStatus;
}
}
......@@ -46,14 +46,14 @@
oc.practitioner_id practitionerId,
o.ydBranchId,
o.broker_customer_id,
o.policy_tracking_status policyTrackingStatus,
o.cover_term_type coverageTerm,
CONCAT(o.payment_term, (case o.payment_term_unit when 'Y' then '年' when 'M' then '月' else '年' END)) payTerm
from ag_po_order_commission oc
inner join
(SELECT id, order_price, product_id,
plan_id, insurer_id, order_date, config_level, cover_term, insurer_branch_id ydBranchId,
payment_term, payment_term_unit,broker_customer_id,
payment_term, payment_term_unit,broker_customer_id,policy_tracking_status,
cover_term_type
from ag_po_order t
where t.status=3 and t.payment_status=3 and t.policy_no is not null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment