src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1109.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,370 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1109</Property> <PropertyDef name="dadm"> <Property/> <Property name="label">æ¡£æ¡ä»£ç </Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property/> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property/> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property/> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property/> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="cfbh"> <Property/> <Property name="label">仿¿ç¼å·</Property> </PropertyDef> <PropertyDef name="sscfmc"> <Property/> <Property name="label">仿¿åç§°</Property> </PropertyDef> <PropertyDef name="dalx"> <Property/> <Property name="label">æ¡£æ¡ç±»å</Property> </PropertyDef> <PropertyDef name="damc"> <Property/> <Property name="label">æ¡£æ¡åç§°</Property> </PropertyDef> <PropertyDef name="dawj"> <Property/> <Property name="label">æ¡£æ¡æä»¶</Property> </PropertyDef> <PropertyDef name="sfyx"> <Property/> <Property name="label">æ¯å¦ææ</Property> </PropertyDef> <PropertyDef name="bz"> <Property/> <Property name="label">夿³¨</Property> </PropertyDef> <PropertyDef name="bizId"> <Property/> <Property name="label">ä¸å¡ID</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property/> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property/> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1110PR#listData</Property> <Property name="pageSize">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="dadm"> <Property name="property">dadm</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="cfbh"> <Property name="property">cfbh</Property> </DataColumn> <DataColumn name="sscfmc"> <Property name="property">sscfmc</Property> </DataColumn> <DataColumn name="dalx"> <Property name="property">dalx</Property> </DataColumn> <DataColumn name="damc"> <Property name="property">damc</Property> </DataColumn> <DataColumn name="dawj"> <Property name="property">dawj</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </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="labelWidth">120</Property> <Property name="labelAlign">right</Property> <AutoFormElement> <Property name="name">dadm</Property> <Property name="property">dadm</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cfbh</Property> <Property name="property">cfbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sscfmc</Property> <Property name="property">sscfmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dalx</Property> <Property name="property">dalx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">damc</Property> <Property name="property">damc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">dawj</Property> <Property name="property">dawj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">czbz</Property> <Property name="property">czbz</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> </Dialog> <UpdateAction id="updateSave"> <Property name="dataResolver">whjlApi1110PR#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">whjlApi1110PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1110PR#pushData</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> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1110.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,437 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1110</Property> <PropertyDef name="whjlhb"> <Property></Property> <Property name="label">ç»´æ¤è®°å½ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property></Property> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property></Property> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property></Property> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property></Property> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="cfbh"> <Property></Property> <Property name="label">仿¿ç¼å·</Property> </PropertyDef> <PropertyDef name="sscfmc"> <Property></Property> <Property name="label">仿¿åç§°</Property> </PropertyDef> <PropertyDef name="jcrq"> <Property name="dataType">Date</Property> <Property name="label">æ£æ¥æ¥æ</Property> </PropertyDef> <PropertyDef name="jclx"> <Property></Property> <Property name="label">æ£æ¥ç±»å</Property> </PropertyDef> <PropertyDef name="jxlr"> <Property></Property> <Property name="label">æ£ä¿®å 容</Property> </PropertyDef> <PropertyDef name="shqk"> <Property></Property> <Property name="label">æå®³æ åµ</Property> </PropertyDef> <PropertyDef name="wxff"> <Property></Property> <Property name="label">ç»´ä¿®æ¹æ³</Property> </PropertyDef> <PropertyDef name="wxqk"> <Property></Property> <Property name="label">ç»´ä¿®æ åµ</Property> </PropertyDef> <PropertyDef name="jxr"> <Property></Property> <Property name="label">æ£ä¿®äºº</Property> </PropertyDef> <PropertyDef name="ysr"> <Property></Property> <Property name="label">éªæ¶äºº</Property> </PropertyDef> <PropertyDef name="wcrq"> <Property name="dataType">Date</Property> <Property name="label">å®ææ¥æ</Property> </PropertyDef> <PropertyDef name="bz"> <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> </PropertyDef> <PropertyDef name="czbz"> <Property></Property> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1108PR#listData</Property> <Property name="pageSize">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="whjlhb"> <Property name="property">whjlhb</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="cfbh"> <Property name="property">cfbh</Property> </DataColumn> <DataColumn name="sscfmc"> <Property name="property">sscfmc</Property> </DataColumn> <DataColumn name="jcrq"> <Property name="property">jcrq</Property> </DataColumn> <DataColumn name="jclx"> <Property name="property">jclx</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </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="labelWidth">120</Property> <Property name="labelAlign">right</Property> <AutoFormElement> <Property name="name">whjlhb</Property> <Property name="property">whjlhb</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cfbh</Property> <Property name="property">cfbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sscfmc</Property> <Property name="property">sscfmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jcrq</Property> <Property name="property">jcrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jclx</Property> <Property name="property">jclx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jxlr</Property> <Property name="property">jxlr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">shqk</Property> <Property name="property">shqk</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxff</Property> <Property name="property">wxff</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxqk</Property> <Property name="property">wxqk</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jxr</Property> <Property name="property">jxr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ysr</Property> <Property name="property">ysr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wcrq</Property> <Property name="property">wcrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <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/> </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">whjlApi1108PR#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">whjlApi1108PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1108PR#pushData</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> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1111.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,410 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1111</Property> <PropertyDef name="ssbfjlbh"> <Property/> <Property name="label">è®¾æ½æ¥åºè®°å½ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property/> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property/> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property/> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property/> <Property name="label">åä¾ç«ç¹åç§°</Property> </PropertyDef> <PropertyDef name="cfbh"> <Property/> <Property name="label">仿¿ç¼å·</Property> </PropertyDef> <PropertyDef name="sscfmc"> <Property/> <Property name="label">仿¿åç§°</Property> </PropertyDef> <PropertyDef name="sqrq"> <Property name="dataType">Date</Property> <Property name="label">ç³è¯·æ¥æ</Property> </PropertyDef> <PropertyDef name="bfyy"> <Property/> <Property name="label">æ¥åºåå </Property> </PropertyDef> <PropertyDef name="sqr"> <Property/> <Property name="label">ç³è¯·äºº</Property> </PropertyDef> <PropertyDef name="spr"> <Property/> <Property name="label">审æ¹äºº</Property> </PropertyDef> <PropertyDef name="sprq"> <Property name="dataType">Date</Property> <Property name="label">å®¡æ¹æ¥æ</Property> </PropertyDef> <PropertyDef name="spyj"> <Property/> <Property name="label">å®¡æ¹æè§</Property> </PropertyDef> <PropertyDef name="bz"> <Property/> <Property name="label">夿³¨</Property> </PropertyDef> <PropertyDef name="bizId"> <Property/> <Property name="label">ä¸å¡ID</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property/> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property/> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1111PR#listData</Property> <Property name="pageSize">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="ssbfjlbh"> <Property name="property">ssbfjlbh</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="cfbh"> <Property name="property">cfbh</Property> </DataColumn> <DataColumn name="sscfmc"> <Property name="property">sscfmc</Property> </DataColumn> <DataColumn name="sqrq"> <Property name="property">sqrq</Property> </DataColumn> <DataColumn name="bfyy"> <Property name="property">bfyy</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </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="labelWidth">120</Property> <Property name="labelAlign">right</Property> <AutoFormElement> <Property name="name">ssbfjlbh</Property> <Property name="property">ssbfjlbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">cfbh</Property> <Property name="property">cfbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sscfmc</Property> <Property name="property">sscfmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sqrq</Property> <Property name="property">sqrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bfyy</Property> <Property name="property">bfyy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sqr</Property> <Property name="property">sqr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">spr</Property> <Property name="property">spr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sprq</Property> <Property name="property">sprq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">spyj</Property> <Property name="property">spyj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <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/> </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">whjlApi1111PR#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">whjlApi1111PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1111PR#pushData</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> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1112.view.xml
@@ -185,12 +185,41 @@ <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1112PR#listData</Property> <Property name="pageSize">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> @@ -277,44 +306,48 @@ <RowSelectorColumn> <Property name="caption">ä¸ä¼ </Property> </RowSelectorColumn> <DataColumn name="sbmc"> <Property name="property">sbmc</Property> <Property name="align">center</Property> <DataColumn name="sbbh"> <Property name="property">sbbh</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="cfbh"> <Property name="property">cfbh</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sscfmc"> <Property name="property">sscfmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sbzt"> <Property name="property">sbzt</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="ggxh"> <Property name="property">ggxh</Property> </DataColumn> <DataColumn name="zzdw"> <Property name="property">zzdw</Property> </DataColumn> <DataColumn name="cgsj"> <Property name="property">cgsj</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="gl"> <Property name="property">gl</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="wxcc"> <Property name="property">wxcc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="zygn"> <Property name="property">zygn</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="sfyx"> <Property name="property">sfyx</Property> <Property name="align">center</Property> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </Container> <Dialog id="dialogMain"> <Property name="width">85%</Property> <Property name="closeable">false</Property> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1113.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,477 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1113</Property> <PropertyDef name="sbwhjlbh"> <Property/> </PropertyDef> <PropertyDef name="jlqybh"> <Property/> </PropertyDef> <PropertyDef name="jlqymc"> <Property/> </PropertyDef> <PropertyDef name="jgzdbh"> <Property/> </PropertyDef> <PropertyDef name="jgzdmc"> <Property/> </PropertyDef> <PropertyDef name="sbbh"> <Property/> </PropertyDef> <PropertyDef name="sbmc"> <Property/> </PropertyDef> <PropertyDef name="wbrq"> <Property name="dataType">Date</Property> </PropertyDef> <PropertyDef name="wbdw"> <Property/> </PropertyDef> <PropertyDef name="wbr"> <Property/> </PropertyDef> <PropertyDef name="lxdh"> <Property/> </PropertyDef> <PropertyDef name="whlr"> <Property/> </PropertyDef> <PropertyDef name="whjl"> <Property/> </PropertyDef> <PropertyDef name="fxwt"> <Property/> </PropertyDef> <PropertyDef name="jjcs"> <Property/> </PropertyDef> <PropertyDef name="xcwbrq"> <Property name="dataType">Date</Property> </PropertyDef> <PropertyDef name="ysr"> <Property/> </PropertyDef> <PropertyDef name="whjy"> <Property/> </PropertyDef> <PropertyDef name="whjlzp"> <Property/> </PropertyDef> <PropertyDef name="bz"> <Property/> </PropertyDef> <PropertyDef name="zpid"> <Property/> </PropertyDef> <PropertyDef name="zpmc"> <Property/> </PropertyDef> <PropertyDef name="zplj"> <Property/> </PropertyDef> <PropertyDef name="zpdx"> <Property/> </PropertyDef> <PropertyDef name="bizId"> <Property/> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">Date</Property> </PropertyDef> <PropertyDef name="czbz"> <Property/> </PropertyDef> <PropertyDef name="kqdm"> <Property/> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1108PR#listData</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="sbwhjlbh"> <Property name="property">sbwhjlbh</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="sbbh"> <Property name="property">sbbh</Property> </DataColumn> <DataColumn name="sbmc"> <Property name="property">sbmc</Property> </DataColumn> <DataColumn name="wbrq"> <Property name="property">wbrq</Property> </DataColumn> <DataColumn name="wbdw"> <Property name="property">wbdw</Property> </DataColumn> <DataColumn name="whlr"> <Property name="property">whlr</Property> </DataColumn> <DataColumn name="whjl"> <Property name="property">whjl</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </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="labelWidth">120</Property> <Property name="labelAlign">right</Property> <AutoFormElement> <Property name="name">sbwhjlbh</Property> <Property name="property">sbwhjlbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbbh</Property> <Property name="property">sbbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbmc</Property> <Property name="property">sbmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wbrq</Property> <Property name="property">wbrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wbdw</Property> <Property name="property">wbdw</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wbr</Property> <Property name="property">wbr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxdh</Property> <Property name="property">lxdh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">whlr</Property> <Property name="property">whlr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">whjl</Property> <Property name="property">whjl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">fxwt</Property> <Property name="property">fxwt</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jjcs</Property> <Property name="property">jjcs</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">xcwbrq</Property> <Property name="property">xcwbrq</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ysr</Property> <Property name="property">ysr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">whjy</Property> <Property name="property">whjy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">whjlzp</Property> <Property name="property">whjlzp</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpid</Property> <Property name="property">zpid</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpmc</Property> <Property name="property">zpmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zplj</Property> <Property name="property">zplj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpdx</Property> <Property name="property">zpdx</Property> <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/> </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">whjlApi1108PR#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">whjlApi1108PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1108PR#pushData</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> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1114.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,538 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1114</Property> <PropertyDef name="sbwxjlbh"> <Property/> <Property name="label">设å¤ç»´ä¿®è®°å½ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqybh"> <Property/> <Property name="label">åç²®ä¼ä¸ç¼å·</Property> </PropertyDef> <PropertyDef name="jlqymc"> <Property/> <Property name="label">åç²®ä¼ä¸åç§°</Property> </PropertyDef> <PropertyDef name="jgzdbh"> <Property/> <Property name="label">åä¾ç«ç¹ç¼å·</Property> </PropertyDef> <PropertyDef name="jgzdmc"> <Property/> </PropertyDef> <PropertyDef name="sbbh"> <Property/> <Property name="label">设å¤ç¼å·</Property> </PropertyDef> <PropertyDef name="sbmc"> <Property/> <Property name="label">设å¤åç§°</Property> </PropertyDef> <PropertyDef name="wxkssj"> <Property/> <Property name="label">å¼å§ç»´ä¿®æ¶é´</Property> </PropertyDef> <PropertyDef name="wxjssj"> <Property/> <Property name="label">ç»æç»´ä¿®æ¶é´</Property> </PropertyDef> <PropertyDef name="wxdw"> <Property/> <Property name="label">ç»´ä¿®åä½</Property> </PropertyDef> <PropertyDef name="lxr"> <Property/> <Property name="label">è系人</Property> </PropertyDef> <PropertyDef name="lxdh"> <Property/> <Property name="label">èç³»çµè¯</Property> </PropertyDef> <PropertyDef name="gzxx"> <Property/> <Property name="label">æ éç°è±¡</Property> </PropertyDef> <PropertyDef name="gzyy"> <Property/> <Property name="label">æ éåå </Property> </PropertyDef> <PropertyDef name="wxff"> <Property/> <Property name="label">ç»´ä¿®æ¹æ³</Property> </PropertyDef> <PropertyDef name="gxpjxx"> <Property/> <Property name="label">æ´æ°é ä»¶ä¿¡æ¯</Property> </PropertyDef> <PropertyDef name="wxhyxzt"> <Property/> <Property name="label">ç»´ä¿®åè¿è¡ç¶æ</Property> </PropertyDef> <PropertyDef name="sysj"> <Property name="dataType">int</Property> <Property name="label">è¯ç¨æ¶é´</Property> </PropertyDef> <PropertyDef name="wxfy"> <Property/> <Property name="label">维修费ç¨</Property> </PropertyDef> <PropertyDef name="ysr"> <Property/> <Property name="label">éªæ¶äºº</Property> </PropertyDef> <PropertyDef name="jl"> <Property/> <Property name="label">ç»è®º</Property> </PropertyDef> <PropertyDef name="wxjlzp"> <Property/> <Property name="label">ç»´æ¤è®°å½ç §ç</Property> </PropertyDef> <PropertyDef name="bz"> <Property/> <Property name="label">夿³¨</Property> </PropertyDef> <PropertyDef name="zpid"> <Property/> <Property name="label">ç §çid</Property> </PropertyDef> <PropertyDef name="zpmc"> <Property/> <Property name="label">ç §çåç§°</Property> </PropertyDef> <PropertyDef name="zplj"> <Property/> <Property name="label">ç §çè·¯å¾</Property> </PropertyDef> <PropertyDef name="zpdx"> <Property name="dataType">int</Property> <Property name="label">ç §ç大å°</Property> </PropertyDef> <PropertyDef name="bizId"> <Property/> <Property name="label">ä¸å¡ID</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">DateTime</Property> <Property name="label">æåæ´æ°æ¶é´</Property> </PropertyDef> <PropertyDef name="czbz"> <Property/> <Property name="label">æä½æ å¿</Property> </PropertyDef> <PropertyDef name="kqdm"> <Property/> <Property name="label">åºåºä»£ç </Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1114PR#listData</Property> <Property name="parameter">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</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");
 if(select && select.length > 0){
 view.get("#ajaxPush").set("parameter",select).execute(function(result){
 view.get("#dsMain").flushAsync();
 $notify(result);
 });
 }else{
 $alert("请å¾ééè¦ä¸æ¥çæ°æ®ï¼");
 }</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="sbwxjlbh"> <Property name="property">sbwxjlbh</Property> </DataColumn> <DataColumn name="jlqybh"> <Property name="property">jlqybh</Property> </DataColumn> <DataColumn name="jlqymc"> <Property name="property">jlqymc</Property> </DataColumn> <DataColumn name="jgzdbh"> <Property name="property">jgzdbh</Property> </DataColumn> <DataColumn name="jgzdmc"> <Property name="property">jgzdmc</Property> </DataColumn> <DataColumn name="sbbh"> <Property name="property">sbbh</Property> </DataColumn> <DataColumn name="sbmc"> <Property name="property">sbmc</Property> </DataColumn> <DataColumn name="wxkssj"> <Property name="property">wxkssj</Property> </DataColumn> <DataColumn name="wxjssj"> <Property name="property">wxjssj</Property> </DataColumn> <DataColumn name="wxdw"> <Property name="property">wxdw</Property> </DataColumn> <DataColumn name="lxr"> <Property name="property">lxr</Property> </DataColumn> <DataColumn name="lxdh"> <Property name="property">lxdh</Property> </DataColumn> <DataColumn name="gzxx"> <Property name="property">gzxx</Property> </DataColumn> <DataColumn name="czbz"> <Property name="property">czbz</Property> </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </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="labelWidth">120</Property> <Property name="labelAlign">right</Property> <AutoFormElement> <Property name="name">sbwxjlbh</Property> <Property name="property">sbwxjlbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqybh</Property> <Property name="property">jlqybh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jlqymc</Property> <Property name="property">jlqymc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdbh</Property> <Property name="property">jgzdbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jgzdmc</Property> <Property name="property">jgzdmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbbh</Property> <Property name="property">sbbh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sbmc</Property> <Property name="property">sbmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxkssj</Property> <Property name="property">wxkssj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxjssj</Property> <Property name="property">wxjssj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxdw</Property> <Property name="property">wxdw</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxr</Property> <Property name="property">lxr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">lxdh</Property> <Property name="property">lxdh</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gzxx</Property> <Property name="property">gzxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gzyy</Property> <Property name="property">gzyy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxff</Property> <Property name="property">wxff</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">gxpjxx</Property> <Property name="property">gxpjxx</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxhyxzt</Property> <Property name="property">wxhyxzt</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">sysj</Property> <Property name="property">sysj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxfy</Property> <Property name="property">wxfy</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">ysr</Property> <Property name="property">ysr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">jl</Property> <Property name="property">jl</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">wxjlzp</Property> <Property name="property">wxjlzp</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">bz</Property> <Property name="property">bz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpid</Property> <Property name="property">zpid</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpmc</Property> <Property name="property">zpmc</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zplj</Property> <Property name="property">zplj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zpdx</Property> <Property name="property">zpdx</Property> <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/> </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">whjlApi1114PR#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">whjlApi1114PR#delData</Property> </AjaxAction> <AjaxAction id="ajaxPush"> <Property name="service">whjlApi1114PR#pushData</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> src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1201.view.xml
