From 25c981293380113d5c45d08133e337372cf1f1d1 Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期二, 12 十二月 2023 17:37:16 +0800
Subject: [PATCH] 武汉省平台-共享接口更新2
---
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2003.view.xml | 365 +++++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java | 159 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java | 156 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java | 157 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java | 157 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java | 157 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java | 157 ++
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml | 14
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml | 573 ++++++++
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2011.view.xml | 357 +++++
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java | 38
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml | 293 ++++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java | 2
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java | 158 ++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java | 10
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java | 169 ++
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2004.view.xml | 419 ++++++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java | 169 ++
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2012.view.xml | 446 ++++++
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java | 172 ++
20 files changed, 4,089 insertions(+), 39 deletions(-)
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml
index e9c001b..009dc42 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml
@@ -29,10 +29,6 @@
<Property></Property>
<Property name="label">鏄惁鏈夋晥</Property>
</PropertyDef>
- <PropertyDef name="bizId">
- <Property></Property>
- <Property name="label">涓氬姟ID</Property>
- </PropertyDef>
<PropertyDef name="updateTime">
<Property name="dataType">Date</Property>
<Property name="label">鏇存柊鏃堕棿</Property>
@@ -232,11 +228,6 @@
<Editor/>
</AutoFormElement>
<AutoFormElement>
- <Property name="name">bizId</Property>
- <Property name="property">bizId</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
<Property name="name">updateTime</Property>
<Property name="property">updateTime</Property>
<Editor/>
@@ -249,11 +240,6 @@
<AutoFormElement>
<Property name="name">kqdm</Property>
<Property name="property">kqdm</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">bz</Property>
- <Property name="property">bz</Property>
<Editor/>
</AutoFormElement>
</AutoForm>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml
new file mode 100644
index 0000000..1867b11
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml
@@ -0,0 +1,293 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002</Property>
+ <PropertyDef name="cpflbm">
+ <Property></Property>
+ <Property name="label">浜у搧鍒嗙被缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="cpflmc">
+ <Property></Property>
+ <Property name="label">浜у搧鍒嗙被鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="fjcpflbm">
+ <Property></Property>
+ <Property name="label">鐖剁骇鍒嗙被缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="fjcpflmc">
+ <Property></Property>
+ <Property name="label">鐖剁骇鍒嗙被鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="xh">
+ <Property></Property>
+ <Property name="label">搴忓彿</Property>
+ </PropertyDef>
+ <PropertyDef name="sfyx">
+ <Property></Property>
+ <Property name="label">鏄惁鏈夋晥</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2002PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="cpflbm">
+ <Property name="property">cpflbm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="cpflmc">
+ <Property name="property">cpflmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fjcpflbm">
+ <Property name="property">fjcpflbm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fjcpflmc">
+ <Property name="property">fjcpflmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="xh">
+ <Property name="property">xh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="sfyx">
+ <Property name="property">sfyx</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain">
+ <Property name="width">60%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">浜у搧鍒嗙被</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">cpflbm</Property>
+ <Property name="property">cpflbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">cpflmc</Property>
+ <Property name="property">cpflmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">fjcpflbm</Property>
+ <Property name="property">fjcpflbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">fjcpflmc</Property>
+ <Property name="property">fjcpflmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">xh</Property>
+ <Property name="property">xh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sfyx</Property>
+ <Property name="property">sfyx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2002PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2002PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2002PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2003.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2003.view.xml
new file mode 100644
index 0000000..0ba4068
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2003.view.xml
@@ -0,0 +1,365 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003</Property>
+ <PropertyDef name="jldwbm">
+ <Property></Property>
+ <Property name="label">璁¢噺鍗曚綅缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="jldwmc">
+ <Property></Property>
+ <Property name="label">璁¢噺鍗曚綅鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="dwflbm">
+ <Property></Property>
+ <Property name="label">鍗曚綅鍒嗙被缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="dwflmc">
+ <Property></Property>
+ <Property name="label">鍗曚綅鍒嗙被鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="xh">
+ <Property></Property>
+ <Property name="label">搴忓彿</Property>
+ </PropertyDef>
+ <PropertyDef name="sfyx">
+ <Property></Property>
+ <Property name="label">鏄惁鏈夋晥</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="jldwzhxsList">
+ <Property/>
+ </PropertyDef>
+ <Reference name="jldwzhxs">
+ <Property name="parameter">$${this.jldwzhxsList}</Property>
+ <Property name="dataProvider">whjlShareApi2003PR#listItemShareApi2003Xs</Property>
+ <Property name="dataType">[dtItemShareApi2003Xs]</Property>
+ </Reference>
+ </DataType>
+ <DataType name="dtItemShareApi2003Xs">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2003Xs</Property>
+ <PropertyDef name="ydwbm">
+ <Property></Property>
+ <Property name="label">婧愯閲忓崟浣嶇紪鐮�</Property>
+ </PropertyDef>
+ <PropertyDef name="ydwmc">
+ <Property></Property>
+ <Property name="label">婧愯閲忓崟浣嶅悕绉�</Property>
+ </PropertyDef>
+ <PropertyDef name="mbdwlx">
+ <Property></Property>
+ <Property name="label">鐩爣璁¢噺鍗曚綅缂栫爜</Property>
+ </PropertyDef>
+ <PropertyDef name="mbdwmc">
+ <Property></Property>
+ <Property name="label">鐩爣璁¢噺鍗曚綅鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="zhxs">
+ <Property></Property>
+ <Property name="label">杞崲绯绘暟</Property>
+ </PropertyDef>
+ <PropertyDef name="xh">
+ <Property></Property>
+ <Property name="label">搴忓彿</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2003PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="jldwbm">
+ <Property name="property">jldwbm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jldwmc">
+ <Property name="property">jldwmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="dwflbm">
+ <Property name="property">dwflbm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="dwflmc">
+ <Property name="property">dwflmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="xh">
+ <Property name="property">xh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="sfyx">
+ <Property name="property">sfyx</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
+ <Property name="width">80%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">璁¢噺鍗曚綅</Property>
+ <Property name="height">85%</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <FieldSet>
+ <Property name="caption">璁¢噺鍗曚綅</Property>
+ <Buttons/>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">jldwbm</Property>
+ <Property name="property">jldwbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jldwmc</Property>
+ <Property name="property">jldwmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">dwflbm</Property>
+ <Property name="property">dwflbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">dwflmc</Property>
+ <Property name="property">dwflmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">xh</Property>
+ <Property name="property">xh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sfyx</Property>
+ <Property name="property">sfyx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ </FieldSet>
+ <Panel layout="regionPadding:5">
+ <Property name="caption">璁¢噺鍗曚綅杞崲绯绘暟</Property>
+ <Property name="height">200</Property>
+ <Buttons/>
+ <Children>
+ <DataGrid id="dataGridDetail2">
+ <Property name="dataSet">dsMain</Property>
+ <Property name="dataPath">#.jldwzhxs</Property>
+ <DataColumn name="ydwbm">
+ <Property name="property">ydwbm</Property>
+ </DataColumn>
+ <DataColumn name="ydwmc">
+ <Property name="property">ydwmc</Property>
+ </DataColumn>
+ <DataColumn name="mbdwlx">
+ <Property name="property">mbdwlx</Property>
+ </DataColumn>
+ <DataColumn name="mbdwmc">
+ <Property name="property">mbdwmc</Property>
+ </DataColumn>
+ <DataColumn name="zhxs">
+ <Property name="property">zhxs</Property>
+ </DataColumn>
+ <DataColumn name="xh">
+ <Property name="property">xh</Property>
+ </DataColumn>
+ </DataGrid>
+ </Children>
+ <Tools/>
+ </Panel>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2003PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2003PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2003PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2004.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2004.view.xml
new file mode 100644
index 0000000..573403f
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2004.view.xml
@@ -0,0 +1,419 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004</Property>
+ <PropertyDef name="jlgljgbh">
+ <Property></Property>
+ <Property name="label">鍐涚伯绠$悊鏈烘瀯缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="tyshxydm">
+ <Property></Property>
+ <Property name="label">缁熶竴绀句細淇$敤浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="sydwfrzsh">
+ <Property></Property>
+ <Property name="label">浜嬩笟鍗曚綅娉曚汉璇佷功鍙�</Property>
+ </PropertyDef>
+ <PropertyDef name="jgmc">
+ <Property></Property>
+ <Property name="label">鏈烘瀯鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="jgjc">
+ <Property></Property>
+ <Property name="label">鏈烘瀯绠�绉�</Property>
+ </PropertyDef>
+ <PropertyDef name="jgpzmc">
+ <Property></Property>
+ <Property name="label">鍔犳寕鐗屽瓙鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="jbdw">
+ <Property></Property>
+ <Property name="label">涓惧姙鍗曚綅</Property>
+ </PropertyDef>
+ <PropertyDef name="fzr">
+ <Property></Property>
+ <Property name="label">璐熻矗浜�</Property>
+ </PropertyDef>
+ <PropertyDef name="jgxz">
+ <Property></Property>
+ <Property name="label">鏈烘瀯鎬ц川</Property>
+ </PropertyDef>
+ <PropertyDef name="jgxzmc">
+ <Property></Property>
+ <Property name="label">鏈烘瀯鎬ц川鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="pzjg">
+ <Property></Property>
+ <Property name="label">鎵瑰噯鏈烘瀯</Property>
+ </PropertyDef>
+ <PropertyDef name="jggg">
+ <Property></Property>
+ <Property name="label">鏈烘瀯瑙勬牸</Property>
+ </PropertyDef>
+ <PropertyDef name="jfglxs">
+ <Property></Property>
+ <Property name="label">缁忚垂绠$悊褰㈠紡</Property>
+ </PropertyDef>
+ <PropertyDef name="jfglxsmc">
+ <Property></Property>
+ <Property name="label">缁忚垂绠$悊褰㈠紡鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="zyzn">
+ <Property></Property>
+ <Property name="label">涓昏鑱岃兘</Property>
+ </PropertyDef>
+ <PropertyDef name="jgdz">
+ <Property></Property>
+ <Property name="label">鏈烘瀯鍦板潃</Property>
+ </PropertyDef>
+ <PropertyDef name="jgxzqhbm">
+ <Property></Property>
+ <Property name="label">鏈烘瀯琛屾斂鍖哄垝缂栫爜</Property>
+ </PropertyDef>
+ <PropertyDef name="jgxzqhmc">
+ <Property></Property>
+ <Property name="label">鏈烘瀯琛屾斂鍖哄垝鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="jgyzbm">
+ <Property></Property>
+ <Property name="label">鏈烘瀯閭斂缂栫爜</Property>
+ </PropertyDef>
+ <PropertyDef name="sfyx">
+ <Property></Property>
+ <Property name="label">鏄惁鏈夋晥</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2004PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="jgmc">
+ <Property name="property">jgmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jgjc">
+ <Property name="property">jgjc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fzr">
+ <Property name="property">fzr</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jgxz">
+ <Property name="property">jgxz</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jlgljgbh">
+ <Property name="property">jlgljgbh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="tyshxydm">
+ <Property name="property">tyshxydm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain">
+ <Property name="width">60%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">鍐涚伯绠$悊鏈烘瀯</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">jlgljgbh</Property>
+ <Property name="property">jlgljgbh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">tyshxydm</Property>
+ <Property name="property">tyshxydm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sydwfrzsh</Property>
+ <Property name="property">sydwfrzsh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgmc</Property>
+ <Property name="property">jgmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgjc</Property>
+ <Property name="property">jgjc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgpzmc</Property>
+ <Property name="property">jgpzmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jbdw</Property>
+ <Property name="property">jbdw</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">fzr</Property>
+ <Property name="property">fzr</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgxz</Property>
+ <Property name="property">jgxz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgxzmc</Property>
+ <Property name="property">jgxzmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">pzjg</Property>
+ <Property name="property">pzjg</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jggg</Property>
+ <Property name="property">jggg</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jfglxs</Property>
+ <Property name="property">jfglxs</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jfglxsmc</Property>
+ <Property name="property">jfglxsmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zyzn</Property>
+ <Property name="property">zyzn</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgdz</Property>
+ <Property name="property">jgdz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgxzqhbm</Property>
+ <Property name="property">jgxzqhbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgxzqhmc</Property>
+ <Property name="property">jgxzqhmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgyzbm</Property>
+ <Property name="property">jgyzbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sfyx</Property>
+ <Property name="property">sfyx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2004PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2004PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2004PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml
new file mode 100644
index 0000000..c4f5761
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml
@@ -0,0 +1,573 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2005</Property>
+ <PropertyDef name="jljgqybh">
+ <Property></Property>
+ <Property name="label">鍐涚伯鍔犲伐浼佷笟缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="jljgqymc">
+ <Property></Property>
+ <Property name="label">鍐涚伯鍔犲伐浼佷笟鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="jlqyjc">
+ <Property></Property>
+ <Property name="label">鍐涚伯浼佷笟绠�绉�</Property>
+ </PropertyDef>
+ <PropertyDef name="gyslx">
+ <Property></Property>
+ <Property name="label">渚涘簲鍟嗙被鍨�</Property>
+ </PropertyDef>
+ <PropertyDef name="zzjgdm">
+ <Property></Property>
+ <Property name="label">缁勭粐鏈烘瀯浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="jlqytyshxydm">
+ <Property></Property>
+ <Property name="label">浼佷笟缁熶竴绀句細淇$敤浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="qyjjlx">
+ <Property></Property>
+ <Property name="label">浼佷笟缁忔祹绫诲瀷</Property>
+ </PropertyDef>
+ <PropertyDef name="qyxz">
+ <Property></Property>
+ <Property name="label">浼佷笟鎬ц川</Property>
+ </PropertyDef>
+ <PropertyDef name="djzclx">
+ <Property></Property>
+ <Property name="label">鐧昏娉ㄥ唽绫诲瀷</Property>
+ </PropertyDef>
+ <PropertyDef name="gsdjzch">
+ <Property></Property>
+ <Property name="label">宸ュ晢鐧昏娉ㄥ唽鍙�</Property>
+ </PropertyDef>
+ <PropertyDef name="fddbr">
+ <Property></Property>
+ <Property name="label">娉曞畾浠h〃浜�</Property>
+ </PropertyDef>
+ <PropertyDef name="qydz">
+ <Property></Property>
+ <Property name="label">浼佷笟鍦板潃</Property>
+ </PropertyDef>
+ <PropertyDef name="qydh">
+ <Property></Property>
+ <Property name="label">浼佷笟鐢佃瘽</Property>
+ </PropertyDef>
+ <PropertyDef name="qycz">
+ <Property></Property>
+ <Property name="label">浼佷笟浼犵湡</Property>
+ </PropertyDef>
+ <PropertyDef name="qydzyx">
+ <Property></Property>
+ <Property name="label">浼佷笟鐢靛瓙閭</Property>
+ </PropertyDef>
+ <PropertyDef name="qywz">
+ <Property></Property>
+ <Property name="label">浼佷笟缃戝潃</Property>
+ </PropertyDef>
+ <PropertyDef name="qyyzbm">
+ <Property></Property>
+ <Property name="label">浼佷笟閭斂缂栫爜</Property>
+ </PropertyDef>
+ <PropertyDef name="qyjd">
+ <Property></Property>
+ <Property name="label">浼佷笟缁忓害</Property>
+ </PropertyDef>
+ <PropertyDef name="qywd">
+ <Property></Property>
+ <Property name="label">浼佷笟绾害</Property>
+ </PropertyDef>
+ <PropertyDef name="qyxzqhmc">
+ <Property></Property>
+ <Property name="label">浼佷笟琛屾斂鍖哄垝鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="qyxzqhdm">
+ <Property></Property>
+ <Property name="label">浼佷笟琛屾斂鍖哄垝浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="khyh">
+ <Property></Property>
+ <Property name="label">寮�鎴烽摱琛�</Property>
+ </PropertyDef>
+ <PropertyDef name="yhzh">
+ <Property></Property>
+ <Property name="label">閾惰璐﹀彿</Property>
+ </PropertyDef>
+ <PropertyDef name="yhxydj">
+ <Property></Property>
+ <Property name="label">閾惰淇$敤绛夌骇</Property>
+ </PropertyDef>
+ <PropertyDef name="gdzc">
+ <Property></Property>
+ <Property name="label">鍥哄畾璧勪骇</Property>
+ </PropertyDef>
+ <PropertyDef name="zczb">
+ <Property></Property>
+ <Property name="label">娉ㄥ唽璧勬湰</Property>
+ </PropertyDef>
+ <PropertyDef name="zc">
+ <Property></Property>
+ <Property name="label">璧勪骇</Property>
+ </PropertyDef>
+ <PropertyDef name="qycyrys">
+ <Property></Property>
+ <Property name="label">浼佷笟浠庝笟浜哄憳鏁�</Property>
+ </PropertyDef>
+ <PropertyDef name="scx">
+ <Property></Property>
+ <Property name="label">鐢熶骇绾�</Property>
+ </PropertyDef>
+ <PropertyDef name="scsb">
+ <Property></Property>
+ <Property name="label">鐢熶骇璁惧</Property>
+ </PropertyDef>
+ <PropertyDef name="sbmc">
+ <Property></Property>
+ <Property name="label">璁惧鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="sbcd">
+ <Property></Property>
+ <Property name="label">璁惧浜у湴</Property>
+ </PropertyDef>
+ <PropertyDef name="jgnl">
+ <Property></Property>
+ <Property name="label">鍔犲伐鑳藉姏</Property>
+ </PropertyDef>
+ <PropertyDef name="spscxkz">
+ <Property></Property>
+ <Property name="label">椋熷搧鐢熶骇璁稿彲</Property>
+ </PropertyDef>
+ <PropertyDef name="zypp">
+ <Property></Property>
+ <Property name="label">涓昏鍝佺墝</Property>
+ </PropertyDef>
+ <PropertyDef name="zz">
+ <Property></Property>
+ <Property name="label">璧勮川</Property>
+ </PropertyDef>
+ <PropertyDef name="sfyx">
+ <Property></Property>
+ <Property name="label">鏄惁鏈夋晥</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2005PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="jljgqymc">
+ <Property name="property">jljgqymc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jlqyjc">
+ <Property name="property">jlqyjc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="gyslx">
+ <Property name="property">gyslx</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jlqytyshxydm">
+ <Property name="property">jlqytyshxydm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="zzjgdm">
+ <Property name="property">zzjgdm</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fddbr">
+ <Property name="property">fddbr</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain">
+ <Property name="width">60%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">鍐涚伯渚涘簲鍟嗕俊鎭�</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">jljgqybh</Property>
+ <Property name="property">jljgqybh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jljgqymc</Property>
+ <Property name="property">jljgqymc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jlqyjc</Property>
+ <Property name="property">jlqyjc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">gyslx</Property>
+ <Property name="property">gyslx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zzjgdm</Property>
+ <Property name="property">zzjgdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jlqytyshxydm</Property>
+ <Property name="property">jlqytyshxydm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyjjlx</Property>
+ <Property name="property">qyjjlx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyxz</Property>
+ <Property name="property">qyxz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">djzclx</Property>
+ <Property name="property">djzclx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">gsdjzch</Property>
+ <Property name="property">gsdjzch</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">fddbr</Property>
+ <Property name="property">fddbr</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qydz</Property>
+ <Property name="property">qydz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qydh</Property>
+ <Property name="property">qydh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qycz</Property>
+ <Property name="property">qycz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qydzyx</Property>
+ <Property name="property">qydzyx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qywz</Property>
+ <Property name="property">qywz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyyzbm</Property>
+ <Property name="property">qyyzbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyjd</Property>
+ <Property name="property">qyjd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qywd</Property>
+ <Property name="property">qywd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyxzqhmc</Property>
+ <Property name="property">qyxzqhmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qyxzqhdm</Property>
+ <Property name="property">qyxzqhdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">khyh</Property>
+ <Property name="property">khyh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yhzh</Property>
+ <Property name="property">yhzh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yhxydj</Property>
+ <Property name="property">yhxydj</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">gdzc</Property>
+ <Property name="property">gdzc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zczb</Property>
+ <Property name="property">zczb</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zc</Property>
+ <Property name="property">zc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">qycyrys</Property>
+ <Property name="property">qycyrys</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">scx</Property>
+ <Property name="property">scx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">scsb</Property>
+ <Property name="property">scsb</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sbmc</Property>
+ <Property name="property">sbmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sbcd</Property>
+ <Property name="property">sbcd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jgnl</Property>
+ <Property name="property">jgnl</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">spscxkz</Property>
+ <Property name="property">spscxkz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zypp</Property>
+ <Property name="property">zypp</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zz</Property>
+ <Property name="property">zz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sfyx</Property>
+ <Property name="property">sfyx</Property>
+ <Editor/>
+ </AutoFormElement>
+
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2005PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2005PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2005PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2011.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2011.view.xml
new file mode 100644
index 0000000..bfc646b
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2011.view.xml
@@ -0,0 +1,357 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011</Property>
+ <PropertyDef name="zjxmbh">
+ <Property></Property>
+ <Property name="label">璐ㄦ椤圭洰缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="zjxmmc">
+ <Property></Property>
+ <Property name="label">璐ㄦ椤圭洰鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="fjzjxmbh">
+ <Property></Property>
+ <Property name="label">鐖剁骇璐ㄦ椤圭洰缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="fjzjxmmc">
+ <Property></Property>
+ <Property name="label">鐖剁骇璐ㄦ椤圭洰鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="sjlx">
+ <Property></Property>
+ <Property name="label">鏁版嵁绫诲瀷</Property>
+ </PropertyDef>
+ <PropertyDef name="xswjd">
+ <Property></Property>
+ <Property name="label">灏忔暟浣嶇簿搴�</Property>
+ </PropertyDef>
+ <PropertyDef name="jldw">
+ <Property></Property>
+ <Property name="label">璁¢噺鍗曚綅</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="zjymqxList">
+ <Property/>
+ </PropertyDef>
+ <Reference name="zjymqx">
+ <Property name="parameter">$${this.zjymqxList}</Property>
+ <Property name="dataProvider">whjlShareApi2011PR#listItemShareApi2011Xm</Property>
+ <Property name="dataType">[dtItemShareApi2011Xm]</Property>
+ </Reference>
+ </DataType>
+ <DataType name="dtItemShareApi2011Xm">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm</Property>
+ <PropertyDef name="qxbh">
+ <Property></Property>
+ <Property name="label">缂洪櫡缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="qxmc">
+ <Property></Property>
+ <Property name="label">缂洪櫡鍚嶇О</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2011PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="zjxmbh">
+ <Property name="property">zjxmbh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="zjxmmc">
+ <Property name="property">zjxmmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fjzjxmbh">
+ <Property name="property">fjzjxmbh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="fjzjxmmc">
+ <Property name="property">fjzjxmmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="sjlx">
+ <Property name="property">sjlx</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="xswjd">
+ <Property name="property">xswjd</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="jldw">
+ <Property name="property">jldw</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
+ <Property name="width">80%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">璐ㄩ噺妫�鏌ラ」鐩�</Property>
+ <Property name="height">85%</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <FieldSet>
+ <Property name="caption">璁¢噺鍗曚綅</Property>
+ <Buttons/>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">jldwbm</Property>
+ <Property name="property">jldwbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">jldwmc</Property>
+ <Property name="property">jldwmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">dwflbm</Property>
+ <Property name="property">dwflbm</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">dwflmc</Property>
+ <Property name="property">dwflmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">xh</Property>
+ <Property name="property">xh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sfyx</Property>
+ <Property name="property">sfyx</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ </FieldSet>
+ <Panel layout="regionPadding:5">
+ <Property name="caption">璁¢噺鍗曚綅杞崲绯绘暟</Property>
+ <Property name="height">200</Property>
+ <Buttons/>
+ <Children>
+ <DataGrid id="dataGridDetail2">
+ <Property name="dataSet">dsMain</Property>
+ <Property name="dataPath">#.jldwzhxs</Property>
+ <DataColumn name="ydwbm">
+ <Property name="property">ydwbm</Property>
+ </DataColumn>
+ <DataColumn name="ydwmc">
+ <Property name="property">ydwmc</Property>
+ </DataColumn>
+ <DataColumn name="mbdwlx">
+ <Property name="property">mbdwlx</Property>
+ </DataColumn>
+ <DataColumn name="mbdwmc">
+ <Property name="property">mbdwmc</Property>
+ </DataColumn>
+ <DataColumn name="zhxs">
+ <Property name="property">zhxs</Property>
+ </DataColumn>
+ <DataColumn name="xh">
+ <Property name="property">xh</Property>
+ </DataColumn>
+ </DataGrid>
+ </Children>
+ <Tools/>
+ </Panel>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2011PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2011PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2011PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2012.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2012.view.xml
new file mode 100644
index 0000000..5423548
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2012.view.xml
@@ -0,0 +1,446 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ViewConfig>
+ <Arguments/>
+ <Context/>
+ <Model>
+ <DataType name="dtMain">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012</Property>
+ <PropertyDef name="yjfayjhbh">
+ <Property></Property>
+ <Property name="label">搴旀�ユ柟妗堜笌璁″垝缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="yjfayjhmc">
+ <Property></Property>
+ <Property name="label">搴旀�ユ柟妗堜笌璁″垝鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="zdsj">
+ <Property></Property>
+ <Property name="label">鍒跺畾鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="sjfssj">
+ <Property></Property>
+ <Property name="label">浜嬩欢鍙戠敓鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="yjwz">
+ <Property></Property>
+ <Property name="label">搴旀�ヤ綅缃�</Property>
+ </PropertyDef>
+ <PropertyDef name="yjjd">
+ <Property></Property>
+ <Property name="label">搴旀�ョ粡搴�</Property>
+ </PropertyDef>
+ <PropertyDef name="yjwd">
+ <Property></Property>
+ <Property name="label">搴旀�ョ含搴�</Property>
+ </PropertyDef>
+ <PropertyDef name="fazt">
+ <Property></Property>
+ <Property name="label">鏂规鐘舵��</Property>
+ </PropertyDef>
+ <PropertyDef name="updateTime">
+ <Property name="dataType">Date</Property>
+ <Property name="label">鏇存柊鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="czbz">
+ <Property></Property>
+ <Property name="label">鎿嶄綔鏍囧織</Property>
+ <Property name="mapping">
+ <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property>
+ <Property name="keyProperty">code</Property>
+ <Property name="valueProperty">name</Property>
+ </Property>
+ </PropertyDef>
+ <PropertyDef name="kqdm">
+ <Property></Property>
+ <Property name="label">搴撳尯浠g爜</Property>
+ </PropertyDef>
+ <PropertyDef name="yjfajgList">
+ <Property/>
+ </PropertyDef>
+ <Reference name="yjfajg">
+ <Property name="parameter">$${this.yjfajgList}</Property>
+ <Property name="dataProvider">whjlShareApi2012PR#listItemShareApi2012Fa</Property>
+ <Property name="dataType">[dtItemShareApi2012Fa]</Property>
+ </Reference>
+ </DataType>
+ <DataType name="dtItemShareApi2012Fa">
+ <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2012Fa</Property>
+ <PropertyDef name="yjfajgbh">
+ <Property></Property>
+ <Property name="label">搴旀�ユ柟妗堟槑缁嗙紪鍙�</Property>
+ </PropertyDef>
+ <PropertyDef name="yjgsbh">
+ <Property></Property>
+ <Property name="label">鍐涚伯浼佷笟缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="jgzdbm">
+ <Property></Property>
+ <Property name="label">鍐涗緵绔欑偣缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="yjfayjhbh">
+ <Property></Property>
+ <Property name="label">搴旀�ユ柟妗堜笌璁″垝缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="pzflbh">
+ <Property></Property>
+ <Property name="label">鍝佺鍒嗙被缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="jldwflbh">
+ <Property></Property>
+ <Property name="label">璁¢噺鍗曚綅鍒嗙被缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="dccl">
+ <Property></Property>
+ <Property name="label">璋冨嚭閲嶉噺</Property>
+ </PropertyDef>
+ <PropertyDef name="yqsj">
+ <Property></Property>
+ <Property name="label">瑕佹眰鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="dbcb">
+ <Property></Property>
+ <Property name="label">璋冩嫧鎴愭湰</Property>
+ </PropertyDef>
+ <PropertyDef name="dbsj">
+ <Property></Property>
+ <Property name="label">璋冩嫧鏃堕棿</Property>
+ </PropertyDef>
+ <PropertyDef name="shdwbh">
+ <Property></Property>
+ <Property name="label">鏀惰揣鍗曚綅缂栧彿</Property>
+ </PropertyDef>
+ <PropertyDef name="shdwmc">
+ <Property></Property>
+ <Property name="label">鏀惰揣鍗曚綅鍚嶇О</Property>
+ </PropertyDef>
+ <PropertyDef name="shlxr">
+ <Property></Property>
+ <Property name="label">鏀惰揣鑱旂郴浜�</Property>
+ </PropertyDef>
+ <PropertyDef name="shlxrdh">
+ <Property></Property>
+ <Property name="label">鏀惰揣鑱旂郴浜虹數璇�</Property>
+ </PropertyDef>
+ <PropertyDef name="dcz">
+ <Property></Property>
+ <Property name="label">璋冨嚭鐘舵��</Property>
+ </PropertyDef>
+ </DataType>
+ </Model>
+ <View layout="regionPadding:10">
+ <Property name="packages">font-awesome,css-common</Property>
+ <DataSet id="dsMain">
+ <Property name="dataType">[dtMain]</Property>
+ <Property name="dataProvider">whjlShareApi2012PR#listData</Property>
+ </DataSet>
+ <Container layout="regionPadding:10" layoutConstraint="top">
+ <Property name="exClassName">bg-color</Property>
+ <Property name="height">55</Property>
+ <Property name="contentOverflow">hidden</Property>
+ <Label layoutConstraint="left">
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ </Label>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
+view.get("#dialogMain").show();</ClientEvent>
+ <Property name="iconClass">fa fa-plus</Property>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#dialogMain").show();
+}else{
+ $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ <Property name="exClassName">btn-warm</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+if(cur){
+ view.get("#ajaxDel").set("parameter",cur).execute(function(result){
+ if(result){
+ $alert(result);
+ } else{
+ cur.remove();
+ }
+ });
+}else{
+ $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="iconClass">fa fa-minus</Property>
+ <Property name="exClassName">btn-warn</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent>
+ <Property name="caption">鍒锋柊</Property>
+ <Property name="iconClass">fa fa-search</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ <Button layoutConstraint="left">
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+ view.get("#ajaxPull").set("parameter",select).execute(function(result){
+ view.get("#dsMain").flushAsync();
+ $notify(result);
+ });
+ </ClientEvent>
+ <Property name="caption">鎵嬪姩鏇存柊</Property>
+ <Property name="iconClass">fa fa-hand-o-up</Property>
+ <Property name="exClassName">btn-default</Property>
+ </Button>
+ <Button layoutConstraint="right">
+ <ClientEvent name="onClick">//鏄剧ず璁板綍
+view.get("#iFrame").reload();
+view.get("#dialogLog").show();</ClientEvent>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-bars</Property>
+ <Property name="exClassName">btn-flush</Property>
+ </Button>
+ </Container>
+ <Container layoutConstraint="center">
+ <Property name="exClassName">bg-color</Property>
+ <DataGrid id="dgMain">
+ <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
+if(data){
+ view.get("#dialogMain").show();
+}</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <Property name="readOnly">true</Property>
+ <RowNumColumn/>
+ <RowSelectorColumn>
+ <Property name="caption">涓婁紶</Property>
+ </RowSelectorColumn>
+ <DataColumn name="yjfayjhbh">
+ <Property name="property">yjfayjhbh</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="yjfayjhmc">
+ <Property name="property">yjfayjhmc</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="zdsj">
+ <Property name="property">zdsj</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="sjfssj">
+ <Property name="property">sjfssj</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="yjwz">
+ <Property name="property">yjwz</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="yjjd">
+ <Property name="property">yjjd</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
+ <Property name="width">80%</Property>
+ <Property name="closeable">false</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Property name="caption">搴旀�ユ柟妗堜俊鎭�</Property>
+ <Property name="height">85%</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+view.get("#updateSave").execute(function(){
+ self.get("parent").hide();
+ view.get("#dsMain").flushAsync();
+});</ClientEvent>
+ <Property name="caption">纭畾</Property>
+ <Property name="iconClass">fa fa-check</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
+self.get("parent").hide();
+if(cur) cur.cancel();</ClientEvent>
+ <Property name="caption">鍙栨秷</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <FieldSet>
+ <Property name="caption">搴旀�ユ柟妗堜俊鎭�</Property>
+ <Buttons/>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelPosition">left</Property>
+ <Property name="labelSeparator">:</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelWidth">120</Property>
+ <AutoFormElement>
+ <Property name="name">yjfayjhbh</Property>
+ <Property name="property">yjfayjhbh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yjfayjhmc</Property>
+ <Property name="property">yjfayjhmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">zdsj</Property>
+ <Property name="property">zdsj</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">sjfssj</Property>
+ <Property name="property">sjfssj</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yjwz</Property>
+ <Property name="property">yjwz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yjjd</Property>
+ <Property name="property">yjjd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">yjwd</Property>
+ <Property name="property">yjwd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">fazt</Property>
+ <Property name="property">fazt</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">czbz</Property>
+ <Property name="property">czbz</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">kqdm</Property>
+ <Property name="property">kqdm</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ </FieldSet>
+ <Panel layout="regionPadding:5">
+ <Property name="caption">搴旀�ユ柟妗堟槑缁�</Property>
+ <Property name="height">200</Property>
+ <Buttons/>
+ <Children>
+ <DataGrid id="dataGridDetail2">
+ <Property name="dataSet">dsMain</Property>
+ <Property name="dataPath">#.yjfajg</Property>
+ <DataColumn name="yjfajgbh">
+ <Property name="property">yjfajgbh</Property>
+ </DataColumn>
+ <DataColumn name="yjgsbh">
+ <Property name="property">yjgsbh</Property>
+ </DataColumn>
+ <DataColumn name="jgzdbm">
+ <Property name="property">jgzdbm</Property>
+ </DataColumn>
+ <DataColumn name="yjfayjhbh">
+ <Property name="property">yjfayjhbh</Property>
+ </DataColumn>
+ <DataColumn name="pzflbh">
+ <Property name="property">pzflbh</Property>
+ </DataColumn>
+ <DataColumn name="jldwflbh">
+ <Property name="property">jldwflbh</Property>
+ </DataColumn>
+ <DataColumn name="dccl">
+ <Property name="property">dccl</Property>
+ </DataColumn>
+ <DataColumn name="yqsj">
+ <Property name="property">yqsj</Property>
+ </DataColumn>
+ <DataColumn name="dbcb">
+ <Property name="property">dbcb</Property>
+ </DataColumn>
+ <DataColumn name="dbsj">
+ <Property name="property">dbsj</Property>
+ </DataColumn>
+ <DataColumn name="shdwbh">
+ <Property name="property">shdwbh</Property>
+ </DataColumn>
+ <DataColumn name="shdwmc">
+ <Property name="property">shdwmc</Property>
+ </DataColumn>
+ <DataColumn name="shlxr">
+ <Property name="property">shlxr</Property>
+ </DataColumn>
+ <DataColumn name="shlxrdh">
+ <Property name="property">shlxrdh</Property>
+ </DataColumn>
+ <DataColumn name="dcz">
+ <Property name="property">dcz</Property>
+ </DataColumn>
+ </DataGrid>
+ </Children>
+ <Tools/>
+ </Panel>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <UpdateAction id="updateSave">
+ <Property name="dataResolver">whjlShareApi2012PR#saveData</Property>
+ <UpdateItem>
+ <Property name="dataPath">[#current]</Property>
+ <Property name="dataSet">dsMain</Property>
+ </UpdateItem>
+ </UpdateAction>
+ <AjaxAction id="ajaxDel">
+ <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property>
+ <Property name="service">whjlShareApi2012PR#delData</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxPull">
+ <Property name="service">whjlShareApi2012PR#pullData</Property>
+ </AjaxAction>
+ <Dialog id="dialogLog">
+ <Property name="width">90%</Property>
+ <Property name="height">90%</Property>
+ <Property name="caption">鏇存柊璁板綍</Property>
+ <Property name="iconClass">fa fa-sliders</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent>
+ <Property name="caption">鍏抽棴</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <Container>
+ <IFrame id="iFrame">
+ <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
+ <Property name="userData">
+ <Entity>
+ <Property name="deptId">deptId</Property>
+ </Entity>
+ </Property>
+ </IFrame>
+ </Container>
+ </Children>
+ <Tools/>
+ </Dialog>
+ <ListDropDown id="listDropYN">
+ <Property name="items">鏄�,鍚�</Property>
+ </ListDropDown>
+ </View>
+</ViewConfig>
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java b/src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java
index 52f1aa4..64a261e 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java
+++ b/src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java
@@ -21,26 +21,26 @@
*/
private static final long serialVersionUID = 1L;
- private String jlgljgbhjgyzbm; //鍐涚伯绠$悊鏈烘瀯缂栧彿
- private String tyshxydmjgyzbm; //缁熶竴绀句細淇$敤浠g爜
- private String sydwfrzshjgyzbm; //浜嬩笟鍗曚綅娉曚汉璇佷功鍙�
- private String jgmcjgyzbm; //鏈烘瀯鍚嶇О
- private String jgjcjgyzbm; //鏈烘瀯绠�绉�
- private String jgpzmcjgyzbm; //鍔犳寕鐗屽瓙鍚嶇О
- private String jbdwjgyzbm; //涓惧姙鍗曚綅
- private String fzrjgyzbm; //璐熻矗浜�
- private String jgxzjgyzbm; //鏈烘瀯鎬ц川
- private String jgxzmcjgyzbm; //鏈烘瀯鎬ц川鍚嶇О
- private String pzjgjgyzbm; //鎵瑰噯鏈烘瀯
- private String jgggjgyzbm; //鏈烘瀯瑙勬牸
- private String jfglxsjgyzbm; //缁忚垂绠$悊褰㈠紡
- private String jfglxsmcjgyzbm; //缁忚垂绠$悊褰㈠紡鍚嶇О
- private String zyznjgyzbm; //涓昏鑱岃兘
- private String jgdzjgyzbm; //鏈烘瀯鍦板潃
- private String jgxzqhbmjgyzbm; //鏈烘瀯琛屾斂鍖哄垝缂栫爜
- private String jgxzqhmcjgyzbm; //鏈烘瀯琛屾斂鍖哄垝鍚嶇О
+ private String jlgljgbh; //鍐涚伯绠$悊鏈烘瀯缂栧彿
+ private String tyshxydm; //缁熶竴绀句細淇$敤浠g爜
+ private String sydwfrzsh; //浜嬩笟鍗曚綅娉曚汉璇佷功鍙�
+ private String jgmc; //鏈烘瀯鍚嶇О
+ private String jgjc; //鏈烘瀯绠�绉�
+ private String jgpzmc; //鍔犳寕鐗屽瓙鍚嶇О
+ private String jbdw; //涓惧姙鍗曚綅
+ private String fzr; //璐熻矗浜�
+ private String jgxz; //鏈烘瀯鎬ц川
+ private String jgxzmc; //鏈烘瀯鎬ц川鍚嶇О
+ private String pzjg; //鎵瑰噯鏈烘瀯
+ private String jggg; //鏈烘瀯瑙勬牸
+ private String jfglxs; //缁忚垂绠$悊褰㈠紡
+ private String jfglxsmc; //缁忚垂绠$悊褰㈠紡鍚嶇О
+ private String zyzn; //涓昏鑱岃兘
+ private String jgdz; //鏈烘瀯鍦板潃
+ private String jgxzqhbm; //鏈烘瀯琛屾斂鍖哄垝缂栫爜
+ private String jgxzqhmc; //鏈烘瀯琛屾斂鍖哄垝鍚嶇О
private String jgyzbm; //鏈烘瀯閭斂缂栫爜
- private String sfyxjgyzbm; //鏄惁鏈夋晥
+ private String sfyx; //鏄惁鏈夋晥
//鍗曠嫭澧炲姞锛屼笉杩涜涓婁紶
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
index 9000ae5..e945308 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
@@ -133,16 +133,16 @@
if (responseDto.getSuccess() == 0) {
list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2001.class);
if(null != list && list.size() > 0){
- for (WhjlShareApi2001 whjlShareApi2001 : list) {
- whjlShareApi2001.setCzbz(Constant.CZBZ_U);
+ for (WhjlShareApi2001 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
infoData = new ApiInfoData();
- infoData.setId(whjlShareApi2001.getSbflbm());
+ infoData.setId(shareData.getSbflbm());
infoData.setKqdm(apiConf.getKqdm());
infoData.setInteType(WhjlConstant.API_CATEGORY_20);
infoData.setInteId(WhjlConstant.API_CODE_2001);
infoData.setUpdateTime(new Date());
- infoData.setDataId(whjlShareApi2001.getSbflbm());
- infoData.setData(JSON.toJSONString(whjlShareApi2001));
+ infoData.setDataId(shareData.getSbflbm());
+ infoData.setData(JSON.toJSONString(shareData));
infoData.setCzbz(Constant.CZBZ_U);
apiInfoDataRep.save(infoData);
}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java
new file mode 100644
index 0000000..3224efa
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java
@@ -0,0 +1,158 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2001;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2002PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2002PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2002> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2002> list = new ArrayList<>();
+ WhjlShareApi2002 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2002PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2002 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getCpflbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getCpflbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2002PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2002 data) {
+ apiInfoDataRep.deleteById(data.getCpflbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2002PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2002> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2002> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2002 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getCpflbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getCpflbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java
new file mode 100644
index 0000000..b1abb0c
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java
@@ -0,0 +1,169 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-璁¢噺鍗曚綅
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2003PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2003PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2003> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2003);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2003> list = new ArrayList<>();
+ WhjlShareApi2003 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2003.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+ /**
+ * 鑾峰彇璐ㄦ鏍囧噯閫傜敤鐨勫搧绉�
+ * whjlShareApi2003PR#listItemShareApi2003Xs
+ *
+ * @return
+ */
+ @DataProvider
+ public List<ShareApi2003Xs> listItemShareApi2003Xs(String code) {
+ return JSON.parseArray(code, ShareApi2003Xs.class);
+ }
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2003PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2003 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getJldwbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2003);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getJldwbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2003PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2003 data) {
+ apiInfoDataRep.deleteById(data.getJldwbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2003PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2003> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2003> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2003);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2003.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2003 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ shareData.setJldwzhxsList(JSON.toJSONString(shareData.getJldwzhxs()));
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getJldwbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2003);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getJldwbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java
new file mode 100644
index 0000000..d8059a0
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java
@@ -0,0 +1,159 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2004PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2004PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2004> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2004);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2004> list = new ArrayList<>();
+ WhjlShareApi2004 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2004.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2004PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2004 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getTyshxydm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2004);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getTyshxydm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2004PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2004 data) {
+ apiInfoDataRep.deleteById(data.getTyshxydm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2004PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2004> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2004> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2004);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2004.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2004 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getTyshxydm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2004);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getTyshxydm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java
new file mode 100644
index 0000000..e6bfc06
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java
@@ -0,0 +1,156 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2005;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2005PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2005PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2005> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2005);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2005> list = new ArrayList<>();
+ WhjlShareApi2005 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2005.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2005PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2005 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getJlqytyshxydm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2005);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getJlqytyshxydm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2005PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2005 data) {
+ apiInfoDataRep.deleteById(data.getJlqytyshxydm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2005PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2005> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2005> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2005);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2005.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2005 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getJlqytyshxydm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2005);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getJlqytyshxydm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
new file mode 100644
index 0000000..d20f015
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
@@ -0,0 +1,157 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2006PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2002PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2002> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2002> list = new ArrayList<>();
+ WhjlShareApi2002 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2002PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2002 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getCpflbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getCpflbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2002PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2002 data) {
+ apiInfoDataRep.deleteById(data.getCpflbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2002PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2002> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2002> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2002 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getCpflbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getCpflbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
new file mode 100644
index 0000000..ee59d18
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
@@ -0,0 +1,157 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2007PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2002PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2002> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2002> list = new ArrayList<>();
+ WhjlShareApi2002 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2002PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2002 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getCpflbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getCpflbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2002PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2002 data) {
+ apiInfoDataRep.deleteById(data.getCpflbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2002PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2002> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2002> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2002 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getCpflbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getCpflbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
new file mode 100644
index 0000000..b7f8430
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
@@ -0,0 +1,157 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2008PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2002PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2002> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2002> list = new ArrayList<>();
+ WhjlShareApi2002 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2002PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2002 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getCpflbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getCpflbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2002PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2002 data) {
+ apiInfoDataRep.deleteById(data.getCpflbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2002PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2002> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2002> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2002 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getCpflbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getCpflbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
new file mode 100644
index 0000000..1e6ee3e
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
@@ -0,0 +1,157 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-浜у搧鍒嗙被
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2009PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2002PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2002> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2002> list = new ArrayList<>();
+ WhjlShareApi2002 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2002PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2002 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getCpflbm());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getCpflbm());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2002PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2002 data) {
+ apiInfoDataRep.deleteById(data.getCpflbm());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2002PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2002> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2002> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2002 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getCpflbm());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2002);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getCpflbm());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java
index 649ce27..230ed04 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java
@@ -98,7 +98,7 @@
infoData.setId(data.getZjbzbm());
infoData.setKqdm(data.getKqdm());
infoData.setInteType(WhjlConstant.API_CATEGORY_20);
- infoData.setInteId(WhjlConstant.API_CODE_2001);
+ infoData.setInteId(WhjlConstant.API_CODE_2010);
infoData.setUpdateTime(new Date());
infoData.setDataId(data.getZjbzbm());
infoData.setData(JSON.toJSONString(data));
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java
new file mode 100644
index 0000000..5b00241
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java
@@ -0,0 +1,172 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.ShareApi2003Xs;
+import com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-璁¢噺鍗曚綅
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2011PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2011PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2011> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2011);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2011> list = new ArrayList<>();
+ WhjlShareApi2011 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2011.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+ /**
+ * 鑾峰彇璐ㄦ鏍囧噯閫傜敤鐨勫搧绉�
+ * whjlShareApi2011PR#listItemShareApi2011Xm
+ *
+ * @return
+ */
+ @DataProvider
+ public List<ShareApi2011Xm> listItemShareApi2011Xm(String code) {
+ return JSON.parseArray(code, ShareApi2011Xm.class);
+ }
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2011PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2011 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getZjxmbh());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2011);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getZjxmbh());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2011PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2011 data) {
+ apiInfoDataRep.deleteById(data.getZjxmbh());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2011PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2011> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2011> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2011);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2011.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2011 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ shareData.setZjymqxList(JSON.toJSONString(shareData.getZjymqx()));
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getZjxmbh());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2011);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getZjxmbh());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java
new file mode 100644
index 0000000..ba81395
--- /dev/null
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java
@@ -0,0 +1,169 @@
+package com.fzzy.otherview.whhpjl.pr;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.api.Constant;
+import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.dto.ResponseDto;
+import com.fzzy.api.entity.ApiConfs;
+import com.fzzy.api.entity.ApiInfoData;
+import com.fzzy.api.service.ApiCommonService;
+import com.fzzy.api.service.ApiPushManager;
+import com.fzzy.api.service.ApiRemoteService;
+import com.fzzy.api.view.repository.ApiInfoDataRep;
+import com.fzzy.otherview.whhpjl.WhjlConstant;
+import com.fzzy.otherview.whhpjl.dto.ShareApi2012Fa;
+import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 鍏变韩鎺ュ彛-璁¢噺鍗曚綅
+ *
+ * @author czt
+ */
+@Component
+public class WhjlShareApi2012PR {
+ @Autowired
+ private ApiCommonService apiCommonService;
+ @Autowired
+ private ApiPushManager apiPushManager;
+ @Autowired
+ private ApiInfoDataRep apiInfoDataRep;
+
+ /**
+ * 鑾峰彇鍒楄〃淇℃伅
+ * whjlShareApi2012PR#listData
+ *
+ * @return
+ */
+ @DataProvider
+ public List<WhjlShareApi2012> listData() {
+ List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2012);
+ if (null == result || result.isEmpty()) {
+ return null;
+ }
+ List<WhjlShareApi2012> list = new ArrayList<>();
+ WhjlShareApi2012 whjlShareApiData;
+ for (ApiInfoData infoData : result) {
+ whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2012.class);
+ whjlShareApiData.setKqdm(infoData.getKqdm());
+ whjlShareApiData.setCzbz(infoData.getCzbz());
+ whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
+ list.add(whjlShareApiData);
+ }
+ return list;
+ }
+
+ /**
+ * 鑾峰彇璐ㄦ鏍囧噯閫傜敤鐨勫搧绉�
+ * whjlShareApi2012PR#listItemShareApi2012Fa
+ *
+ * @return
+ */
+ @DataProvider
+ public List<ShareApi2012Fa> listItemShareApi2012Fa(String code) {
+ return JSON.parseArray(code, ShareApi2012Fa.class);
+ }
+
+ /**
+ * 鏇存柊鎴栦慨鏀�
+ * whjlShareApi2012PR#saveData
+ *
+ * @param data
+ * @return
+ */
+ @DataResolver
+ public void saveData(WhjlShareApi2012 data) {
+ ApiInfoData infoData = new ApiInfoData();
+ infoData.setId(data.getYjfayjhbh());
+ infoData.setKqdm(data.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2012);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(data.getYjfayjhbh());
+ infoData.setData(JSON.toJSONString(data));
+ infoData.setCzbz(data.getCzbz());
+ infoData.setRemarks("澶囨敞淇℃伅");
+
+ apiInfoDataRep.save(infoData);
+ }
+
+
+ /**
+ * 鍒犻櫎
+ * whjlShareApi2012PR#delData
+ *
+ * @param data
+ * @return
+ */
+ @Expose
+ public String delData(WhjlShareApi2012 data) {
+ apiInfoDataRep.deleteById(data.getYjfayjhbh());
+ return null;
+ }
+
+ /**
+ * 鏇存柊鏁版嵁
+ * whjlShareApi2012PR#pullData
+ *
+ * @param items
+ * @return
+ */
+ @Expose
+ public String pullData(List<WhjlShareApi2012> items) {
+
+
+ //鑾峰彇閰嶇疆淇℃伅
+ List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
+ if (null == apiConfs || apiConfs.isEmpty()) {
+ return "绯荤粺娌℃湁鑾峰彇鍒板簱鍖洪厤缃俊鎭紝鎵ц澶辫触";
+ }
+
+ ApiRemoteService apiService;
+ ApiParam param;
+ ResponseDto responseDto;
+ ApiInfoData infoData;
+ String result = "";
+ List<WhjlShareApi2012> list;
+ for (ApiConfs apiConf : apiConfs) {
+ apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
+ if (null == apiService) {
+ continue;
+ }
+ //灏佽鍙傛暟
+ param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2012);
+ responseDto = apiService.pullData(param, apiConf);
+
+ if (responseDto.getSuccess() == 0) {
+ list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2012.class);
+ if(null != list && list.size() > 0){
+ for (WhjlShareApi2012 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
+ shareData.setYjfajgList(JSON.toJSONString(shareData.getYjfajg()));
+ shareData.setCzbz(Constant.CZBZ_U);
+ infoData = new ApiInfoData();
+ infoData.setId(shareData.getYjfayjhbh());
+ infoData.setKqdm(apiConf.getKqdm());
+ infoData.setInteType(WhjlConstant.API_CATEGORY_20);
+ infoData.setInteId(WhjlConstant.API_CODE_2012);
+ infoData.setUpdateTime(new Date());
+ infoData.setDataId(shareData.getYjfayjhbh());
+ infoData.setData(JSON.toJSONString(shareData));
+ infoData.setCzbz(Constant.CZBZ_U);
+ apiInfoDataRep.save(infoData);
+ }
+ }
+ }
+ result += responseDto.toString();
+ return result;
+ }
+ return null;
+ }
+}
--
Gitblit v1.9.3