|
|
@ -239,8 +239,10 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
if(row > 1) throw new MpowerException("조회된 데이타가 단일행이 아닙니다");
|
|
|
|
if(row > 1) throw new MpowerException("조회된 데이타가 단일행이 아닙니다");
|
|
|
|
map = new HashMap<>();
|
|
|
|
map = new HashMap<>();
|
|
|
|
List<String> fields = getFeilds(fieldStr);
|
|
|
|
List<String> fields = getFeilds(fieldStr);
|
|
|
|
|
|
|
|
String value = null;
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
map.put(fields.get(j), client.getString("list1", 0, j));
|
|
|
|
value = client.getString("list1", 0, j);
|
|
|
|
|
|
|
|
map.put(fields.get(j), " ".equals(value)? "" : value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
throw new MpowerException("SQL 오류::"+result);
|
|
|
|
throw new MpowerException("SQL 오류::"+result);
|
|
|
@ -271,12 +273,14 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
if (result.equals("true")){
|
|
|
|
if (result.equals("true")){
|
|
|
|
row = client.getMaxRow("list1");
|
|
|
|
row = client.getMaxRow("list1");
|
|
|
|
List<String> fields = getFeilds(fieldStr);
|
|
|
|
List<String> fields = getFeilds(fieldStr);
|
|
|
|
|
|
|
|
String value = null;
|
|
|
|
|
|
|
|
|
|
|
|
for(int i = 0; i < row; i++) {
|
|
|
|
for(int i = 0; i < row; i++) {
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
map.put(fields.get(j), client.getString("list1", i, j));
|
|
|
|
value = client.getString("list1", i, j);
|
|
|
|
|
|
|
|
map.put(fields.get(j), " ".equals(value)? "" : value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.add(map);
|
|
|
|
list.add(map);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -402,6 +406,7 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
throw new MpowerException("DB Result 객체 오류");
|
|
|
|
throw new MpowerException("DB Result 객체 오류");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Field[] clsFields = type.getDeclaredFields();
|
|
|
|
Field[] clsFields = type.getDeclaredFields();
|
|
|
|
|
|
|
|
String value = null;
|
|
|
|
|
|
|
|
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
for (int j = 0; j < fields.size(); j++) {
|
|
|
|
for (Field fd : clsFields) {
|
|
|
|
for (Field fd : clsFields) {
|
|
|
@ -411,7 +416,7 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
if (fields.get(j).equals(fd.getName())) {
|
|
|
|
if (fields.get(j).equals(fd.getName())) {
|
|
|
|
//log.info("===>>>{}::{}", fd.getName(), client.getString("list1", row, j));
|
|
|
|
//log.info("===>>>{}::{}", fd.getName(), client.getString("list1", row, j));
|
|
|
|
// null 인 경우 => " " 으로 mpower에서 전환되고 있다
|
|
|
|
// null 인 경우 => " " 으로 mpower에서 전환되고 있다
|
|
|
|
String value = client.getString("list1", row, j);
|
|
|
|
value = client.getString("list1", row, j);
|
|
|
|
if(" ".equals(value)) value = "";
|
|
|
|
if(" ".equals(value)) value = "";
|
|
|
|
|
|
|
|
|
|
|
|
if (fd.getType() == Integer.class || fd.getType() == Integer.TYPE){
|
|
|
|
if (fd.getType() == Integer.class || fd.getType() == Integer.TYPE){
|
|
|
|