|
|
@@ -780,6 +780,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
return "商户编号不存在";
|
|
|
}
|
|
|
pos.SeoTitle = user.Id.ToString();
|
|
|
+ pos.UserId = user.Id;
|
|
|
if (pos.BindMerchantId == 0)
|
|
|
{
|
|
|
pos.BindMerchantId = merchant.Id;
|
|
|
@@ -1704,10 +1705,19 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(PosSn))
|
|
|
{
|
|
|
- return "请输入机具SN";
|
|
|
+ return "请输入机具SN或者创客编号";
|
|
|
}
|
|
|
- SetMerchantTypeRecord pos = db.SetMerchantTypeRecord.FirstOrDefault(m => m.PosSn == PosSn);
|
|
|
- if (pos == null)
|
|
|
+ SetMerchantTypeRecord pos = new SetMerchantTypeRecord();
|
|
|
+ if(PosSn.StartsWith("K"))
|
|
|
+ {
|
|
|
+ UserForMakerCode userfor = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == PosSn) ?? new UserForMakerCode();
|
|
|
+ pos = db.SetMerchantTypeRecord.FirstOrDefault(m => m.ToUserId == userfor.UserId) ?? new SetMerchantTypeRecord();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ pos = db.SetMerchantTypeRecord.FirstOrDefault(m => m.PosSn == PosSn) ?? new SetMerchantTypeRecord();
|
|
|
+ }
|
|
|
+ if (pos.Id == 0)
|
|
|
{
|
|
|
return "查无信息";
|
|
|
}
|