logs/admin_timer.2024-04-12.log.zipBinary files differ
server/admin_timer/src/main/resources/application.yml
@@ -8,7 +8,7 @@ spring: # application: # name: doumeemes # name: doumeevisit profiles: active: proHS @@ -53,7 +53,7 @@ # daoå±çæ¥å¿è®¾ç½®ä¸ºdebugï¼æ¹ä¾¿æ¥çsql logging: level: doumeemes.dao: debug com.doumee.dao: debug knife4j: enable: true server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java
@@ -34,13 +34,6 @@ @PostConstruct public int initHkConfig(){ if(StringUtils.isBlank( ArtemisConfig.host )){ ArtemisConfig.host = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_HOST).getCode(); ArtemisConfig.appKey = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPKEY).getCode(); ArtemisConfig.appSecret = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPSECRET).getCode(); HKConstants.https = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_HTTPS).getCode(); } HKTools.interfaceLogService=interfaceLogService; //è·åæ ¹ç»ç»ç¼ç getRootOrgCode(); //å¼å§è®¢é é¨ç¦äºä»¶ã访客äºä»¶ãåå车åºäºä»¶ server/dmvisit_admin/src/main/java/com/doumee/task/ScheduleTool.java
@@ -24,8 +24,8 @@ * @date 2021-10-10 14:40:35 * https://www.bejson.com/othertools/cron/ cron 表达å¼çæå°å */ @Component @EnableScheduling //@Component //@EnableScheduling public class ScheduleTool { @Autowired @@ -157,7 +157,7 @@ /** * 宿¶å»ç»å é¨äººå */ @Scheduled(fixedRate= 60*1000) // @Scheduled(fixedRate= 60*1000) public void memberFreeze() { memberService.memberFreeze(); } server/dmvisit_admin/src/main/resources/application.yml
@@ -8,7 +8,7 @@ spring: # application: # name: doumeemes # name: doumeevisit profiles: active: proHS @@ -53,7 +53,7 @@ # daoå±çæ¥å¿è®¾ç½®ä¸ºdebugï¼æ¹ä¾¿æ¥çsql logging: level: doumeemes.dao: debug com.doumee.dao: debug knife4j: enable: true server/dmvisit_screen/src/main/resources/application.yml
@@ -8,7 +8,7 @@ spring: # application: # name: doumeemes # name: doumeevisit profiles: active: devYL @@ -55,7 +55,7 @@ # daoå±çæ¥å¿è®¾ç½®ä¸ºdebugï¼æ¹ä¾¿æ¥çsql logging: level: doumeemes.dao: debug com.doumee.dao: debug knife4j: enable: true server/dmvisit_service/src/main/java/com/doumee/core/haikang/sdk/Dewlt.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,7 @@ package com.doumee.core.haikang.sdk; import com.sun.jna.win32.StdCallLibrary; public interface Dewlt extends StdCallLibrary{ int dewlt(String strPictureBin); } server/dmvisit_service/src/main/java/com/doumee/core/haikang/sdk/HCUsbSDK.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,156 @@ package com.doumee.core.haikang.sdk; //import com.sun.javafx.scene.paint.GradientUtils.Point; import com.sun.jna.Native; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.win32.StdCallLibrary; public interface HCUsbSDK extends StdCallLibrary{ HCUsbSDK INSTANCE = (HCUsbSDK) Native.loadLibrary("D:\\work\\å®é²å¹³å°å¯¹æ¥\\HCUSBSDKV2.4.0.3_build20230418_win64_ZH\\library\\win64\\HCUSBSDK",HCUsbSDK.class); public static final int MAX_MANUFACTURE_LEN = 32; //å¶é ååç§°æå¤§é¿åº¦ public static final int MAX_DEVICE_NAME_LEN = 32; //设å¤åç§°æå¤§é¿åº¦ public static final int MAX_SERIAL_NUM_LEN = 48; //åºå巿大é¿åº¦ public static final int MAX_USB_DEV_LEN = 64; public static final int ERR_LEVEL = 1; public static final int DBG_LEVEL = 2; public static final int INF_LEVEL = 3; public static final int MAX_USERNAME_NAME = 32; //ç¨æ·åæå¤§é¿åº¦ public static final int MAX_PASSWORD_LEN = 16; //å¯ç æå¤§é¿åº¦ public static final int INVALID_USER_ID = -1; //ç»å½è¿åID,ç»å½å¤±è´¥ä¸º-1ï¼ææID 0-128 public static final int USB_ERROR_BASE = 0; public static final int USB_SUCCESS = (HCUsbSDK.USB_ERROR_BASE + 0); public static final int USB_GET_ACTIVATE_CARD = 1004; public static final int USB_GET_CERTIFICATE_INFO = 1020; public static final int MAX_SERIAL_NUMBER_LEN = 48; public static final int MAX_PATH_LEN = 260; public static final int MAX_USERNAME_LEN = 32; public enum LOG_LEVEL_ENUM { NONE, //å¡«è¡¥0è¿ä¸ªä½ç½®ï¼åé¢1ï¼2ï¼3 ENUM_ERROR_LEVEL, ENUM_DEBUG_LEVEL, ENUM_INFO_LEVEL }; public static class USB_DEVICE_INFO extends Structure { public int dwSize; //ç»æä½å¤§å° public int dwIndex; // 设å¤ç´¢å¼ public int dwVID; //设å¤VID public int dwPID; //设å¤PID public byte[] szManufacturer = new byte[MAX_MANUFACTURE_LEN/*32*/];//å¶é åï¼æ¥èªæè¿°ç¬¦ï¼ public byte[] szDeviceName = new byte[MAX_DEVICE_NAME_LEN/*32*/];//设å¤åç§°ï¼æ¥èªæè¿°ç¬¦ï¼ public byte[] szSerialNumber = new byte[MAX_SERIAL_NUMBER_LEN/*48*/];//设å¤åºåå·ï¼æ¥èªæè¿°ç¬¦ï¼ public byte byHaveAudio; // æ¯å¦å ·æé³é¢ public byte iColorType; // 1.RGBè·¯ï¼ 2.IRè·¯ public byte[] szDevicePath = new byte[MAX_PATH_LEN]; public byte[] byRes = new byte[254]; } public static class USB_USER_LOGIN_INFO extends Structure { public int dwSize; //ç»æä½å¤§å° public int dwTimeout; //ç»å½è¶ æ¶æ¶é´ï¼åä½ï¼æ¯«ç§ï¼ public int dwDevIndex; //设å¤ä¸æ public int dwVID; //设å¤VIDï¼æä¸¾è®¾å¤æ¶å¾å° public int dwPID; //设å¤PIDï¼æä¸¾è®¾å¤æ¶å¾å° public byte[] szUserName = new byte [MAX_USERNAME_LEN/*32*/]; //ç¨æ·åï¼è·åæ¿æ´»ç¶ææ¶æ éå¡« public byte[] szPassword = new byte[MAX_PASSWORD_LEN/*16*/]; //å¯ç ï¼è·åæ¿æ´»ç¶ææ¶æ éå¡« public byte[] szSerialNumber = new byte[MAX_SERIAL_NUMBER_LEN/*48*/]; //设å¤åºåå·ï¼æä¸¾è®¾å¤æ¶å¾å° public byte byLoginMode; //0-认è¯ç»é 1-é»è®¤è´¦å·ç»éï¼ä¸å ³å¿ç¨æ·åå¯ç ï¼ï¼æéä¸åï¼é¨ååè½é认è¯ç»éææ¯æï¼ public byte[] byRes2 = new byte[3]; public int dwFd; //è®¾å¤æè¿°ç¬¦fd (android䏿²¡ærootæéç»å½æ¶ä½¿ç¨) public byte[] byRes = new byte[248]; } public static class USB_DEVICE_REG_RES extends Structure { public int dwSize; //ç»æä½å¤§å° public byte[] szDeviceName = new byte[MAX_DEVICE_NAME_LEN /*32*/]; //设å¤åç§° public byte[] szSerialNumber = new byte[MAX_SERIAL_NUMBER_LEN /*48*/]; //设å¤åºåå· public int dwSoftwareVersion; //è½¯ä»¶çæ¬å·,é«16使¯ä¸»çæ¬,ä½16使¯æ¬¡çæ¬ public short wYear; public byte byMonth; public byte byDay; public byte byRetryLoginTimes; //å©ä½å¯å°è¯ç»éçæ¬¡æ° public byte[] byRes1 = new byte[3]; //ä¿ç public int dwSurplusLockTime; //å©ä½æ¶é´ï¼åä½ç§ ç¨æ·é宿¶ï¼æ¤åæ°ææ public byte[] byRes = new byte[256]; } public static class USB_ACTIVATE_CARD_RES extends Structure { public int dwSize; public byte byCardType; // å¡ç±»åï¼0-TypeA m1å¡ï¼1-TypeA cpuå¡,2-TypeB,3-125kHz Idå¡,4-Felica Card 5-Desfire Cardï¼ public byte bySerialLen; //å¡ç©çåºåå·åèé¿åº¦ public byte[] bySerial = new byte[10]; //å¡ç©çåºåå· public byte bySelectVerifyLen; //éæ©ç¡®è®¤é¿åº¦ public byte[] bySelectVerify = new byte[3]; //éæ©ç¡®è®¤(3åè) public byte[] byRes = new byte[12]; } public static class USB_WAIT_SECOND extends Structure { public int dwSize; //ç»æä½å¤§å° public byte byWait; //1Byteæä½çå¾ æ¶é´ï¼0-ä¸ç´æ§è¡ç´å°æå¡ååºï¼å ¶ä»å¯¹åº1Såä½ï¼ public byte[] byRes = new byte[27]; }//32åè public static class USB_CONFIG_INPUT_INFO extends Structure { public Pointer lpCondBuffer; //æåæ¡ä»¶ç¼å²åº public int dwCondBufferSize; //æ¡ä»¶ç¼å²åºå¤§å° public Pointer lpInBuffer; //æåè¾åºç¼å²åº public int dwInBufferSize; //è¾å ¥ç¼å²åºå¤§å° public byte[] byRes = new byte[48]; }//64åè public static class USB_CONFIG_OUTPUT_INFO extends Structure { public Pointer lpOutBuffer; //æåè¾åºç¼å²åº public int dwOutBufferSize; //è¾åºç¼å²åºå¤§å° public byte[] byRes = new byte[56]; }//64åè public static class USB_CERTIFICATE_INFO extends Structure { public int dwSize; //ç»æä½å¤§å° public short wWorldInfoSize; //æåä¿¡æ¯é¿åº¦ public short wPicInfoSize; //ç¸çä¿¡æ¯é¿åº¦ public short wFingerPrintInfoSize; //æçº¹ä¿¡æ¯é¿åº¦ public byte byCertificateType; //è¯ä»¶ç±»åï¼0-身份è¯ï¼1-ä¸å½ç»¿å¡ public byte byRes2; public byte[] byWordInfo = new byte[256]; //æåä¿¡æ¯ public byte[] byPicInfo = new byte[1024]; //ç¸çä¿¡æ¯ public byte[] byFingerPrintInfo = new byte[1024]; //æçº¹ä¿¡æ¯ public byte[] byRes = new byte[40]; } public static class OUT_USB_DEVICE_INFO extends Structure { public USB_DEVICE_INFO[] struDeviceArr; public void init(int devCount) { struDeviceArr = new USB_DEVICE_INFO[devCount]; } } boolean USB_Init(); boolean USB_Cleanup(); int USB_GetLastError(); int USB_GetDeviceCount(); //æ°å¢è·å设å¤åè¡¨ä¿¡æ¯æ¥å£ï¼æ¿æ¢åæåè°çæ¹å¼å»è·å设å¤ä¿¡æ¯ boolean USB_EnumDevices(int dwCount, Pointer pDevInfoList); Pointer USB_GetErrorMsg(int dwErrorCode); boolean USB_SetLogToFile(int dwLogLevel, String strLogDir, boolean bAutoDel); int USB_GetSDKVersion(); int USB_Login(USB_USER_LOGIN_INFO pUsbLoginInfo, USB_DEVICE_REG_RES pDevRegRes); boolean USB_Logout(int lUserID); boolean USB_GetDeviceConfig(int lUserID, int dwCommand, USB_CONFIG_INPUT_INFO InputInfo, USB_CONFIG_OUTPUT_INFO OutputInfo); } server/dmvisit_service/src/main/java/com/doumee/core/haikang/sdk/HIKCSDemo.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,151 @@ package com.doumee.core.haikang.sdk; import com.sun.jna.Pointer; public class HIKCSDemo { static HCUsbSDK hCUsbSDK = HCUsbSDK.INSTANCE; static int iHandle = -1; public static void main(String[] args) throws InterruptedException{ HIKCSDemo csdemo = new HIKCSDemo(); hCUsbSDK.USB_Init(); hCUsbSDK.USB_SetLogToFile(3, ".\\", false); System.out.println(System.getProperty("user.dir")); csdemo.getVersion(); //è·åçæ¬ csdemo.EnumDevices(); //æä¸¾è®¾å¤ csdemo.Login(); csdemo.ActivateCard(); while(true); } public void getVersion(){ int iVersion = hCUsbSDK.USB_GetSDKVersion(); String v1 = Integer.toString((iVersion>>24) & 0xff); String v2 = Integer.toString((iVersion>>16) & 0xff); String v3 = Integer.toString((iVersion>>8) & 0xff); String v4 = Integer.toString((iVersion) & 0xff); System.out.println("USB_GetSDKVersion succeed, version:" + v1 + "." + v2 + "." + v3 + "." + v4); } public void EnumDevices(){ int iNum = hCUsbSDK.USB_GetDeviceCount(); System.out.println("iNum:" + iNum); if(iNum < 1){ System.out.println("æ è®¾å¤æ¥å ¥"); return ; } //æ ¹æ®è·åå°çè®¾å¤æ°éï¼ç³è¯·å¯¹åºå¤§å°ç设å¤ä¿¡æ¯ç»æä½æ°ç» //å¯¹ç»æä½æ°ç»ä¸çæ¯ä¸ªæåè¿è¡åå§å HCUsbSDK.OUT_USB_DEVICE_INFO struOutDevice = new HCUsbSDK.OUT_USB_DEVICE_INFO(); struOutDevice.init(iNum); struOutDevice.write(); Pointer pStruDeviceInfo = struOutDevice.getPointer(); if(hCUsbSDK.USB_EnumDevices(iNum, pStruDeviceInfo)) { struOutDevice.read(); while((--iNum) >= 0) { String s1, s2, s3, s4, s5, s6; s1 = String.valueOf(struOutDevice.struDeviceArr[iNum].dwIndex); s2 = String.valueOf(struOutDevice.struDeviceArr[iNum].dwVID); s3 = String.valueOf(struOutDevice.struDeviceArr[iNum].dwPID); s4 = new String(struOutDevice.struDeviceArr[iNum].szManufacturer).trim(); s5 = new String(struOutDevice.struDeviceArr[iNum].szDeviceName).trim(); s6 = new String(struOutDevice.struDeviceArr[iNum].szSerialNumber).trim(); System.out.println("device:" + s1 + ",dwVID:" +s2 + ",dwPID:" + s3 + ",szManufacturer:" + s4 + ",szDeviceName:" +s5 + ",szSerialNumber:" + s6); } System.out.println("USB_EnumDevices succeed"); } else { System.out.println("USB_EnumDevices failed, error:" + hCUsbSDK.USB_GetLastError()); } } public void Login(){ HCUsbSDK.USB_DEVICE_REG_RES struDeviceReg = new HCUsbSDK.USB_DEVICE_REG_RES(); struDeviceReg.dwSize = struDeviceReg.size(); struDeviceReg.write(); HCUsbSDK.USB_USER_LOGIN_INFO struUserLoginInfo = new HCUsbSDK.USB_USER_LOGIN_INFO(); struUserLoginInfo.dwSize = struUserLoginInfo.size(); struUserLoginInfo.dwTimeout = 5000; struUserLoginInfo.dwDevIndex = 1; struUserLoginInfo.dwVID = 1155; struUserLoginInfo.dwPID = 22352; System.arraycopy("813717552".getBytes(), 0, struUserLoginInfo.szSerialNumber, 0, "813717552".length()); System.arraycopy("admin".getBytes(), 0, struUserLoginInfo.szUserName, 0, "admin".length()); System.arraycopy("12345".getBytes(), 0, struUserLoginInfo.szPassword, 0, "12345".length()); struUserLoginInfo.write(); iHandle = hCUsbSDK.USB_Login(struUserLoginInfo, struDeviceReg); System.out.println("iHandle:" + iHandle); if(iHandle < 0){ System.out.println("USB_Login failed, error:" + hCUsbSDK.USB_GetLastError()); } else{ System.out.println("USB_Login succeed, lHandle:" + iHandle); } } public void ActivateCard(){ HCUsbSDK.USB_WAIT_SECOND StruWaitSecond = new HCUsbSDK.USB_WAIT_SECOND(); StruWaitSecond.dwSize = StruWaitSecond.size(); StruWaitSecond.byWait = 5; HCUsbSDK.USB_ACTIVATE_CARD_RES StruActivateRes = new HCUsbSDK.USB_ACTIVATE_CARD_RES(); StruActivateRes.dwSize = StruActivateRes.size(); HCUsbSDK.USB_CONFIG_INPUT_INFO StruInput = new HCUsbSDK.USB_CONFIG_INPUT_INFO(); StruInput.dwInBufferSize = StruWaitSecond.size(); Pointer ptrwaitSecond = StruWaitSecond.getPointer(); StruWaitSecond.write(); StruInput.lpInBuffer = ptrwaitSecond; HCUsbSDK.USB_CONFIG_OUTPUT_INFO StruOutput = new HCUsbSDK.USB_CONFIG_OUTPUT_INFO(); StruOutput.dwOutBufferSize = StruActivateRes.size(); Pointer ptrActivateRes = StruActivateRes.getPointer(); StruActivateRes.write(); StruOutput.lpOutBuffer = ptrActivateRes; if(!hCUsbSDK.USB_GetDeviceConfig(iHandle, HCUsbSDK.USB_GET_ACTIVATE_CARD, StruInput, StruOutput)) { System.out.println("USB_GET_ACTIVATE_CARD failed, error:" + hCUsbSDK.USB_GetLastError()); } else{ StruActivateRes.read(); System.out.println("byCardType:" + StruActivateRes.byCardType + ",bySerialLen:" + StruActivateRes.bySerialLen); System.out.println("USB_GET_ACTIVATE_CARD succeed"); String SerialNumber = ""; //è¿åçbySerialæ°ç»éè¦ååºä¹åï¼å°åå è¿å¶è½¬æ¢æåè¿å¶å°±æ¯å¡å· for(int i = 0; i < StruActivateRes.bySerialLen; i++) { String hex = Integer.toHexString(StruActivateRes.bySerial[StruActivateRes.bySerialLen-i-1] & 0xff); if(hex.length() == 1) { hex += '0'; } SerialNumber += hex.toUpperCase(); } System.out.println("SerialNumber:0x" + SerialNumber); System.out.println("cardNo:" + Long.parseLong(SerialNumber, 16)); } } //class ç»æ } server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -422,9 +422,10 @@ public static void main(String[] args) { System.out.println(Constants.getVehiclePlateNo("çAA10991").getDescription()); // System.out.println(Constants.getVehiclePlateNo("æ¹B140D17").getDescription()); // System.out.println(Constants.getVehiclePlateNo("宿AP0637").getDescription()); } server/dmvisit_service/src/main/java/com/doumee/core/utils/DateUtil.java
@@ -1374,7 +1374,6 @@ } int nday = caln.get(Calendar.DAY_OF_YEAR); days = days + nday - oday; return days; } @@ -2836,11 +2835,9 @@ public static void main(String[] args) { try { System.out.println(RandomStringUtils.randomNumeric(3)); Date date = getISO8601DateByStr("2024-02-21T15:46:36.014+08:00"); System.out.println(getISO8601Timestamp(date)); Date date = getISO8601DateByStr("2024-04-15T07:46:36.014+08:00"); Date date1 = getISO8601DateByStr("2024-06-14T08:46:36.014+08:00"); System.out.println(daysBetweenDates11(date1,date)+1); } catch (Exception ex) { ex.printStackTrace(); server/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
@@ -587,9 +587,16 @@ } if(visits.getSourceType().equals(Constants.ZERO)){ String code = systemDictDataBiz.queryByCode(Constants.VISIT_CONFIG,Constants.VALIDATE_VISIT).getCode(); int codenum =0; try { codenum = Integer.parseInt(code); }catch (Exception e){ } if(StringUtils.isNotBlank(code)&&!StringUtils.equals(code,"0")){ Integer betweenDays = Math.toIntExact(cn.hutool.core.date.DateUtil.between(visits.getEndtime(), visits.getStarttime(), DateUnit.DAY)); if(Integer.compare(betweenDays,Integer.valueOf(code))>0){ // Integer betweenDays = Math.toIntExact(cn.hutool.core.date.DateUtil.between(visits.getEndtime(), visits.getStarttime(), DateUnit.DAY)); int betweenDays = DateUtil.daysBetweenDates11(visits.getEndtime(), visits.getStarttime())+1; if( betweenDays > codenum){ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼é¢çº¦æ»å¤©æ°ä¸è½è¶ è¿["+code+"天]ï¼"); } } server/dmvisit_service/src/main/java/com/doumee/service/business/impl/erp/ErpSyncServiceImpl.java
@@ -771,7 +771,9 @@ company.setParentId(Objects.isNull(parentCompany)?null:parentCompany.getId()); company.setErpParentId(param.getParentId()); company.setFsStatus(Constants.ZERO); company.setStatus(Constants.ZERO); company.setType(Constants.ONE); company.setIsdeleted(Constants.ZERO); company.setLinkName(param.getLinkName()); company.setLinkPhone(param.getLinkPhone()); companyMapper.insert(company); @@ -1116,7 +1118,6 @@ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼è¯·éæ©ææç访客é¨ç¦ç»ï¼"); } } } @Override server/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncInitConfigServiceImpl.java
@@ -2,7 +2,9 @@ import com.doumee.biz.system.SystemDictDataBiz; import com.doumee.core.haikang.model.HKConstants; import com.doumee.core.haikang.model.HKTools; import com.doumee.core.utils.Constants; import com.doumee.service.business.InterfaceLogService; import com.hikvision.artemis.sdk.config.ArtemisConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,6 +21,8 @@ @Autowired private SystemDictDataBiz systemDictDataBiz; @Autowired private InterfaceLogService interfaceLogService; @PostConstruct public int initHkConfig(){ @@ -26,6 +30,7 @@ ArtemisConfig.appKey = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPKEY).getCode(); ArtemisConfig.appSecret = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_APPSECRET).getCode(); HKConstants.https = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_HTTPS).getCode(); HKTools.interfaceLogService=interfaceLogService; return 0; } server/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java
@@ -115,7 +115,7 @@ }catch (Exception e) { log.error("ãæµ·åº·é¨ç¦äºä»¶æ¨éã========失败=======ï¼\n" + e.getMessage()); }finally { saveInterfaceLog(param,"/business/hksync/push/acs",result); saveInterfaceLog(param,"/business/hksync/push/acs",result,false);//ä¸è®¡æ¥å¿ } return null; @@ -306,7 +306,7 @@ log.error("ãæµ·åº·è®¿å®¢äºä»¶æ¨éã========失败=======ï¼\n"+e.getMessage()); } saveInterfaceLog(param,"/business/hksync/push/visit",result); saveInterfaceLog(param,"/business/hksync/push/visit",result,true); return null; } @@ -478,7 +478,7 @@ log.error("ãæµ·åº·å车åºäºä»¶æ¨éã========失败=======ï¼\n"+e.getMessage()); } saveInterfaceLog(param,"/business/hksync/push/parks",result); saveInterfaceLog(param,"/business/hksync/push/parks",result,false); return null; } @@ -586,7 +586,10 @@ return retention; } private void saveInterfaceLog(Object param, String path,String result) { private void saveInterfaceLog(Object param, String path,String result,boolean need) { if(!need){ return; } InterfaceLog hkMonitoryLogDO=new InterfaceLog(); hkMonitoryLogDO.setType(1); hkMonitoryLogDO.setCreateDate(new Date()); server/dmvisit_web/pom.xml
@@ -26,7 +26,7 @@ </dependencies> <build> <finalName>visit_web</finalName> <finalName>web_interface</finalName> <resources> <resource> <directory>src/main/resources</directory> server/dmvisit_web/src/main/resources/application.yml
@@ -8,7 +8,7 @@ spring: # application: # name: doumeemes # name: doumeevisit profiles: active: proHS @@ -55,7 +55,7 @@ # daoå±çæ¥å¿è®¾ç½®ä¸ºdebugï¼æ¹ä¾¿æ¥çsql logging: level: doumeemes.dao: debug com.doumee.dao: debug knife4j: enable: true server/openapi/src/main/resources/application.yml
@@ -7,7 +7,7 @@ spring: # application: # name: doumeemes # name: doumeevisit profiles: active: proHS @@ -54,7 +54,7 @@ # daoå±çæ¥å¿è®¾ç½®ä¸ºdebugï¼æ¹ä¾¿æ¥çsql logging: level: doumeemes.dao: debug com.doumee.dao: debug knife4j: enable: true