85 lines
3.1 KiB
Java
85 lines
3.1 KiB
Java
package shkd.repc.recon.opplugin;
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
|
import kd.bos.logging.Log;
|
|
import kd.bos.logging.LogFactory;
|
|
import kd.bos.orm.query.QCP;
|
|
import kd.bos.orm.query.QFilter;
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
import shkd.utils.TycUtils;
|
|
|
|
import java.text.ParseException;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
|
|
import static shkd.utils.TycUtils.convertTimestampToDate;
|
|
|
|
/**
|
|
*/
|
|
public class TestOPPlugin extends AbstractOperationServicePlugIn {
|
|
//天眼查API_测试供应商
|
|
public static String tyc_Test_keyword = "上海金蝶软件科技有限公司";
|
|
|
|
private static final Log logger = LogFactory.getLog(TestOPPlugin.class);
|
|
|
|
@Override
|
|
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
|
super.afterExecuteOperationTransaction(e);
|
|
|
|
String operationKey = e.getOperationKey();
|
|
if ("submit".equals(operationKey)){
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// System.out.println("1.\n"+tyc_Baseinfo);
|
|
// System.out.println("9.\n"+tyc_Certificate);
|
|
// System.out.println("10.\n"+tyc_Qualification);
|
|
// System.out.println("11.\n"+tyc_Changeinfo);
|
|
// System.out.println("12.\n"+tyc_Abnormal);
|
|
// System.out.println("13.\n"+tyc_Holder);
|
|
// System.out.println("14.\n"+tyc_BadConduct);
|
|
// System.out.println("15.\n"+tyc_Verify);
|
|
// System.out.println("16.\n"+tyc_PunishmentInfo);
|
|
// System.out.println("17.\n"+tyc_Illegalinfo);
|
|
// System.out.println("18.\n"+tyc_LawSuit);
|
|
// System.out.println("19.\n"+tyc_Jr_Dishonest);
|
|
// private static String byte2Hex(byte[] bytes){
|
|
// StringBuffer stringBuffer = new StringBuffer();
|
|
// String temp = null;
|
|
// for(int i=0 ; i < bytes.length; i++) {
|
|
// temp = Integer.toHexString(bytes[i] & 0xFF);
|
|
// //1得到一位的进行补0操作
|
|
// if (temp.length() == 1) {
|
|
// stringBuffer.append("0");
|
|
// }
|
|
// stringBuffer.append(temp);
|
|
// }
|
|
// return stringBuffer.toString();
|
|
// }
|
|
//
|
|
// public static String calculateHMACSHA256(String key, String message) {
|
|
// try {
|
|
// Mac mac = Mac.getInstance("HmacSHA256");
|
|
// SecretKeySpec secretKeySpec = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), "HmacSHA256");
|
|
// mac.init(secretKeySpec);
|
|
// byte[] hmac = mac.doFinal(message.getBytes(StandardCharsets.UTF_8));
|
|
// StringBuilder sb = new StringBuilder();
|
|
// for (byte b : hmac) {
|
|
// sb.append(String.format("%02x", b));
|
|
// }
|
|
// return sb.toString();
|
|
// }catch(Exception e){
|
|
// e.printStackTrace();
|
|
// }
|
|
// return null;
|
|
//
|
|
// }
|
|
} |