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

添加服务检测拉起脚本

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