代码生成增加service、Repository、Controller层

This commit is contained in:
izory
2021-09-08 18:12:08 +08:00
parent 2d72257945
commit 8478df3a11
17 changed files with 897 additions and 288 deletions

View File

@@ -10,13 +10,13 @@ namespace ZR.Admin.WebApi.Extensions
{
var types = source.GetType();
var worker = new IdWorker(1, 1);
if (types.GetProperty("ID") != null)
{
long id = worker.NextId();
//var worker = new IdWorker(1, 1);
//if (types.GetProperty("ID") != null)
//{
// long id = worker.NextId();
types.GetProperty("ID").SetValue(source, id.ToString(), null);
}
// types.GetProperty("ID").SetValue(source, id.ToString(), null);
//}
if (types.GetProperty("CreateTime") != null)
{