|
|
|
@ -491,17 +491,14 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
int index = 1;
|
|
|
|
|
|
|
|
|
|
if("picad".equals(imgDiv)){
|
|
|
|
|
log.info("<<< ==== Mpower picad 이미지 file name ====>>>");
|
|
|
|
|
// A, B, C, D
|
|
|
|
|
for(int idx = 0; idx <=3; idx++) client.setInput("dnfile"+index++,mpowerFilePre + fileNames.get(idx));
|
|
|
|
|
|
|
|
|
|
}else if("frecad".equals(imgDiv)) {
|
|
|
|
|
log.info("<<< ==== Mpower frecad 이미지 file name ====>>>");
|
|
|
|
|
index = 1;
|
|
|
|
|
// A, B, C, D
|
|
|
|
|
for (int idx = 0; idx <= 3; idx++) client.setInput("dnfile" + index++, mpowerFilePre + fileNames.get(idx));
|
|
|
|
|
}else {
|
|
|
|
|
log.info("<<< ==== Mpower contad 이미지 file name ====>>>");
|
|
|
|
|
index = 1;
|
|
|
|
|
// F, G, H, I
|
|
|
|
|
for (int idx = 5; idx <= 8; idx++) client.setInput("dnfile" + index++, mpowerFilePre + fileNames.get(idx));
|
|
|
|
@ -513,7 +510,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
if (result.equals("true")){
|
|
|
|
|
fileDownAndSet(list, client, svrSavedPhotoPath, file);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
throw new MpowerException("MPower File download error::"+result);
|
|
|
|
|
}
|
|
|
|
@ -530,7 +526,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
// 진술서 return
|
|
|
|
|
//-----------------------------------------------------------------
|
|
|
|
|
if("frecad".equals(imgDiv)) {
|
|
|
|
|
log.info("<<< ==== Mpower frecad 이미지 file name ====>>>");
|
|
|
|
|
// E
|
|
|
|
|
client.setInput("dnfile1", mpowerFilePre + "E.jpg");
|
|
|
|
|
client.Request();
|
|
|
|
@ -544,9 +539,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
client.savefile("imageA", svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageA"), svrSavedPhotoPath);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
setNoFileInfo(list);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
@ -558,7 +550,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
//-----------------------------------------------------------------
|
|
|
|
|
// 참고자료 return
|
|
|
|
|
//-----------------------------------------------------------------
|
|
|
|
|
log.info("<<< ==== Mpower contad 이미지 file name ====>>>");
|
|
|
|
|
index = 1;
|
|
|
|
|
// J, K, L, M
|
|
|
|
|
for (int idx = 9; idx <= 12; idx++) client.setInput("dnfile" + index++, mpowerFilePre + fileNames.get(idx));
|
|
|
|
@ -588,11 +579,7 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
client.savefile("imageA", svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageA"), svrSavedPhotoPath);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(Checks.isNotEmpty(client.getFileName("imageB"))){
|
|
|
|
|
if(!file.exists()) file.mkdirs();
|
|
|
|
@ -602,9 +589,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageB"), svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
throw new MpowerException("MPower File download error::"+result);
|
|
|
|
@ -629,9 +613,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
setFileInfo(list, client.getFileName("imageA"), svrSavedPhotoPath);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(Checks.isNotEmpty(client.getFileName("imageB"))){
|
|
|
|
|
if(!file.exists()) file.mkdirs();
|
|
|
|
@ -641,9 +622,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageB"), svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(Checks.isNotEmpty(client.getFileName("imageC"))){
|
|
|
|
|
if(!file.exists()) file.mkdirs();
|
|
|
|
@ -653,9 +631,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageC"), svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(Checks.isNotEmpty(client.getFileName("imageD"))){
|
|
|
|
|
if(!file.exists()) file.mkdirs();
|
|
|
|
@ -665,9 +640,6 @@ public abstract class BaseMpowerDaoSupport {
|
|
|
|
|
}
|
|
|
|
|
setFileInfo(list, client.getFileName("imageD"), svrSavedPhotoPath);
|
|
|
|
|
}
|
|
|
|
|
// else{
|
|
|
|
|
// setNoFileInfo(list);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setFileInfo(List<Map<String, Object>> list, String imgName, String strpath) {
|
|
|
|
|