首检添加数据看板
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using ZR.Model.System.Generate;
|
||||
|
||||
namespace ZR.CodeGenerator
|
||||
namespace ZR.CodeGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码生成模板
|
||||
@@ -15,33 +10,33 @@ namespace ZR.CodeGenerator
|
||||
{
|
||||
if (queryType.Equals("EQ"))
|
||||
{
|
||||
return $"it => it.{ propertyName} == parm.{propertyName})";
|
||||
return $"it => it.{propertyName} == parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("GTE"))
|
||||
{
|
||||
return $"it => it.{ propertyName} >= parm.{propertyName})";
|
||||
return $"it => it.{propertyName} >= parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("GT"))
|
||||
{
|
||||
return $"it => it.{ propertyName} > parm.{propertyName})";
|
||||
return $"it => it.{propertyName} > parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("LT"))
|
||||
{
|
||||
return $"it => it.{ propertyName} < parm.{propertyName})";
|
||||
return $"it => it.{propertyName} < parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("LTE"))
|
||||
{
|
||||
return $"it => it.{ propertyName} <= parm.{propertyName})";
|
||||
return $"it => it.{propertyName} <= parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("NE"))
|
||||
{
|
||||
return $"it => it.{ propertyName} != parm.{propertyName})";
|
||||
return $"it => it.{propertyName} != parm.{propertyName})";
|
||||
}
|
||||
if (queryType.Equals("LIKE"))
|
||||
{
|
||||
return $"it => it.{ propertyName}.Contains(parm.{propertyName}))";
|
||||
return $"it => it.{propertyName}.Contains(parm.{propertyName}))";
|
||||
}
|
||||
return $"it => it.{ propertyName} == parm.{propertyName})";
|
||||
return $"it => it.{propertyName} == parm.{propertyName})";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace ZR.CodeGenerator.Model
|
||||
/// <summary>
|
||||
/// 首字母小写主键
|
||||
/// </summary>
|
||||
public string FistLowerPk{ get; set; }
|
||||
public string FistLowerPk { get; set; }
|
||||
/// <summary>
|
||||
/// 主键类型
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user