|
|
|
|
@ -1253,7 +1253,7 @@ public class CommHoCController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* AI번호인식 요청
|
|
|
|
|
* AI 번호 인식 요청 및 차량번호 변경
|
|
|
|
|
* <pre></pre>
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value="/cfs/trsmrcv/callCarNoDecision.do", method=RequestMethod.POST)
|
|
|
|
|
@ -1293,7 +1293,7 @@ public class CommHoCController {
|
|
|
|
|
vo.setCardRet(cardRet);
|
|
|
|
|
|
|
|
|
|
vo.setPassDate(passDate);
|
|
|
|
|
vo.setPassAmount(passAmount);
|
|
|
|
|
vo.setPassAmount(passAmount); //원래의도 : 금액, 실제 : sofa+정지이미지관련코드1자리+동영상관련코드1자리+금액의앞3자리
|
|
|
|
|
vo.setCarNoImgPath(transFileName(carNoImgPath));
|
|
|
|
|
|
|
|
|
|
vo.setWorker("test");
|
|
|
|
|
@ -1340,6 +1340,7 @@ public class CommHoCController {
|
|
|
|
|
cctvID.put("106", "A10211006");
|
|
|
|
|
cctvID.put("107", "A10311007");
|
|
|
|
|
cctvID.put("108", "A10411008");
|
|
|
|
|
|
|
|
|
|
cctvID.put("301", "A10503001");
|
|
|
|
|
cctvID.put("302", "A10403002");
|
|
|
|
|
cctvID.put("303", "A10303003");
|
|
|
|
|
@ -1356,16 +1357,16 @@ public class CommHoCController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println("=== strImageOrg : " + strImageOrg);
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[0]);
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[1]);
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[2]);
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[0]); //날짜
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[1]); //시간
|
|
|
|
|
System.out.println("=== strarr[] : " + strarr[2]); //시퀀스+징수코드
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String tennel = strarr[3].substring(0, 1);
|
|
|
|
|
String line = strarr[3].substring(1, 3);
|
|
|
|
|
String dirc = strarr[3].substring(3);
|
|
|
|
|
String tennel = strarr[3].substring(0, 1); //터널
|
|
|
|
|
String line = strarr[3].substring(1, 3); //차로
|
|
|
|
|
String dirc = strarr[3].substring(3); //원래의도 : 통행방향, 실제 : 감지시간의첫자리
|
|
|
|
|
|
|
|
|
|
dirc = cctvID.get(tennel + line);
|
|
|
|
|
dirc = cctvID.get(tennel + line); //덧씌움
|
|
|
|
|
dirc = dirc.substring(dirc.length() - 1);
|
|
|
|
|
Map<String,String> mapDic = new HashMap<String, String>();
|
|
|
|
|
mapDic.put("1", "0");
|
|
|
|
|
@ -1379,6 +1380,7 @@ public class CommHoCController {
|
|
|
|
|
|
|
|
|
|
System.out.println("==map dirc== : [" + mapDic.get(dirc) + "]==");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StringBuilder strbuf = new StringBuilder();
|
|
|
|
|
strbuf.append(strarr[0].substring(0, 4));
|
|
|
|
|
strbuf.append("/");
|
|
|
|
|
@ -1411,7 +1413,7 @@ public class CommHoCController {
|
|
|
|
|
strbuf.append("_");
|
|
|
|
|
strbuf.append(strarr[1]);
|
|
|
|
|
strbuf.append("_");
|
|
|
|
|
strbuf.append(strarr[2]);
|
|
|
|
|
strbuf.append(strarr[2]); //시퀀스+징수코드
|
|
|
|
|
strbuf.append(".jpg");
|
|
|
|
|
System.out.println("==String Buf 2 == : [" + strbuf + "]==");
|
|
|
|
|
|
|
|
|
|
|