|
@@ -204,6 +204,7 @@ namespace MySystem.Areas.Api.Controllers.v1.Main1
|
|
|
string AliPID = data["AliPID"].ToString(); //支付宝PID
|
|
string AliPID = data["AliPID"].ToString(); //支付宝PID
|
|
|
string WeChatNo = data["WeChatNo"].ToString(); //微信商户号
|
|
string WeChatNo = data["WeChatNo"].ToString(); //微信商户号
|
|
|
string SubjectType = data["SubjectType"].ToString(); //主体类型(1 企业 2 个体)
|
|
string SubjectType = data["SubjectType"].ToString(); //主体类型(1 企业 2 个体)
|
|
|
|
|
+ string IsAct = data["IsAct"].ToString(); //激活状态(0 未激活 1 已激活)
|
|
|
int pageSize = int.Parse(function.CheckInt(data["page_size"].ToString()));
|
|
int pageSize = int.Parse(function.CheckInt(data["page_size"].ToString()));
|
|
|
int pageNum = int.Parse(function.CheckInt(data["page_num"].ToString()));
|
|
int pageNum = int.Parse(function.CheckInt(data["page_num"].ToString()));
|
|
|
string condition = "";
|
|
string condition = "";
|
|
@@ -236,6 +237,11 @@ namespace MySystem.Areas.Api.Controllers.v1.Main1
|
|
|
if (SubjectType == "2") SubjectType = "SUBJECT_TYPE_INDIVIDUAL"; //个体工商户
|
|
if (SubjectType == "2") SubjectType = "SUBJECT_TYPE_INDIVIDUAL"; //个体工商户
|
|
|
condition += " and SubjectType='" + SubjectType + "'";
|
|
condition += " and SubjectType='" + SubjectType + "'";
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!string.IsNullOrEmpty(IsAct))
|
|
|
|
|
+ {
|
|
|
|
|
+ var Ids = MerchantInfoUtil.QueryIsActMerchantId(int.Parse(IsAct));
|
|
|
|
|
+ condition += " and Id in (" + Ids + ")";
|
|
|
|
|
+ }
|
|
|
List<RelationData> relationData = new List<RelationData>();
|
|
List<RelationData> relationData = new List<RelationData>();
|
|
|
List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
|
|
List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
|
|
|
Other = new Dictionary<string, object>();
|
|
Other = new Dictionary<string, object>();
|
|
@@ -246,8 +252,10 @@ namespace MySystem.Areas.Api.Controllers.v1.Main1
|
|
|
Dictionary<string, object> curData = new Dictionary<string, object>();
|
|
Dictionary<string, object> curData = new Dictionary<string, object>();
|
|
|
//商户Id
|
|
//商户Id
|
|
|
var MerchantId = int.Parse(subdata["Id"].ToString());
|
|
var MerchantId = int.Parse(subdata["Id"].ToString());
|
|
|
- var userInfo = UsersService.Query(MerchantInfoService.Query(MerchantId).UserId);
|
|
|
|
|
|
|
+ var merInfo = MerchantInfoService.Query(MerchantId);
|
|
|
|
|
+ var userInfo = UsersService.Query(merInfo.UserId);
|
|
|
curData.Add("MerchantId", subdata["Id"].ToString()); //商户Id
|
|
curData.Add("MerchantId", subdata["Id"].ToString()); //商户Id
|
|
|
|
|
+ curData.Add("IsAct", merInfo.IsAct); //激活状态(0 未激活 1 已激活)
|
|
|
curData.Add("MerchantName", subdata["CertMerchantName"].ToString()); //商户名称
|
|
curData.Add("MerchantName", subdata["CertMerchantName"].ToString()); //商户名称
|
|
|
curData.Add("Mobile", subdata["MobilePhone"].ToString()); //手机号码
|
|
curData.Add("Mobile", subdata["MobilePhone"].ToString()); //手机号码
|
|
|
curData.Add("MakerCode", userInfo.MakerCode); //所属创客
|
|
curData.Add("MakerCode", userInfo.MakerCode); //所属创客
|