项目初始化创建

This commit is contained in:
2024-04-12 11:38:46 +08:00
commit 9eda320ed5
144 changed files with 9527 additions and 0 deletions

BIN
lib/commons-lang3-3.8.1.jar Normal file

Binary file not shown.

BIN
lib/dingtalk-1.5.24.jar Normal file

Binary file not shown.

BIN
lib/gson-2.8.9.jar Normal file

Binary file not shown.

BIN
lib/hamcrest-core-1.3.jar Normal file

Binary file not shown.

BIN
lib/httpcore-4.4.10.jar Normal file

Binary file not shown.

BIN
lib/junit-4.13.1.jar Normal file

Binary file not shown.

BIN
lib/lippi-oapi-encrpt.jar Normal file

Binary file not shown.

BIN
lib/lombok-1.18.10.jar Normal file

Binary file not shown.

BIN
lib/servlet-api-2.5.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>chushihua</id>
<name>历史数据同步</name>
<category>20231208</category>
</plugin>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="hsDataSyncQuartz" class="com.seeyon.apps.daohuaxiangSys.chushihua.quartz.HsDataSyncQuartz" />
</beans>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="hsDataPluginApi" class="com.seeyon.apps.daohuaxiangSys.chushihua.HsDataPluginApi" />
</beans>

View File

@@ -0,0 +1,28 @@
profile=prod
prod.dowUrl=https://oa.dhx.com.cn/seeyon/rest/attachment/file
prod.profile=prod
prod.jyncFile=https://oa.dhx.com.cn/seeyon/dhxfile
prod.address=https://crm.dhx9.com
prod.newAddress=http://10.0.6.15:88
prod.loginid=yc
prod.pwd=yc123456
prod.tongyongApi=/api/workflow/paService/doCreateRequest
prod.appid=oa
prod.workflowId=8521
prod.newWorkflowId=2026
prod.spk=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAymEn8vp0E8pg6op/WXJ4A67jHAYeUBtut8vJgk09t4Bw3kheWnHUjVHDBEZ8iC/iX9YyBzL76WZR+lpDqdFh2iKYk+yctHKc4dt9r0vw6HYMUWDrYmctdKJtdOGpWxz4apBr7Rc/2A3FDxwsiXzPqpG/GY+/1IHp7E3jEX0nxzuJn/YUm/SoSgfMB4NCHF9n3rrIsp4jJ5SOSwLr68nlwT3djF2f8vQcqRxmT0J7X2xKehlpeiubszQj5TeFcA+onkOBKkoKc+83G8Gg8J1IWZLsd50cjawrmg8lxl+UBEsPZHEh0AhWDHKLRG+9jyZJ94hoWaQRSgwEIdGyShNMnwIDAQAB
prod.newSpk=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvcOew5NM41jK7CFBnirP4Zz0QIexYEweS+4LTuQOVY+BqHu2EMxlPYRsjtvzZj7Pm9SsiNiEIeGXZ3mkAMbNNqu7G7kGb10pJzpBBTE80cRCY0bHoD3PhD8cBiKjpsRXJ+1mPdwD4fGEr0IcG6bKhBM3xsCmc4JiEvsv/+nPm9G7NQgoPGEKHkZk0IgyaBF5m6F2NKah92klxuz+vWCQoVsCpCjHN1sijQioWc6lRLgP7d6IZFEbOrLL7HdlOc8yKOAOZhURd78CqiVYBc1vP0pyC1/UW0Lq0f2MFpg/7Z18VwAf1vFUb+oiIdjFYMr5dgS+i784FaMUDzKUvndDWwIDAQAB
prod.paybillFileUrl=
prod.generalbillUrl=
prod.transformUrl=
prod.xcfzCancelUrl=
prod.sbfzCancelUrl=
prod.restname=beian
prod.restpassword=f1c4e761-d60b-47ff-a5ff-5953f2b9c9e0
prod.oaTokenUrl=https://oa.dhx.com.cn/seeyon/rest/token
prod.loginName=test11
prod.secret=b44da0ec-6ba5-4d6e-b3d7-e0571b3bcdd6
prod.newSecret=6553bad7-51f0-4d56-af44-3d64a8ce9814
prod.sql=select id,departmentid,lastname from hrmresource@ecology where lastname = ?
#prod.sql=select id,departmentid,lastname from hrmresource@ecology_new where lastname = ?
prod.dataSql=select id, FORM_RECORDID, FORM_APPID , FORMID from col_summary cs where TEMPLETE_ID = ? and CAN_AUTOSTOPFLOW = 0 and STATE = 3

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>daohuaxiang</id>
<name>稻花香</name>
<category>20231206</category>
</plugin>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="tongYongNode" class="com.seeyon.apps.daohuaxiangSys.jkts.node.TongYongNode" />
<bean id="newTongYongNode" class="com.seeyon.apps.daohuaxiangSys.jkts.node.NewTongYongNode" />
</beans>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="tongYongService" class="com.seeyon.apps.daohuaxiangSys.jkts.service.TongYongService" />
<bean id="newTongYongService" class="com.seeyon.apps.daohuaxiangSys.jkts.service.NewTongYongService" />
</beans>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="tongYongPlugin" class="com.seeyon.apps.daohuaxiangSys.jkts.TongYongPlugin" />
</beans>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>qrCodeForm</id>
<name>二维码扫码填单</name>
<category>20220422</category>
</plugin>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="/qrCodeForm.do" class="com.seeyon.apps.qrCodeForm.controller.QrCodeFormController"/>
</beans>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="qrCodeFormManager" class="com.seeyon.apps.qrCodeForm.manager.QrCodeFormManagerImpl" />
<bean id="wechatQR" class="com.seeyon.ctp.portal.sso.SSOLoginContext">
<property name="name" value="wechatQR"></property>
<property name="ticketName" value="code"></property>
<property name="handshake">
<bean class="com.seeyon.apps.qrCodeForm.sso.WechatQRHandShake"></bean>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="qrCodeFormPluginApi" class="com.seeyon.apps.qrCodeForm.QrCodeFormPluginApi" />
<bean name="qrCodeForm_SystemInitializer" class="com.seeyon.apps.qrCodeForm.QrCodeFormPluginInitializer"/>
</beans>

View File

@@ -0,0 +1,11 @@
profile=prod
prod.jdbc_driver=oracle.jdbc.driver.OracleDriver
prod.jdbc_url=jdbc:oracle:thin:@10.0.1.12:1521:DHXOA
prod.jdbc_user=DHXOA
prod.jdbc_password=DHXOA-A8
#profile=prod
test.jdbc_driver=oracle.jdbc.driver.OracleDriver
test.jdbc_url=jdbc:oracle:thin:@10.0.3.32:1521:DHXOATEST
test.jdbc_user=DHXOA
test.jdbc_password=DHXOA_A8

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>src_dingding</id>
<name>测试定时任务</name>
<category>20231129</category>
</plugin>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="/dingdingTask.do" class="com.seeyon.apps.src_dingding.ctrl.StartTaskController" >
</bean>
</beans>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="dingdingDao" class="com.seeyon.apps.src_dingding.dao.DingdingDaoImpl" />
</beans>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="dingdingService" class="com.seeyon.apps.src_dingding.service.DingdingService" />
</beans>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="dingdingTask" class="com.seeyon.apps.src_dingding.task.DingdingTask" />
</beans>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>src_qyba</id>
<name>区域备案</name>
<category>20240304</category>
</plugin>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="fvNewZhengceNode" class="com.seeyon.apps.src_qyba.node.FVNewZhengceNode" />
<bean id="fvOldZhengceNode" class="com.seeyon.apps.src_qyba.node.FVOldZhengceNode" />
</beans>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="fvService" class="com.seeyon.apps.src_qyba.service.FVService" />
</beans>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean id="qyBAPluginApi" class="com.seeyon.apps.src_qyba.QYBAPluginApi" />
</beans>

