删除不必要的类

master
erzhongxmu 2023-09-12 20:57:19 +08:00
parent 5119f2d45c
commit 58f7c196f2
5 changed files with 3 additions and 254 deletions

14
pom.xml
View File

@ -944,21 +944,13 @@
</dependency>
<!-- redis cache end -->
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>6.0</version>
</dependency>
<dependency>
<groupId>com.github.dathlin</groupId>
<artifactId>HslCommunication</artifactId>
<version>3.3.0</version>
</dependency>
</dependencies>
<organization>
<name>ZZJEE 智能快速开发平台</name>
<name>jeewms</name>
<url>www.jeewms.com</url>
</organization>
<build>

View File

@ -1,130 +0,0 @@
package test;
import com.alibaba.fastjson.JSONObject;
import org.jeecgframework.web.cgform.util.SignatureUtil;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.ConnectException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class HttpUtil {
/**
* https
*
* @param requestUrl
*
* @param requestMethod
* GETPOST
* @param outputStr
*
* @return JSONObject(JSONObject.get(key)json)
*/
public static JSONObject httpRequest(String requestUrl,
String requestMethod, String outputStr,String sign) {
JSONObject jsonObject = null;
StringBuffer buffer = new StringBuffer();
HttpURLConnection httpUrlConn = null;
try {
// 创建SSLContext对象并使用我们指定的信任管理器初始化
URL url = new URL(requestUrl);
httpUrlConn = (HttpURLConnection) url.openConnection();
httpUrlConn.setDoOutput(true);
httpUrlConn.setDoInput(true);
httpUrlConn.setUseCaches(false);
httpUrlConn.setRequestProperty("X-JEECG-SIGN",sign);
// httpUrlConn.setRequestProperty("content-type", "text/html");
// 设置请求方式GET/POST
httpUrlConn.setRequestMethod(requestMethod);
if ("GET".equalsIgnoreCase(requestMethod)) {
httpUrlConn.connect();
}
// 当有数据需要提交时
if (null != outputStr) {
OutputStream outputStream = httpUrlConn.getOutputStream();
// 注意编码格式,防止中文乱码
outputStream.write(outputStr.getBytes("UTF-8"));
outputStream.close();
}
// 将返回的输入流转换成字符串
InputStream inputStream = httpUrlConn.getInputStream();
InputStreamReader inputStreamReader = new InputStreamReader(
inputStream, "utf-8");
BufferedReader bufferedReader = new BufferedReader(
inputStreamReader);
String str = null;
while ((str = bufferedReader.readLine()) != null) {
buffer.append(str);
}
bufferedReader.close();
inputStreamReader.close();
// 释放资源
inputStream.close();
inputStream = null;
httpUrlConn.disconnect();
jsonObject = JSONObject.parseObject(buffer.toString());
// jsonObject = JSONObject.fromObject(buffer.toString());
} catch (ConnectException ce) {
org.jeecgframework.core.util.LogUtil
.info("Weixin server connection timed out.");
} catch (Exception e) {
//e.printStackTrace();
org.jeecgframework.core.util.LogUtil.info("https request error:{}"
+ e.getMessage());
}finally{
try {
httpUrlConn.disconnect();
}catch (Exception e) {
e.printStackTrace();
org.jeecgframework.core.util.LogUtil.info("http close error:{}"+ e.getMessage());
}
}
return jsonObject;
}
public static void main1(String args[]){
String key="26F72780372E84B6CFAED6F7B19139CC47B1912B6CAED753";
JSONObject jsonObject=new JSONObject();
jsonObject.put("id","40281381537e969401537eb9902d0006");
jsonObject.put("tableName","jform_contact");
String body=jsonObject.toJSONString();
Map param=new HashMap();
param.put("body",body);
String sign=SignatureUtil.sign(param,key);
System.out.println(" -- sign -- "+ sign);
JSONObject resp=HttpUtil.httpRequest("http://localhost:8080/jeecg/api/cgFormDataController.do?getFormInfo","POST","body="+body,sign);
System.out.println(resp.toJSONString());
}
public static void main(String args[]){
// dscUtil.updateGoodsFromDsc();
// String res = dscUtil.getOrderList("1","","");
// System.out.println(res);
// String key="26F72780372E84B6CFAED6F7B19139CC47B1912B6CAED753";
//
// JSONObject data=new JSONObject();
// data.put("id","nihao");
// data.put("updateBy","0");
// String body=data.toJSONString();
// JSONObject resp=HttpUtil.httpRequest("http://localhost:8080/zzjee/rest/wmToDownGoodsController","POST","wmToDownGoodsstr="+body,"");
// System.out.println(resp.toJSONString());
}
}

