Commit 8dcac61c authored by 赵啸非's avatar 赵啸非

添加服务检测拉起脚本

parent bd6c2080
......@@ -30,12 +30,6 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
return super.save(entity, context);
}
@Override
public int save(List<AccessLogEntity> list, Context context) throws AppException {
list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
return super.save(list, context);
}
public static void main(String[] args) {
Snowflake snowflake = IdUtil.getSnowflake(0, 1);
long id = snowflake.nextId();
......
......@@ -30,11 +30,11 @@ public class BizLogServiceImpl extends AbstractCRUDServiceImpl<BizLogDao, BizLog
return super.save(entity, context);
}
@Override
public int save(List<BizLogEntity> list, Context context) throws AppException {
list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
return super.save(list, context);
}
// @Override
// public int save(List<BizLogEntity> list, Context context) throws AppException {
// list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
// return super.save(list, context);
// }
@Override
public BizLogEntity get(Long key, Context context) throws AppException {
......
......@@ -30,9 +30,9 @@ public class OperateLogServiceImpl extends AbstractCRUDServiceImpl<OperateLogDao
return super.save(entity);
}
@Override
public int save(List<OperateLogEntity> list, Context context) throws AppException {
list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
return super.save(list, context);
}
// @Override
// public int save(List<OperateLogEntity> list, Context context) throws AppException {
// list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
// return super.save(list, context);
// }
}
\ No newline at end of file
......@@ -58,6 +58,7 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
@Override
@UnAuth
public String save(@RequestBody OperateLogEntity entity) {
return super.save(entity);
}
}
\ No newline at end of file
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