Browse Source

open

master
pioneer 2 years ago
parent
commit
146962bea3
  1. 18
      plugin.xml
  2. 14
      src/main/java/com/eco/plugin/xx/hrzdmsg/config/InitializeMonitor.java
  3. 4
      src/main/java/com/eco/plugin/xx/hrzdmsg/config/PluginSimpleConfig.java
  4. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/controller/ControllerRegisterProvider.java
  5. 14
      src/main/java/com/eco/plugin/xx/hrzdmsg/controller/ControllerSelf.java
  6. 4
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/db/DBAccessProvider.java
  7. 6
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/db/Dao.java
  8. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/DSDDMsgFormula.java
  9. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsBean.java
  10. 4
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsEntity.java
  11. 8
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsHandler.java
  12. 4
      src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/webresource/DsddWebResourceProvider.java
  13. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/utils/FRUtils.java
  14. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/utils/HttpUtils.java
  15. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/utils/ResponseUtils.java
  16. 2
      src/main/java/com/eco/plugin/xx/hrzdmsg/utils/Utils.java
  17. 6
      src/main/java/com/eco/plugin/xx/hrzdmsg/webresourceProvider/WebResourceProvider.java
  18. 8
      src/main/resources/com/eco/plugin/xx/hrzdmsg/js/dsdd.js

18
plugin.xml

@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><plugin>
<id>com.eco.plugin.wink.hrzdmsg</id>
<id>com.eco.plugin.xx.hrzdmsg</id>
<name><![CDATA[发送消息]]></name>
<active>yes</active>
<version>1.0.10</version>
<env-version>10.0</env-version>
<jartime>2018-07-31</jartime>
<vendor>wink</vendor>
<vendor>fr.open</vendor>
<description><![CDATA[发送消息]]></description>
<change-notes><![CDATA[
]]></change-notes>
<main-package>com.eco.plugin.wink.hrzdmsg</main-package>
<lifecycle-monitor class="com.eco.plugin.wink.hrzdmsg.config.InitializeMonitor"/>
<main-package>com.eco.plugin.xx.hrzdmsg</main-package>
<lifecycle-monitor class="com.eco.plugin.xx.hrzdmsg.config.InitializeMonitor"/>
<extra-decision>
<DecisionDBAccessProvider class="com.eco.plugin.wink.hrzdmsg.dsdd.db.DBAccessProvider"/>
<WebResourceProvider class="com.eco.plugin.wink.hrzdmsg.dsdd.webresource.DsddWebResourceProvider"/>
<WebResourceProvider class="com.eco.plugin.wink.hrzdmsg.webresourceProvider.WebResourceProvider"/>
<ControllerRegisterProvider class="com.eco.plugin.wink.hrzdmsg.controller.ControllerRegisterProvider"/>
<DecisionDBAccessProvider class="com.eco.plugin.xx.hrzdmsg.dsdd.db.DBAccessProvider"/>
<WebResourceProvider class="com.eco.plugin.xx.hrzdmsg.dsdd.webresource.DsddWebResourceProvider"/>
<WebResourceProvider class="com.eco.plugin.xx.hrzdmsg.webresourceProvider.WebResourceProvider"/>
<ControllerRegisterProvider class="com.eco.plugin.xx.hrzdmsg.controller.ControllerRegisterProvider"/>
</extra-decision>
<function-recorder class="com.eco.plugin.wink.hrzdmsg.config.PluginSimpleConfig"/>
<function-recorder class="com.eco.plugin.xx.hrzdmsg.config.PluginSimpleConfig"/>
</plugin>

14
src/main/java/com/eco/plugin/xx/hrzdmsg/config/InitializeMonitor.java