@@ -219,12 +219,41 @@ <Property name="label">夿³¨è¯´æ</Property> </PropertyDef> </DataType> <DataType name="dtParam"> <Property name="creationType">com.fzzy.api.data.ApiParam</Property> <PropertyDef name="kqdm"> <Property></Property> <Property name="label">æå±åºåº</Property> </PropertyDef> <PropertyDef name="start"> <Property name="dataType">Date</Property> <Property name="label">å¼å§æ¶é´</Property> </PropertyDef> <PropertyDef name="end"> <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> </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">whjlApi1201PR#listData</Property> <Property name="pageSize">20</Property> </DataSet> <DataSet id="dsQuery"> <ClientEvent name="onReady">self.insert();</ClientEvent> <Property name="dataType">dtParam</Property> </DataSet> <Container layout="regionPadding:10" layoutConstraint="top"> <Property name="exClassName">bg-color</Property> @@ -381,6 +410,13 @@ </DataColumn> </DataGrid> </Container> <Container layoutConstraint="bottom"> <Property name="exClassName">bg-color</Property> <DataPilot layoutConstraint="right"> <Property name="dataSet">dsMain</Property> <Property name="itemCodes">pageSize,pages</Property> </DataPilot> </Container> <Dialog id="dialogMain"> <Property name="width">85%</Property> <Property name="closeable">false</Property> src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1109.java
@@ -1,9 +1,11 @@ package com.fzzy.otherview.whhpjl.dto; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; /** * ä»å¨è®¾æ½è®¾å¤-ä»å¨è®¾æ½çµåæ¡£æ¡ @@ -32,6 +34,15 @@ private String sfyx; //æ¯å¦ææ private String bz; //夿³¨ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1110.java
@@ -41,6 +41,14 @@ private Date wcrq; //å®ææ¥æ private String bz; //夿³¨ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1111.java
@@ -38,4 +38,14 @@ private String spyj; //å®¡æ¹æè§ private String bz; //夿³¨ //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1113.java
@@ -48,4 +48,14 @@ private String zplj; //ç §çè·¯å¾ private String zpdx; //ç §çå¤§å° //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1114.java
@@ -5,6 +5,7 @@ import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.Date; /** * ä»å¨è®¾æ½è®¾å¤-ä»å¨è®¾å¤ç»´ä¿®è®°å½ @@ -49,4 +50,14 @@ private String zpmc; //ç §çåç§° private String zplj; //ç §çè·¯å¾ private int zpdx; //ç §çå¤§å° //åç¬å¢å ï¼ä¸è¿è¡ä¸ä¼ @JSONField(serialize = false) private String bizId; //ä¸å¡ID @JSONField(serialize = false) private Date updateTime; //æåæ´æ°æ¶é´ @JSONField(serialize = false) private String czbz; //æä½æ å¿ @JSONField(serialize = false) private String kqdm; //åºåºä»£ç } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1109PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,199 @@ 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.bstek.dorado.data.provider.Page; 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.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1109; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author: YYC * @Description:ä»å¨è®¾æ½çµåæ¡£æ¡ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1109PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1109PR#listData * * @return */ @DataProvider public void listData(Page<WhjlApi1109> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1109); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1109> list = new ArrayList<>(); WhjlApi1109 whjlApi1109; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1109 = JSONObject.parseObject(infoData.getData(), WhjlApi1109.class); whjlApi1109.setKqdm(infoData.getKqdm()); whjlApi1109.setCzbz(infoData.getCzbz()); whjlApi1109.setUpdateTime(infoData.getUpdateTime()); whjlApi1109.setBizId(infoData.getDataId()); list.add(whjlApi1109); } page.setEntities(list); } /** * æ´æ°æä¿®æ¹ * WhjlApi1109PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1109 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1109); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1109PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1109 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1109PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1109> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1109); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1109 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1109); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1110PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,201 @@ 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.bstek.dorado.data.provider.Page; 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.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1109; import com.fzzy.otherview.whhpjl.dto.WhjlApi1110; import com.fzzy.push.gd2022.ApiCodeConstant; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author: YYC * @Description:ä»å¨è®¾æ½ç»´æ¤è®°å½ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1110PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1110PR#listData * * @return */ @DataProvider public void listData(Page<WhjlApi1110> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1110); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1110> list = new ArrayList<>(); WhjlApi1110 whjlApi1110; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1110 = JSONObject.parseObject(infoData.getData(), WhjlApi1110.class); whjlApi1110.setKqdm(infoData.getKqdm()); whjlApi1110.setCzbz(infoData.getCzbz()); whjlApi1110.setUpdateTime(infoData.getUpdateTime()); whjlApi1110.setBizId(infoData.getDataId()); list.add(whjlApi1110); } page.setEntities(list); } /** * æ´æ°æä¿®æ¹ * WhjlApi1110PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1110 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1110); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1110PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1110 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1110PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1110> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1110); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1110 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1110); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1111PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,200 @@ 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.bstek.dorado.data.provider.Page; 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.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1111; import com.fzzy.push.gd2022.ApiCodeConstant; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author: YYC * @Description:ä»å¨è®¾å¤æ¥åºè®°å½ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1111PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1111PR#listData * * @return */ @DataProvider public void listData(Page<WhjlApi1111> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1111); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1111> list = new ArrayList<>(); WhjlApi1111 whjlApi1111; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1111 = JSONObject.parseObject(infoData.getData(), WhjlApi1111.class); whjlApi1111.setKqdm(infoData.getKqdm()); whjlApi1111.setCzbz(infoData.getCzbz()); whjlApi1111.setUpdateTime(infoData.getUpdateTime()); whjlApi1111.setBizId(infoData.getDataId()); list.add(whjlApi1111); } page.setEntities(list); } /** * æ´æ°æä¿®æ¹ * WhjlApi1111PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1111 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1111); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1111PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1111 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1111PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1111> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1111); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1111 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1111); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1112PR.java
@@ -5,6 +5,7 @@ import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.bstek.dorado.data.provider.Page; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; @@ -13,12 +14,23 @@ import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1112; import com.fzzy.otherview.whhpjl.dto.WhjlApi1112; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -46,22 +58,55 @@ * @return */ @DataProvider public List<WhjlApi1112> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1111); if (null == result || result.isEmpty()) { return null; public void listData(Page<WhjlApi1112> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1112); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1112> list = new ArrayList<>(); WhjlApi1112 whjlApi1111; for (ApiInfoData infoData : result) { whjlApi1111 = JSONObject.parseObject(infoData.getData(), WhjlApi1112.class); whjlApi1111.setKqdm(infoData.getKqdm()); whjlApi1111.setCzbz(infoData.getCzbz()); whjlApi1111.setUpdateTime(infoData.getUpdateTime()); whjlApi1111.setBizId(infoData.getDataId()); list.add(whjlApi1111); WhjlApi1112 whjlApi1112; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1112 = JSONObject.parseObject(infoData.getData(), WhjlApi1112.class); whjlApi1112.setKqdm(infoData.getKqdm()); whjlApi1112.setCzbz(infoData.getCzbz()); whjlApi1112.setUpdateTime(infoData.getUpdateTime()); whjlApi1112.setBizId(infoData.getDataId()); list.add(whjlApi1112); } return list; page.setEntities(list); } /** src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1113PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,200 @@ 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.bstek.dorado.data.provider.Page; 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.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1113; import com.fzzy.push.gd2022.ApiCodeConstant; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author: YYC * @Description:ä»å¨è®¾å¤ç»´æ¤è®°å½ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1113PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1113PR#listData * * @return */ @DataProvider public void listData(Page<WhjlApi1113> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1113); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1113> list = new ArrayList<>(); WhjlApi1113 whjlApi1113; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1113 = JSONObject.parseObject(infoData.getData(), WhjlApi1113.class); whjlApi1113.setKqdm(infoData.getKqdm()); whjlApi1113.setCzbz(infoData.getCzbz()); whjlApi1113.setUpdateTime(infoData.getUpdateTime()); whjlApi1113.setBizId(infoData.getDataId()); list.add(whjlApi1113); } page.setEntities(list); } /** * æ´æ°æä¿®æ¹ * WhjlApi1113PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1113 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1113); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1113PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1113 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1113PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1113> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1113); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1113 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1113); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1114PR.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,199 @@ 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.bstek.dorado.data.provider.Page; 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.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1114; import com.fzzy.push.gd2022.ApiCodeConstant; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * @Author: YYC * @Description:ä»å¨è®¾å¤ç»´ä¿®è®°å½ * @DateTime: 2023-10-25 14:13 **/ @Component public class WhjlApi1114PR { @Autowired private ApiCommonService apiCommonService; @Autowired private ApiPushManager apiPushManager; @Autowired private ApiInfoDataRep apiInfoDataRep; /** * è·ååè¡¨ä¿¡æ¯ * WhjlApi1114PR#listData * * @return */ @DataProvider public void listData(Page<WhjlApi1114> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1114); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1114> list = new ArrayList<>(); WhjlApi1114 whjlApi1114; for (ApiInfoData infoData : japPage.getContent()) { whjlApi1114 = JSONObject.parseObject(infoData.getData(), WhjlApi1114.class); whjlApi1114.setKqdm(infoData.getKqdm()); whjlApi1114.setCzbz(infoData.getCzbz()); whjlApi1114.setUpdateTime(infoData.getUpdateTime()); whjlApi1114.setBizId(infoData.getDataId()); list.add(whjlApi1114); } page.setEntities(list); } /** * æ´æ°æä¿®æ¹ * WhjlApi1114PR#saveData * * @param data * @return */ @DataResolver public void saveData(WhjlApi1114 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1114); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); infoData.setCzbz(data.getCzbz()); infoData.setRemarks("夿³¨ä¿¡æ¯"); apiInfoDataRep.save(infoData); } /** * å é¤ * WhjlApi1114PR#delData * * @param data * @return */ @Expose public String delData(WhjlApi1114 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } /** * ä¸ä¼ * WhjlApi1114PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1114> items) { String result = ""; String kqdm = items.get(0).getKqdm(); ApiConfs apiConf = apiCommonService.getConf(kqdm); if (null == apiConf) { return "ç³»ç»æ²¡æè·åå°å½ååºåºé 置信æ¯ï¼æ§è¡å¤±è´¥"; } //å°è£ åæ° ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1114); //è·åå®ç°æ¥å£ ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); if (null == apiService) { return "ç³»ç»æ²¡æå½åæ¨éåè®®é ç½®ï¼æ§è¡å¤±è´¥"; } ResponseDto responseDto; ApiInfoData infoData; for (WhjlApi1114 data : items) { responseDto = apiService.pushData(param, apiConf, items); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_12); infoData.setInteId(WhjlConstant.API_CODE_1114); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); data.setCzbz(Constant.CZBZ_U); infoData.setCzbz(Constant.CZBZ_U); infoData.setData(JSON.toJSONString(data)); apiInfoDataRep.save(infoData); } } result += responseDto.toString(); } return result; } } src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1201PR.java
@@ -5,6 +5,7 @@ import com.bstek.dorado.annotation.DataProvider; import com.bstek.dorado.annotation.DataResolver; import com.bstek.dorado.annotation.Expose; import com.bstek.dorado.data.provider.Page; import com.fzzy.api.Constant; import com.fzzy.api.data.ApiParam; import com.fzzy.api.dto.ResponseDto; @@ -13,15 +14,27 @@ import com.fzzy.api.service.ApiCommonService; import com.fzzy.api.service.ApiPushManager; import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.utils.ContextUtil; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; import com.fzzy.otherview.whhpjl.dto.WhjlApi1201; import com.fzzy.push.gd2022.ApiCodeConstant; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author: YYC @@ -45,14 +58,46 @@ * @return */ @DataProvider public List<WhjlApi1201> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1201); if (null == result || result.isEmpty()) { return null; public void listData(Page<WhjlApi1201> page, ApiParam param) { Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime"); Specification specification = new Specification<ApiInfoData>() { private static final long serialVersionUID = 1L; @Override public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) { List<Predicate> predicates = new ArrayList<>(); //ææçæè¨ Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1201); predicates.add(predicate); if (null != param) { if (StringUtils.isNotBlank(param.getKqdm())) { Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm()); predicates.add(predicate1); } if (StringUtils.isNotBlank(param.getCzbz())) { Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz()); predicates.add(predicate2); } if (null != param.getStart()) { Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } } return criteriaBuilder.and(predicates.toArray(new Predicate[0])); } }; org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); List<WhjlApi1201> list = new ArrayList<>(); WhjlApi1201 whjlApi1201; for (ApiInfoData infoData : result) { for (ApiInfoData infoData : japPage.getContent()) { whjlApi1201 = JSONObject.parseObject(infoData.getData(), WhjlApi1201.class); whjlApi1201.setKqdm(infoData.getKqdm()); whjlApi1201.setCzbz(infoData.getCzbz()); @@ -60,7 +105,8 @@ whjlApi1201.setBizId(infoData.getDataId()); list.add(whjlApi1201); } return list; page.setEntities(list); } /**