保存进度!
This commit is contained in:
parent
712aabfb99
commit
992606d77a
259
code/db/车非补充部分.txt
Normal file
259
code/db/车非补充部分.txt
Normal file
@ -0,0 +1,259 @@
|
||||
with aa1 as (select
|
||||
|
||||
to_char(t.signature_date,'yyyy-mm-dd') 签发日期
|
||||
,t.policy_no 保单号_车险
|
||||
,qt.t_cre TID
|
||||
,qt.b_cre BTID
|
||||
,V.PLATE_NUMBER 车牌号
|
||||
|
||||
from
|
||||
idst0.auto_agreement_request_t t
|
||||
left join idst0.auto_agreement_t e on e.policy_no = t.policy_no
|
||||
left join idst0.motorised_vehicle_t v on v.policy_no = e.policy_no
|
||||
left join idst0.auto_premium_t pt on pt.policy_no = t.policy_no and pt.endorsement_no = t.endorsement_no
|
||||
left join ywglxt.w_dxbd_i i on e.policy_no = i.bdh
|
||||
left join idst0.rydm_t xx on xx.staff_code = nvl(i.zhjywy,e.operator_code)
|
||||
left join idst0.ks_t y on y.section_office_code = nvl(xx.section_office_code,e.section_office_code)
|
||||
left join idst0.bm_t z on z.department_code = nvl(xx.department_code,e.department_code)
|
||||
--left join ywglxt.q_auto_agreement _extend_t qe on qe.policy_no = e.policy_no
|
||||
left join ywglxt.q_auto_agreement_t qt on qt.policy_no = e.policy_no
|
||||
left join dc_tb_jc_c_tag cl on cl.保单号 = e.policy_no
|
||||
--left join dc_yangg_basecode_teams fg on fg.bm = z.department_name and fg.ks = y.section_office_name
|
||||
left join idst0.auto_agreement_extend_t et on et.policy_no = e.policy_no
|
||||
left join idst0.t_sell_policy_autobase_t zx on zx.policy_no = e.policy_no
|
||||
|
||||
left join dc_YZH_ZXYS YS ON YS.坐席工号= nvl(zx.workerno,et.telpartnercode)
|
||||
where
|
||||
t.signature_date >= sysdate-365
|
||||
AND t.signature_date < sysdate+90
|
||||
and e.policy_status = '1' --条件:保单有效
|
||||
--AND V.PLATE_NUMBER='LVHRM1810F5024561'
|
||||
and qt.tflag = '0' --条件:类型为个人
|
||||
--AND qt.t_cre='440881198901110216'
|
||||
and t.endorsement_no='无'
|
||||
and qt.usage_xm = '家庭自用车'
|
||||
and e.planned_end_date - e.inception_date >= 360 --条件:保单周期
|
||||
and et.LICENSEOWNERCERTIFICATETYPE not in ('17','15','13')
|
||||
|
||||
)
|
||||
|
||||
,DD2 AS
|
||||
(SELECT AA1.签发日期,AA1.TID 证件号,AA1.保单号_车险 FROM AA1
|
||||
union
|
||||
SELECT AA1.签发日期,AA1.BTID 证件号,AA1.保单号_车险 FROM AA1 )
|
||||
|
||||
--select * from dd2
|
||||
,dd3 AS (SELECT DISTINCT DD2.证件号,dd2.保单号_车险,
|
||||
case when DD2.证件号 is not null then row_number() over (partition by DD2.证件号 order by DD2.签发日期 desc) else 1 end Crow_no1 FROM DD2 )
|
||||
,dd4 AS (SELECT DISTINCT AA1.车牌号,AA1.保单号_车险,
|
||||
case when AA1.车牌号 is not null then row_number() over (partition by AA1.车牌号 order by AA1.签发日期 desc) else 1 end Crow_no2 FROM aa1 )
|
||||
--,dd as (
|
||||
--select dd2.*
|
||||
--,case when DD2.TID is not null then row_number() over (partition by DD2.TID order by DD2.签单日期 desc) else 1 end Crow_no
|
||||
--from dd2)
|
||||
,dd5 AS (SELECT DD3.证件号,dd3.保单号_车险 from dd3 where dd3.Crow_no1='1')
|
||||
,dd6 AS (SELECT DD4.车牌号,dd4.保单号_车险 from dd4 where dd4.Crow_no2='1')
|
||||
|
||||
,bb as (
|
||||
select
|
||||
'非车' 条线名称
|
||||
,to_char(q.signature_date,'yyyy-mm-dd') 签发日期
|
||||
,nvl(dd5.保单号_车险,dd6.保单号_车险) 保单号_车险
|
||||
,q.policy_no 保单号_非车
|
||||
--,q.endorsement_no pdh
|
||||
,qna.t_cre tid
|
||||
,qna.B_cre Btid
|
||||
,(case when nvl(dd5.保单号_车险,dd6.保单号_车险)IS NOT NULL THEN '是' else '' end )是否分公司融合
|
||||
--,'' 客户数_分公司
|
||||
--,qna.tbrmc 投保人名称
|
||||
,JYX.LICENSE_PLATE_NO 车牌号
|
||||
,round((pt.premium_amount-nvl(pt.taxamount,0))*c.rate/100,2) 车险签发保费
|
||||
,x.staff_name 经办姓名
|
||||
,X.STAFF_CODE 经办代码
|
||||
,y.section_office_name 科室名称
|
||||
,z.department_name 部门
|
||||
,(case when nvl(zx.workerno,et.telpartnercode) = 'DX001' and x.staff_name like '%建发凯迪%' then '林伟华'
|
||||
when nvl(zx.workerno,et.telpartnercode) = 'DX001' and x.staff_name not like '%建发凯迪%' then '其他'
|
||||
when x.staff_name like '%建发汽车续保%' then '林伟华'
|
||||
when x.staff_name like '%建发凯通泰成续保%' and e.planned_end_date < to_date('2023-09-30 00:00:00', 'yyyy-mm-dd hh24:mi:ss') then '李定定'
|
||||
when x.staff_name like '%建发凯通泰成续保%' then '周阳'
|
||||
else to_char(ys.坐席姓名) END) 坐席名称
|
||||
,nvl(zx.workerno,et.telpartnercode) 坐席代码
|
||||
,YS.团队 坐席团队
|
||||
,cl.管理渠道21版 管理渠道
|
||||
,cl.新转续 ntr
|
||||
,(select AUTO_NAME from idst0.auto_store_t where auto_code = qna.AGENT_CODE) dldmc
|
||||
,(case when gk.product_name like '%驾乘%' or gk.product_code in('23XZ9800','23YZ9800') THEN '1' ELSE '' END) 是否驾乘
|
||||
,'' 车商代码
|
||||
,'' 品牌
|
||||
,qna.life_salesperson 寿险代码
|
||||
,nvl(ca.plan_name,ra.plan_name) 产品方案名称
|
||||
,E.INCEPTION_DATE 起保日期
|
||||
--,QNA.PRODUCT_CODE 险种代码
|
||||
FROM
|
||||
idst0.nonauto_agreement_request_t q
|
||||
left join idst0.nonauto_agreement_t e on e.policy_no = q.policy_no
|
||||
left join idst0.nonauto_premium_t pt on pt.endorsement_no = q.endorsement_no and pt.policy_no = q.policy_no
|
||||
--left join idst0.reinsurance_t r on r.reinsurance_policy_no = e.policy_no
|
||||
left join idst0.exrate_month_t c on pt.currency_code = c.bzh
|
||||
and to_char(q.signature_date,'YYYY') = c.theyear and to_char(q.signature_date,'fmmm') = c.themonth
|
||||
left join idst0.rydm_t x on x.staff_code = e.operator_code
|
||||
left join idst0.ks_t y on y.section_office_code = x.section_office_code
|
||||
left join idst0.bm_t z on z.department_code = x.department_code
|
||||
left join ywglxt.q_nonauto_agreement_t qna on qna.policy_no = q.policy_no
|
||||
left join dc_yangg_gkxzh gk on gk.product_code = e.product_code --分散型险种
|
||||
left join dd5 on dd5.证件号 = qna.t_cre
|
||||
left join IDst0.nonauto_vehicle_info_t JYX ON JYX.POLICY_NO=q.policy_no
|
||||
left join dd6 on dd6.车牌号 = JYX.LICENSE_PLATE_NO
|
||||
left join idst0.auto_agreement_extend_t et on et.policy_no = e.policy_no
|
||||
left join idst0.T_SELL_POLICY_PROPERTY_INFO_T zx on zx.policy_no = e.policy_no
|
||||
left join dc_YZH_ZXYS YS ON YS.坐席工号= nvl(zx.workerno,et.telpartnercode)
|
||||
left join dc_tb_jc_c_tag cl on cl.保单号 = nvl(dd5.保单号_车险,dd6.保单号_车险)
|
||||
left join idst0.ryx_agreement_t ra on ra.policy_no = e.policy_no
|
||||
left join idst0.cibs_agreement_t ca on ca.policy_no = e.policy_no
|
||||
--left join (SELECT CX.POLICY_NO,CX.LIFE_SALESPERSON,CX.VEHICLE_BRAND FROM ywglxt.q_Auto_Agreement_t CX) cx on cx.policy_no=rmi.保单号_车险
|
||||
--left join ywglxt.v_xzh xzh on xzh.product_code = e.product_code
|
||||
--left join ywglxt.q_auto_agreement_t qtt on qtt.plate_number = JYX.LICENSE_PLATE_NO 剔除车非不是家用车
|
||||
where
|
||||
qna.tflag = '0'
|
||||
and (case when q.endorsement_no !='无' and round((pt.premium_amount-nvl(pt.taxamount,0))*c.rate/100,2) !=0 then '是' end) is null
|
||||
--and q.endorsement_no = '无'
|
||||
and nvl(dd5.证件号,dd6.车牌号) is not null
|
||||
and q.signature_date >= sysdate-5
|
||||
AND q.signature_date < sysdate
|
||||
--AND qna.t_cre='350623198706075199'
|
||||
--and (case when JYX.LICENSE_PLATE_NO is not null and qtt.usage_xm='家庭自用车' then '是' when JYX.LICENSE_PLATE_NO is null then '是' end )IS NOT NULL 剔除车非不是家用车
|
||||
and e.policy_status = '1'
|
||||
and gk.product_code is not null
|
||||
and (e.product_code like '2%' or e.product_code like '1106%' --意健 --责任
|
||||
or e.product_code like '1107%' or e.product_code like '1108%' or e.product_code like '1307%' or e.product_code like '1304A400%' --家财
|
||||
)
|
||||
--AND qna.policy_no='AXIMQDI30V23FP0062SH'
|
||||
)
|
||||
|
||||
,BB3 AS (SELECT bb.tid ,COUNT(*) 次数 from bb group by bb.tid )
|
||||
|
||||
,bb2 as (
|
||||
select bb.*
|
||||
,case when bb.是否驾乘 ='1' then row_number() over (partition by bb.tid,bb.是否驾乘 order by bb.签发日期 desc) else 1 end JCrow_no
|
||||
,case when bb.tid IS not NULL then row_number() over (partition by bb.tid order by bb.签发日期 desc) else 1 end CFrow_no
|
||||
,BB3.次数
|
||||
from BB
|
||||
LEFT JOIN BB3 ON BB3.tid =bb.tid
|
||||
)
|
||||
|
||||
,BB4 AS(select bb2.*
|
||||
,(CASE when bb2.次数='1' THEN '1'
|
||||
WHEN bb2.次数 = '2' and BB2.是否驾乘 ='1' and jcROW_NO ='1' then '1'
|
||||
-- WHEN bb2.次数 = '2' and BB2.是否驾乘 is null and CFROW_NO ='2' then '0'
|
||||
WHEN bb2.次数 = '2' and BB2.是否驾乘 is null and CFROW_NO ='1' then '1'
|
||||
WHEN bb2.次数 > '2' AND cfROW_NO ='1' then '1' --BB2.是否驾乘 ='1' and
|
||||
-- WHEN bb2.次数 > '2' AND BB2.是否驾乘 IS NULL THEN '1'--AND CFROW_NO ='1'
|
||||
ELSE '0' END ) 客户数
|
||||
from bb2)
|
||||
|
||||
/*,ff AS(
|
||||
SELECT
|
||||
to_char(rmi.签发日期,'yyyy-mm-dd') 签发日期
|
||||
,RMI.保单号_车险
|
||||
,rmi.保单号_非车
|
||||
,rmi.车险签发保费
|
||||
,RMI.条线名称
|
||||
,RMI.是否分公司融合
|
||||
,RMI.客户数_分公司
|
||||
,cl.经办姓名
|
||||
,CL.科室名称
|
||||
,CL.部门
|
||||
,(case when nvl(zx.workerno,et.telpartnercode) = 'DX001' and cl.经办姓名 like '%建发凯迪%' then '林伟华'
|
||||
when nvl(zx.workerno,et.telpartnercode) = 'DX001' and cl.经办姓名 not like '%建发凯迪%' then '其他'
|
||||
else to_char(ys.坐席姓名) END) 坐席名称
|
||||
,YS.团队 坐席团队
|
||||
,cl.管理渠道21版 管理渠道
|
||||
,cl.新转续 ntr
|
||||
,(select AUTO_NAME from idst0.auto_store_t where auto_code = nvl(e.selling_shop_code,e.tel_sale_4s_code)) dldmc
|
||||
FROM DC_CF_RMI rmi
|
||||
left join idst0.auto_agreement_t e on e.policy_no = rmi.保单号_车险
|
||||
left join dc_tb_jc_c_tag cl on cl.保单号 = e.policy_no
|
||||
--left join dc_yangg_basecode_teams fg on fg.bm = z.department_name and fg.ks = y.section_office_name
|
||||
left join idst0.auto_agreement_extend_t et on et.policy_no = e.policy_no
|
||||
left join idst0.t_sell_policy_autobase_t zx on zx.policy_no = e.policy_no
|
||||
left join dc_YZH_ZXYS YS ON YS.坐席工号= nvl(zx.workerno,et.telpartnercode))*/
|
||||
|
||||
,aa as (select
|
||||
'车险' 条线名称
|
||||
,to_char(t.signature_date,'yyyy-mm-dd') 签发日期
|
||||
,t.policy_no 保单号_车险
|
||||
--,t.endorsement_no pdh
|
||||
,'' 保单号_非车
|
||||
,'' 是否分公司融合
|
||||
,(case when qt.bd_type in ('1','2') THEN '1'
|
||||
when qt.bd_type = '3' and qt.xzh_xm='商业险' then '1' ELSE '0'END )客户数_分公司
|
||||
--,decode(qT.bd_type,'1','单交强','2','单商业','3','交商共保','其它') 保单类型
|
||||
,qt.t_cre TID
|
||||
,qt.b_cre BTID
|
||||
--,QT.TBRMC 投保人名称
|
||||
,V.PLATE_NUMBER 车牌号
|
||||
,pt.premium_amount - nvl(pt.tax_amount,0) 车险签发保费
|
||||
,xx.staff_name 经办姓名
|
||||
,XX.STAFF_CODE 经办代码
|
||||
,y.section_office_name 科室名称
|
||||
,z.department_name 部门
|
||||
,(case when nvl(zx.workerno,et.telpartnercode) = 'DX001' and xx.staff_name like '%建发凯迪%' then '林伟华'
|
||||
when nvl(zx.workerno,et.telpartnercode) = 'DX001' and xx.staff_name not like '%建发凯迪%' then '其他'
|
||||
when xx.staff_name like '%建发汽车续保%' then '林伟华'
|
||||
when xx.staff_name like '%建发凯通泰成续保%' and e.planned_end_date < to_date('2023-09-30 00:00:00', 'yyyy-mm-dd hh24:mi:ss') then '李定定'
|
||||
when xx.staff_name like '%建发凯通泰成续保%' then '周阳'
|
||||
else to_char(ys.坐席姓名) END) 坐席名称
|
||||
,nvl(zx.workerno,et.telpartnercode) 坐席代码
|
||||
,YS.团队 坐席团队
|
||||
,cl.管理渠道21版 管理渠道
|
||||
,cl.新转续 ntr
|
||||
,(select AUTO_NAME from idst0.auto_store_t where auto_code = nvl(e.selling_shop_code,e.tel_sale_4s_code)) dldmc
|
||||
,e.selling_shop_code 车商代码
|
||||
,qt.life_salesperson 寿险代码
|
||||
,QT.VEHICLE_BRAND 品牌
|
||||
,'' 产品方案名称
|
||||
,E.INCEPTION_DATE 起保日期
|
||||
--,QT.PRODUCT_CODE 险种代码
|
||||
from
|
||||
idst0.auto_agreement_request_t t
|
||||
left join idst0.auto_agreement_t e on e.policy_no = t.policy_no
|
||||
left join idst0.motorised_vehicle_t v on v.policy_no = e.policy_no
|
||||
left join idst0.auto_premium_t pt on pt.policy_no = t.policy_no and pt.endorsement_no = t.endorsement_no
|
||||
left join ywglxt.w_dxbd_i i on e.policy_no = i.bdh
|
||||
left join idst0.rydm_t xx on xx.staff_code = nvl(i.zhjywy,e.operator_code)
|
||||
left join idst0.ks_t y on y.section_office_code = nvl(xx.section_office_code,e.section_office_code)
|
||||
left join idst0.bm_t z on z.department_code = nvl(xx.department_code,e.department_code)
|
||||
--left join ywglxt.q_auto_agreement _extend_t qe on qe.policy_no = e.policy_no
|
||||
left join ywglxt.q_auto_agreement_t qt on qt.policy_no = e.policy_no
|
||||
left join dc_tb_jc_c_tag cl on cl.保单号 = e.policy_no
|
||||
--left join dc_yangg_basecode_teams fg on fg.bm = z.department_name and fg.ks = y.section_office_name
|
||||
left join idst0.auto_agreement_extend_t et on et.policy_no = e.policy_no
|
||||
left join idst0.t_sell_policy_autobase_t zx on zx.policy_no = e.policy_no
|
||||
left join dc_YZH_ZXYS YS ON YS.坐席工号= nvl(zx.workerno,et.telpartnercode)
|
||||
where
|
||||
t.signature_date >= sysdate-5
|
||||
AND t.signature_date < sysdate
|
||||
AND e.policy_status = '1' --条件:保单有效
|
||||
--AND qt.t_cre='350623198706075199'
|
||||
and qt.tflag = '0' --条件:类型为个人
|
||||
and t.endorsement_no='无'
|
||||
and qt.usage_xm = '家庭自用车'
|
||||
and e.planned_end_date - e.inception_date >= 360 --条件:保单周期
|
||||
and et.LICENSEOWNERCERTIFICATETYPE not in ('17','15','13')
|
||||
--AND e.policy_no='AXIMC01Y2023B015820W'
|
||||
)
|
||||
|
||||
|
||||
select "签发日期","保单号_车险","保单号_非车","条线名称","是否分公司融合","客户数","车险签发保费","经办姓名","经办代码","科室名称","部门","坐席名称","坐席代码","坐席团队","管理渠道","NTR","DLDMC","车商代码","寿险代码","品牌","产品方案名称","起保日期","车牌号"
|
||||
from bb4
|
||||
UNION
|
||||
select "签发日期","保单号_车险","保单号_非车","条线名称","是否分公司融合","客户数_分公司","车险签发保费","经办姓名","经办代码","科室名称","部门","坐席名称","坐席代码","坐席团队","管理渠道","NTR","DLDMC","车商代码","寿险代码","品牌","产品方案名称","起保日期","车牌号"
|
||||
from AA
|
||||
--UNION
|
||||
--Select "签发日期","保单号_车险","保单号_非车","条线名称","是否分公司融合","客户数_分公司","车险签发保费","经办姓名","科室名称","部门","坐席名称","坐席团队","管理渠道","NTR","DLDMC"
|
||||
--from ff
|
||||
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
alt=""
|
||||
>
|
||||
<div class="title-wrapper">
|
||||
<span>"消7灭6"突围战</span>
|
||||
<span>"消8灭70"突围战</span>
|
||||
<span>{{ props.month }}月入营坐席</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<span class="company-name">CPIC</span>
|
||||
<div class="version-wrapper">
|
||||
<span>桌面霸屏后台管理</span>
|
||||
<span>Build-202303251257</span>
|
||||
<span>Build-20230915</span>
|
||||
</div>
|
||||
<div class="buttons-wrapper">
|
||||
<component
|
||||
@ -35,7 +35,7 @@ export default {
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
const Logout = ():void =>
|
||||
const Logout = (): void =>
|
||||
{
|
||||
ElMessageBox.confirm(
|
||||
"是否要退出系统?",
|
||||
@ -46,11 +46,12 @@ export default {
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(() =>
|
||||
.then((): void =>
|
||||
{
|
||||
// debugger;
|
||||
logout();
|
||||
});
|
||||
})
|
||||
.catch((): void => {});
|
||||
};
|
||||
|
||||
return { Logout, };
|
||||
@ -94,7 +95,7 @@ export default {
|
||||
size: 0.5rem;
|
||||
}
|
||||
|
||||
> *+* {
|
||||
>*+* {
|
||||
margin-top: 1px;
|
||||
}
|
||||
}
|
||||
|
@ -9,30 +9,30 @@
|
||||
*/
|
||||
export const API_URL = {
|
||||
// URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
||||
URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
|
||||
// URL_LOGIN: "http://10.39.0.41:8081/admin-system/account/p13_account_check",
|
||||
// URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
|
||||
URL_LOGIN: "http://10.39.0.41:8081/admin-system/account/p13_account_check",
|
||||
|
||||
// URL_LOGIN_CALLER: "http://localhost:8080/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
// URL_LOGIN_CALLER: "http://10.39.0.41:8081/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
// URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
URL_LOGIN_CALLER: "http://10.39.0.41:8081/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: import.meta.env.VITE_URL_DEPARTMENT_ARCHIEVEMENT,
|
||||
URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
// URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
URL_DEPARTMENT_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||
|
||||
// URL_RANKINGLIST: "http://localhost:8080/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
URL_RANKINGLIST: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
// URL_RANKINGLIST: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
// URL_RANKINGLIST: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
URL_RANKINGLIST: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||
|
||||
// 坐席业绩查询
|
||||
URL_CALLER_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
// URL_CALLER_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
// URL_CALLER_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
URL_CALLER_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||
|
||||
/** 奖项相关 **/
|
||||
// 查询奖励项目
|
||||
URL_RWARD_PROJECTS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
// URL_RWARD_PROJECTS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
// URL_RWARD_PROJECTS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
URL_RWARD_PROJECTS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||
// 查询获奖人员
|
||||
// URL_REWARD_GAINERS: "http://{{生产地址}}/desktop_archievement_backend/rewards/query_reward_gainers.do"
|
||||
URL_REWARD_GAINERS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||
URL_REWARD_GAINERS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||
// URL_REWARD_GAINERS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||
};
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="reward-wrapper">
|
||||
<div class="reward-gainer-wrapper">
|
||||
<el-divider content-position="left">
|
||||
90俱乐部
|
||||
90俱乐部 & “消7灭6”包围战
|
||||
</el-divider>
|
||||
<div class="toolbutton-wrapper">
|
||||
<el-button
|
||||
|
@ -11,8 +11,9 @@
|
||||
package com.cpic.xim.mybatis.mapper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import com.cpic.xim.mybatis.pojo.RewardProject;
|
||||
import java.util.HashMap;
|
||||
import com.cpic.xim.mybatis.pojo.RewardGainer;
|
||||
import com.cpic.xim.mybatis.pojo.RewardProject;
|
||||
|
||||
public interface RewardsMapper
|
||||
{
|
||||
@ -20,5 +21,7 @@ public interface RewardsMapper
|
||||
|
||||
public ArrayList<RewardGainer> queryRewardTelsaler();
|
||||
|
||||
public void saveRewardTelSaler( HashMap<String, Object> params );
|
||||
|
||||
public void deleteRewardTelSaler( HashMap<String, Object> params );
|
||||
}
|
||||
|
@ -68,6 +68,13 @@ public class RewardController
|
||||
|
||||
logger.debug( "查询奖项清单," + response.getMessage() + "," + error.getMessage() );
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ( session != null )
|
||||
{
|
||||
session.close();
|
||||
}
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
@ -77,10 +84,12 @@ public class RewardController
|
||||
RewardGainersResponse queryRewardGainers()
|
||||
{
|
||||
RewardGainersResponse response = new RewardGainersResponse();
|
||||
SqlSession session = null;
|
||||
|
||||
try
|
||||
{
|
||||
SqlSession session = MybatisUtils.getSqlSession();
|
||||
session = MybatisUtils.getSqlSession();
|
||||
|
||||
RewardsMapper mapper = session.getMapper( RewardsMapper.class );
|
||||
|
||||
ArrayList<RewardGainer> gainers = mapper.queryRewardTelsaler();
|
||||
@ -95,6 +104,13 @@ public class RewardController
|
||||
response.setMessage( "查询失败!" + error.getMessage() );
|
||||
response.setGainerList( null );
|
||||
}
|
||||
finally
|
||||
{
|
||||
if ( session != null )
|
||||
{
|
||||
session.close();
|
||||
}
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpic.xim.mybatis.mapper.ArchievementMapper">
|
||||
<select id="getDepartmentArchievement" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
<select id="getDepartmentArchievement" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
call telsale_archievement_pkg.department_archievement(
|
||||
#{a_department_code, mode=IN, jdbcType=VARCHAR},
|
||||
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
||||
@ -9,7 +9,7 @@
|
||||
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
|
||||
#{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper})
|
||||
</select>
|
||||
<select id="getCallerArchievement" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
<select id="getCallerArchievement" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
call telsale_archievement_pkg.caller_archievement(
|
||||
#{a_caller_code, mode=IN, jdbcType=VARCHAR},
|
||||
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpic.xim.mybatis.mapper.RankingListMapper">
|
||||
<select id="getRankingList" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
<select id="getRankingList" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||
call telsale_archievement_pkg.caller_arch_ranking_list(
|
||||
#{a_department_code,mode=IN,jdbcType=VARCHAR},
|
||||
#{a_year,mode=IN,jdbcType=VARCHAR},
|
||||
|
@ -2,14 +2,14 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cpic.xim.mybatis.mapper.RewardsMapper">
|
||||
<select id="queryRewardProjects" resultMap="RewardProjectMap">
|
||||
select reward_index, reward_name from reward_projects
|
||||
select reward_index, reward_name from reward_projects order by reward_index desc
|
||||
</select>
|
||||
<resultMap id="RewardProjectMap" type="com.cpic.xim.mybatis.pojo.RewardProject">
|
||||
<id property="rewardCode" column="reward_index" />
|
||||
<result property="rewardName" column="reward_name" javaType="String"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryRewardTelsaler" resultMap="RewardGainerMapper">
|
||||
<select id="queryRewardTelsaler" flushCache="true" resultMap="RewardGainerMapper">
|
||||
SELECT hjr.rec_id rec_id,
|
||||
hjr.telsaler_name telsaler_name,
|
||||
hjr.telsaler_code telsaler_code,
|
||||
|
Loading…
x
Reference in New Issue
Block a user