修改
This commit is contained in:
@@ -16,7 +16,7 @@ namespace NX.ERP.U8
|
||||
{
|
||||
var sql = @"select
|
||||
cComunitCode AS UnitCode,
|
||||
cComUnitName AS UnitName,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
||||
cComUnitName AS UnitName,bMainUnit as MainUnit,CONVERT(BIGINT,pubufts) AS pubufts, cGroupCode as GroupCode from ComputationUnit ";
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
{
|
||||
sql += $" where {strWhere}";
|
||||
@@ -40,10 +40,21 @@ namespace NX.ERP.U8
|
||||
where.Add(" cComUnitName like @UnitName ");
|
||||
}
|
||||
|
||||
|
||||
if (Params.Pubufts != null)
|
||||
{
|
||||
|
||||
where.Add("CONVERT(BIGINT,pubufts) >=@Pubufts ");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||
{
|
||||
UnitCode = $"%{Params.UnitCode}%",
|
||||
UnitName = $"%{Params.UnitName}%"
|
||||
UnitName = $"%{Params.UnitName}%",
|
||||
Pubufts=Params.Pubufts
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user