删除无用代码

master
星期八 4 years ago
parent b2fe65b77d
commit 9ae4587dc1
  1. 4
      src/main/java/com/lq/code/util/mybatis/plus/CreateMapperFileUtil.java
  2. 3
      src/main/java/com/lq/wechat/util/IoUtil.java
  3. 1
      src/main/java/com/lq/wechat/util/MessageUtil.java

@ -5,11 +5,7 @@ import com.lq.code.util.sql.AbstractDbBuiler;
import com.lq.code.util.sql.MysqlBuilder; import com.lq.code.util.sql.MysqlBuilder;
import com.lq.code.util.sql.SqlUtil; import com.lq.code.util.sql.SqlUtil;
import com.lq.dao.SysPermissionDao; import com.lq.dao.SysPermissionDao;
import com.lq.dao.WechatKeywordDao;
import com.lq.dao.WechatRuleMessageDao;
import com.lq.entity.SysPermission; import com.lq.entity.SysPermission;
import com.lq.entity.WechatKeyword;
import com.lq.entity.WechatRuleMessage;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;

@ -14,8 +14,7 @@ public class IoUtil {
public static String convertStreamToString(InputStream inputStream){ public static String convertStreamToString(InputStream inputStream){
BufferedReader reader=new BufferedReader(new InputStreamReader(inputStream)); BufferedReader reader=new BufferedReader(new InputStreamReader(inputStream));
StringBuilder sb=new StringBuilder(); StringBuilder sb=new StringBuilder();
String line;
String line=null;
try { try {
while ((line=reader.readLine())!=null){ while ((line=reader.readLine())!=null){
sb.append(line+"\n"); sb.append(line+"\n");

@ -31,7 +31,6 @@ public class MessageUtil {
* @throws DocumentException * @throws DocumentException
*/ */
public static Map<String, String> xmlToMap(HttpServletRequest req) throws IOException, DocumentException{ public static Map<String, String> xmlToMap(HttpServletRequest req) throws IOException, DocumentException{
SAXReader reader=new SAXReader();
InputStream ins=req.getInputStream(); InputStream ins=req.getInputStream();
String resultString=IoUtil.convertStreamToString(ins); String resultString=IoUtil.convertStreamToString(ins);
Document doc=DocumentHelper.parseText(resultString); Document doc=DocumentHelper.parseText(resultString);

Loading…
Cancel
Save