View File

@@ -0,0 +1,322 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<bean>
<id>/qrCodeForm.do</id>
<methods>
<method>index</method>
<method>newMain</method>
</methods>
</bean>
<bean>
<id>/sc.do</id>
<methods>
<method>qr</method>
</methods>
</bean>
<bean>
<id>/elearning.do</id>
<methods>
<method>error</method>
<method>m3Redirect</method>
<method>message</method>
<method>pcRedirect</method>
</methods>
</bean>
<bean>
<id>/phoneLogin/phoneLogin.do</id>
<methods>
<method>getMessageCode</method>
<method>validateMessageCode</method>
</methods>
</bean>
<bean>
<id>/wechat/miniprogram.do</id>
<methods>
<method>a8home</method>
<method>bind</method>
<method>bindMemberPhone</method>
<method>login</method>
<method>unbind</method>
</methods>
</bean>
<bean>
<id>/portal/spaceController.do</id>
<methods>
<method>showThemSpace</method>
</methods>
</bean>
<bean>
<id>/identification.do</id>
<methods>
<method>getSessionId</method>
</methods>
</bean>
<bean>
<id>/fileUpload.do</id>
<methods>
<method>showRTE</method>
</methods>
</bean>
<bean>
<id>/fileDownload.do</id>
<methods>
<method>showRTE</method>
</methods>
</bean>
<bean>
<id>/form/formUpgrade.do</id>
<methods>
<method>toUpgrade</method>
<method>upgrade</method>
<method>viewUpgrade</method>
</methods>
</bean>
<bean>
<id>formtalkFormMapperController.do</id>
<methods>
<method>importFormtalkData</method>
</methods>
</bean>
<bean>
<id>/thirdpartyController.do</id>
<methods>
<method>access</method>
<method>index</method>
<method>logoutNotify</method>
<method>show</method>
<method>mailAuth</method>
</methods>
</bean>
<bean>
<id>/main.do</id>
<methods>
<method>changeLocale</method>
<method>hangup</method>
<method>headerjs</method>
<method>index</method>
<method>login</method>
<method>login4Ucpc</method>
<method>login4Ucpc3</method>
<method>login4Vjoin</method>
<method>logout</method>
<method>logout4Session</method>
<method>logout4Vjoin</method>
<method>logout4ZX</method>
<method>main</method>
<method>login4QrCode</method>
<method>qrCodeHelp</method>
<method>updateLoginSeed</method>
</methods>
</bean>
<bean>
<id>/trustdo/A8/XRD.do</id>
<methods>
<method>getLoginAccount</method>
<method>getLoginAcctoken</method>
<method>webLogin</method>
</methods>
</bean>
<bean>
<id>/share.do</id>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/genericController.do</id>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/edoc/edocUpgradeControllor.do</id>
<methods>
<method>upgrade</method>
<method>download</method>
</methods>
</bean>
<bean>
<id>/uploadService.do</id>
<methods>
<method>processUploadService</method>
</methods>
</bean>
<bean>
<id>/autoinstall.do</id>
<methods>
<method>ieSetDown</method>
<method>regInstallDown</method>
<method>regInstallDown64</method>
<method>downloadAssistant</method>
</methods>
</bean>
<bean>
<id>/personalBind.do</id>
<methods>
<method>getBindTypeByLoginName</method>
<method>isCanUse</method>
<method>retrievePassword</method>
<method>sendVerificationCodeToBindEmail</method>
<method>sendVerificationCodeToBindNum</method>
<method>validateVerificationCode</method>
</methods>
</bean>
<!-- <bean>白名单清理-->
<!-- <id>/meetingPanel.do</id>-->
<!-- <methods>-->
<!-- <method>meetingPanelDisplay</method>-->
<!-- <method>meetingPanelView</method>-->
<!-- </methods>-->
<!-- </bean>-->
<bean>
<id>/commonimage.do</id>
<methods>
<method>showImage</method>
</methods>
</bean>
<bean>
<id>/individualManager.do</id>
<methods>
<method>resetPassword</method>
</methods>
</bean>
<bean>
<id>/wechat/dingding.do</id>
<methods>
<method>binding</method>
<method>index</method>
<method>main</method>
<method>newIndex</method>
<method>newMain</method>
<method>viewh5Message</method>
</methods>
</bean>
<bean>
<id>/uc/rest.do</id>
<methods>
<method>commonPierce</method>
<method>downloadImage</method>
<method>getBgTimeStamp</method>
<method>getLoginsecurityMsg</method>
<method>sendsms</method>
<method>smsrequired</method>
<method>testIp</method>
<method>isQrLogin</method>
<method>getDigitalCodeInfo</method>
</methods>
</bean>
<bean>
<id>portalManager</id>
<methods>
<method>sendSMSLoginCode</method>
<method>smsLoginEnabled</method>
</methods>
</bean>
<bean>
<id>loginUserManager</id>
<methods>
<method>getLockTime</method>
</methods>
</bean>
<bean>
<id>qrCodeLoginManager</id>
<methods>
<method>isLogin</method>
</methods>
</bean>
<bean>
<id>meetingAjaxManager</id>
<methods>
<method>meetingPanelData</method>
<method>meetingPanelDisplay</method>
</methods>
</bean>
<bean>
<id>/m3/loginController.do</id>
<methods>
<method>transLogin</method>
<method>transLogout</method>
<method>getProfile</method>
</methods>
</bean>
<bean>
<id>/m3/mClientBindController.do</id>
<methods>
<method>bindApply</method>
</methods>
</bean>
<bean>
<id>m3ProductManager</id>
<methods>
<method>productInfo</method>
<method>productStatus</method>
</methods>
</bean>
<bean>
<id>/m3/homeSkinController.do</id>
<methods>
<method>downloadImage</method>
<method>getSkinImageUrl</method>
</methods>
</bean>
<bean>
<id>/m3/transModeController.do</id>
<methods>
<method>getTransModeForMobile</method>
</methods>
</bean>
<bean>
<id>/media/media.do</id>
<methods>
<method>mediaShow</method>
</methods>
</bean>
<bean>
<id>/ocipEdoc.do</id>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/colView.do</id>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/caAccountManagerController.do</id>
<methods>
<method>findKeyNumByLoginName</method>
</methods>
</bean>
<bean>
<id>/fddCallbackController.do</id>
<methods>
<method>asynch</method>
<method>synch</method>
</methods>
</bean>
<bean>
<id>/seeyonReport/seeyonReportController.do</id>
<methods>
<method>redirectSeeyonReport</method>
</methods>
</bean>
<bean>
<id>/imc.do</id>
<methods>
<method>index</method>
<method>logout</method>
</methods>
</bean>
<bean>
<id>/cloudbuild.do</id>
<methods>
<method>download</method>
<method>getDownloadPageInfo</method>
<method>getLatestVersionInfo</method>
<method>getDownloadQrUrl</method>
</methods>
</bean>
</beans>

