解决如果收到的电表值全部都是0的话则不入库
This commit is contained in:
parent
50c80f96e5
commit
6af007ff48
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -8,7 +8,7 @@
|
|||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>F:\项目\长岛展览馆\项目\LonglslandExhibitionCenter\LonglslandExhibitionCenter\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
|
||||
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
||||
<Controller_SelectedScaffolderCategoryPath>root/Common/Web API</Controller_SelectedScaffolderCategoryPath>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -399,6 +399,8 @@ namespace Security
|
|||
model.Reserve1 = "配电室低压";
|
||||
model.Reserve2 = GetDeviceName4(Convert.ToInt32(name));
|
||||
if (model.EH != null && model.Ua != null && model.Ub != null && model.Uc != null && model.Ia != null && model.Ib != null && model.Ic != null && model.P != null && model.Kvar != null)
|
||||
{
|
||||
if (model.EH > 0 && model.Ua > 0 && model.Ub > 0 && model.Uc > 0 && model.Ia > 0 && model.Ib > 0 && model.Ic > 0 && model.P > 0 && model.Kvar > 0)
|
||||
{
|
||||
bll.AddDate(model, date);
|
||||
}
|
||||
|
@ -407,6 +409,7 @@ namespace Security
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//配电室高压
|
||||
if (topic.Contains("/9b841d78-68ca-45e5-ba5a-35dc43560c39"))
|
||||
{
|
||||
|
@ -521,6 +524,8 @@ namespace Security
|
|||
model.Reserve1 = "配电室高压";
|
||||
//model.Reserve2 = GetDeviceName4(Convert.ToInt32(name));
|
||||
if (model.EH != null && model.Ua != null && model.Ub != null && model.Uc != null && model.Ia != null && model.Ib != null && model.Ic != null && model.P != null && model.Kvar != null)
|
||||
{
|
||||
if (model.EH > 0 && model.Ua > 0 && model.Ub > 0 && model.Uc > 0 && model.Ia > 0 && model.Ib > 0 && model.Ic > 0 && model.P > 0 && model.Kvar > 0)
|
||||
{
|
||||
bll.AddDate(model, date);
|
||||
}
|
||||
|
@ -529,6 +534,7 @@ namespace Security
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//电能-室外箱变
|
||||
if (topic.Contains("/bbb05637-34f2-4c1d-864e-6bbfca39d38b"))
|
||||
{
|
||||
|
@ -641,9 +647,12 @@ namespace Security
|
|||
model.Reserve1 = "电能-室外箱变";
|
||||
//model.Reserve2 = GetDeviceName4(Convert.ToInt32(name));
|
||||
if (model.EH != null && model.Ua != null && model.Ub != null && model.Uc != null && model.Ia != null && model.Ib != null && model.Ic != null && model.P != null && model.Kvar != null)
|
||||
{
|
||||
if (model.EH > 0 && model.Ua > 0 && model.Ub > 0 && model.Uc > 0 && model.Ia > 0 && model.Ib > 0 && model.Ic > 0 && model.P > 0 && model.Kvar > 0)
|
||||
{
|
||||
bll.AddDate(model, date);
|
||||
}
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// log.Info("电能-室外箱变msg" + msg);
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>iv32QMruZnKNEzz+kjmmksq99mmjWfL88nEu1GZD+2g=</dsig:DigestValue>
|
||||
<dsig:DigestValue>FhAqT3DQLB5eUhO8vSU8c8B89nPUd9NzovVV9qHE/gA=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
|
@ -138,14 +138,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="60384">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="61920">
|
||||
<assemblyIdentity name="ServiceSecurity" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>uU7KmmhQEnNwdQxHU5xLv6w0ryLzshDrQvsWtpaW6Rc=</dsig:DigestValue>
|
||||
<dsig:DigestValue>RIJqbeEb7CpQbuG1+q2xRLUM8AWaC2+EjR+n9dMV68M=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -14,7 +14,7 @@
|
|||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>iv32QMruZnKNEzz+kjmmksq99mmjWfL88nEu1GZD+2g=</dsig:DigestValue>
|
||||
<dsig:DigestValue>FhAqT3DQLB5eUhO8vSU8c8B89nPUd9NzovVV9qHE/gA=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
|
@ -138,14 +138,14 @@
|
|||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="60384">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ServiceSecurity.exe" size="61920">
|
||||
<assemblyIdentity name="ServiceSecurity" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||
<dsig:DigestValue>uU7KmmhQEnNwdQxHU5xLv6w0ryLzshDrQvsWtpaW6Rc=</dsig:DigestValue>
|
||||
<dsig:DigestValue>RIJqbeEb7CpQbuG1+q2xRLUM8AWaC2+EjR+n9dMV68M=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,10 @@
|
|||
------------------------------------------------
|
||||
------------------------------------------------
|
||||
------------------------------------------------
|
||||
2024-09-19 10:22:58,745 [3] INFO loginfo - 启动服务
|
||||
2024-09-19 10:23:03,580 [5] INFO loginfo - 开始补录
|
||||
------------------------------------------------
|
||||
------------------------------------------------
|
||||
------------------------------------------------
|
||||
2024-09-19 10:24:18,476 [3] INFO loginfo - 启动服务
|
||||
2024-09-19 10:25:03,406 [5] INFO loginfo - 开始补录
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue