|
@@ -46,6 +46,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
string MerchantShortname = data["MerchantShortname"].ToString(); //- 用户名称简写
|
|
|
string ServicePhone = data["ServicePhone"].ToString(); //- 商户电话
|
|
|
string SalesScenesType = data["SalesScenesType"].ToString(); //- 所属行业
|
|
|
+ string SalesScenesTypeName = data["SalesScenesTypeName"].ToString(); //- 所属行业
|
|
|
string MchtNo = data["MchtNo"].ToString(); // 收款商户号
|
|
|
string BizStoreName = data["BizStoreName"].ToString(); //- 门店名称
|
|
|
string BizAddressCode = data["BizAddressCode"].ToString(); //- 门店区域
|
|
@@ -59,19 +60,19 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
string IdCardAddress = data["IdCardAddress"].ToString();//身份证居住地址
|
|
|
string PeriodBegin = data["PeriodBegin"].ToString(); //- 营业执照有效期开始
|
|
|
string PeriodEnd = data["PeriodEnd"].ToString(); //- 营业执照有效期结束
|
|
|
- if(string.IsNullOrEmpty(CardPeriodBegin))
|
|
|
+ if (string.IsNullOrEmpty(CardPeriodBegin))
|
|
|
{
|
|
|
CardPeriodBegin = "1900-01-01";
|
|
|
}
|
|
|
- if(string.IsNullOrEmpty(CardPeriodEnd))
|
|
|
+ if (string.IsNullOrEmpty(CardPeriodEnd))
|
|
|
{
|
|
|
CardPeriodEnd = "1900-01-01";
|
|
|
}
|
|
|
- if(string.IsNullOrEmpty(PeriodBegin))
|
|
|
+ if (string.IsNullOrEmpty(PeriodBegin))
|
|
|
{
|
|
|
PeriodBegin = "1900-01-01";
|
|
|
}
|
|
|
- if(string.IsNullOrEmpty(PeriodEnd))
|
|
|
+ if (string.IsNullOrEmpty(PeriodEnd))
|
|
|
{
|
|
|
PeriodEnd = "1900-01-01";
|
|
|
}
|
|
@@ -200,12 +201,19 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
Fields.Add("CertMerchantName", CertMerchantName); //- 商户名称
|
|
|
Fields.Add("LicenseNumber", LicenseNumber); //- 商户信用代码
|
|
|
Fields.Add("SubjectType", SubjectType); //- 主体类型
|
|
|
+ var LicenceType = "";
|
|
|
+ if (SubjectType == "SUBJECT_TYPE_ENTERPRISE") LicenceType = "0"; //- 企业公司
|
|
|
+ if (SubjectType == "SUBJECT_TYPE_INDIVIDUAL") LicenceType = "1"; //- 个体工商户
|
|
|
+ Fields.Add("LicenceType", LicenceType); //- 主体类型
|
|
|
Fields.Add("MerchantShortname", MerchantShortname); //- 用户名称简写
|
|
|
Fields.Add("ServicePhone", ServicePhone); //- 商户电话
|
|
|
- Fields.Add("SalesScenesType", SalesScenesType); //- 所属行业
|
|
|
+ Fields.Add("QualificationType", SalesScenesType); //- 所属行业
|
|
|
+ Fields.Add("SalesScenesType", SalesScenesTypeName); //- 所属行业
|
|
|
+ Fields.Add("BusinessId", SalesScenesType); //- 所属行业Id
|
|
|
Fields.Add("MchtNo", MchtNo); // 收款商户号
|
|
|
Fields.Add("BizStoreName", BizStoreName); //- 门店名称
|
|
|
Fields.Add("BizAddressCode", BizAddressCode); //- 门店区域
|
|
|
+ Fields.Add("AreaNo", HaoDaAreaCodeService.Query("CityName like '%" + BizAddressCode + "%'").CityCode); //- 经营地区区域码
|
|
|
Fields.Add("BizStoreAddress", BizStoreAddress); //- 门店地址
|
|
|
Fields.Add("IdCardCopy", IdCardCopy); //- 身份证正面
|
|
|
Fields.Add("IdCardNational", IdCardNational); //- 身份证反面
|
|
@@ -220,12 +228,23 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
Fields.Add("AccountName", AccountName); //- 开户名称
|
|
|
Fields.Add("ChannelKind", ChannelKind); // 商户类型
|
|
|
Fields.Add("BankAccountType", BankAccountType); //- 账户类型
|
|
|
+ var AccountType = "";
|
|
|
+ if (BankAccountType == "BANK_ACCOUNT_TYPE_CORPORATE") AccountType = "0"; //- 对公
|
|
|
+ if (BankAccountType == "BANK_ACCOUNT_TYPE_PERSONAL") AccountType = "1"; //- 对私
|
|
|
+ Fields.Add("AccountType", AccountType); //- 账户类型
|
|
|
Fields.Add("AccountNumber", AccountNumber); //- 银行卡号
|
|
|
Fields.Add("AccountBank", AccountBank); //- 开户行
|
|
|
Fields.Add("BankCard", BankCard); // 银行卡照片
|
|
|
Fields.Add("openAccountLicenses", OpenAccountLicenses); // 开户许可证
|
|
|
Fields.Add("BankName", BankName); //- 开户行全称
|
|
|
+ Fields.Add("OpenBankAccName", BankName); //- 开户许可证-开户名 企业商户必填(个体工商户对私不填)
|
|
|
+ var bankInfo = OpenBankAllService.Query(" BankChild='" + BankName + "'");
|
|
|
+ Fields.Add("OpenUnionNo", bankInfo.BankChildNo); //- 开户许可证-开户支行 企业商户必填(个体工商户对私不填)
|
|
|
+ Fields.Add("OpenCollectBankCode", bankInfo.BankParentNo); //- 开户许可证-银行代码(总行行号) 企业商户必填(个体工商户对私不填)
|
|
|
+ Fields.Add("OpenBankRegionCode", HaoDaAreaCodeService.Query("CityName like '%" + BankAddressCode + "%'").CityCode); //- 开户银行支行区域码 参考区域码表(联系对接人提供)
|
|
|
+ Fields.Add("ZBankNo", bankInfo.BankChildNo); //- 开户银行支行号 参考支行号表(联系对接人提供)
|
|
|
Fields.Add("BankAddressCode", BankAddressCode); //- 开户地区
|
|
|
+ Fields.Add("ZbankRegionCode", HaoDaAreaCodeService.Query("CityName like '%" + BankAddressCode + "%'").CityCode); //- 开户地区
|
|
|
Fields.Add("PersonWithIdCard", PersonWithIdCard); //- 手持身份证照片(小微)
|
|
|
Fields.Add("StoreEntrancePic", StoreEntrancePic); // 门头照片组
|
|
|
Fields.Add("IndoorPic", IndoorPic); // 环境照片组
|
|
@@ -239,7 +258,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
{
|
|
|
Dictionary<string, object> Fiel = new Dictionary<string, object>();
|
|
|
Fiel.Add("Sort", 1);
|
|
|
- MerchantInfoService.Edit(Fiel, MerchantAddInfoId);
|
|
|
+ MerchantInfoService.Edit(Fiel, MerchantAddInfoId, false);
|
|
|
// 如果提交完整资料,则发送到BsServer执行进件操作
|
|
|
RedisDbconn.Instance.AddList("MerchantConfirmQueue", "{\"MerchantId\":\"" + MerchantAddInfoId + "\"}");
|
|
|
}
|
|
@@ -280,22 +299,22 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
{
|
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
|
List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
|
|
|
- var first = maindb.BusinessScopeType.OrderBy(m => m.Id).ToList();
|
|
|
- foreach (var itemf in first)
|
|
|
+ List<RelationData> relationData = new List<RelationData>();
|
|
|
+ List<Dictionary<string, object>> listf = BusinessScopeTypeService.List(relationData, "", 1, 99999);
|
|
|
+ foreach (Dictionary<string, object> dicf in listf)
|
|
|
{
|
|
|
Dictionary<string, object> item = new Dictionary<string, object>();
|
|
|
- item.Add("value", itemf.Id);
|
|
|
- item.Add("text", itemf.KindName);
|
|
|
- var second = maindb.BusinessScope.Where(m => m.KindId == itemf.Id).OrderBy(m => m.Id).ToList();
|
|
|
+ item.Add("value", dicf["Id"].ToString());
|
|
|
+ item.Add("text", dicf["KindName"].ToString());
|
|
|
List<Dictionary<string, object>> sublist = new List<Dictionary<string, object>>();
|
|
|
- foreach (var items in second)
|
|
|
+ List<Dictionary<string, object>> lists = BusinessScopeService.List(relationData, "and KindId='" + dicf["Id"].ToString() + "'", 1, 99999);
|
|
|
+ foreach (Dictionary<string, object> dics in lists)
|
|
|
{
|
|
|
Dictionary<string, object> subitem = new Dictionary<string, object>();
|
|
|
- subitem.Add("value", items.Id);
|
|
|
- subitem.Add("text", items.Name);
|
|
|
+ subitem.Add("value", dics["Id"].ToString());
|
|
|
+ subitem.Add("text", dics["Name"].ToString());
|
|
|
sublist.Add(subitem);
|
|
|
}
|
|
|
- item.Add("children", sublist);
|
|
|
dataList.Add(item);
|
|
|
}
|
|
|
return dataList;
|
|
@@ -564,7 +583,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
|
|
|
return list;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public Dictionary<string, string> GetBanks()
|
|
|
{
|
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|