| | |
| | | type2 = OperationLogEnum.TYPE_2_USER_UPDATE_PASSWORD.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_USER_UPDATE_PASSWORD.getName(); |
| | | } |
| | | }else if(classNameTrue.contains("A200")){ //告警设置 |
| | | }else if(classNameTrue.contains("lockRt")){ //告警设置 |
| | | type1 = OperationLogEnum.TYPE_1_SERVICE.getType(); |
| | | if(methodName.startsWith("set")){ |
| | | if(methodName.contains("Pl")){ |
| | | type2 = OperationLogEnum.TYPE_2_A200_SETPARAMPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_SETPARAMPL.getName(); |
| | | }else{ |
| | | type2 = OperationLogEnum.TYPE_2_A200_SETPARAM.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_SETPARAM.getName(); |
| | | if(methodName.startsWith("cancle")){ |
| | | type2 = OperationLogEnum.TYPE_2_Cancle_SETPARAM.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_Cancle_SETPARAM.getName(); |
| | | |
| | | } |
| | | if(methodName.startsWith("open")){ |
| | | type2 = OperationLogEnum.TYPE_2_Open_SETPARAMPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_Open_SETPARAMPL.getName(); |
| | | } |
| | | if(methodName.startsWith("start")){ |
| | | if(methodName.contains("Pl")){ |
| | | type2 = OperationLogEnum.TYPE_2_A200_STARTPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_STARTPL.getName(); |
| | | }else{ |
| | | type2 = OperationLogEnum.TYPE_2_A200_START.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_START.getName(); |
| | | if(methodName.startsWith("add")){ |
| | | type2 = OperationLogEnum.TYPE_2_Add_START.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_Add_START.getName(); |
| | | } |
| | | if(methodName.startsWith("del")){ |
| | | type2 = OperationLogEnum.TYPE_2_Del_STARTPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_Del_STARTPL.getName(); |
| | | } |
| | | if(methodName.startsWith("stop")){ |
| | | if(methodName.contains("Pl")){ |
| | | type2 = OperationLogEnum.TYPE_2_A200_STOPPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_STOPPL.getName(); |
| | | }else{ |
| | | type2 = OperationLogEnum.TYPE_2_A200_STOP.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_A200_STOP.getName(); |
| | | } |
| | | } |
| | | }else if(classNameTrue.contains("Actm")){ |
| | | type1 = OperationLogEnum.TYPE_1_SERVICE.getType(); |
| | | if(methodName.startsWith("set")){ |
| | | if(methodName.contains("Pl")){ |
| | | type2 = OperationLogEnum.TYPE_2_ACTM_SETPARAMPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_ACTM_SETPARAMPL.getName(); |
| | | }else{ |
| | | type2 = OperationLogEnum.TYPE_2_ACTM_SETPARAM.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_ACTM_SETPARAM.getName(); |
| | | } |
| | | } |
| | | if(methodName.startsWith("controll")){ |
| | | if(methodName.contains("Pl")){ |
| | | type2 = OperationLogEnum.TYPE_2_ACTM_CONTROLLPL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_ACTM_CONTROLLPL.getName(); |
| | | }else{ |
| | | type2 = OperationLogEnum.TYPE_2_ACTM_CONTROLL.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_ACTM_CONTROLL.getName(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | // TODO else if() |
| | |
| | | }catch (Exception e){ |
| | | paramBuilder.append(args[i].toString()); |
| | | } |
| | | |
| | | /*String[] paramSetArr = param.split(","); |
| | | int paramSetLength = paramSetArr.length; |
| | | for (int j = 0; j < paramSetLength; j++) { |
| | | String paramSet = paramSetArr[j]; |
| | | if(j == 0){ //首行,特殊情况,存在null但是要保留 |
| | | if(paramSet.endsWith("=null")){ |
| | | if(paramSet.contains("(")){ |
| | | paramBuilder.append(paramSet.substring(0,paramSet.lastIndexOf("(")+1)); |
| | | continue; |
| | | } |
| | | } |
| | | }else if(j == paramSetLength -1){ //末行,特殊情况,存在null但是要保留 |
| | | if(paramSet.endsWith("=null)")){ |
| | | paramBuilder.append(")"); |
| | | continue; |
| | | } |
| | | } |
| | | //其他非null情况 |
| | | if(!paramSet.endsWith("=null")){ |
| | | paramBuilder.append(paramSet); |
| | | } |
| | | |
| | | }*/ |
| | | //map.put(parameterNames[i], args[i].toString()); |
| | | map.put(parameterNames[i], paramBuilder.toString()); |
| | | } |
| | | } |