|
|
|
@ -51,9 +51,11 @@ public class OnlyImageParser extends LayoutParser {
|
|
|
|
|
dataObject.put("LINK_ENT_NM", descriptor.getLinkEnterpriseName());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String[] fileNameSplit = FilenameUtils.removeExtension(fileName).split(Matcher.quoteReplacement("_"));
|
|
|
|
|
String noExtensionName = FilenameUtils.removeExtension(fileName);
|
|
|
|
|
|
|
|
|
|
dataObject.put("DEVICE_ID", fileNameSplit[0]);
|
|
|
|
|
String[] fileNameSplit = noExtensionName.split(Matcher.quoteReplacement(descriptor.getFileNameSeperator()));
|
|
|
|
|
|
|
|
|
|
dataObject.put("EQPMNT_CD", fileNameSplit[0]);
|
|
|
|
|
dataObject.put("CRDN_TIMESTAMP", fileNameSplit[1]);
|
|
|
|
|
|
|
|
|
|
dataObject.put("CRDN_YMD", fileNameSplit[1].substring(0,8));
|
|
|
|
@ -62,15 +64,15 @@ public class OnlyImageParser extends LayoutParser {
|
|
|
|
|
dataObject.put("VHRNO", fileNameSplit[2]);
|
|
|
|
|
dataObject.put("PHOTO_CNT", fileNameSplit[3]);
|
|
|
|
|
|
|
|
|
|
String photoSeq = fileNameSplit[4];
|
|
|
|
|
dataObject.put("PHOTO_SEQ", photoSeq);
|
|
|
|
|
String photoType = fileNameSplit[4];
|
|
|
|
|
dataObject.put("PHOTO_TYPE", photoType);
|
|
|
|
|
|
|
|
|
|
String photoSeqNm = "";
|
|
|
|
|
if(photoSeq.equals("1")) photoSeqNm = "입차사진";
|
|
|
|
|
else if(photoSeq.equals("2")) photoSeqNm = "주차사진";
|
|
|
|
|
else if(photoSeq.equals("3")) photoSeqNm = "위반사진";
|
|
|
|
|
else if(photoSeq.equals("4")) photoSeqNm = "출차사진";
|
|
|
|
|
dataObject.put("PHOTO_SEQ_NM", photoSeqNm);
|
|
|
|
|
if(photoType.equals("1")) photoSeqNm = "입차사진";
|
|
|
|
|
else if(photoType.equals("2")) photoSeqNm = "주차사진";
|
|
|
|
|
else if(photoType.equals("3")) photoSeqNm = "위반사진";
|
|
|
|
|
else if(photoType.equals("4")) photoSeqNm = "출차사진";
|
|
|
|
|
dataObject.put("PHOTO_TYPE_NM", photoSeqNm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataObject.put("GPS_X", fileNameSplit[5]);
|
|
|
|
@ -120,7 +122,7 @@ public class OnlyImageParser extends LayoutParser {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(currentItem.number("PHOTO_SEQ").intValue() <= beforeItem.number("PHOTO_SEQ").intValue()) {
|
|
|
|
|
if(currentItem.number("PHOTO_TYPE").intValue() <= beforeItem.number("PHOTO_TYPE").intValue()) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|