This commit is contained in:
夏菊 2025-08-18 18:25:35 +08:00
parent 4348926e4d
commit bd3af6400e
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ WHERE 1=1 ";
var thisUnit = BLL.CommonService.GetIsThisUnit();
if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && thisUnit.UnitId != this.CurrUser.UnitId)
{
strSql += " AND P.UnitId = @UnitId";
//strSql += " AND P.UnitId = @UnitId";
strSql += " AND (U.UnitId = @UnitId or CU.UnitId = @UnitId)";
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
}
if (this.drpCheckMainType.SelectedValue != null && this.drpCheckMainType.SelectedValue != BLL.Const._Null)