View File

@@ -0,0 +1,426 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<bean>
<id>/qrCodeForm.do</id>
<name>com.seeyon.apps.qrCodeForm.controller.QrCodeFormController</name>
<methods>
<method>index</method>
<method>newMain</method>
</methods>
</bean>
<bean>
<id>/sc.do</id>
<name>com.seeyon.cap4.form.modules.smartCode.controller.SmartCodeController</name>
<methods>
<method>qr</method>
</methods>
</bean>
<bean>
<id>/media/media.do</id>
<name>com.seeyon.ctp.common.media.controller.MediaController</name>
<methods>
<method>mediaShow</method>
</methods>
</bean>
<bean>
<id>/phoneLogin/phoneLogin.do</id>
<name>com.seeyon.ctp.login.controller.PhoneLoginController</name>
<methods>
<method>getMessageCode</method>
<method>validateMessageCode</method>
</methods>
</bean>
<bean>
<id>portalManager</id>
<name>com.seeyon.ctp.portal.manager.PortalManagerImpl</name>
<methods>
<method>sendSMSLoginCode</method>
<method>smsLoginEnabled</method>
</methods>
</bean>
<bean>
<id>/fileDownload.do</id>
<name>com.seeyon.ctp.common.fileupload.FileUploadController</name>
<methods>
<method>showRTE</method>
</methods>
</bean>
<bean>
<id>loginUserManager</id>
<name>com.seeyon.ctp.login.LoginUserManagerImpl</name>
<methods>
<method>getLockTime</method>
</methods>
</bean>
<bean>
<id>/main.do</id>
<name>com.seeyon.ctp.login.controller.MainController</name>
<methods>
<method>changeLocale</method>
<method>hangup</method>
<method>headerjs</method>
<method>index</method>
<method>login</method>
<method>login4Ucpc</method>
<method>login4Ucpc3</method>
<method>login4Vjoin</method>
<method>logout</method>
<method>logout4Session</method>
<method>logout4Vjoin</method>
<method>logout4ZX</method>
<method>main</method>
<method>login4QrCode</method>
<method>qrCodeHelp</method>
<method>updateLoginSeed</method>
</methods>
</bean>
<bean>
<id>/trustdo/A8/XRD.do</id>
<name>com.seeyon.apps.trustdo.controller.XRDController</name>
<methods>
<method>getLoginAccount</method>
<method>getLoginAcctoken</method>
<method>webLogin</method>
</methods>
</bean>
<bean>
<id>/share.do</id>
<name>com.seeyon.v3x.system.share.controller.ShareController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/edoc/edocUpgradeControllor.do</id>
<name>com.seeyon.v3x.edoc.controller.EdocUpgradeControllor</name>
<methods>
<method>upgrade</method>
<method>download</method>
</methods>
</bean>
<bean>
<id>/m3/mClientBindController.do</id>
<name>com.seeyon.apps.m3.bind.controller.M3ClientBindController</name>
<methods>
<method>bindApply</method>
</methods>
</bean>
<bean>
<id>/uploadService.do</id>
<name>com.seeyon.ctp.services.FileUploadService</name>
<methods>
<method>processUploadService</method>
</methods>
</bean>
<bean>
<id>/uc/rest.do</id>
<name>com.seeyon.apps.zx.controller.ZxRestController</name>
<methods>
<method>commonPierce</method>
<method>downloadImage</method>
<method>getBgTimeStamp</method>
<method>getLoginsecurityMsg</method>
<method>sendsms</method>
<method>smsrequired</method>
<method>testIp</method>
<method>isQrLogin</method>
<method>getDigitalCodeInfo</method>
</methods>
</bean>
<bean>
<id>/m3/homeSkinController.do</id>
<name>com.seeyon.apps.m3.skin.controller.M3HomeSkinController</name>
<methods>
<method>downloadImage</method>
<method>getSkinImageUrl</method>
</methods>
</bean>
<bean>
<id>/colView.do</id>
<name>com.seeyon.apps.ocip.exchange.collaboration.controller.CollViewController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/autoinstall.do</id>
<name>com.seeyon.apps.autoinstall.controller.AutoInstallController</name>
<methods>
<method>ieSetDown</method>
<method>regInstallDown</method>
<method>regInstallDown64</method>
<method>downloadAssistant</method>
</methods>
</bean>
<!-- <bean> 白名单清理-->
<!-- <id>/meetingPanel.do</id>-->
<!-- <name>com.seeyon.apps.meeting.controller.MeetingPanelController</name>-->
<!-- <methods>-->
<!-- <method>meetingPanelDisplay</method>-->
<!-- <method>meetingPanelView</method>-->
<!-- </methods>-->
<!-- </bean>-->
<bean>
<id>/caAccountManagerController.do</id>
<name>com.seeyon.v3x.ca.caaccount.controller.CAAccountManagerController</name>
<methods>
<method>findKeyNumByLoginName</method>
</methods>
</bean>
<bean>
<id>/elearning.do</id>
<name>com.seeyon.apps.elearning.controller.ElearningController</name>
<methods>
<method>error</method>
<method>m3Redirect</method>
<method>message</method>
<method>pcRedirect</method>
</methods>
</bean>
<bean>
<id>/wechat/miniprogram.do</id>
<name>com.seeyon.apps.weixin.controller.MiniProgramController</name>
<methods>
<method>a8home</method>
<method>bind</method>
<method>bindMemberPhone</method>
<method>login</method>
<method>unbind</method>
</methods>
</bean>
<bean>
<id>/portal/spaceController.do</id>
<name>com.seeyon.ctp.portal.space.controller.SpaceController</name>
<methods>
<method>showThemSpace</method>
</methods>
</bean>
<bean>
<id>/identification.do</id>
<name>com.seeyon.v3x.identification.controller.IdentificationController</name>
<methods>
<method>getSessionId</method>
</methods>
</bean>
<bean>
<id>/fddCallbackController.do</id>
<name>com.seeyon.apps.econtract.fdd.controller.FddCallbackController</name>
<methods>
<method>asynch</method>
<method>synch</method>
</methods>
</bean>
<bean>
<id>m3ProductManager</id>
<name>com.seeyon.apps.m3.product.manager.impl.M3ProductManagerImpl</name>
<methods>
<method>productInfo</method>
<method>productStatus</method>
</methods>
</bean>
<bean>
<id>/ocipEdoc.do</id>
<name>com.seeyon.apps.ocip.exchange.edoc.OCIPEdocController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/m3/loginController.do</id>
<methods>
<method>transLogin</method>
<method>transLogout</method>
<method>getProfile</method>
</methods>
</bean>
<bean>
<id>/fileUpload.do</id>
<name>com.seeyon.ctp.common.fileupload.FileUploadController</name>
<methods>
<method>showRTE</method>
<method>processUpload</method>
</methods>
</bean>
<bean>
<id>qrCodeLoginManager</id>
<name>com.seeyon.ctp.login.manager.QrCodeLoginManagerImpl</name>
<methods>
<method>isLogin</method>
</methods>
</bean>
<bean>
<id>/form/formUpgrade.do</id>
<name>com.seeyon.ctp.form.service.FormUpgradeController</name>
<methods>
<method>toUpgrade</method>
<method>upgrade</method>
<method>viewUpgrade</method>
</methods>
</bean>
<bean>
<id>/seeyonReport/seeyonReportController.do</id>
<name>com.seeyon.apps.seeyonreport.controller.SeeyonReportController</name>
<methods>
<method>redirectSeeyonReport</method>
</methods>
</bean>
<bean>
<id>formtalkFormMapperController.do</id>
<name>com.seeyon.apps.formtalk.controller.FormtalkImportController</name>
<methods>
<method>importFormtalkData</method>
</methods>
</bean>
<bean>
<id>/thirdpartyController.do</id>
<name>com.seeyon.ctp.portal.sso.thirdpartyintegration.controller.ThirdpartyController</name>
<methods>
<method>access</method>
<method>index</method>
<method>logoutNotify</method>
<method>show</method>
<method>mailAuth</method>
</methods>
</bean>
<bean>
<id>/m3/transModeController.do</id>
<name>com.seeyon.apps.m3.transmissionmode.controller.M3TransModeController</name>
<methods>
<method>getTransModeForMobile</method>
</methods>
</bean>
<bean>
<id>/genericController.do</id>
<name>com.seeyon.v3x.common.controller.GenericController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/personalBind.do</id>
<name>com.seeyon.v3x.personalaffair.controller.PersonalBindController</name>
<methods>
<method>getBindTypeByLoginName</method>
<method>isCanUse</method>
<method>retrievePassword</method>
<method>sendVerificationCodeToBindEmail</method>
<method>sendVerificationCodeToBindNum</method>
<method>validateVerificationCode</method>
</methods>
</bean>
<bean>
<id>/commonimage.do</id>
<name>com.seeyon.apps.common.image.controller.ImageController</name>
<methods>
<method>showImage</method>
</methods>
</bean>
<bean>
<id>/individualManager.do</id>
<name>com.seeyon.v3x.personalaffair.controller.IndividualManagerController</name>
<methods>
<method>resetPassword</method>
</methods>
</bean>
<bean>
<id>meetingAjaxManager</id>
<name>com.seeyon.apps.meeting.manager.MeetingAjaxManagerImpl</name>
<methods>
<method>meetingPanelData</method>
<method>meetingPanelDisplay</method>
</methods>
</bean>
<bean>
<id>/wechat/dingding.do</id>
<name>com.seeyon.apps.weixin.controller.DingDingController</name>
<methods>
<method>binding</method>
<method>index</method>
<method>main</method>
<method>newIndex</method>
<method>newMain</method>
<method>viewh5Message</method>
</methods>
</bean>
<bean>
<id>/imc.do</id>
<name>com.seeyon.apps.imc.controller.ImcLoginController</name>
<methods>
<method>index</method>
<method>logout</method>
</methods>
</bean>
<bean>
<id>/wechat/feishu.do</id>
<name>com.seeyon.apps.weixin.controller.FeishuController</name>
<methods>
<method>newMain</method>
<method>viewh5Message</method>
</methods>
</bean>
<!-- <bean>-->
<!-- <id>/wechat/pcapp.do</id>-->
<!-- <name>com.seeyon.apps.zhifei.controller.ZhifeiPcAppController</name>-->
<!-- <methods>-->
<!-- <method>transferPageFromWxCoreServer</method>-->
<!-- <method>gotoPcApp</method>-->
<!-- <method>checkCodeTurnToRightPage</method>-->
<!-- <method>transfer</method>-->
<!-- <method>transferMsg</method>-->
<!-- </methods>-->
<!-- </bean>-->
<bean>
<id>/wechat/pcapp.do</id>
<name>com.seeyon.apps.weixin.controller.PcAppController</name>
<methods>
<method>transferPageFromWxCoreServer</method>
<method>gotoPcApp</method>
<method>checkCodeTurnToRightPage</method>
<method>transfer</method>
<method>transferMsg</method>
</methods>
</bean>
<bean>
<id>/wechat/feishu/approvalData.do</id>
<name>com.seeyon.apps.zhifei.feishu.approval.controller.ApprovalDataController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/zhifei/feishu.do</id>
<name>com.seeyon.apps.zhifei.controller.FeishuController</name>
<methods>
<method>newMain</method>
<method>viewh5Message</method>
</methods>
</bean>
<bean>
<id>/zhifei/pcapp.do</id>
<name>com.seeyon.apps.zhifei.controller.ZhifeiPcAppController</name>
<methods>
<method>transferPageFromWxCoreServer</method>
<method>gotoPcApp</method>
</methods>
</bean>
<bean>
<id>/zhifei/feishu/approvalData.do</id>
<name>com.seeyon.apps.zhifei.feishu.approval.controller.ApprovalDataController</name>
<methods>
<method>index</method>
</methods>
</bean>
<bean>
<id>/cloudbuild.do</id>
<name>com.seeyon.apps.cloudbuild.controller.CloudBuildController</name>
<methods>
<method>download</method>
<method>getDownloadPageInfo</method>
<method>getLatestVersionInfo</method>
<method>getDownloadQrUrl</method>
</methods>
</bean>
</beans>