View File

@ -1,42 +0,0 @@
package test;
import HslCommunication.BasicFramework.SoftBasic;
import HslCommunication.Core.Types.OperateResult;
import HslCommunication.Core.Types.OperateResultExOne;
import HslCommunication.Profinet.Siemens.SiemensPLCS;
import HslCommunication.Profinet.Siemens.SiemensS7Net;
import com.sap.conn.jco.JCoTable;
import com.zzjee.sap.SapRFC;
import org.jeecgframework.codegenerate.window.CodeWindow;
import org.jeecgframework.core.util.DateUtils;
import java.sql.SQLOutput;
import java.text.ParseException;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author admin
* @site www.jeecg.org
*
*/
public class JeecgOneGUI {
public static void main(String[] args) throws ParseException {
SiemensPLCS siemensPLCS = SiemensPLCS.S200Smart;
SiemensS7Net siemensS7Net = null;
String defaultAddress = "M5.0";
siemensS7Net = new SiemensS7Net(siemensPLCS);
siemensS7Net.setIpAddress("192.168.1.99");
siemensS7Net.setPort(102);
OperateResult connect = siemensS7Net.ConnectServer();
if(connect.IsSuccess){
System.out.println("connect success");
}else{
System.out.println("connect error");
}
}
}

View File

@ -1,66 +0,0 @@
package test;
import java.util.ArrayList;
import java.util.List;
import org.jeecgframework.codegenerate.generate.onetomany.CodeGenerateOneToMany;
import org.jeecgframework.codegenerate.pojo.onetomany.CodeParamEntity;
import org.jeecgframework.codegenerate.pojo.onetomany.SubTableEntity;
/**
*
* @author admin
* @site www.jeecg.org
*
*/
public class JeecgOneToMainUtil {
/**
* ()
* @param args
*/
public static void main(String[] args) {
//第一步:设置主表配置
CodeParamEntity codeParamEntityIn = new CodeParamEntity();
codeParamEntityIn.setTableName("jform_order_main");//表名
codeParamEntityIn.setEntityName("TestOrderMain"); //实体名
codeParamEntityIn.setEntityPackage("test"); //包名
codeParamEntityIn.setFtlDescription("订单"); //描述
//第二步:设置子表集合配置
List<SubTableEntity> subTabParamIn = new ArrayList<SubTableEntity>();
//[1].子表一
SubTableEntity po = new SubTableEntity();
po.setTableName("jform_order_customer");//表名
po.setEntityName("TestOrderCustom"); //实体名
po.setEntityPackage("test"); //包名
po.setFtlDescription("客户明细"); //描述
//子表外键参数配置
/*:
* a) ID_ID;
* b) ID;
* c) ;
*/
po.setForeignKeys(new String[]{"fk_id"});
subTabParamIn.add(po);
//[2].子表二
SubTableEntity po2 = new SubTableEntity();
po2.setTableName("jform_order_ticket"); //表名
po2.setEntityName("TestOrderTicket"); //实体名
po2.setEntityPackage("test"); //包名
po2.setFtlDescription("产品明细"); //描述
//子表外键参数配置
/*:
* a) ID_ID;
* b) ID;
* c) ;
*/
po2.setForeignKeys(new String[]{"fck_id"});
subTabParamIn.add(po2);
codeParamEntityIn.setSubTabParam(subTabParamIn);
//第三步:一对多(父子表)数据模型,代码生成
CodeGenerateOneToMany.oneToManyCreate(subTabParamIn, codeParamEntityIn);
}
}

View File

@ -1,5 +0,0 @@
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>