Authored by qinchao

恶意ip界面具有优化

... ... @@ -86,10 +86,10 @@ public class MaliciousIpController {
* 捕获的恶意ip写入运维系统的mysql
* @return
*/
@RequestMapping("/writeForbidMipsInfoToOpsDb")
@RequestMapping("/writeAlarmMipsInfoToOpsDb")
@ResponseBody
public void writeForbidMipsInfoToOpsDb(@RequestBody String ipsObjs) {
ipImpl.writeForbidMipsInfoToOpsDb(ipsObjs);
public void writeAlarmMipsInfoToOpsDb(@RequestBody String ipsObjs) {
ipImpl.writeAlarmMipsInfoToOpsDb(ipsObjs);
}
@RequestMapping("/updateForbidStatus")
... ...
... ... @@ -26,7 +26,7 @@ public interface MaliciousIpService {
void writeMipsInfoToOpsDb(String ipsObjs);
void writeForbidMipsInfoToOpsDb(String ipsObjs);
void writeAlarmMipsInfoToOpsDb(String ipsObjs);
void updateForbidStatus(int id ,String status);
... ...
... ... @@ -205,7 +205,7 @@ public class MaliciousIpServiceImpl implements MaliciousIpService {
}
}
public void writeForbidMipsInfoToOpsDb(String ipsObjs){
public void writeAlarmMipsInfoToOpsDb(String ipsObjs){
//logger.info("begin writeForbidMipsInfoToOpsDb :"+ipsObjs);
if(StringUtils.isNotBlank(ipsObjs)){
JSONArray ipsObjArray=JSON.parseArray(ipsObjs);
... ...