View File

@@ -0,0 +1,249 @@
<%@ page contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@ page language="java" import=" com.seeyon.apps.m3.skin.enums.M3StartPageCustomEnum" %>
<!DOCTYPE html>
<html class="h100b">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<title>模板二维码生成</title>
<style>
body {
background: #f1f1f1;
}
#center {
overflow: hidden;
zoom: 1;
height: 100%;
}
#sidebar-l {
float: left;
width: 250px;
margin-top: 20px;
height: calc(100% - 40px);
overflow: hidden;
border: 1px solid #DCDBD9;
background: #fff;
margin-right: 20px;
}
#sidebar-c {
float: left;
width: 250px;
margin-top: 20px;
height: calc(100% - 40px);
overflow: hidden;
border: 1px solid #DCDBD9;
background: #fff;
margin-right: 20px;
}
#sidebar-r {
margin-left: 538px;
height: calc(100% - 40px);
margin-top: 20px;
overflow: auto;
border: 1px solid #DCDBD9;
background: #fff;
}
.bizDiv,.formTemDiv{
padding-left: 15px;
font-size: 16px;
height: 40px;
line-height: 40px;
margin-bottom: 0;
margin-right: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.formlist_content{
height: 100%;
overflow: auto;
}
.formlist_content .current{
background-color: #2490f8;
}
.formlist_title{
font-size: 16px;
height: 40px;
line-height: 40px;
margin-bottom: 0;
margin-right: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: #f1f1f1;
padding-left:15px;
}
.qr_title{
font-size: 16px;
height: 40px;
line-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: #f1f1f1;
padding-left: 15px;
}
.qr_content{
margin-top: 50px;
text-align:center;
}
.qr_address{
width: 80%;
padding: 15px;
margin-top: 30px;
}
</style>
</head>
<body class="h100b">
<div id="center">
<div id="sidebar-l">
<div class="formlist_title">
应用包
</div>
<div class="formlist_content">
<c:if test="${fn:length(bizList)>0}">
<c:forEach items="${bizList}" var="biz">
<div class="bizDiv" bizId="${biz.id}">${ctp:toHTML(biz.name)}</div>
</c:forEach>
</c:if>
</div>
</div>
<div id="sidebar-c">
<div class="formlist_title">
应用模板
</div>
<div class="formlist_content">
</div>
</div>
<div id="sidebar-r">
<div id="qrcode">
<div class="qr_title">
模板二维码
</div>
<div class="qr_content">
</div>
<div style="text-align: center;">
<textarea class="qr_address" readonly></textarea>
</div>
</div>
</div>
<script type="text/javascript"
src="${staticPath}/main/common/js/jquery.qrcode.min.js${ctp:resSuffix()}"></script>
<script type="text/javascript">
$(document).ready(function () {
bindEvent();
defaultInit();
});
function bindEvent(){
//应用包绑定点击事件
$('#sidebar-l .bizDiv').bind('click',function(e) {
var _dom = $(e.target);
var _bizId = _dom[0].getAttribute("bizId");
$(".formlist_content .bizDiv").removeClass("current");
_dom.addClass("current");
if(_bizId){
var param = {
type : "formApp",
bizConfigId : _bizId
};
callBackendMethod("qrCodeFormManager","listFormApp", param,{
success : function(ret){
if(ret && ret.length > 0){
renderFormAppDom(ret);
}
},
error : function(request, settings, e){
$.alert(e);
}
});
}
})
}
function defaultInit(){
var defaultDom = $("#sidebar-l .bizDiv");
if(defaultDom && defaultDom.size() > 0){
$(defaultDom[0]).trigger("click");
}
}
function renderFormAppDom(ret){
$("#sidebar-c .formlist_content").empty();
ret.forEach(function(e){
var formTemDom = $("<div class='formTemDiv' onclick='qrCodeFormInfo(this,"+JSON.stringify(e)+")'>"+ e.name +"</div>");
$("#sidebar-c .formlist_content").append(formTemDom);
});
$($("#sidebar-c .formTemDiv")[0]).trigger("click");
}
function qrCodeFormInfo(dom , ret){
$(".formlist_content .formTemDiv").removeClass("current");
$(dom).addClass("current");
var _map = {
templateId : ret.id,
sourceType : ret.sourceType
}
if(ret.sourceType == 2){
_map = {
sourceType : ret.sourceType,
formType: 'main',
type: 'new',
title: ret.name,
rightId: "-1",
moduleId: ret.id,
formTemplateId: ret.id,
moduleType: '42',
operateType: '0'
}
}
callBackendMethod("qrCodeFormManager","qrCodeFormUrl", _map,{
success : function(ret){
if(ret && ret.fillUrl){
renderQrCode(ret.fillUrl);
}
},
error : function(request, settings, e){
$.alert(e);
}
});
}
function renderQrCode(temFormUrl){
$("#qrcode .qr_content").empty();
$("#qrcode .qr_address").empty();
$("#qrcode .qr_content").qrcode({
render: "canvas",
width:"300",
height:"300",
text: temFormUrl
});
$("#qrcode .qr_address").html(temFormUrl);
$.each($(".qr_address"),function(i,n){
$(n).css("height",n.scrollHeight + 2 + "px");
})
}
</script>
</body>
</html>

View File

@@ -0,0 +1,13 @@
csdk.event.on('formRendered', function(){
try {
if(cmp.href.getParam().qc = "ext") {
document.getElementById("relationBtns").style.display="none";
document.getElementById("attachment_wrap").style.display="none";
}
} catch(e) {
}
});

View File

@@ -0,0 +1,11 @@
document.addEventListener('cap_form_afterFormRender', function(evt) {
try {
if(cmp.href.getParam().qc == "ext") {
document.getElementById("relationBtns").style.display="none";
document.getElementById("attachment_wrap").style.display="none";
document.getElementsByClassName("cmp-button-left-iconContent btn-box2")[0].style.display="none";
}
} catch(e) {
}
});

View File

@@ -0,0 +1,51 @@
package com.seeyon.apps.daohuaxiangSys.chushihua;
import com.seeyon.apps.common.plugin.api.APluginInfoApi;
import com.seeyon.apps.common.plugin.vo.ConfigVo;
import com.seeyon.apps.daohuaxiangSys.chushihua.constants.HsDataSyncConstants;
import java.util.Map;
/**
* 功能描述:<br>
* <pre>
*
* </pre>
*
* @Author: FanGaowei
* @Date: 2023/12/8
*/
public class HsDataPluginApi extends APluginInfoApi {
@Override
public String getPluginId() {
return HsDataSyncConstants.getPluginId();
}
@Override
public String getCreateUser() {
return "";
}
@Override
public ConfigVo getDefaultConfig() {
ConfigVo configVo = new ConfigVo();
for (HsDataSyncConstants value : HsDataSyncConstants.values()) {
if(value != HsDataSyncConstants.plugin) {
configVo.getDevParams().put(value.name(), value.getDefaultValue());
configVo.getProdParams().put(value.name(), value.getDefaultValue());
configVo.getParamMap().put(value.name(), value.getDescription());
}
}
return configVo;
}
@Override
public void registerCustomEvent(Map eventAndNodes) {
// 如果每个模板不一样 可以采用templatemanager去读取编码配置
eventAndNodes.put("hsdata", "历史数据推送");
}
}

View File

@@ -0,0 +1,31 @@
package com.seeyon.apps.daohuaxiangSys.chushihua.constants;
public enum HsDataSyncConstants {
// 如果有其他参数 这里去新增 todo
plugin("chushihua","插件ID"),
temp("hsdata_", "模板前缀"),
lastUpdate("2000-01-01 00:00:00", "最后更新时间"),
url("", "接口地址");
HsDataSyncConstants(String defaultValue, String description) {
this.defaultValue = defaultValue;
this.description = description;
}
private String defaultValue;
private String description;
public String getDefaultValue() {
return defaultValue;
}
public String getDescription() {
return description;
}
public static String getPluginId() {
return plugin.defaultValue;
}
}

View File

@@ -0,0 +1,312 @@
package com.seeyon.apps.daohuaxiangSys.chushihua.quartz;
import cn.hutool.core.convert.Convert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.seeyon.apps.common.config.ICstConfigApi;
import com.seeyon.apps.common.plugin.vo.ConfigVo;
import com.seeyon.apps.common.util.StringKit;
import com.seeyon.apps.common.workflow.constants.WorkFlowType;
import com.seeyon.apps.common.workflow.parser.FormParseFactory;
import com.seeyon.apps.common.workflow.util.FormDataBeanUtil;
import com.seeyon.apps.daohuaxiangSys.chushihua.constants.HsDataSyncConstants;
import com.seeyon.apps.daohuaxiangSys.chushihua.vo.HsDataVo;
import com.seeyon.apps.daohuaxiangSys.jkts.util.FanWeiNewUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.FanWeiUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.InterfaceListUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.PropKit;
import com.seeyon.apps.ext.po.CstWorkFlowRequestTemplate;
import com.seeyon.apps.ext.quartz.AbstractQuartzTask;
import com.seeyon.apps.ext.workflow.manager.CstWorkFlowTemplateManager;
import com.seeyon.apps.ext.workflow.vo.FormDataVo;
import com.seeyon.cap4.form.api.FormApi4Cap4;
import com.seeyon.cap4.form.bean.FormBean;
import com.seeyon.cap4.form.bean.FormDataMasterBean;
import com.seeyon.ctp.common.AppContext;
import com.seeyon.ctp.common.SystemEnvironment;
import com.seeyon.ctp.common.exceptions.BusinessException;
import com.seeyon.ctp.common.filemanager.manager.AttachmentManager;
import com.seeyon.ctp.common.po.filemanager.Attachment;
import com.seeyon.ctp.common.po.template.CtpTemplate;
import com.seeyon.ctp.common.template.manager.TemplateManager;
import com.seeyon.ctp.organization.bo.V3xOrgMember;
import com.seeyon.ctp.organization.manager.OrgManager;
import com.seeyon.ctp.organization.manager.OrgManagerDirect;
import com.seeyon.ctp.util.DateUtil;
import com.seeyon.ctp.util.JDBCAgent;
import com.seeyon.ctp.util.Strings;
import com.seeyon.ctp.util.json.JSONUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.songjian.utils.json.JSONArray;
import javax.inject.Inject;
import java.io.IOException;
import java.sql.SQLException;
import java.util.*;
import java.util.stream.Collectors;
/**
* 功能描述:<br>
* <pre>
* 定时同步历史数据
* </pre>
*
* @Author: FanGaowei
* @Date: 2023/12/8
*/
public class HsDataSyncQuartz extends AbstractQuartzTask {
private static final Log log = LogFactory.getLog(HsDataSyncQuartz.class);
@Inject
private ICstConfigApi cstConfigApi;
@Inject
private TemplateManager templateManager;
@Inject
private FormApi4Cap4 formApi4Cap4;
@Inject
private CstWorkFlowTemplateManager cstWorkFlowTemplateManager;
private AttachmentManager attachmentManager;
public void setAttachmentManager(AttachmentManager attachmentManager) {
this.attachmentManager = attachmentManager;
}
public AttachmentManager getAttachmentManagery() {
if (attachmentManager == null) {
attachmentManager = (AttachmentManager) AppContext.getBean("attachmentManager");
}
return attachmentManager;
}
private OrgManager orgManager;
public OrgManager getOrgManager() {
if (this.orgManager == null) {
this.orgManager = ((OrgManager) AppContext.getBean("orgManager"));
}
return orgManager;
}
@Override
public String taskRun(String tempCode) throws Exception {
System.out.println("进入同步方法");
final Map<String, Object> regist = FanWeiNewUtil.Regist(PropKit.getProp(PropKit.NEWADDRESS));
System.out.println(regist);
System.out.println("spk:" + regist.get("spk"));
// return null;
//模板id
Object templeteId = null;
// 查询满足条件的id
String sql = "select id from ctp_template where TEMPLETE_NUMBER = ? ";
System.out.println(sql+tempCode);
try(JDBCAgent agent = new JDBCAgent(true, false)) {
List<Object> params = new ArrayList<>();
params.add(tempCode);
agent.execute(sql, params);
List<Map<String, Object>> list = agent.resultSetToList();
System.out.println(list.size());
templeteId = list.get(0).get("id");
System.out.println(templeteId);
} catch (Exception e) {
log.error("获取模板id失败", e);
}
ceshi(Long.parseLong(templeteId.toString()), tempCode);
return null;
}
/**
* 功能描述:<br>
* <pre>
* 调用第三方接口推送数据
* null 表示成功 其他为失败信息
* </pre>
* @param request
* @return: java.lang.String
* @Author: FanGaowei
* @Date: 2023/12/8
**/
private String push(String request, ConfigVo configVo) {
// todo 获取配置信息 调用接口
return "";
}
@Override
public String getName() {
return null;
}
public void ceshi(Long tempId, String tempCode) throws IOException {
System.out.println("进入ceshi方法");
List<Map> datas = new ArrayList();
Map<Long, FormBean> formBeanMap = new HashMap<>();
String dataSql = PropKit.getProp(PropKit.DATASQL);
try(JDBCAgent agent = new JDBCAgent(true, false)) {
List<Object> params = new ArrayList<>();
params.add(tempId);
agent.execute(dataSql, params);
// 获取到所有的流程数据
List<Map<String, Object>> list = agent.resultSetToList();
if(null != list) {
List<HsDataVo> hsData = list.stream().map(HsDataVo::new).collect(Collectors.toList());
for (int i = 0; i < hsData.size(); i++) {
Map data = new HashMap();
HsDataVo hsDatum = hsData.get(i);
FormBean formBean = formBeanMap.get(hsDatum.getFormId());
if (null == formBean) {
formBean = formApi4Cap4.getForm(hsDatum.getFormId());
formBeanMap.put(hsDatum.getFormId(), formBean);
}
FormDataMasterBean masterBean = formApi4Cap4.getDataMasterBeanById(hsDatum.getMasterId(), formBean, null);
// 转换数据
FormDataVo formDataVo = FormDataBeanUtil.trans2FormDataVo(HsDataSyncConstants.getPluginId(), hsDatum.getFormId(),
hsDatum.getSummaryId(), formBean, masterBean);
String name = "";
if ("formmain_9291".equals(tempCode)) {
name = formDataVo.getFieldData("客户名称文本").getStringValue();
} else {
String userName = formDataVo.getFieldData("客户名称").getStringValue();
System.out.println("userName:" + userName);
V3xOrgMember member = getOrgManager().getMemberByLoginName(userName);
name = member.getName();
}
System.out.println("判断名称是否为指定名称"+name);
if(!("宜昌高新区盛世禾百货商行".equals(name)||"宜昌市西陵区高东云食品经营部".equals(name)||"宜昌市猇亭区明喜副食店".equals(name)||
"湖北省馫昊商贸有限责任公司".equals(name)||"湖北省馫昊商贸有限责任公司".equals(name)||"宜昌梦泽涵商贸有限公司 ".equals(name))){
continue;
}
System.out.println("致远客户名称:" + name);
Map userIdAndDeptId = getUserIdAndDeptId(name);
System.out.println("人员信息:" + userIdAndDeptId.toString());
data.put("khmc", userIdAndDeptId.get("userid"));
data.put("fgs", userIdAndDeptId.get("deptid"));
data.put("bt", formBean.getFormName());
data.put("dh", formDataVo.getFieldData("流水号").getStringValue());
data.put("sqrq", formDataVo.getFieldData("填表日期").getStringValue());
data.put("trje", formDataVo.getFieldData("投入金额").getStringValue());
data.put("bayj", formDataVo.getFieldData("备案意见").getStringValue());
data.put("bajs", formDataVo.getFieldData("备案简述").getStringValue());
data.put("ssschxsgs", formDataVo.getFieldData("分公司").getStringValue());
data.put("jbr", formDataVo.getFieldData("经办人").getStringValue());
data.put("lcbt", formBean.getFormName());
String pathId = formDataVo.getFieldData("上传附件").getStringValue();
//附件
JSONArray faths = null;
if (pathId == null || "".equals(pathId)) {
faths = new JSONArray();
} else {
faths = getPathUrl(pathId);
}
Map parm = FanWeiNewUtil.createWF2(data, faths);
//调用新建接口
String userId = null;
Object userid = userIdAndDeptId.get("userid");
if (userid == null || "".equals(userid)) {
userId = "";
} else {
userId = userid.toString();
}
String s = FanWeiNewUtil.PostRestful(parm, userId);
//String s = FanWeiUtil.PostRestful(parm, userId);
System.out.println("新建推送结果" + s);
JSONObject returnMsg = JSON.parseObject(s);
Object code = returnMsg.get("code");
if ("SUCCESS".equals(code.toString())) {
System.out.println("同步成功!");
}else {
System.out.println("同步失败!");
}
}
}
} catch (Exception e) {
log.error("同步失败:" + tempId);
}
}
/**
* 获取userid和deptid
* @param userName
* @return
* @throws Exception
*/
public Map getUserIdAndDeptId(String userName) throws Exception {
// 新平台指定对应关系
Map datas = new HashMap();
if("宜昌梦泽涵商贸有限公司".equals(userName)){
datas.put("userid", "51");
datas.put("deptid", "1545");
}else if ("伍家岗区源玥酒水商行".equals(userName)){
datas.put("userid", "50");
datas.put("deptid", "1553");
}else if ("湖北省馫昊商贸有限责任公司".equals(userName)){
datas.put("userid", "49");
datas.put("deptid", "1555");
}else if ("宜昌市猇亭区明喜副食店".equals(userName)){
datas.put("userid", "48");
datas.put("deptid", "1537");
}else if ("宜昌市西陵区高东云食品经营部".equals(userName)){
datas.put("userid", "47");
datas.put("deptid", "1530");
}else if ("宜昌高新区盛世禾百货商行".equals(userName)){
datas.put("userid", "46");
datas.put("deptid", "1529");
}
// Map datas = new HashMap();
// String sql = PropKit.getProp(PropKit.SQL);
// try(JDBCAgent agent = new JDBCAgent(true, false)) {
// List<Object> params = new ArrayList<>();
// params.add(userName);
// agent.execute(sql, params);
// List<Map<String, Object>> list = agent.resultSetToList();
// Map<String, Object> map = list.get(0);
// datas.put("userid", map.get("id"));
// datas.put("deptid", map.get("departmentid"));
// } catch (Exception e) {
// log.error("获取模板id失败", e);
// }
return datas;
}
/**
* 获取附件路径
* @param pathId
* @return
*/
public JSONArray getPathUrl(String pathId) throws IOException {
InterfaceListUtil interfaceListUtil = new InterfaceListUtil();
String oatoken = interfaceListUtil.getToken(PropKit.getProp(PropKit.LOGINNAME));
long aLong = Long.parseLong(pathId);
final List<Long> attachmentIds = attachmentManager.getBySubReference(aLong);
JSONArray jsonArray = new JSONArray();
for (int i = 0 ; i < attachmentIds.size();i++) {
Attachment attachment = attachmentManager.getAttachmentByFileURL(attachmentIds.get(i));
Long fileUrl = attachment.getFileUrl();
String filename = attachment.getFilename();
String fileType = filename.substring(filename.lastIndexOf(".")+1);
String oaFileName = filename.substring(0,filename.lastIndexOf("."));
//调用接口下载文件,文件存放在指定的路径下
String dowUrl = PropKit.getProp(PropKit.DOWURL)+"/"+fileUrl+"?fileName="+fileType+"&token="+oatoken;
String str = SystemEnvironment.getApplicationFolder();
String dowPath = str+"/dhxfile/"+filename;
String download = interfaceListUtil.download(dowUrl, dowPath);
JSONObject jsonObject = new JSONObject();
jsonObject.put("name", filename);
jsonObject.put("type", fileType);
jsonObject.put("url", PropKit.getProp(PropKit.JYNCFILE)+"/"+filename);
jsonArray.add(jsonObject);
}
return jsonArray;
}
}

View File

@@ -0,0 +1,55 @@
package com.seeyon.apps.daohuaxiangSys.chushihua.vo;
import cn.hutool.core.convert.Convert;
import java.util.Map;
/**
* 功能描述:<br>
* <pre>
*
* </pre>
*
* @Author: FanGaowei
* @Date: 2023/12/8
*/
public class HsDataVo {
private Long summaryId;
private Long formId;
private Long masterId;
public HsDataVo(Map<String, Object> row) {
this.summaryId = Convert.toLong(row.get("id"));
this.masterId = Convert.toLong(row.get("form_recordid"));
this.formId = Convert.toLong(row.get("form_appid"));
}
public Long getSummaryId() {
return summaryId;
}
public HsDataVo setSummaryId(Long summaryId) {
this.summaryId = summaryId;
return this;
}
public Long getFormId() {
return formId;
}
public HsDataVo setFormId(Long formId) {
this.formId = formId;
return this;
}
public Long getMasterId() {
return masterId;
}
public HsDataVo setMasterId(Long masterId) {
this.masterId = masterId;
return this;
}
}

View File

@@ -0,0 +1,41 @@
package com.seeyon.apps.daohuaxiangSys.jkts;
import com.seeyon.apps.common.plugin.api.APluginInfoApi;
import com.seeyon.apps.common.plugin.vo.ConfigVo;
import com.seeyon.apps.daohuaxiangSys.jkts.constants.DaohuaxiangConstants;
/**
* 功能描述:<br>
* <pre>
*
* </pre>
*
* @Author: FanGaowei
* @Date: 2023/10/25
*/
public class TongYongPlugin extends APluginInfoApi {
@Override
public String getPluginId() {
return DaohuaxiangConstants.getPluginId();
}
@Override
public String getCreateUser() {
return "稻花香";
}
@Override
public ConfigVo getDefaultConfig() {
ConfigVo configVo = new ConfigVo();
for (DaohuaxiangConstants value : DaohuaxiangConstants.values()) {
if(value != DaohuaxiangConstants.plugin) {
configVo.getDevParams().put(value.name(), value.getDefaultValue());
configVo.getProdParams().put(value.name(), value.getDefaultValue());
configVo.getParamMap().put(value.name(), value.getDescription());
}
}
return configVo;
}
}

View File

@@ -0,0 +1,30 @@
package com.seeyon.apps.daohuaxiangSys.jkts.constants;
public enum DaohuaxiangConstants {
plugin("daohuaxiang", "插件ID"),
url("http://localhost", "接口地址");
DaohuaxiangConstants(String defaultValue, String description) {
this.defaultValue = defaultValue;
this.description = description;
}
private String defaultValue;
private String description;
public String getDefaultValue() {
return defaultValue;
}
public String getDescription() {
return description;
}
public static String getPluginId() {
return plugin.defaultValue;
}
}

View File

@@ -0,0 +1,75 @@
package com.seeyon.apps.daohuaxiangSys.jkts.node;
import com.seeyon.apps.common.config.ICstConfigApi;
import com.seeyon.apps.common.workflow.constants.WorkFlowType;
import com.seeyon.apps.common.workflow.node.ACommonSuperNode;
import com.seeyon.apps.daohuaxiangSys.jkts.constants.DaohuaxiangConstants;
import com.seeyon.apps.daohuaxiangSys.jkts.service.NewTongYongService;
import com.seeyon.apps.daohuaxiangSys.jkts.service.TongYongService;
import com.seeyon.apps.ext.workflow.vo.FormDataVo;
import com.seeyon.apps.ext.workflow.vo.SuperNodeContext;
import com.seeyon.cap4.form.bean.FormDataMasterBean;
import com.seeyon.ctp.common.AppContext;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Map;
public class NewTongYongNode extends ACommonSuperNode {
private ICstConfigApi cstConfigApi;
public ICstConfigApi getICstConfigApi() {
if (cstConfigApi == null) {
cstConfigApi = (ICstConfigApi) AppContext.getBean("cstConfigApi");
}
return cstConfigApi;
}
@Autowired
NewTongYongService newTongYongService;
@Override
public String getPluginId() {
return DaohuaxiangConstants.getPluginId();
}
@Override
public String getFormParse() {
return "json";
}
@Override
public WorkFlowType[] getTypes() {
return new WorkFlowType[] { WorkFlowType.superNode };
}
@Override
public SuperNodeContext proceed(String request, FormDataVo formDataVo, FormDataMasterBean formDataMasterBean) throws Exception {
// 获取数据
SuperNodeContext context = new SuperNodeContext();
context.setNeedSave(true);
Map<String, Object> map = newTongYongService.sendInter(formDataVo);
context.setRequest(map.get("request").toString());
context.setResponse(map.get("response").toString());
Object code = map.get("code");
if ("200".equals(code.toString())) {
context.success(map.get("msg").toString(), false);
} else {
context.back(map.get("msg").toString());
}
return context;
}
@Override
public String getNodeId() {
return "newTongYongNode";
}
@Override
public String getNodeName() {
return "新平台通用节点";
}
}

View File

@@ -0,0 +1,74 @@
package com.seeyon.apps.daohuaxiangSys.jkts.node;
import com.seeyon.apps.common.config.ICstConfigApi;
import com.seeyon.apps.common.workflow.constants.WorkFlowType;
import com.seeyon.apps.common.workflow.node.ACommonSuperNode;
import com.seeyon.apps.daohuaxiangSys.jkts.constants.DaohuaxiangConstants;
import com.seeyon.apps.daohuaxiangSys.jkts.service.TongYongService;
import com.seeyon.apps.ext.workflow.vo.FormDataVo;
import com.seeyon.apps.ext.workflow.vo.SuperNodeContext;
import com.seeyon.cap4.form.bean.FormDataMasterBean;
import com.seeyon.ctp.common.AppContext;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Map;
public class TongYongNode extends ACommonSuperNode {
private ICstConfigApi cstConfigApi;
public ICstConfigApi getICstConfigApi() {
if (cstConfigApi == null) {
cstConfigApi = (ICstConfigApi) AppContext.getBean("cstConfigApi");
}
return cstConfigApi;
}
@Autowired
TongYongService tongYongService;
@Override
public String getPluginId() {
return DaohuaxiangConstants.getPluginId();
}
@Override
public String getFormParse() {
return "json";
}
@Override
public WorkFlowType[] getTypes() {
return new WorkFlowType[] { WorkFlowType.superNode };
}
@Override
public SuperNodeContext proceed(String request, FormDataVo formDataVo, FormDataMasterBean formDataMasterBean) throws Exception {
// 获取数据
SuperNodeContext context = new SuperNodeContext();
context.setNeedSave(true);
Map<String, Object> map = tongYongService.sendInter(formDataVo);
context.setRequest(map.get("request").toString());
context.setResponse(map.get("response").toString());
Object code = map.get("code");
if ("200".equals(code.toString())) {
context.success(map.get("msg").toString(), false);
} else {
context.back(map.get("msg").toString());
}
return context;
}
@Override
public String getNodeId() {
return "tongYongNode";
}
@Override
public String getNodeName() {
return "通用节点";
}
}

View File

@@ -0,0 +1,108 @@
package com.seeyon.apps.daohuaxiangSys.jkts.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.seeyon.apps.daohuaxiangSys.jkts.util.FanWeiNewUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.FanWeiUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.InterfaceListUtil;
import com.seeyon.apps.daohuaxiangSys.jkts.util.PropKit;
import com.seeyon.apps.ext.workflow.vo.FormDataVo;
import com.seeyon.ctp.common.AppContext;
import com.seeyon.ctp.common.SystemEnvironment;
import com.seeyon.ctp.common.filemanager.manager.AttachmentManager;
import com.seeyon.ctp.common.po.filemanager.Attachment;
import org.songjian.utils.json.JSONArray;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NewTongYongService {
private AttachmentManager attachmentManager;
public void setAttachmentManager(AttachmentManager attachmentManager) {
this.attachmentManager = attachmentManager;
}
public AttachmentManager getAttachmentManagery() {
if (attachmentManager == null) {
attachmentManager = (AttachmentManager) AppContext.getBean("attachmentManager");
}
return attachmentManager;
}
public Map<String, Object> sendInter(FormDataVo formDataVo) throws Exception {
String pathId = formDataVo.getFieldData("上传附件").getStringValue();
//附件
JSONArray faths = null;
if (pathId == null || "".equals(pathId)) {
faths = new JSONArray();
} else {
faths = getPathUrl(pathId);
}
//封装参数
Map parm = FanWeiNewUtil.createWF(formDataVo, faths);
//调用新建接口
String userid = formDataVo.getFieldData("经办人").getStringValue();
String s = FanWeiNewUtil.PostRestful(parm, userid);
JSONObject returnMsg = JSON.parseObject(s);
Object code = returnMsg.get("code");
System.out.println("新建code:" + code);
Map<String, Object> map = new HashMap<>();
if ("SUCCESS".equals(code.toString())) {
//调用提交接口
// Map data = (Map) returnMsg.get("data");
// Object requestid = data.get("requestid");
// String msg = FanWeiUtil.PostRestfulbyForm(requestid.toString(), userid);
// JSONObject tiJiaoReturnMsg = JSON.parseObject(msg);
// Object code2 = tiJiaoReturnMsg.get("code");
// System.out.println("提交code:" + code2);
map.put("code", "200");
map.put("msg", "推送成功");
map.put("request", parm.toString());
map.put("response", s);
} else {
// Map data = (Map) returnMsg.get("errMsg");
map.put("code", "300");
map.put("msg", "新建流程失败!");
map.put("request", parm.toString());
map.put("response", s);
}
return map;
}
/**
* 获取附件路径
* @param pathId
* @return
*/
public JSONArray getPathUrl(String pathId) throws IOException {
InterfaceListUtil interfaceListUtil = new InterfaceListUtil();
String oatoken = interfaceListUtil.getToken(PropKit.getProp(PropKit.LOGINNAME));
long aLong = Long.parseLong(pathId);
final List<Long> attachmentIds = attachmentManager.getBySubReference(aLong);
JSONArray jsonArray = new JSONArray();
for (int i = 0 ; i < attachmentIds.size();i++) {
Attachment attachment = attachmentManager.getAttachmentByFileURL(attachmentIds.get(i));
Long fileUrl = attachment.getFileUrl();
String filename = attachment.getFilename();
String fileType = filename.substring(filename.lastIndexOf(".")+1);
String oaFileName = filename.substring(0,filename.lastIndexOf("."));
//调用接口下载文件,文件存放在指定的路径下
String dowUrl = PropKit.getProp(PropKit.DOWURL)+"/"+fileUrl+"?fileName="+fileType+"&token="+oatoken;
String str = SystemEnvironment.getApplicationFolder();
String dowPath = str+"/dhxfile/"+filename;
String download = interfaceListUtil.download(dowUrl, dowPath);
JSONObject jsonObject = new JSONObject();
jsonObject.put("name", filename);
jsonObject.put("type", fileType);
jsonObject.put("url", PropKit.getProp(PropKit.JYNCFILE)+"/"+filename);
jsonArray.add(jsonObject);
}
return jsonArray;
}
}

Some files were not shown because too many files have changed in this diff Show More