@ -1,9 +1,9 @@
package com.eco.plugin.wink.hrzdmsg.config;
package com.eco.plugin.xx.hrzdmsg.config;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.DSDDMsgFormula;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsBean;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsEntity;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsHandler;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.DSDDMsgFormula;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsBean;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsEntity;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsHandler;
import com.fr.plugin.context.PluginContext;
import com.fr.plugin.observer.inner.AbstractPluginLifecycleMonitor;
import com.fr.schedule.extension.report.job.output.formula.FormulaBox;
@ -11,9 +11,9 @@ import com.fr.schedule.feature.ScheduleOutputActionEntityRegister;
import com.fr.schedule.feature.output.OutputActionHandler;
/**
* @author wink
* @author xx
* @version 10.0
* Created by wink on 2021-12-03
* Created by xx on 2021-12-03
*/
public class InitializeMonitor extends AbstractPluginLifecycleMonitor {
@Override

4
src/main/java/com/eco/plugin/xx/hrzdmsg/config/PluginSimpleConfig.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.config;
package com.eco.plugin.xx.hrzdmsg.config;
import com.fr.config.*;
import com.fr.config.holder.Conf;
@ -13,7 +13,7 @@ public class PluginSimpleConfig extends DefaultConfiguration {
private static volatile PluginSimpleConfig config = null;
@Focus(id="com.eco.plugin.wink.hrzdmsg.config", text = "发送短信信息配置", source = Original.PLUGIN)
@Focus(id="com.eco.plugin.xx.hrzdmsg.config", text = "发送短信信息配置", source = Original.PLUGIN)
public static PluginSimpleConfig getInstance() {
if (config == null) {
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class);

2
src/main/java/com/eco/plugin/xx/hrzdmsg/controller/ControllerRegisterProvider.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.controller;
package com.eco.plugin.xx.hrzdmsg.controller;
import com.fr.decision.fun.impl.AbstractControllerRegisterProvider;
import com.fr.plugin.transform.FunctionRecorder;

14
src/main/java/com/eco/plugin/xx/hrzdmsg/controller/ControllerSelf.java

@ -1,10 +1,10 @@
package com.eco.plugin.wink.hrzdmsg.controller;
package com.eco.plugin.xx.hrzdmsg.controller;
import com.eco.plugin.wink.hrzdmsg.config.PluginSimpleConfig;
import com.eco.plugin.wink.hrzdmsg.utils.FRUtils;
import com.eco.plugin.wink.hrzdmsg.utils.HttpUtils;
import com.eco.plugin.wink.hrzdmsg.utils.ResponseUtils;
import com.eco.plugin.wink.hrzdmsg.utils.Utils;
import com.eco.plugin.xx.hrzdmsg.config.PluginSimpleConfig;
import com.eco.plugin.xx.hrzdmsg.utils.FRUtils;
import com.eco.plugin.xx.hrzdmsg.utils.HttpUtils;
import com.eco.plugin.xx.hrzdmsg.utils.ResponseUtils;
import com.eco.plugin.xx.hrzdmsg.utils.Utils;
import com.fr.decision.webservice.annotation.LoginStatusChecker;
import com.fr.json.JSONObject;
import com.fr.plugin.context.PluginContexts;
@ -20,7 +20,7 @@ import java.util.Map;
@Controller
@LoginStatusChecker(required = false)
@Authorize(callSignKey = "com.fr.plugin.wink.hrzdmsg")
@Authorize(callSignKey = "com.fr.plugin.xx.hrzdmsg")
public class ControllerSelf {
@PostMapping(value = "/sendMsg")

4
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/db/DBAccessProvider.java

@ -1,6 +1,6 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.db;
package com.eco.plugin.xx.hrzdmsg.dsdd.db;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsEntity;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsEntity;
import com.fr.decision.plugin.db.AbstractDecisionDBAccessProvider;
import com.fr.stable.db.accessor.DBAccessor;
import com.fr.stable.db.dao.BaseDAO;

6
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/db/Dao.java

@ -1,11 +1,11 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.db;
package com.eco.plugin.xx.hrzdmsg.dsdd.db;
import com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsEntity;
import com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsEntity;
import com.fr.stable.db.dao.BaseDAO;
import com.fr.stable.db.session.DAOSession;
/**
* Created by wink on 2021-12-03.
* Created by xx on 2021-12-03.
*/
public class Dao extends BaseDAO<TsEntity> {
public Dao(DAOSession daoSession) {

2
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/DSDDMsgFormula.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.dsdd;
package com.eco.plugin.xx.hrzdmsg.dsdd.dsdd;
import com.fr.main.workbook.ResultWorkBook;
import com.fr.schedule.extension.report.provider.impl.AbstractReportOutputFormulaProvider;

2
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsBean.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.dsdd;
package com.eco.plugin.xx.hrzdmsg.dsdd.dsdd;
import com.fr.schedule.base.bean.output.BaseOutputAction;
import com.fr.schedule.base.entity.AbstractScheduleEntity;

4
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsEntity.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.dsdd;
package com.eco.plugin.xx.hrzdmsg.dsdd.dsdd;
import com.fr.schedule.base.entity.AbstractScheduleEntity;
import com.fr.stable.db.entity.TableAssociation;
@ -7,7 +7,7 @@ import com.fr.third.javax.persistence.Entity;
import com.fr.third.javax.persistence.Table;
@Entity
@Table(name = "fine_output_wink_message") //表名
@Table(name = "fine_output_xx_message") //表名
@TableAssociation(associated = true)
public class TsEntity extends AbstractScheduleEntity{
public TsEntity(){}

8
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/dsdd/TsHandler.java

@ -1,7 +1,7 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.dsdd;
import com.eco.plugin.wink.hrzdmsg.config.PluginSimpleConfig;
import com.eco.plugin.wink.hrzdmsg.controller.ControllerSelf;
import com.eco.plugin.wink.hrzdmsg.utils.FRUtils;
package com.eco.plugin.xx.hrzdmsg.dsdd.dsdd;
import com.eco.plugin.xx.hrzdmsg.config.PluginSimpleConfig;
import com.eco.plugin.xx.hrzdmsg.controller.ControllerSelf;
import com.eco.plugin.xx.hrzdmsg.utils.FRUtils;
import com.fr.decision.authority.data.User;
import com.fr.json.JSONObject;
import com.fr.schedule.feature.output.OutputActionHandler;

4
src/main/java/com/eco/plugin/xx/hrzdmsg/dsdd/webresource/DsddWebResourceProvider.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.dsdd.webresource;
package com.eco.plugin.xx.hrzdmsg.dsdd.webresource;
import com.fr.decision.fun.impl.AbstractWebResourceProvider;
import com.fr.decision.web.MainComponent;
@ -22,7 +22,7 @@ public class DsddWebResourceProvider extends AbstractWebResourceProvider {
return new Component() {
@Override
public ScriptPath script(RequestClient requestClient) {
return ScriptPath.build("/com/eco/plugin/wink/hrzdmsg/js/dsdd.js");
return ScriptPath.build("/com/eco/plugin/xx/hrzdmsg/js/dsdd.js");
}
@Override

2
src/main/java/com/eco/plugin/xx/hrzdmsg/utils/FRUtils.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.utils;
package com.eco.plugin.xx.hrzdmsg.utils;
import com.fr.base.ServerConfig;
import com.fr.base.TableData;

2
src/main/java/com/eco/plugin/xx/hrzdmsg/utils/HttpUtils.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.utils;
package com.eco.plugin.xx.hrzdmsg.utils;
import com.fr.log.FineLoggerFactory;
import com.fr.third.org.apache.http.HttpEntity;

2
src/main/java/com/eco/plugin/xx/hrzdmsg/utils/ResponseUtils.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.utils;
package com.eco.plugin.xx.hrzdmsg.utils;
import com.fr.json.JSONObject;
import com.fr.log.FineLoggerFactory;

2
src/main/java/com/eco/plugin/xx/hrzdmsg/utils/Utils.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.utils;
package com.eco.plugin.xx.hrzdmsg.utils;
import com.fr.base.TemplateUtils;
import com.fr.data.NetworkHelper;

6
src/main/java/com/eco/plugin/xx/hrzdmsg/webresourceProvider/WebResourceProvider.java

@ -1,4 +1,4 @@
package com.eco.plugin.wink.hrzdmsg.webresourceProvider;
package com.eco.plugin.xx.hrzdmsg.webresourceProvider;
import com.fr.decision.fun.impl.AbstractWebResourceProvider;
import com.fr.report.web.ReportMainComponent;
@ -9,7 +9,7 @@ import com.fr.web.struct.category.ScriptPath;
import com.fr.web.struct.category.StylePath;
/**
* Created by wink on 2021-12-03
* Created by xx on 2021-12-03
*/
public class WebResourceProvider extends AbstractWebResourceProvider {
@Override
@ -22,7 +22,7 @@ public class WebResourceProvider extends AbstractWebResourceProvider {
return new Component() {
@Override
public ScriptPath script(RequestClient requestClient) {
return ScriptPath.build("/com/eco/plugin/wink/hrzdmsg/js/ui.js");
return ScriptPath.build("/com/eco/plugin/xx/hrzdmsg/js/ui.js");
}
@Override

8
src/main/resources/com/eco/plugin/xx/hrzdmsg/js/dsdd.js

@ -1,8 +1,8 @@
BI.config("dec.provider.schedule", function (provider) {
provider.registerHandingWay({
text: "华润短信推送",
value:"com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsBean",
text: "短信推送",
value:"com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsBean",
cardType: "dec.schedule.task.file.handling.oa",
actions: [] // action
}, [DecCst.Schedule.TaskType.DEFAULT, DecCst.Schedule.TaskType.REPORT, DecCst.Schedule.TaskType.BI]);
@ -222,8 +222,8 @@ var Plugin = BI.inherit(BI.Widget, {
*/
getValue: function () {
return {
"@class": "com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsBean",
actionName: "com.eco.plugin.wink.hrzdmsg.dsdd.dsdd.TsBean",
"@class": "com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsBean",
actionName: "com.eco.plugin.xx.hrzdmsg.dsdd.dsdd.TsBean",
businessCode: this.businessCode.getValue(),
content: this.contentText.getValue(),
secretKey:this.secretKey.getValue(),

Loading…
Cancel
Save