This commit is contained in:
gongxh
2021-05-24 14:59:32 +08:00
parent 08dd23a9c6
commit c968d25062
8 changed files with 62 additions and 32 deletions

View File

@@ -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
});