Commit 0462f743 authored by 赵啸非's avatar 赵啸非

修改接口访问异步消息保存

parent c5ac9dfa
......@@ -72,13 +72,30 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
@Override
@UnAuth
public String save(@RequestBody ErrorLogEntity entity) {
ErrorLogQuery errorLogQuery = new ErrorLogQuery();
errorLogQuery.setAppName(entity.getAppName());
errorLogQuery.setPlatform(entity.getPlatform());
errorLogQuery.setErrorStack(entity.getErrorStack());
ErrorLogEntity errorLogEntity = this.service.selectOne(errorLogQuery, null);
if (!ObjectUtils.isEmpty(errorLogEntity)) {
entity.setId(errorLogEntity.getId());
entity.setCheckNum(errorLogEntity.getCheckNum() + 1);
entity.setUpdateTime(new Date());
}
return super.save(entity);
}
/* log.info("error==>{}",JSONObject.toJSONString(entity));
/* @Override
@UnAuth
public String save(@RequestBody ErrorLogEntity entity) {
*//* log.info("error==>{}",JSONObject.toJSONString(entity));
ErrorLogPdu errorLogPdu = new ErrorLogPdu();
errorLogPdu.initAttrValue();
BeanUtils.copyProperties(entity, errorLogPdu, BeanUtil.getNullPropertyNames(entity));
messageProducer.syncErrorSend(errorLogPdu);*/
messageProducer.syncErrorSend(errorLogPdu);*//*
ErrorLogQuery errorLogQuery = new ErrorLogQuery();
errorLogQuery.setAppName(entity.getAppName());
......@@ -95,7 +112,7 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();
}
*/
@Override
@UnAuth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment