|
|
@ -1,19 +1,8 @@
|
|
|
|
package com.xit.core.util.mpower;
|
|
|
|
package com.xit.core.util.mpower;
|
|
|
|
|
|
|
|
|
|
|
|
import com.plf.client.Client;
|
|
|
|
import com.plf.client.Client;
|
|
|
|
import com.xit.core.util.CommUtil;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.apache.commons.codec.binary.StringUtils;
|
|
|
|
|
|
|
|
import org.apache.ibatis.mapping.BoundSql;
|
|
|
|
|
|
|
|
import org.apache.ibatis.mapping.ParameterMapping;
|
|
|
|
|
|
|
|
import org.apache.ibatis.session.SqlSession;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
|
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
|
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
|
|
|
|
import java.net.URLDecoder;
|
|
|
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
|
|
|
|
import java.sql.*;
|
|
|
|
import java.sql.*;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
@ -361,7 +350,7 @@ public class MpowerUtils {
|
|
|
|
//logger.debug("=====================================================Select Query==================================================");
|
|
|
|
//logger.debug("=====================================================Select Query==================================================");
|
|
|
|
//logger.debug(query);
|
|
|
|
//logger.debug(query);
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println("======"+query);
|
|
|
|
log.debug("query\n"+query);
|
|
|
|
//List<EgovMap> mList = new ArrayList<EgovMap>();
|
|
|
|
//List<EgovMap> mList = new ArrayList<EgovMap>();
|
|
|
|
List<Map<String,Object>> mList = new ArrayList<>();
|
|
|
|
List<Map<String,Object>> mList = new ArrayList<>();
|
|
|
|
int mListCount = 0;
|
|
|
|
int mListCount = 0;
|
|
|
@ -373,16 +362,15 @@ public class MpowerUtils {
|
|
|
|
mpower.Request();
|
|
|
|
mpower.Request();
|
|
|
|
String result = mpower.getString("result", 0, 0);
|
|
|
|
String result = mpower.getString("result", 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println("#######message = "+mpower.getMessage());
|
|
|
|
// System.out.println("#######message = "+mpower.getMessage());
|
|
|
|
System.out.println("#######message charset = "+CommUtil.detectCharset(mpower.getMessage().getBytes()));
|
|
|
|
// System.out.println("#######message charset = "+CommUtil.detectCharset(mpower.getMessage().getBytes()));
|
|
|
|
|
|
|
|
// System.out.println("#######message = "+new String(mpower.getMessage().getBytes(), CommUtil.detectCharset(mpower.getMessage().getBytes())));
|
|
|
|
|
|
|
|
|
|
|
|
int row;
|
|
|
|
int row;
|
|
|
|
if (result.equals("true")){
|
|
|
|
if (result.equals("true")){
|
|
|
|
row = mpower.getMaxRow("list1");
|
|
|
|
row = mpower.getMaxRow("list1");
|
|
|
|
if(row>0){
|
|
|
|
if(row>0){
|
|
|
|
for(int i=0;i<row;i++){
|
|
|
|
for(int i=0;i<row;i++){
|
|
|
|
//EgovMap m = new EgovMap();
|
|
|
|
|
|
|
|
Map<String,Object> m = new HashMap<>();
|
|
|
|
Map<String,Object> m = new HashMap<>();
|
|
|
|
if(!"".equals(feild) && feild != null){
|
|
|
|
if(!"".equals(feild) && feild != null){
|
|
|
|
m.put("cbContent", mpower.getString("list1", i, 4));
|
|
|
|
m.put("cbContent", mpower.getString("list1", i, 4));
|
|
|
|