1. 修改 子資料庫、電站編碼

This commit is contained in:
Kai 2021-06-29 10:12:24 +08:00
parent faf77371a7
commit ed0a777f75
2 changed files with 5 additions and 4 deletions

View File

@ -333,13 +333,14 @@ namespace SolarPower.Controllers
#region DB及TableDB編號規則 solar_com_()exsolar_com_0001
//var siteDB = "solar_com" + id.ToString().Trim().PadLeft(4, '0');
var siteDB = "solar_com" + id.ToString().Trim().PadLeft(4, '0') + "_test";
var siteDBFormat = "solar_com{0}_test";
var siteDB = String.Format(siteDBFormat, id.ToString().Trim().PadLeft(4, '0'));
//修改
updateCompany = new UpdateCompany()
{
Id = id,
SiteDB = siteDB
SiteDB = siteDB,
};
properties = new List<string>()

View File

@ -250,7 +250,7 @@ namespace SolarPower.Controllers
var tempSerialNumber = GetLastSerialNumber(currentSerialNumber);
var codeFormat = "{0}{1}{2}";
var codeFormat = "s{0}{1}{2}";
powerStation = new PowerStation()
{