修改人:邹江涛

修改内容:API映射公共单据
修改时间:2024/11/19
This commit is contained in:
zoujiangtao 2024-11-19 15:04:30 +08:00
parent e7961e9bc9
commit cfc62e800d
2 changed files with 6 additions and 8 deletions

View File

@ -10,7 +10,6 @@ import kd.bos.logging.LogFactory;
import kd.bos.orm.query.QCP; import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter; import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import shkd.sys.sys.common.ApiEntity;
import javax.crypto.Mac; import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.SecretKeySpec;
@ -29,8 +28,8 @@ import java.util.*;
* @Author Tao * @Author Tao
* @Date 2024/11/11 * @Date 2024/11/11
*/ */
public class BIPService { public class ApiService {
private static final Log logger = LogFactory.getLog(BIPService.class); private static final Log logger = LogFactory.getLog(ApiService.class);
public static String getBIPToken() { public static String getBIPToken() {
String access_token = null; String access_token = null;

View File

@ -1,11 +1,10 @@
package shkd.sys.sys.plugin.form; package shkd.sys.sys.plugin.form;
import com.alibaba.fastjson.JSONObject;
import kd.bos.bill.AbstractBillPlugIn; import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.form.control.Toolbar; import kd.bos.form.control.Toolbar;
import kd.bos.form.control.events.ItemClickEvent; import kd.bos.form.control.events.ItemClickEvent;
import kd.sdk.plugin.Plugin; import kd.sdk.plugin.Plugin;
import shkd.sys.sys.mservice.BIPService; import shkd.sys.sys.mservice.ApiService;
import java.util.EventObject; import java.util.EventObject;
@ -33,13 +32,13 @@ public class ApiTestBillPlugin extends AbstractBillPlugIn implements Plugin {
String key = evt.getItemKey(); String key = evt.getItemKey();
if ("shkd_token".equals(key)) { if ("shkd_token".equals(key)) {
String bipToken = BIPService.getBIPToken(); String bipToken = ApiService.getBIPToken();
this.getView().showTipNotification(bipToken); this.getView().showTipNotification(bipToken);
} }
if ("shkd_api".equals(key)) { if ("shkd_api".equals(key)) {
JSONObject jsonObject = BIPService.paymentSlipsJson(); // JSONObject jsonObject = BIPService.paymentSlipsJson();
this.getView().showTipNotification(jsonObject.toJSONString()); // this.getView().showTipNotification(jsonObject.toJSONString());
} }
} }