|
|
@@ -51,7 +51,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 机具库列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(PosMachinesTwo data, string BindingStateSelect, string ActivationStateSelect, string UserIdMakerCode, string UserIdRealName, string StoreIdCode, string StoreIdName, string ActivationDateData, string BindingDateData, string UpFeeFlagSelect = "0", int page = 1, int limit = 30)
|
|
|
+ public JsonResult IndexData(PosMachinesTwo data, string BindingStateSelect, string ActivationStateSelect, string UserIdMakerCode, string UserIdRealName, string StoreIdCode, string StoreIdName, string ActivationDateData, string BindingDateData, string BrandSelect = "1", string UpFeeFlagSelect = "0", int page = 1, int limit = 30)
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
@@ -91,10 +91,18 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and StoreId in (select StoreId from StoreForName where Name='" + StoreIdName + "')";
|
|
|
}
|
|
|
//品牌
|
|
|
- if (data.BrandId > 0)
|
|
|
+ if (!string.IsNullOrEmpty(BrandSelect))
|
|
|
{
|
|
|
- condition += " and BrandId = " + data.BrandId;
|
|
|
+ condition += " and BrandId = " + Convert.ToInt32(BrandSelect);
|
|
|
}
|
|
|
+ // if (data.BrandId > 0)
|
|
|
+ // {
|
|
|
+ // condition += " and BrandId = " + data.BrandId;
|
|
|
+ // }
|
|
|
+ // if (data.BrandId == 0)
|
|
|
+ // {
|
|
|
+ // condition += " and BrandId = 1";
|
|
|
+ // }
|
|
|
if (!string.IsNullOrEmpty(UpFeeFlagSelect))
|
|
|
{
|
|
|
condition += " and UpFeeFlag = " + UpFeeFlagSelect;
|