From 480bbc725a3f06eb4893d18c9befbaea6d364a56 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Tue, 4 Aug 2020 10:49:33 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=9F=A5=E8=AF=A2=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../change/initiate/service/impl/ApplyChangeServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java index 0fdf6f602..79390c3ef 100644 --- a/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java +++ b/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java @@ -61,7 +61,8 @@ public class ApplyChangeServiceImpl implements ApplyChangeService{ String listSql = "SELECT lci.contract_no contract_no,dis.distributorTime distime,cus.distributorTime custime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' ORDER BY dis.distributorTime DESC "; List> dataList = DataOperatorUtil.getDataBySql(listSql); body.put("listdatas", dataList); - String averageSql = "select * from ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND LEFT(lpi.INPUTTIME,7)<='"+month+"' AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) DESC LIMIT 0,6 ) t ORDER BY yearmonth ASC"; + //String averageSql = "select * from ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND LEFT(lpi.INPUTTIME,7)<='"+month+"' AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) DESC LIMIT 0,6 ) t ORDER BY yearmonth ASC"; + String averageSql ="SELECT VED.xtime AS yearmonth,IFNULL(t.averagedistim,0) AS averagedistim,IFNULL(t.averagecustime,0) AS averagecustime FROM (SELECT LEFT(EVERY_DAY,7) xtime FROM VI_EVERY_DAY GROUP BY LEFT(EVERY_DAY,7) ORDER BY LEFT(EVERY_DAY,7) DESC LIMIT 0,6) VED LEFT JOIN ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND LEFT(lpi.INPUTTIME,7)<='"+month+"' AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) ) t ON VED.xtime=LEFT(t.yearmonth,7) ORDER BY VED.xtime "; List> averageSqldataList = DataOperatorUtil.getDataBySql(averageSql); body.put("averagedatas", averageSqldataList); From 71fcbebd0a4ffe3c7a193e9ee06f8c312b53c8a7 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Tue, 4 Aug 2020 11:34:43 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9app=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ApplyChangeServiceImpl.java | 2 +- src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql | 86 ++++++++++--------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java index 79390c3ef..3a996a762 100644 --- a/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java +++ b/src_app_fresh/apx/com/amarsoft/als/user/change/initiate/service/impl/ApplyChangeServiceImpl.java @@ -62,7 +62,7 @@ public class ApplyChangeServiceImpl implements ApplyChangeService{ List> dataList = DataOperatorUtil.getDataBySql(listSql); body.put("listdatas", dataList); //String averageSql = "select * from ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND LEFT(lpi.INPUTTIME,7)<='"+month+"' AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) DESC LIMIT 0,6 ) t ORDER BY yearmonth ASC"; - String averageSql ="SELECT VED.xtime AS yearmonth,IFNULL(t.averagedistim,0) AS averagedistim,IFNULL(t.averagecustime,0) AS averagecustime FROM (SELECT LEFT(EVERY_DAY,7) xtime FROM VI_EVERY_DAY GROUP BY LEFT(EVERY_DAY,7) ORDER BY LEFT(EVERY_DAY,7) DESC LIMIT 0,6) VED LEFT JOIN ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND LEFT(lpi.INPUTTIME,7)<='"+month+"' AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) ) t ON VED.xtime=LEFT(t.yearmonth,7) ORDER BY VED.xtime "; + String averageSql ="SELECT VED.xtime AS yearmonth,IFNULL(t.averagedistim,0) AS averagedistim,IFNULL(t.averagecustime,0) AS averagecustime FROM (SELECT LEFT(EVERY_DAY,7) xtime FROM VI_EVERY_DAY WHERE LEFT(EVERY_DAY,7)<='"+month+"' GROUP BY LEFT(EVERY_DAY,7) ORDER BY LEFT(EVERY_DAY,7) DESC LIMIT 0,6) VED LEFT JOIN ( SELECT LEFT(lpi.INPUTTIME,7) yearmonth,SUM(dis.distributorTime)/COUNT(lpi.INPUTTIME) averagedistim,SUM(cus.distributorTime)/COUNT(lpi.INPUTTIME) averagecustime FROM lb_contract_info lci LEFT JOIN lb_project_info lpi ON lci.project_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND (ft.phaseno='0010' OR ft.phaseno='0020')) OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno='0010'))GROUP BY fbo.proj_id ) dis ON dis.proj_id=lpi.id LEFT JOIN (SELECT fbo.proj_id,SUM(TIMESTAMPDIFF(SECOND,ft.begintime,ft.endtime)) distributorTime FROM flow_bussiness_object fbo LEFT JOIN flow_task ft ON fbo.flow_unid=ft.objectno WHERE ((fbo.flow_name IN ('业务申请流程','业务变更流程') AND ft.phaseno<>'0010' AND ft.phaseno<>'0020' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000') OR (fbo.flow_name IN ('合同制作流程','合同变更流程','付款申请(汽车)') AND ft.phaseno<>'0010' AND ft.phaseno<>'1000' AND ft.phaseno<>'8000'))GROUP BY fbo.proj_id) cus ON cus.proj_id=lpi.id WHERE lci.CONTRACT_STATUS>=31 AND lci.distributor_id='"+disList.get(0).get("distributor_no")+"' GROUP BY LEFT(lpi.INPUTTIME,7) ORDER BY LEFT(lpi.INPUTTIME,7) ) t ON VED.xtime=LEFT(t.yearmonth,7) ORDER BY VED.xtime "; List> averageSqldataList = DataOperatorUtil.getDataBySql(averageSql); body.put("averagedatas", averageSqldataList); diff --git a/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql b/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql index 7bd35e663..ea3fef866 100644 --- a/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql +++ b/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql @@ -268,13 +268,14 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APPLBContractTemplateList','1170','1170','1','','''''','operation','String','','合同文件操作','','1','Text','1','1','','','',null,'0','0','0','0','0',0,'','','','SYS_Designer','2020/06/13 10:50:17','SYS_Designer','2020/06/13 10:50:17','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APPLBContractTemplateList','1180','1180','1','','com.tenwa.lease.flow.contract.contractapproval.ContractTemplateCache.getContractTemplateID(ID)','fileid','String','','合同文件ID','','1','Text','1','1','','','',null,'0','0','0','0','0',0,'','','','SYS_Designer','2020/06/13 10:50:17','SYS_Designer','2020/06/13 10:50:17','0','','0','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APPLBContractTemplateList','1190','1190','1','attr','LIBRARY_ID','LIBRARY_ID','String','','LIBRARY_ID','','1','Text','1','1','','','',null,'0','0','0','1','0',0,'','','','SYS_Designer','2020/06/13 10:50:17','SYS_Designer','2020/06/13 10:50:17','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APPLBContractTemplateList','1200','1200','1','attr','FILESIZE','FILESIZE','String','','文件大小','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2020/07/02 19:35:39','SYS_Designer','2020/07/02 19:35:39','','','1','','','',''); insert into `APP_BUSINESS_GROUP` (`GROUP_CODE`, `GROUP_NAME`, `ISLIST`, `GROUP_POSITION`, `GROUP_ENABLE`) values('APPLBContractTemplateList','APP合同列表','Y','400000','Y'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1000','1000','ID','标识','ID','N','N','1000'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1010','1010','ONE_CLASSIFY','一级分类','ONE_CLASSIFY','N','N','1010'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1020','1020','TWO_CLASSIFY','二级分类','TWO_CLASSIFY','N','N','1020'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1030','1030','THREE_CLASSIFY','三级分类','THREE_CLASSIFY','N','N','1030'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1040','1040','DOC_NAME','资料名称','DOC_NAME','Y','Y','1040'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1030','1030','THREE_CLASSIFY','三级分类','THREE_CLASSIFY','N','Y','1030'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1040','1040','DOC_NAME','资料名称','DOC_NAME','N','N','1040'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1050','1050','CONTRACT_NUMBER','合同编号','CONTRACT_NUMBER','N','N','1050'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1060','1060','CONTRACT_SIGN','签约主体','CONTRACT_SIGN','N','N','1060'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1070','1070','CONTRACT_EQUIP','租赁物','CONTRACT_EQUIP','N','N','1070'); @@ -286,10 +287,11 @@ insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1130','1130','UPDATEUSERID','更新人','UPDATEUSERID','N','N','1130'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1140','1140','UPDATEORGID','更新部门','UPDATEORGID','N','N','1140'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1150','1150','UPDATETIME','更新时间','UPDATETIME','N','N','1150'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1160','1160','filename','合同文件','filename','N','N','1160'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1160','1160','filename','文件名称','filename','Y','Y','1160'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1170','1170','operation','合同文件操作','operation','N','N','1170'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1180','1180','fileid','合同文件ID','fileid','N','N','1180'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1180','1180','fileid','合同文件ID','fileid','Y','N','1180'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1190','1190','LIBRARY_ID','LIBRARY_ID','LIBRARY_ID','N','N','1190'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('APPLBContractTemplateList','APPLBContractTemplateList','1200','1200','FILESIZE','文件大小','FILESIZE','Y','N','1200'); insert into `PRD_NODEINFO_LIBRARY_APP` (`ID`, `APP_BUSINESS_GROUP_CODE`, `INITIAL_CONDITION`, `AUXILIARY_CONDITION`, `INTERFACE_DESC`, `ATTRIBUTE1`, `ATTRIBUTE2`, `ATTRIBUTE3`, `ATTRIBUTE4`, `ATTRIBUTE5`, `ATTRIBUTE6`, `ATTRIBUTE7`, `ATTRIBUTE8`, `ATTRIBUTE9`, `REBUILD_JBO_CLASS`, `FATHER_ID`, `DISPLAY_MANAGE_CLASS`, `SAVE_MANAGE_CLASS`, `DELETE_MANAGE_CLASS`, `ENABLE_CONDITION`, `OPEN_CONDITION`, `GROUP_NAME`) values('202006131101','APPLBContractTemplateList','FlowUnid','','DefaultDoManage','','','','','','','','','',NULL,'','','',NULL,'N','',NULL); @@ -309,9 +311,9 @@ INSERT INTO SCENARIO_MODEL (scenarioid,modelid,sortno,modelname,modeldescribe,mo -- 添加app方案测算模板 Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('APP_PROGRAMME','app方法测算',null,'30',null,'1','1','default','jbo.app.PRD_NODEINFO_MIDDLE_APP','O','1=2','','','',null,'SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/06/30 17:12:41','','1',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0010','0010','1','','v.''''','productid','String','','产品id','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/07/20 17:10:05','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0020','0020','1','','v.''''','productname','String','','产品名称','','1','Text','1','1','','','','100','1','0','0','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/06/30 17:14:50','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0030','0030','1','','v.''''','cleanleasemoney','Number','','融资金额','','1','Text','1','1','','','','100','1','0','0','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/06/30 17:18:37','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0040','0040','1','','v.''''','incomenumber','String','','期限','','1','Select','1','1','Code','INCOME_NUMBER','','1','1','0','0','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/06/30 17:18:54','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0020','0020','1','','v.''''','productname','String','','产品名称','','1','Text','1','1','','','','100','1','0','1','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/07/16 14:50:06','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0030','0030','1','','v.''''','cleanleasemoney','Number','','融资金额','','1','Text','1','1','','','','100','1','0','1','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/07/16 14:50:06','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('APP_PROGRAMME','0040','0040','1','','v.''''','incomenumber','String','','期限','','1','Select','1','1','Code','INCOME_NUMBER','','1','1','0','1','1','0',0,'','','','SYS_Designer','2020/06/30 16:33:20','SYS_Designer','2020/07/16 14:50:06','0','','1','','','',''); insert into `APP_BUSINESS_GROUP` (`GROUP_CODE`, `GROUP_NAME`, `ISLIST`, `GROUP_POSITION`, `GROUP_ENABLE`) values('APP_PROGRAMME','app方法测算','N','400000','Y'); insert into `PRD_NODEINFO_LIBRARY_APP` (`ID`, `APP_BUSINESS_GROUP_CODE`, `INITIAL_CONDITION`, `AUXILIARY_CONDITION`, `INTERFACE_DESC`, `ATTRIBUTE1`, `ATTRIBUTE2`, `ATTRIBUTE3`, `ATTRIBUTE4`, `ATTRIBUTE5`, `ATTRIBUTE6`, `ATTRIBUTE7`, `ATTRIBUTE8`, `ATTRIBUTE9`, `REBUILD_JBO_CLASS`, `FATHER_ID`, `DISPLAY_MANAGE_CLASS`, `SAVE_MANAGE_CLASS`, `DELETE_MANAGE_CLASS`, `ENABLE_CONDITION`, `OPEN_CONDITION`, `GROUP_NAME`) values('202006300001','APP_PROGRAMME','flowunid','','DefaultDoManage','','','','','','','','','',NULL,'','','',NULL,'N','',NULL); @@ -405,6 +407,7 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigList','0120','0120','1','O','updateuserid','updateuserid','String','','登记人','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:44:00','SYS_Designer','2020/07/04 10:44:14','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigList','0130','0130','1','O','updateorgid','updateorgid','String','','登记部门','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:44:00','SYS_Designer','2020/07/04 10:44:14','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigList','0140','0140','1','O','updatetime','updatetime','String','','登记时间','','1','Text','1','1','','','','100','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:44:00','SYS_Designer','2020/07/04 10:44:14','','','1','','','',''); + -- 添加预审批详情页面模板 Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BeforeApplicationConfigInfo','预审批规则配置详情',null,'30',null,'1','2','default','jbo.com.tenwa.entity.comm.serialutil.LB_BEFORE_APPLICATION_CONFIG','O','id=:id','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2020/07/04 10:47:39','SYS_Designer','2020/07/04 11:14:25','','0',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BeforeApplicationConfigInfo','0010','0010','1','O','id','id','String','','唯一标识','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/04 10:47:39','SYS_Designer','2020/07/04 11:14:25','','','1','','','',''); @@ -473,18 +476,19 @@ Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcou Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppMenuInfoList','0010','0010','1','O','ROLENAME','ROLENAME','String','','角色名称','','1','Text','1','1','','','','80','1','0','0','1','0',0,'','','','SYS_Designer','2020/07/14 16:01:04','SYS_Designer','2020/07/14 17:02:23','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppMenuInfoList','0020','0020','1','','com.amarsoft.awe.dw.ui.list.AppMeunUtil.getAppMeun(ROLEID)','MEUN','String','','菜单名称','','1','Text','1','1','','','style={width:400px}','80','1','0','0','1','0',0,'','','','SYS_Designer','2020/07/14 16:01:04','SYS_Designer','2020/07/14 17:26:50','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppMenuInfoList','0030','0030','1','O','ROLEID','ROLEID','String','','角色编号','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/14 16:04:27','SYS_Designer','2020/07/14 17:02:23','0','','1','','','',''); + -- 添加app配置菜单 Insert Into AWE_MENU_INFO (menuid,menuname,displayname,sortno,url,urlparam,target,style,isinuse,remark,inputorgid,inputuserid,inputtime,updateorgid,updateuserid,updatetime,accesstype,icon,appicon) Values ('9900600060','app菜单配置','app菜单配置','9900600060','/AppConfig/MenuManage/AppMenuInfoList.jsp','','_self','','1','',null,'SYS_Designer','2020/07/14 14:11:20',null,'SYS_Designer','2020/07/14 14:11:20','10','',''); Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','9900600060'); -- 添加app预审批列表页面 -insert into `PRD_NODEINFO_LIBRARY_APP` (`ID`, `APP_BUSINESS_GROUP_CODE`, `INITIAL_CONDITION`, `AUXILIARY_CONDITION`, `INTERFACE_DESC`, `ATTRIBUTE1`, `ATTRIBUTE2`, `ATTRIBUTE3`, `ATTRIBUTE4`, `ATTRIBUTE5`, `ATTRIBUTE6`, `ATTRIBUTE7`, `ATTRIBUTE8`, `ATTRIBUTE9`, `REBUILD_JBO_CLASS`, `FATHER_ID`, `DISPLAY_MANAGE_CLASS`, `SAVE_MANAGE_CLASS`, `DELETE_MANAGE_CLASS`, `ENABLE_CONDITION`, `OPEN_CONDITION`, `GROUP_NAME`) values('202007180001','AppLbBeforeApplicationList','','','DefaultDoManage','','','','','','','','','',NULL,'','','',NULL,'N','',NULL); +insert into `PRD_NODEINFO_LIBRARY_APP` (`ID`, `APP_BUSINESS_GROUP_CODE`, `INITIAL_CONDITION`, `AUXILIARY_CONDITION`, `INTERFACE_DESC`, `ATTRIBUTE1`, `ATTRIBUTE2`, `ATTRIBUTE3`, `ATTRIBUTE4`, `ATTRIBUTE5`, `ATTRIBUTE6`, `ATTRIBUTE7`, `ATTRIBUTE8`, `ATTRIBUTE9`, `REBUILD_JBO_CLASS`, `FATHER_ID`, `DISPLAY_MANAGE_CLASS`, `SAVE_MANAGE_CLASS`, `DELETE_MANAGE_CLASS`, `ENABLE_CONDITION`, `OPEN_CONDITION`, `GROUP_NAME`) values('202007180001','AppLbBeforeApplicationList','userid','','DefaultDoManage','','','','','','','','','',NULL,'','','',NULL,'N','',NULL); insert into `APP_BUSINESS_GROUP` (`GROUP_CODE`, `GROUP_NAME`, `ISLIST`, `GROUP_POSITION`, `GROUP_ENABLE`) values('AppLbBeforeApplicationList','App预审批表列表','Y','400000','Y'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1000','1000','id','唯一标识','id','Y','Y','1000'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1010','1010','fullname','承租人姓名','fullname','Y','Y','1010'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1020','1020','fullcertid','承租人身份证号','fullcertid','Y','Y','1020'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1030','1030','fullphone','承租人电话号','fullphone','Y','Y','1030'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1040','1040','fullsex','承租人性别:1标识男。2标识女','fullsex','Y','Y','1040'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1040','1040','fullsex','承租人性别','fullsex','Y','Y','1040'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1050','1050','brand','车品牌','brand','Y','Y','1050'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1060','1060','model','车型','model','Y','Y','1060'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1070','1070','modelId','车型ID','modelId','Y','Y','1070'); @@ -502,27 +506,27 @@ insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationList','AppLbBeforeApplicationList','1210','1210','carseriesid','车系id','carseriesid','Y','Y','1210'); -- 添加app预审批列表模板 -Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('AppLbBeforeApplicationList','App预审批表列表',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.serialutil.LB_BEFORE_APPLICATION','O','1=1','','','','','SYS_Designer','2020/07/18 15:25:20','SYS_Designer','2020/07/18 15:25:49','','1',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1000','1000','1','O','id','id','String','','唯一标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:20','SYS_Designer','2020/07/18 15:26:09','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1010','1010','1','O','fullname','fullname','String','','承租人姓名','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:20','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1020','1020','1','O','fullcertid','fullcertid','String','','承租人身份证号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1030','1030','1','O','fullphone','fullphone','String','','承租人电话号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1040','1040','1','O','fullsex','fullsex','String','','承租人性别','','1','Select','1','1','Code','sex','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 16:25:16','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1050','1050','1','O','brand','brand','String','','车品牌','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1060','1060','1','O','model','model','String','','车型','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1070','1070','1','O','modelId','modelId','String','','车型ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:26:19','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1080','1080','1','O','carseries','carseries','String','','车系','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1090','1090','1','O','mile','mile','String','','公里数','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:49','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1100','1100','1','O','frame_number','frame_number','String','','车架号','','1','Text','1','1','','','','100','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/18 15:25:50','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1110','1110','1','O','age_limit','age_limit','String','','年限','','1','Text','1','1','','','','8','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:25:50','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1120','1120','1','O','price','price','String','','车辆指导价','','1','Text','1','1','','','','16','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:26:28','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1085','1085','1','O','carattributes','carattributes','String','','租赁类型','','1','Select','1','1','Code','CarType','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 16:26:01','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1140','1140','1','O','liter','liter','String','','排量','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:26:42','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1150','1150','1','O','geartype','geartype','String','','档位','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:27:04','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1180','1180','1','O','result','result','String','','结果','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:25:50','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1190','1190','1','O','reason','reason','String','','原因','','1','Text','1','1','','','','200','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/18 15:25:50','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1200','1200','1','O','brandid','brandid','String','','车品牌id','','1','Text','1','1','','','','10','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/20 14:49:10','SYS_Designer','2020/07/20 14:49:10','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1210','1210','1','O','carseriesid','carseriesid','String','','车系id','','1','Text','1','1','','','','10','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/20 14:49:10','SYS_Designer','2020/07/20 14:49:10','0','','1','','','',''); +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('AppLbBeforeApplicationList','App预审批表列表',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.serialutil.LB_BEFORE_APPLICATION','O','O.inputuserid=:userid','','inputtime DESC','','','SYS_Designer','2020/07/18 15:25:20','SYS_Designer','2020/07/31 10:23:05','','1',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1000','1000','1','O','id','id','String','','唯一标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:20','SYS_Designer','2020/07/31 10:23:05','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1010','1010','1','O','fullname','fullname','String','','承租人姓名','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:20','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1020','1020','1','O','fullcertid','fullcertid','String','','承租人身份证号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1030','1030','1','O','fullphone','fullphone','String','','承租人电话号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1040','1040','1','O','fullsex','fullsex','String','','承租人性别','','1','Select','1','1','Code','sex','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1050','1050','1','O','brand','brand','String','','车品牌','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1060','1060','1','O','model','model','String','','车型','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1070','1070','1','O','modelId','modelId','String','','车型ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1080','1080','1','O','carseries','carseries','String','','车系','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1090','1090','1','O','mile','mile','String','','公里数','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1100','1100','1','O','frame_number','frame_number','String','','车架号','','1','Text','1','1','','','','100','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:21','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1110','1110','1','O','age_limit','age_limit','String','','年限','','1','Text','1','1','','','','8','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:05','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1120','1120','1','O','price','price','String','','车辆指导价','','1','Text','1','1','','','','16','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:05','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1130','1130','1','O','carattributes','carattributes','String','','租赁类型','','1','Select','1','1','Code','CarType','','10','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:05','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1140','1140','1','O','liter','liter','String','','排量','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:06','1','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1150','1150','1','O','geartype','geartype','String','','档位','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:06','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1180','1180','1','O','result','result','String','','结果','','1','Select','1','1','CodeTable','Y,通过,N,否决','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:06','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1190','1190','1','O','reason','reason','String','','原因','','1','Text','1','1','','','','200','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/07/18 15:25:23','SYS_Designer','2020/07/31 10:23:06','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1200','1200','1','O','brandid','brandid','String','','车品牌id','','1','Text','1','1','','','','10','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/20 14:49:10','SYS_Designer','2020/07/31 10:23:06','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationList','1210','1210','1','O','carseriesid','carseriesid','String','','车系id','','1','Text','1','1','','','','10','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/20 14:49:10','SYS_Designer','2020/07/31 10:23:06','0','','1','','','',''); -- 添加app预审批详情页面模板 insert into `PRD_NODEINFO_LIBRARY_APP` (`ID`, `APP_BUSINESS_GROUP_CODE`, `INITIAL_CONDITION`, `AUXILIARY_CONDITION`, `INTERFACE_DESC`, `ATTRIBUTE1`, `ATTRIBUTE2`, `ATTRIBUTE3`, `ATTRIBUTE4`, `ATTRIBUTE5`, `ATTRIBUTE6`, `ATTRIBUTE7`, `ATTRIBUTE8`, `ATTRIBUTE9`, `REBUILD_JBO_CLASS`, `FATHER_ID`, `DISPLAY_MANAGE_CLASS`, `SAVE_MANAGE_CLASS`, `DELETE_MANAGE_CLASS`, `ENABLE_CONDITION`, `OPEN_CONDITION`, `GROUP_NAME`) values('202007200001','AppLbBeforeApplicationInfo','flowunid','','DefaultDoManage','','','','','','','','','',NULL,'','','',NULL,'N','',NULL); @@ -534,31 +538,32 @@ insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1050','1050','brand','车品牌','brand','N','Y','1050'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1060','1060','model','车型','model','N','Y','1060'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1070','1070','modelId','车型ID','modelId','N','Y','1070'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1080','1080','carseries','车系','carseries','N','Y','1080'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1055','1055','carseries','车系','carseries','N','Y','1055'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1090','1090','mile','公里数','mile','N','Y','1090'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1100','1100','frame_number','车架号','frame_number','N','Y','1100'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1110','1110','age_limit','年限','age_limit','N','Y','1110'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1120','1120','price','车辆指导价','price','N','Y','1120'); -insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1130','1130','carattributes','租赁类型','carattributes','N','Y','1130'); +insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1085','1085','carattributes','租赁类型','carattributes','N','Y','1085'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1140','1140','liter','排量','liter','N','Y','1140'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1150','1150','geartype','档位','geartype','N','Y','1150'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1200','1200','brandid','车品牌id','brandid','N','Y','1200'); insert into `APP_BUSINESS_TEMPLATE` (`GROUP_CODE`, `DONO`, `COLINDEX`, `SORTNO`, `COLNAME`, `DATA_NAME`, `DATA_CODE`, `ISLIST`, `ISSHOW`, `DATA_POSITION`) values('AppLbBeforeApplicationInfo','AppLbBeforeApplicationInfo','1210','1210','carseriesid','车系id','carseriesid','N','Y','1210'); + -- 添加对应的模板 Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('AppLbBeforeApplicationInfo','App预审批详情模板',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.serialutil.LB_BEFORE_APPLICATION','O','1=2','','','',null,'SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','','1',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1010','1010','1','O','fullname','fullname','String','','承租人姓名','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1020','1020','1','O','fullcertid','fullcertid','String','','承租人身份证号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1030','1030','1','O','fullphone','fullphone','String','','承租人电话号','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1040','1040','1','O','fullsex','fullsex','String','','承租人性别','','1','Select','1','1','Code','sex','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1050','1050','1','O','brand','brand','String','','车品牌','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:02','','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1060','1060','1','O','model','model','String','','车型','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:03','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1010','1010','1','O','fullname','fullname','String','','承租人姓名','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1020','1020','1','O','fullcertid','fullcertid','String','','承租人身份证号','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1030','1030','1','O','fullphone','fullphone','Number','','承租人电话号','','1','Text','1','1','','','','11','1','0','1','0','0',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/22 14:59:57','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1040','1040','1','O','fullsex','fullsex','String','','承租人性别','','1','Select','1','1','Code','sex','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1050','1050','1','O','brand','brand','String','','车品牌','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1055','1055','1','O','carseries','carseries','String','','车系','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/21 11:40:52','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1060','1060','1','O','model','model','String','','车型','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1070','1070','1','O','modelId','modelId','String','','车型ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:49','SYS_Designer','2020/07/20 14:52:03','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1080','1080','1','O','carseries','carseries','String','','车系','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1085','1085','1','O','carattributes','carattributes','String','','租赁类型','','1','Select','1','1','Code','CarType','','10','1','0','1','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/21 11:32:42','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1090','1090','1','O','mile','mile','String','','公里数','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1100','1100','1','O','frame_number','frame_number','String','','车架号','','1','Text','1','1','','','','100','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1110','1110','1','O','age_limit','age_limit','String','','年限','','1','Text','1','1','','','','8','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1120','1120','1','O','price','price','String','','车辆指导价','','1','Text','1','1','','','','16','0','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','0','','1','','','',''); -Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1085','1085','1','O','carattributes','carattributes','String','','租赁类型','','1','Select','1','1','Code','CarType','','10','1','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1140','1140','1','O','liter','liter','String','','排量','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','1','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1150','1150','1','O','geartype','geartype','String','','档位','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','0','','1','','','',''); Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('AppLbBeforeApplicationInfo','1200','1200','1','O','brandid','brandid','String','','车品牌id','','1','Text','1','1','','','','10','0','0','0','1','0',0,'','','','SYS_Designer','2020/07/20 14:51:50','SYS_Designer','2020/07/20 14:52:03','0','','1','','','',''); @@ -568,4 +573,3 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn - From e16cba3cf7f0cefe367fe569effbbd91deafc1e2 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Tue, 4 Aug 2020 14:26:26 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=AE=A2=E6=88=B7=EF=BC=88=E5=BC=A0?= =?UTF-8?q?=E7=A3=8A=EF=BC=89=E4=BF=AE=E6=94=B9=E9=B9=8F=E5=85=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../query_report/image/image_error.png | Bin 0 -> 1102 bytes .../query_report/image/image_list.png | Bin 0 -> 435 bytes .../query_report/image/image_success.png | Bin 0 -> 974 bytes .../query_report/image/image_warn.png | Bin 0 -> 858 bytes .../query_report/pengyuandata.jsp | 3 + .../controller/BigDataController.java | 115 +- .../httpclient/pypafhtml/PyHtmlBase.java | 439 ++++++ .../httpclient/pypafhtml/PyHtmlContent.java | 1203 +++++++++++++++++ .../httpclient/pypafhtml/PyHtmlCreate.java | 141 ++ 9 files changed, 1849 insertions(+), 52 deletions(-) create mode 100644 WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_error.png create mode 100644 WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_list.png create mode 100644 WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_success.png create mode 100644 WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_warn.png create mode 100644 src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlBase.java create mode 100644 src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlContent.java create mode 100644 src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlCreate.java diff --git a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_error.png b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_error.png new file mode 100644 index 0000000000000000000000000000000000000000..9faa50973e6cf1756517f015103be674ce59e6a2 GIT binary patch literal 1102 zcmV-U1hM;xP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf1LH|VK~zXfjaJ`l z6jv1f?w#4}kC=_Rn%Xo`Xcdg2wG^c()lj5J-voV7v421n35ePv3Q`JvsD&aF`XKnA z1u0bUrL_1U6|@q3@kbMbwqg>KZj*^gR(F%#nR|QA9XGpUW@mEPg<VE{8dkdm9 z3z14f*cOBo{-2*yDgP|j0q_1pOn0tF>FAkIpal^XHt&S@U=U*YQV2mgsuPpt(yad` zO&}rX+IbG^{Y_}O^IJeS5D|l@!M`brWetotNbKK@#O__tj)T{)mw_eSow_%G!q!j2 zfl5bCneaunCHzvSW{^4m9sSQD^V1JVpQRMd6vER)>Gba0Md`%X^XDdYYG?#AYc^7@ zI~PP!{ZdVgVX2-77@iUvP-hS54k_q?hNCUwPqhai@`(GVoeQe;n%f=Od@ z8;S=G8+ECRCAfdyfJiolr)>VM1bRJm_+&CCxR82gumG|g>6wxA5M+`4%oJgK0 zO!cwCJ#qDSL%8nsoAB=SFRqAY%dmHJL#Sd=PiNjFBJGInB|SR__2Q{1b(via(G=Yl zOheikL96S~9i`K-KkR{yiHgtVJ8O{r=Ml1le?bs`=`szzC?Ut}ox7+FXm%M=9UjH> z>Mn{ZoK$_!#)(v^0P18)5LxEhLNnp(3?rMTvD3D~FK^k|j#O_i9n>y6V3CwWsyW2> z#ez9lzdgMm%?;NrHT2A^TV_`A7-5EI@~vODxY2pt za%tV#{xLF_Y29ik=fZ9?c7ZGwQNDNuJWf1fVJ1ixrY@^%9qgVDkoat`S;wN}e_Ao5 UENGgixBvhE07*qoM6N<$f-d9;`~Uy| literal 0 HcmV?d00001 diff --git a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_list.png b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_list.png new file mode 100644 index 0000000000000000000000000000000000000000..d8ff3cfd2a6dc5df994a13dbe15b6b19cbf714f6 GIT binary patch literal 435 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Ol^0U}fT=GOu#&H|6fVg?4jBOuH;Rhv&5D9B#o z>Fdh=kXeSEOJ+G!kO5f8HKN3^v?L?Hh+*ZrGaf)8o)VytOKNd)QD#9&W_})nFsGt2 zP@D@S?wnsxS(KTcQNpl>|BMw-ln*Rgl$r=qs!)=do62DNou3mZ!wHfJ&QB{TPb^Ah zh%NXJQqB!FJhM1CClRQ$h++GIE&V`Y4v=toVo_dZUOK}8>1XXgF?NXl(xT*4hOhsd zU&E9+=jZ08=9MsfJ2P!RP>c($K_HcXo z*~Sbj*53xqOje$x0elJ*a|GSmE|0Gqa7jc#R7i=fmQhSoR~W~C_d;o)0v(;0 z6;Wr))-fy9Wr8k3HXm?f$&x*^3tJZ595FsnC$%d(7$WLd@? zoT7Jjfd0TJo}iC;=@AG}rYXi;WTaMap{aZqW?hAv8vq0~&|u&JZJx{Y1@5irAg;a7 zY{O}?v$M1+JJ51W;*`6GZto3Lx2hI30*5O1bJE;QftarjT9iV3c&D9#h5M^SBx{ep zn(mrb*5wx_=EV45IVR-<0?-$@$ALQ?NU>-t=#;xBCy*y$uCYtWpuxZcy1h4Y28pX{ z@;bwd9t9-JGHssAt3LRr^?`98x9ZNYM_-+olaXonTv0&o;8fOESWS-S8fde8gh^-Q z&GJ{1)^5&^FcI=0_RbEh3Gz<)ZaQ9SK@>#pFM0WD;`9OzV^D7tR?G1HY-0?ZZc}kY=C^7ME&1V$mX<3khG!K2rSZG=m5?7x2 zlf7RoMng%H5jo1WnO}HOw~;Dc1(k*C*=Mlf4bO3Y`w2=kI)c$K?+>>z{AfHQ#HckO znv0BS7nfraEq6P)IQ1g{)y13Xu{qIe))9Uj;owLIgNyEr5CD_Th*+z)s2V&bM(b!7 zXaBlJy!J+7QCjYH@{|A1tRMijdJBSk$t&0Y+M3b$Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf0`EygK~zXfy;eJD z6j2mC@6F66yMY)tv5+8sKqcZoYN4h{Aq24%Bp~*JmD&XS5v^ijXJKI{_M#S|2$6_j zh$LcE6j4!8Hwj9zo9xUy&zo^KGnvm$K)lt?zW2_#_r812eL~UjA51KV$enr)%zmU> z^sTT4vVCu67aI~eZ?D6Ba}8>05-^A>gb%J0;qY_iCdkdFU~D{@N}5RI{v3h*u$N#J zz-lGFwMbHfB$-lGp!yq-Ihefb6Y4W0W zE65!!*VpTJzjp94f}%;i~Duei@$ zSR@kp)t*jfHlr!qR;`Em&H&MhEoA0*+QiT~wK4S?ms^jz2~F zPBx++W}+zvYW4%v+$TDf-b-3+MX@Vfb^6QbI_;})f+>g1Oz*5iBe43$s0y9rqH-r0 zB}#UkjS|Uq{eaox$xE#1)aj8?Go|;%7lnsmG{e|%qP{&Ws#Bw|?{p`Nsy)ZGwH~3G z{{ca;h-n4aqI&pQXaa}kku2_pvFEZU^>I%LVHUXd1!`eBmPDWN#zgmEWX#7-SZCrA zoKX(2LR&VG)dj25H8%re*G0~wbCEz(M)^~Jl-rbgEwQR{->#e>nBy^kO} z_QhXuqgRlYdUtY&kCT_aVAbwlH#jR?6t}Xv&cIlIJhd|#zJh|M-RUu){MG-f&R literal 0 HcmV?d00001 diff --git a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuandata.jsp b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuandata.jsp index 38bf92690..51e925c54 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuandata.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/pengyuandata.jsp @@ -84,6 +84,9 @@ if(html.indexOf(".png") != -1 || html.indexOf(".jpg") != -1) { html = html.replaceAll("image/image_\\d+[.]", "Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image."); } + if(html.indexOf(".png") != -1 || html.indexOf(".jpg") != -1) { + html = html.replaceAll("image/image_", "Tenwa/Lease/Flow/Comm/BigdataPengyuan/query_report/image/image_"); + } if(html.indexOf("width=\"95%\"") != -1) { html = html.replaceAll("width=\"95%\"", ""); } diff --git a/src_tenwa/com/tenwa/httpclient/controller/BigDataController.java b/src_tenwa/com/tenwa/httpclient/controller/BigDataController.java index f03a326dc..f2212ceb1 100644 --- a/src_tenwa/com/tenwa/httpclient/controller/BigDataController.java +++ b/src_tenwa/com/tenwa/httpclient/controller/BigDataController.java @@ -15,6 +15,7 @@ import java.util.Set; import java.util.regex.Pattern; import com.tenwa.httpclient.PyPafUtils; +import com.tenwa.httpclient.pypafhtml.PyHtmlCreate; import org.dom4j.Document; import org.dom4j.Element; import org.dom4j.io.SAXReader; @@ -106,11 +107,7 @@ public class BigDataController { htmlFile = Sqlca.getString(new SqlObject("select html_data from bigdata_" + table + " where id = '" + applyId + "'")); return htmlFile == null ? "" : htmlFile; } - System.out.println("==================" + table + "@" + type + "获取数据===================="); - String result = this.getQueryReport(params, type,CurPage.getAttribute("SubjectId").toString()); - //System.err.println(result); - System.out.println("==================" + table + "@" + type + "获取数据===================="); - + Connection conn = Sqlca.getConnection(Sqlca); @SuppressWarnings("deprecation") Configure configure = Configure.getInstance(); String fileSavePath = configure.getParameter("FileSavePath") + "/" + "pengyuan" + "/"; @@ -118,53 +115,61 @@ public class BigDataController { String fullcardNo = CurPage.getParameter("fullcardNo"); if(fullcardNo==null||"".equals(fullcardNo)){fullcardNo="default";} String queryCondition = HttpClientUtil.getQueryCondition(params); - Connection conn = Sqlca.getConnection(Sqlca); - try{ - htmlFile = HttpClientUtil.queryReport(result, type, fileSavePath, applyId); - if(id != null) { - id.put("applyId", applyId); - } - //在发起大数据请求前记录所有报文信息 - PreparedStatement ps = null; - try { - ps = conn.prepareStatement("insert into bigdata_" + table + "_log (id, apply_id, type, html_url, html_param, inputuserid, inputorgid, inputtime,fullName,fullcertId,fullphone,fullcardNo)" - + " values(REPLACE(UUID(),'-',''), ?, 'apply', ?, ?, ?, ?, ? ,?, ?, ?,? )"); - ps.setString(1, applyId); - ps.setString(2, BigDataPropertiesUtil.get("pengyuanUrl")); - ps.setString(3, queryCondition + "," + BigDataPropertiesUtil.get("user") + "," + BigDataPropertiesUtil.get("password") + "," + type); - ps.setString(4, CurPage.getUser().getUserID()); - ps.setString(5, CurPage.getUser().getOrgID()); - ps.setString(6, StringFunction.getTodayNow()); - ps.setString(7, CurPage.getParameter("fullName")); - ps.setString(8, CurPage.getParameter("fullcertId")); - ps.setString(9, CurPage.getParameter("fullphone")); - ps.setString(10, fullcardNo); - ps.execute(); + if(!"pengyuan_af".equals(table)){ + System.out.println("==========非鹏元个人反欺诈接口=====================table=【pengyuan_af】or "+ table); + System.out.println("==================" + table + "@" + type + "获取数据===================="); + String result = this.getQueryReport(params, type,CurPage.getAttribute("SubjectId").toString()); + System.err.println(result); + System.out.println("==================" + table + "@" + type + "获取数据===================="); + try{ + htmlFile = HttpClientUtil.queryReport(result, type, fileSavePath, applyId); + if(id != null) { + id.put("applyId", applyId); + } + //在发起大数据请求前记录所有报文信息 + PreparedStatement ps = null; + try { + ps = conn.prepareStatement("insert into bigdata_" + table + "_log (id, apply_id, type, html_url, html_param, inputuserid, inputorgid, inputtime,fullName,fullcertId,fullphone,fullcardNo)" + + " values(REPLACE(UUID(),'-',''), ?, 'apply', ?, ?, ?, ?, ? ,?, ?, ?,? )"); + ps.setString(1, applyId); + ps.setString(2, BigDataPropertiesUtil.get("pengyuanUrl")); + ps.setString(3, queryCondition + "," + BigDataPropertiesUtil.get("user") + "," + BigDataPropertiesUtil.get("password") + "," + type); + ps.setString(4, CurPage.getUser().getUserID()); + ps.setString(5, CurPage.getUser().getOrgID()); + ps.setString(6, StringFunction.getTodayNow()); + ps.setString(7, CurPage.getParameter("fullName")); + ps.setString(8, CurPage.getParameter("fullcertId")); + ps.setString(9, CurPage.getParameter("fullphone")); + ps.setString(10, fullcardNo); + ps.execute(); + } catch(Exception e) { + e.printStackTrace(); + throw new BusinessException("数据存储失败"); + } finally { + if(ps != null) ps.close(); + } + String html_data = Sqlca.getString(new SqlObject("select html_data from bigdata_" + table + " where id = '" + applyId + "'")); + PreparedStatement ps1 = null; + if("ExceedTimLlimitApply".equals(FlowNo)&&html_data != null){//如果超期案件再次调用鹏元大数据,并且是save状态 + ps1 = conn.prepareStatement("update bigdata_" + table + " set keyword3 = '"+FlowNo+"' where keyword1 = ? and keyword2 = ?"); + ps1.setString(1, CurPage.getParameter("ProjectId")); + ps1.setString(2, CurPage.getParameter("CustId")); + ps1.execute(); + htmlFile = html_data; + if(ps != null) ps1.close(); + return htmlFile; + } + if(html_data != null) { + htmlFile = html_data; + return htmlFile; + } + } catch(Exception e) { e.printStackTrace(); - throw new BusinessException("数据存储失败"); - } finally { - if(ps != null) ps.close(); + throw new BusinessException(e.getMessage()); } - String html_data = Sqlca.getString(new SqlObject("select html_data from bigdata_" + table + " where id = '" + applyId + "'")); - PreparedStatement ps1 = null; - if("ExceedTimLlimitApply".equals(FlowNo)&&html_data != null){//如果超期案件再次调用鹏元大数据,并且是save状态 - ps1 = conn.prepareStatement("update bigdata_" + table + " set keyword3 = '"+FlowNo+"' where keyword1 = ? and keyword2 = ?"); - ps1.setString(1, CurPage.getParameter("ProjectId")); - ps1.setString(2, CurPage.getParameter("CustId")); - ps1.execute(); - htmlFile = html_data; - if(ps != null) ps1.close(); - return htmlFile; - } - if(html_data != null) { - htmlFile = html_data; - return htmlFile; - } - - } catch(Exception e) { - e.printStackTrace(); - throw new BusinessException(e.getMessage()); + }else { + System.out.println("====================个人反欺诈【HTML】不调用鹏元接口获取数据===================="); } type = "xml"; PreparedStatement ps = null; @@ -186,6 +191,9 @@ public class BigDataController { System.out.println("==================" + table + "@" + type + "获取数据===================="); String xmlPath = HttpClientUtil.queryReport(xmlResult, type, fileSavePath + "xml" + File.separator + applyId + File.separator); + if("pengyuan_af".equals(table)){ + htmlFile = PyHtmlCreate.createHtmlFile(xmlPath, fileSavePath); + } savePengyuanData(applyId, xmlPath, table, conn); StringBuffer keyword = new StringBuffer(); StringBuffer keywordValue = new StringBuffer(); @@ -212,9 +220,12 @@ public class BigDataController { SqlObject sql_d = new SqlObject("delete from bigdata_ebank_af where fullcertId='"+CurPage.getParameter("fullcertId")+"'"); Sqlca.executeSQL(sql_d); } + if(!"pengyuan_af".equals(table)){ + htmlFile = htmlFile.split("@")[1]; + } SqlObject sql = new SqlObject(("insert into bigdata_" + table + " (id," + keyword.toString() + ",xml_data,html_data," + "inputuserid,inputorgid,inputtime,fullName,fullcertId,fullphone,fullcardNo) values('" + applyId + "'," + keywordValue.toString() + ",'" - + xmlResult + "','" + htmlFile.split("@")[1] + "','" + CurPage.getUserId() + "','" + CurPage.getUser().getOrgID() + "','" + StringFunction.getTodayNow() +"','" + + xmlResult + "','" + htmlFile + "','" + CurPage.getUserId() + "','" + CurPage.getUser().getOrgID() + "','" + StringFunction.getTodayNow() +"','" +CurPage.getParameter("fullName")+"','"+CurPage.getParameter("fullcertId")+"','"+CurPage.getParameter("fullphone")+"','"+fullcardNo+"')").replaceAll(":", "△")); sql.setDebugSql(sql.getDebugSql().replaceAll("△", ":")); sql.setOriginalSql(sql.getOriginalSql().replaceAll("△", ":")); @@ -226,7 +237,7 @@ public class BigDataController { System.err.println(insertsql); System.err.println("****************************鹏元大数据************************"); Sqlca.executeSQL(sql); - return htmlFile.split("@")[1]; + return htmlFile; } @SuppressWarnings({ "unchecked"}) @@ -631,7 +642,7 @@ public class BigDataController { BigDataPropertiesUtil.get("methodType"), para); } - //System.out.println(result); + System.out.println(result); } catch(Exception e) { e.printStackTrace(); throw new BusinessException("获取大数据失败"); diff --git a/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlBase.java b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlBase.java new file mode 100644 index 000000000..31046552e --- /dev/null +++ b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlBase.java @@ -0,0 +1,439 @@ +package com.tenwa.httpclient.pypafhtml; + +public class PyHtmlBase { + public static final String header = "\n" + + " \n" + + " \n" + + " 主机对主机_全国个人信息查询 \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
个人信息报告
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
查询条件报告编号:"; + + + public static final String tail = "
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
报告使用说明:
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
1. 本报告著作权属于鹏元征信有限公司,未经书面许可,不得复制、摘录、转载和发表。
2. 本报告仅供使用者参考,鹏元征信有限公司不承担据此报告产生的任何法律责任。
3. 鹏元征信有限公司客服热线:0755-82873169,电子邮箱:credit@pycredit.cn 。
4. 公司地址:深圳市深南大道7008号阳光高尔夫大厦四楼。
\n" + + " \n" + + "" ; +} diff --git a/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlContent.java b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlContent.java new file mode 100644 index 000000000..46b22629c --- /dev/null +++ b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlContent.java @@ -0,0 +1,1203 @@ +package com.tenwa.httpclient.pypafhtml; + import com.alibaba.fastjson.JSONArray; + import com.alibaba.fastjson.JSONObject; + import com.google.common.collect.Lists; + + import java.text.ParseException; + import java.text.SimpleDateFormat; + import java.util.ArrayList; + import java.util.Date; + import java.util.List; + +public class PyHtmlContent { + /** + * 统计时间段:1-近1年、2-近2年、3-近5年、4-历史 + * 数据库表名和列字段对应关系 + */ + public enum JudicialXZCountTypeEnums{ + taxPunishCount("taxPunishCount","税务处罚事件数量"), + marketPunishCount("marketPunishCount","市场监管处罚事件数量"), + customsPunishCount("customsPunishCount","海关处罚事件数量"), + environmentPunishCount("environmentPunishCount","环保处罚事件数量"), + otherPunishCount("otherPunishCount","其他行政处罚事件数量"), + punishTotalCount("punishTotalCount","(行政处罚事件)合计"); + + private String code; //类型 + private String desc; //描述 + + private JudicialXZCountTypeEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(JudicialXZCountTypeEnums data : JudicialXZCountTypeEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 统计时间段:1-近1年、2-近2年、3-近5年、4-历史 + * 数据库表名和列字段对应关系 + */ + public enum JudicialSFCountTypeEnums{ + civilCaseCount("civilCaseCount","民事案件被告风险事件数量"), + criminalCaseCount("criminalCaseCount","刑事案件被告风险事件数量"), + judicialCount("judicialCount","司法被执行人风险事件数量"), + endCaseCount("endCaseCount","终本案件风险事件数量"), + breakFaithCount("breakFaithCount","失信被执行人风险事件数量"), + judicialTotalCount("judicialTotalCount","(司法涉诉风险事件)合计"); + + private String code; //类型 + private String desc; //描述 + + private JudicialSFCountTypeEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(JudicialSFCountTypeEnums data : JudicialSFCountTypeEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 统计时间段:1-近1年、2-近2年、3-近5年、4-历史 + * 数据库表名和列字段对应关系 + */ + public enum JudicialRiskTimeLengthEnums{ + Length_1("1","oneYearCount"), + Length_2("2","twoYearCount"), + Length_3("3","fiveYearCount"), + Length_4("4","historyYearCount"); + + private String code; //类型 + private String desc; //描述 + + private JudicialRiskTimeLengthEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(JudicialRiskTimeLengthEnums data : JudicialRiskTimeLengthEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 1:正常在用 2: 停机 3:未启用 4:已销号 6:预销号该值可能为空 + * 数据库表名和列字段对应关系 + */ + public enum MobileStsEnums{ + Sts_1("1","正常在用"), + Sts_2("2","停机"), + Sts_3("3","未启用"), + Sts_4("4","已销号"), + Sts_6("6","预销号该值可能为空"); + + private String code; //类型 + private String desc; //描述 + + private MobileStsEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(MobileStsEnums data : MobileStsEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + //1:不足3个月 2:3-6个月 3:6-12个月 4:12-24个月 5:24个月 + /** + * 数据库表名和列字段对应关系 + */ + public enum MobileTimeLengthEnums{ + Length_1("1","不足3个月"), + Length_2("2","3-6个月"), + Length_3("3","6-12个月"), + Length_4("4","12-24个月"), + Length_5("5","24个月"); + + private String code; //类型 + private String desc; //描述 + + private MobileTimeLengthEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(MobileTimeLengthEnums data : MobileTimeLengthEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 数据库表名和列字段对应关系 + */ + public enum MobileOperatorEnums{ + DX("1","中国电信"), + YD("2","中国移动"), + LT("3","中国联通"); + + private String code; //类型 + private String desc; //描述 + + private MobileOperatorEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(MobileOperatorEnums data : MobileOperatorEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 数据库表名和列字段对应关系 + */ + public enum PafEnums{ + personAntiFraudDescInfo("personAntiFraudDescInfo","欺诈风险汇总", PyHtmlContent.personAntiFraudDescInfo), + personAntiFraudScoreInfo("personAntiFraudScoreInfo","欺诈风险指数", PyHtmlContent.personAntiFraudScoreInfo), + personBaseInfo("personBaseInfo","身份信息校验", PyHtmlContent.personBaseInfo), + policeCheckInfo("policeCheckInfo","身份认证结果", PyHtmlContent.policeCheckInfo), + mobileCheckInfo("mobileCheckInfo","手机号信息校验", PyHtmlContent.mobileCheckInfo), + mobileStatusInfo("mobileStatusInfo","手机号码时长", PyHtmlContent.mobileStatusInfo), + personRiskRosterInfo("personRiskRosterInfo","命中名单", PyHtmlContent.personRiskRosterInfo), + personJudicialSFRiskInfo("personJudicialSFRiskInfo","司法查询", PyHtmlContent.personJudicialSFRiskInfo), + personJudicialXZRiskInfo("personJudicialXZRiskInfo","行政查询", PyHtmlContent.personJudicialXZRiskInfo); + + private String code; //类型 + private String htmlContent; //类型 + private String desc; //描述 + + private PafEnums(String code, String desc, String htmlContent){ + this.code=code; + this.desc=desc; + this.htmlContent=htmlContent; + } + public String getDesc() { + return desc; + } + public String getHtmlContent() { + return htmlContent; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(PafEnums data : PafEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getHtmlContent(); + } + } + return null; + } + } + + /** + * 数据库表名和列字段对应关系 + */ + public enum PersonAntiFraudDescInfoEnums{ + antiFraudScore("antiFraudScore","欺诈风险指数"), + antiFraudScoreRiskLevel("antiFraudScoreRiskLevel","欺诈风险指数风险等级"), + policeCheckRiskLevel("policeCheckRiskLevel","身份认证结果风险等级"), + policeCheckDesc("policeCheckDesc","身份认证结果"), + mobileCheckRiskLevel("mobileCheckRiskLevel","手机号码核查结果风险等级"), + mobileCheckDesc("mobileCheckDesc","手机号码核查结果"), + mobileStatusRiskLevel("mobileStatusRiskLevel","手机号码状态及在网时长结果风险等级"), + mobileStatusDesc("mobileStatusDesc","手机号码状态及在网时长结果"), + riskRosterRiskLevel("riskRosterRiskLevel","风险名单结果风险等级"), + riskRosterDesc("riskRosterDesc","风险名单结果"), + judicialRiskLevel("judicialRiskLevel","司法风险结果风险等级"), + judicialRiskDesc("judicialRiskDesc","司法风险结果"); + + private String code; //类型 + private String desc; //描述 + + private PersonAntiFraudDescInfoEnums(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(PersonAntiFraudDescInfoEnums data : PersonAntiFraudDescInfoEnums.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return null; + } + } + + /** + * 数据库表名和列字段对应关系 + */ + public enum RiskType{ + risk_000("000","未命中风险名单"), + risk_101("101","疑似欺诈风险"), + risk_102("102","疑似营销套利"), + risk_201("201","疑似身份造假"), + risk_202("202","疑似资料造假"), + risk_203("203","疑似盗号风险"), + risk_301("301","刑事被告"), + risk_302("302","民事被告"), + risk_303("303","司法被执行人"), + risk_304("304","终本案件人员"), + risk_305("305","司法失信人员"), + risk_306("306","行政处罚人员"), + risk_999("999","其他风险"); + + private String code; //类型 + private String desc; //描述 + + private RiskType(String code, String desc){ + this.code=code; + this.desc=desc; + } + public String getDesc() { + return desc; + } + + public String getCode() { + return this.code; + } + + /** + * 根据code 数据库表名的列字段 + * @param code + * @return + */ + public static String getValueData(String code){ + for(RiskType data : RiskType.values()){ + if(data.getCode().toLowerCase().equals(code.toLowerCase())){ + return data.getDesc(); + } + } + return "未命中风险名单"; + } + } + + /** + * 内容开始部分 + * @param obj + * @return + */ + public static String createBodyHead(JSONObject obj) throws ParseException { + StringBuilder sb = new StringBuilder(); + String bodyTitle = title; + bodyTitle = bodyTitle.replace("reportID", obj.getString("reportID")); + sb.append(bodyTitle); + String bodyQueryConditions = queryConditions; + JSONObject queryConditionsObj = obj.getJSONObject("queryConditionsObj"); + bodyQueryConditions = bodyQueryConditions.replace("name", queryConditionsObj.getString("name")); + bodyQueryConditions = bodyQueryConditions.replace("documentNo", queryConditionsObj.getString("documentNo")); + bodyQueryConditions = bodyQueryConditions.replace("unitName", obj.getString("unitName")); + bodyQueryConditions = bodyQueryConditions.replace("queryUserID", obj.getString("queryUserID")); + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); + Date birDate = sdf.parse(obj.getString("receiveTime").substring(0, 8)); + SimpleDateFormat sdfRes = new SimpleDateFormat("yyyy年MM月dd日"); + String birStr = sdfRes.format(birDate); + bodyQueryConditions = bodyQueryConditions.replace("receiveTime", birStr); + sb.append(bodyQueryConditions); + String bodyBContentPafQuery = bodyContentPafQuery; + bodyBContentPafQuery = bodyBContentPafQuery.replace("phone", queryConditionsObj.getString("phone")); + sb.append(bodyBContentPafQuery); + return sb.toString(); + } + + public static String title = " reportID" + + "
\n" + + " \n" ; + + public static String queryConditions = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + +// " \n" + + " \n" + + " \n" + +// " \n" + + " \n" + + " \n" + + " \n" + + " \n" + +// " \n" + + " \n" + + " \n" + +// " \n" + + " \n" + + " \n" + + " \n" + + " \n" + +// " \n" + + " \n" + + " \n" + + "
姓名name熊海查询时间receiveTime2020年07月28日
证件号码documentNo360123*********978操作员queryUserIDapwsqueryn
查询机构unitName安鹏融资租赁(天津)有限公司
\n" + + " \n" ; + + //反欺诈附件条件 + public static String bodyContentPafQuery = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
反欺诈分析附加条件
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
手机号码phone
\n" + + " \n" ; + + + public static String contentError = "errorMessage "; + public static String contentEmpty = " errorMessage "; + + + /** + * 反欺诈信息汇总 + * @param obj + * @return + */ + private static String createBaseContent(String key, String content, JSONObject obj) throws ParseException { + String bodyContentError = contentError; + String bodyContentEmpty = contentEmpty; + String bodyContent = content; + String subContent = ""; + String jsonKey = key; + if("personJudicialSFRiskInfo".equals(key) || "personJudicialXZRiskInfo".equals(key)){ + jsonKey = "personJudicialRiskInfo"; + } + JSONObject keyObj = obj.getJSONObject(jsonKey); + String errorMessage = ""; + if(keyObj.containsKey("errorMessage")){ + errorMessage = keyObj.getString("errorMessage"); + } + if("3".equals(keyObj.getString("treatResult"))){//系统错误,默认包含细节 + if(null == errorMessage || "".equals(errorMessage)){ + errorMessage = "系统错误。"; + } + bodyContentError = bodyContentError.replace("errorMessage", errorMessage); + subContent = bodyContentError; + }else{//如果包含细节 + subContent = createBodyContentDes(key, obj); + } + if(null == subContent || "".equals(subContent.toString())){ + subContent = bodyContentEmpty.replace("errorMessage", "根据已提供的查询条件,未能在系统中查得相关信息。"); + } + bodyContent = bodyContent.replace("subContent", subContent); + return bodyContent; + } + + + + /** + * + * @param obj + * @return + */ + public static String createBodyContent(JSONObject obj) throws ParseException { + StringBuilder sb = new StringBuilder(); + for(PafEnums pe : PafEnums.values()){ + String jsonKey = pe.getCode(); + if("personJudicialSFRiskInfo".equals(pe.getCode()) || "personJudicialXZRiskInfo".equals(pe.getCode())){ + jsonKey = "personJudicialRiskInfo"; + } + JSONObject keyObj = obj.getJSONObject(jsonKey); + String treatResult = keyObj.getString("treatResult"); + //是否包含细节内容 + boolean addContentB = false; + List resKeyArr = + Lists.newArrayList("subReportType", "subReportTypeCost", "treatResult", "treatErrorCode", "errorMessage"); + for(String keyRes : keyObj.keySet()){ + if(!resKeyArr.contains(keyRes) || "3".equals(treatResult)){ + addContentB = true; + } + } + if(addContentB){ + String content = createBaseContent(pe.getCode(), pe.getHtmlContent(), obj); + sb.append(content); + } + } + return sb.toString(); + } + + /** + * 反欺诈信息汇总 + * @param obj + * @return + */ + private static String createPafDescContent(String key, JSONObject obj){ + String bodyPersonAntiFraudDescInfoContent = personAntiFraudDescInfoContent; + JSONObject subObj = obj.getJSONObject(key); + // TODO: 2020/7/29 增加判断空 antiFraudScore + String antiFraudScore = subObj.getString("antiFraudScore"); + bodyPersonAntiFraudDescInfoContent = bodyPersonAntiFraudDescInfoContent.replace("antiFraudScore", subObj.getString("antiFraudScore")); + StringBuilder sbContent = new StringBuilder(); + for(PersonAntiFraudDescInfoEnums pe : PersonAntiFraudDescInfoEnums.values()){ + if(null != subObj.getString(pe.getCode()) + && !"".equals(subObj.getString(pe.getCode()))){ + String subContent = personAntiFraudDescInfoContentItem; + String imgStatus = "image_success"; + // TODO: 2020/7/29 如果包含 不正常 高风险 则改为 imgage_error + String result = subObj.getString(pe.getCode()); + if("antiFraudScore".equals(pe.getCode())) { + if(Integer.parseInt(result) > 500){ + imgStatus = "image_error"; + } + }else if("policeCheckDesc".equals(pe.getCode())){ + String resPre = subObj.getString("policeCheckRiskLevel"); + if(resPre.contains("高风险")){ + imgStatus = "image_error"; + }else if(resPre.contains("中风险")){ + imgStatus = "image_warn"; + } + }else if("mobileCheckDesc".equals(pe.getCode())){ + String resPre = subObj.getString("mobileCheckRiskLevel"); + if(resPre.contains("高风险")){ + imgStatus = "image_error"; + }else if(resPre.contains("中风险")){ + imgStatus = "image_warn"; + } + }else if("mobileStatusDesc".equals(pe.getCode())){ + String resPre = subObj.getString("mobileStatusRiskLevel"); + if(resPre.contains("高风险")){ + imgStatus = "image_error"; + }else if(resPre.contains("中风险")){ + imgStatus = "image_warn"; + } + }else if("judicialRiskDesc".equals(pe.getCode())){ + String resPre = subObj.getString("judicialRiskLevel"); + if(resPre.contains("高风险")){ + imgStatus = "image_error"; + }else if(resPre.contains("中风险")){ + imgStatus = "image_warn"; + } + }else if("riskRosterDesc".equals(pe.getCode())){ + if(!"未命中风险名单".equals(result)){ + imgStatus = "image_error"; + } + } + if(result.contains("高风险")){ + imgStatus = "image_error"; + } + String pafDesc = pe.getDesc() + ":" + subObj.getString(pe.getCode()); + subContent = subContent.replace("image_status", imgStatus); + subContent = subContent.replace("pafDesc", pafDesc); + sbContent.append(subContent); + } + } + bodyPersonAntiFraudDescInfoContent = bodyPersonAntiFraudDescInfoContent.replace("contentItem", sbContent.toString()); + return bodyPersonAntiFraudDescInfoContent; + } + + //反欺诈分析综述 + public static String personAntiFraudDescInfoContentItem = + "
pafDesc
"; + + //反欺诈分析综述 + public static String personAntiFraudDescInfoContent = + " \n" + + " 欺诈风险指数为 antiFraudScore 分 \n" + + " \n" + + " \n" + + " contentItem \n" + + " \n" ; + //反欺诈分析综述 + public static String personAntiFraudDescInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
反欺诈分析综述
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n" ; + + /** + * 反欺诈指数 + * @param obj + * @return + */ + private static String createPersonAntiFraudScoreInfoContent(String key, JSONObject obj){ + String bodyPersonAntiFraudScoreInfoContent = personAntiFraudScoreInfoContent; + JSONObject subObj = obj.getJSONObject(key); + bodyPersonAntiFraudScoreInfoContent = bodyPersonAntiFraudScoreInfoContent.replace("riskScore", subObj.getString("riskScore")); + bodyPersonAntiFraudScoreInfoContent = bodyPersonAntiFraudScoreInfoContent.replace("riskLevel", subObj.getString("riskLevel")); + bodyPersonAntiFraudScoreInfoContent = bodyPersonAntiFraudScoreInfoContent.replace("hitTypes", subObj.getString("hitTypes")); + return bodyPersonAntiFraudScoreInfoContent; + } + + //反欺诈分析指数 + public static String personAntiFraudScoreInfoContent = + " 欺诈风险指数为 riskScore 分 \n" + + "欺诈风险等级为 riskLevel \n" + + " 欺诈风险标签为 hitTypes \n" ; + + //反欺诈分析指数【图片删掉】 + public static String personAntiFraudScoreInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
欺诈风险指数
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n" ; + + /** + * 证件号码校验信息 + * @param obj + * @return + */ + private static String createPersonBaseInfoContent(String key, JSONObject obj) throws ParseException { + String bodyPersonBaseInfoContent = personBaseInfoContent; + JSONObject subObj = obj.getJSONObject(key); + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("docNo", subObj.getString("docNo")); + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); + Date birDate = sdf.parse(subObj.getString("birthday")); + SimpleDateFormat sdfRes = new SimpleDateFormat("yyyy年MM月dd日"); + String birStr = sdfRes.format(birDate); + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("birthday", birStr); + String genderId = subObj.getString("genderID"); + if("1".equals(genderId)){ + genderId = "男"; + }else if("2".equals(genderId)){ + genderId = "女"; + }else if("3".equals(genderId)){ + genderId = "不详"; + } + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("genderID", genderId); + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("age", subObj.getString("age")); + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("originalAddress", subObj.getString("originalAddress")); + bodyPersonBaseInfoContent = bodyPersonBaseInfoContent.replace("verifyResult", "1".equals(subObj.getString("verifyResult")) ? "通过" : "未通过"); + return bodyPersonBaseInfoContent; + } + + //证件号码校验信息 + public static String personBaseInfoContent = + " \n" + + " 证件号码 \n" + + " docNo \n" + + " 出生日期 \n" + + " birthday \n" + + " \n" + + " \n" + + " 性别 \n" + + " genderID \n" + + " 年龄 \n" + + " age \n" + + " \n" + + " \n" + + " 原始发证地区 \n" + + " originalAddress \n" + + " \n" + + " \n" + + " 证件校验结果 \n" + + " verifyResult \n" + + " \n" ; + + //证件号码校验信息 + public static String personBaseInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
证件号码校验信息
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n"; + + + /** + * 证件号码校验信息 + * @param obj + * @return + */ + private static String createPoliceCheckInfoContent(String key, JSONObject obj){ + StringBuilder sb = new StringBuilder(); + JSONObject arrObj = obj.getJSONObject(key); + JSONArray subArr = arrObj.getJSONArray("item"); + for(int i = 0; i < subArr.size(); i++){ + JSONObject subObj = subArr.getJSONObject(i); + String bodyPoliceCheckInfoContent = policeCheckInfoContent; + bodyPoliceCheckInfoContent = bodyPoliceCheckInfoContent.replace("result", + "1".equals(subObj.getString("result")) ? "一致" : "不一致"); + sb.append(bodyPoliceCheckInfoContent); + } + return sb.toString(); + } + + //证件号码认证结果 + public static String policeCheckInfoContent = + " \n" + + " 身份认证结果 \n" + + " result \n" + + " \n" ; + + //证件号码认证结果 + public static String policeCheckInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
身份认证
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n"; + + /** + * 手机号码校验信息结果 + * @param obj + * @return + */ + private static String createMobileCheckInfoContent(String key, JSONObject obj){ + StringBuilder sb = new StringBuilder(); + JSONObject arrObj = obj.getJSONObject(key); + JSONArray subArr = arrObj.getJSONArray("item"); + for(int i = 0; i < subArr.size(); i++){ + JSONObject subObj = subArr.getJSONObject(i); + String bodyMobileCheckInfoContent = mobileCheckInfoContent; + bodyMobileCheckInfoContent = bodyMobileCheckInfoContent.replace("checkResult", subObj.getString("checkResult")); + bodyMobileCheckInfoContent = bodyMobileCheckInfoContent.replace("areaInfo", subObj.getString("areaInfo")); + bodyMobileCheckInfoContent = bodyMobileCheckInfoContent.replace("operator", MobileOperatorEnums.getValueData(subObj.getString("operator"))); + sb.append(bodyMobileCheckInfoContent); + } + return sb.toString(); + } + + + //手机号码校验信息结果 + public static String mobileCheckInfoContent = + " \n" + + " 运营商名称 \n" + + " operator \n" + + " \n" + + " \n" + + " 手机号码归属地 \n" + + " areaInfo \n" + + " \n" + + " \n" + + " 手机认证结果 \n" + + " checkResult \n" + + " \n" ; + //手机号码校验信息结果 + public static String mobileCheckInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
手机认证
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n"; + + /** + * 手机号码在线时长 + * @param obj + * @return + */ + private static String createMobileStatusInfoContent(String key, JSONObject obj){ + StringBuilder sb = new StringBuilder(); + JSONObject arrObj = obj.getJSONObject(key); + JSONArray subArr = arrObj.getJSONArray("item"); + for(int i = 0; i < subArr.size(); i++){ + JSONObject subObj = subArr.getJSONObject(i); + String bodyMobileStatusInfoContent = mobileStatusInfoContent; + bodyMobileStatusInfoContent = bodyMobileStatusInfoContent.replace("timeLength", MobileTimeLengthEnums.getValueData(subObj.getString("timeLength"))); + bodyMobileStatusInfoContent = bodyMobileStatusInfoContent.replace("phoneStatus", MobileStsEnums.getValueData(subObj.getString("phoneStatus"))); + sb.append(bodyMobileStatusInfoContent); + } + return sb.toString(); + } + + + //手机号码在线时长 + public static String mobileStatusInfoContent = + " \n" + + " 手机号码状态 \n" + + " phoneStatus \n" + + " \n" + + " \n" + + " 手机号码在网时长 \n" + + " timeLength \n" + + " \n" ; + + //手机号码在线时长 + public static String mobileStatusInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
手机号码状态时长
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + + " subContent \n" + + "
\n" + + " \n"; + + + /** + * 风险名单命中结果 + * @param obj + * @return + */ + private static String createPersonRiskRosterInfoContent(String key, JSONObject obj){ + String bodyPersonRiskRosterInfoContent = personRiskRosterInfoContent; + JSONObject subObj = obj.getJSONObject(key); + StringBuilder sb = new StringBuilder(); + // TODO: 2020/7/29 判断为空 + String[] riskTypes = subObj.getString("riskTypes").split(","); + for(String riskType : riskTypes){ + sb.append(RiskType.getValueData(riskType) + ", "); + } + String risk = sb.toString(); + risk = risk.substring(0, risk.length() - 2); + bodyPersonRiskRosterInfoContent = bodyPersonRiskRosterInfoContent.replace("riskTypes", risk); + return bodyPersonRiskRosterInfoContent; + } + + //风险名单命中结果 + public static String personRiskRosterInfoContent = + " \n" + + " 命中风险类型 \n" + + " riskTypes \n" + + " \n" ; + + //风险名单命中结果 + public static String personRiskRosterInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
风险名单
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n"; + + + /** + * 风险名单命中结果 + * @param obj + * @return + */ + private static String createPersonJudicialSFRiskInfoContent(String key, JSONObject obj){ + String bodyPersonJudicialRiskInfoContentSFItem = personJudicialRiskInfoContent; + String tail = ""; + //obj转换 + JSONObject resObj = new JSONObject(); + JSONObject civilCaseCount = new JSONObject(); + JSONObject criminalCaseCount = new JSONObject(); + JSONObject judicialCount = new JSONObject(); + JSONObject endCaseCount = new JSONObject(); + JSONObject breakFaithCount = new JSONObject(); + JSONObject judicialTotalCount = new JSONObject(); + resObj.put("civilCaseCount", civilCaseCount); + resObj.put("criminalCaseCount", criminalCaseCount); + resObj.put("judicialCount", judicialCount); + resObj.put("endCaseCount", endCaseCount); + resObj.put("breakFaithCount", breakFaithCount); + resObj.put("judicialTotalCount", judicialTotalCount); + JSONObject subObj = obj.getJSONObject("personJudicialRiskInfo"); + JSONArray subArr = subObj.getJSONArray("item"); + for(int i = 0; i < subArr.size(); i++){ + JSONObject subJson = subArr.getJSONObject(i); + String resKey = JudicialRiskTimeLengthEnums.getValueData(subJson.getString("timePeriod")); + for(String subKey : subJson.keySet()){ + for(String resSubKey : resObj.keySet()){ + if(subKey.equals(resSubKey)){ + JSONObject resSubObj = resObj.getJSONObject(resSubKey); + resSubObj.put(resKey, subJson.getString(subKey)); + } + } + } + } + StringBuilder sb = new StringBuilder(); + //循环 + for(String resKey : resObj.keySet()){ + JSONObject resJson = resObj.getJSONObject(resKey); + String content = personJudicialRiskInfoContentSFItem; + content = content.replace("judicialSFType", JudicialSFCountTypeEnums.getValueData(resKey)); + for(JudicialRiskTimeLengthEnums je : JudicialRiskTimeLengthEnums.values()){ + content = content.replace(je.getDesc(), resJson.getString(je.getDesc())); + } + if("judicialTotalCount".equals(resKey)){//合计放在末尾 + tail = content; + }else { + sb.append(content); + } + } + return bodyPersonJudicialRiskInfoContentSFItem + sb.toString() + tail; + } + /** + * 风险名单命中结果 + * @param obj + * @return + */ + private static String createPersonJudicialXZRiskInfoContent(String key, JSONObject obj){ + String bodyPersonJudicialRiskInfoContentXZItem = personJudicialRiskInfoContent; + String tail = ""; + //obj转换 + JSONObject resObj = new JSONObject(); + JSONObject taxPunishCount = new JSONObject(); + JSONObject marketPunishCount = new JSONObject(); + JSONObject customsPunishCount = new JSONObject(); + JSONObject environmentPunishCount = new JSONObject(); + JSONObject otherPunishCount = new JSONObject(); + JSONObject punishTotalCount = new JSONObject(); + resObj.put("taxPunishCount", taxPunishCount); + resObj.put("marketPunishCount", marketPunishCount); + resObj.put("customsPunishCount", customsPunishCount); + resObj.put("environmentPunishCount", environmentPunishCount); + resObj.put("otherPunishCount", otherPunishCount); + resObj.put("punishTotalCount", punishTotalCount); + JSONObject subObj = obj.getJSONObject("personJudicialRiskInfo"); + JSONArray subArr = subObj.getJSONArray("item"); + for(int i = 0; i < subArr.size(); i++){ + JSONObject subJson = subArr.getJSONObject(i); + String resKey = JudicialRiskTimeLengthEnums.getValueData(subJson.getString("timePeriod")); + for(String subKey : subJson.keySet()){ + for(String resSubKey : resObj.keySet()){ + if(subKey.equals(resSubKey)){ + JSONObject resSubObj = resObj.getJSONObject(resSubKey); + resSubObj.put(resKey, subJson.getString(subKey)); + } + } + } + } + + StringBuilder sb = new StringBuilder(); + System.out.println("resObj="+resObj.toJSONString()); + //循环 + for(String resKey : resObj.keySet()){ + JSONObject resJson = resObj.getJSONObject(resKey); + String content = personJudicialRiskInfoContentXZItem; + content = content.replace("judicialXZType", JudicialXZCountTypeEnums.getValueData(resKey)); + for(JudicialRiskTimeLengthEnums je : JudicialRiskTimeLengthEnums.values()){ + content = content.replace(je.getDesc(), resJson.getString(je.getDesc())); + } + if("punishTotalCount".equals(resKey)){//合计放在末尾 + tail = content; + }else { + sb.append(content); + } + } + return bodyPersonJudicialRiskInfoContentXZItem + sb.toString() + tail; + } + + /** + * 内容生成 + * @param key + * @param obj + * @return + */ + private static String createBodyContentDes(String key, JSONObject obj) throws ParseException { + if("personAntiFraudDescInfo".equals(key)){ + return createPafDescContent(key, obj); + }else if("personAntiFraudScoreInfo".equals(key)){ + return createPersonAntiFraudScoreInfoContent(key, obj); + }else if("personBaseInfo".equals(key)){//证件号码校验信息 + return createPersonBaseInfoContent(key, obj); + }else if("policeCheckInfo".equals(key)){ + return createPoliceCheckInfoContent(key, obj); + }else if("mobileCheckInfo".equals(key)){ + return createMobileCheckInfoContent(key, obj); + }else if("mobileStatusInfo".equals(key)){ + return createMobileStatusInfoContent(key, obj); + }else if("personRiskRosterInfo".equals(key)){ + return createPersonRiskRosterInfoContent(key, obj); + }else if("personJudicialSFRiskInfo".equals(key)){ + return createPersonJudicialSFRiskInfoContent(key, obj); + }else if("personJudicialXZRiskInfo".equals(key)){ + return createPersonJudicialXZRiskInfoContent(key, obj); + } + return null; + } + + + public static String personJudicialRiskInfoContentSFItem = + " \n" + + " judicialSFType \n" + + " oneYearCount \n" + + " twoYearCount \n" + + " fiveYearCount \n" + + " historyYearCount \n" + + " \n"; + + public static String personJudicialRiskInfoContentXZItem = + " \n" + + " judicialXZType \n" + + " oneYearCount \n" + + " twoYearCount \n" + + " fiveYearCount \n" + + " historyYearCount \n" + + " \n"; + + public static String personJudicialRiskInfoContent = + " \n" + + " 风险类型 \n" + + " 近1年 \n" + + " 近2年 \n" + + " 近5年 \n" + + " 历史 \n" + + " \n" ; + + public static String personJudicialSFRiskInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
司法风险汇总
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
司法涉诉
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " \n" ; + + public static String personJudicialXZRiskInfo = + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "
行政处罚
\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " subContent \n" + + "
\n" + + " "; + + +} diff --git a/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlCreate.java b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlCreate.java new file mode 100644 index 000000000..f93bf8da6 --- /dev/null +++ b/src_tenwa/com/tenwa/httpclient/pypafhtml/PyHtmlCreate.java @@ -0,0 +1,141 @@ +package com.tenwa.httpclient.pypafhtml; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import org.dom4j.Document; +import org.dom4j.Element; +import org.dom4j.io.SAXReader; +import org.dom4j.tree.DefaultAttribute; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.PrintStream; +import java.util.List; + + +public class PyHtmlCreate { + + /** + * xml文件读取并生成html文件 + * @param xmlFilePath + * @return + */ + public static String createHtmlFile(String xmlFilePath, String htmlFilePath) throws Exception { + SAXReader reader = new SAXReader(); + File xmlFile = new File(xmlFilePath); + Document document = reader.read(xmlFile); + Element root = document.getRootElement(); + JSONObject obj = createObjJson(root); + System.out.println("PyHtmlCreate===========JSON=" + obj.toJSONString()); + String reportId = obj.getString("reportID"); + // TODO: 2020/7/30 文件地址修改 + htmlFilePath = htmlFilePath + "xmlHtml/"+ reportId +".html"; + File htmlFile = new File(htmlFilePath); + htmlFile.createNewFile(); + String htmlContent = createHtml(obj); + PrintStream printStream = new PrintStream(new FileOutputStream(htmlFile)); + printStream.println(htmlContent);//将字符串写入文件 + return htmlFilePath; + } + + /** + * xml转换json + * @param root + * @return + */ + private static JSONObject createObjJson(Element root){ + JSONObject obj = new JSONObject(); + List rootAttribute = root.attributes(); + for(DefaultAttribute roAttribute : rootAttribute) { + obj.put(roAttribute.getName(), roAttribute.getStringValue()); + } + List cisReports = root.elements(); + String reportID = null; + + for(Element cisReport : cisReports) { + List crAttributes = cisReport.attributes(); + for(DefaultAttribute crAttribute : crAttributes) { + obj.put(crAttribute.getName(), crAttribute.getStringValue()); + } + JSONObject queryConditionsObj = new JSONObject(); + obj.put("queryConditionsObj", queryConditionsObj); + Element queryCondition = cisReport.element("queryConditions"); + List items = queryCondition.elements("item"); + for(Element item : items) { + List subItem = item.elements(); + queryConditionsObj.put(subItem.get(0).getTextTrim(), subItem.get(2).getTextTrim()); + } + JSONObject personAntiFraudDescInfo = createJson(cisReport, "personAntiFraudDescInfo"); + obj.put("personAntiFraudDescInfo", personAntiFraudDescInfo); + JSONObject personAntiFraudScoreInfo = createJson(cisReport, "personAntiFraudScoreInfo"); + obj.put("personAntiFraudScoreInfo", personAntiFraudScoreInfo); + JSONObject personBaseInfo = createJson(cisReport, "personBaseInfo"); + obj.put("personBaseInfo", personBaseInfo); + JSONObject personRiskRosterInfo = createJson(cisReport, "personRiskRosterInfo"); + obj.put("personRiskRosterInfo", personRiskRosterInfo); + + JSONObject policeCheckInfo = createJson(cisReport, "policeCheckInfo"); + obj.put("policeCheckInfo", policeCheckInfo); + + JSONObject mobileCheckInfo = createJson(cisReport, "mobileCheckInfo"); + obj.put("mobileCheckInfo", mobileCheckInfo); + + JSONObject mobileStatusInfo = createJson(cisReport, "mobileStatusInfo"); + obj.put("mobileStatusInfo", mobileStatusInfo); + + JSONObject personJudicialRiskInfo = createJson(cisReport, "personJudicialRiskInfo"); + obj.put("personJudicialRiskInfo", personJudicialRiskInfo); + } + return obj; + } + + /** + * json 组装 + * @param cisReport + * @param key + * @return + */ + private static JSONObject createJson(Element cisReport, String key){ + JSONObject obj = new JSONObject(); + Element subElement = cisReport.element(key); + List subAttributes = subElement.attributes(); + for(DefaultAttribute sub : subAttributes) { + obj.put(sub.getName(), sub.getStringValue()); + } + //返回结果值不为3即尝试解析内容是否有值 + if(!"3".equals(obj.getString("treatResult"))){ + List grandsonElements = subElement.elements(); + JSONArray item = new JSONArray(); + for(Element element : grandsonElements) { + if(!"item".equals(element.getName())){ + obj.put(element.getName(), element.getStringValue().trim()); + }else { + JSONObject itemObj = new JSONObject(); + List subGrandsonElements = element.elements(); + for(Element e : subGrandsonElements){ + itemObj.put(e.getName(), e.getStringValue().trim()); + } + item.add(itemObj); + } + } + if(null != item && item.size() > 0){ + obj.put("item", item); + } + } + return obj; + } + + /** + * html组装 + * @param obj + * @return + */ + private static String createHtml(JSONObject obj) throws Exception { + StringBuilder sb = new StringBuilder(); + sb.append(PyHtmlBase.header); + sb.append(PyHtmlContent.createBodyHead(obj)); + sb.append(PyHtmlContent.createBodyContent(obj)); + sb.append(PyHtmlBase.tail); + return sb.toString(); + } +}