Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
053dfbc0
Commit
053dfbc0
authored
Dec 27, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
50470507
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
18 deletions
+51
-18
BuildingCarrierModule_V2.cs
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
+38
-3
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+3
-3
Mall.WindowsService.csproj.user
Mall.WindowsService/Mall.WindowsService.csproj.user
+1
-1
CuiPingModule.cs
Mall.WindowsService/Module/CuiPingModule.cs
+6
-8
Program.cs
Mall.WindowsService/Program.cs
+3
-3
No files found.
Mall.Module.TradePavilion/BuildingCarrierModule_V2.cs
View file @
053dfbc0
...
...
@@ -145,7 +145,7 @@ namespace Mall.Module.TradePavilion
keyValues
.
Add
(
nameof
(
RB_CompanyEnterprise_Extend
.
CompanyStatus
),
0
);
keyValues
.
Add
(
nameof
(
RB_CompanyEnterprise_Extend
.
RejectRemark
),
""
);
}
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
...
...
@@ -217,7 +217,7 @@ namespace Mall.Module.TradePavilion
{
if
(
Config
.
IsCPSWJAutoExamine
==
"1"
)
//自动审核
{
try
{
var
BrandModel
=
oldList
?.
FirstOrDefault
();
...
...
@@ -819,7 +819,7 @@ namespace Mall.Module.TradePavilion
public
RB_CompanyEnterprise_Extend
GetCompanyByUserIdModule
(
int
userId
)
{
var
model
=
companyEnterpriseRepository
.
GetCompanyRepository
(
new
RB_CompanyEnterprise_Extend
()
{
CreateBy
=
userId
});
if
(
model
!=
null
&&
model
.
CompanyId
>
0
)
{
model
.
RejectRemark
=
model
?.
RejectRemark
??
""
;
...
...
@@ -1013,6 +1013,15 @@ namespace Mall.Module.TradePavilion
};
}
}
else
{
model
.
BrandModel
=
new
RB_BrandEnterpriseApplyFor_Extend
{
BannerList
=
new
List
<
string
>(),
CustomerTypeInfo
=
new
List
<
string
>(),
PropertyDemandList
=
new
List
<
string
>(),
};
}
}
else
if
(
model
.
FirstShopType
==
2
)
{
...
...
@@ -1053,6 +1062,16 @@ namespace Mall.Module.TradePavilion
}
else
{
model
.
CarrierModel
=
new
RB_CarrierEnterpriseApplyFor_Extend
{
CarrierMetroList
=
new
List
<
RB_CarrierEnterpriseMetroApplyFor_Extend
>(),
BannerList
=
new
List
<
string
>(),
HonorList
=
new
List
<
string
>(),
FirstShopNumList
=
new
List
<
FirstShopNumModel
>(),
};
}
}
else
if
(
model
.
FirstShopType
==
3
)
{
...
...
@@ -1088,6 +1107,14 @@ namespace Mall.Module.TradePavilion
};
}
}
else
{
model
.
BrandModel
=
new
RB_BrandEnterpriseApplyFor_Extend
{
BannerList
=
new
List
<
string
>(),
CustomerTypeInfo
=
new
List
<
string
>()
};
}
}
else
if
(
model
.
FirstShopType
==
4
)
{
...
...
@@ -1123,6 +1150,14 @@ namespace Mall.Module.TradePavilion
};
}
}
else
{
model
.
BrandModel
=
new
RB_BrandEnterpriseApplyFor_Extend
{
BannerList
=
new
List
<
string
>(),
CustomerTypeInfo
=
new
List
<
string
>()
};
}
}
}
}
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
053dfbc0
...
...
@@ -4195,9 +4195,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
Visit_PV
=
list
?.
Sum
(
x
=>
x
.
Visit_PV
)
??
0
,
Visit_UV
=
list
?.
Sum
(
x
=>
x
.
Visit_UV
)
??
0
,
Visit_UV_New
=
list
?.
Sum
(
x
=>
x
.
Visit_UV_New
)
??
0
,
Stay_Time_UV
=
list
?.
Max
(
x
=>
x
.
Stay_Time_UV
)
??
0
,
Stay_Time_Session
=
list
?.
Min
(
x
=>
x
.
Stay_Time_Session
)
??
0
,
Visit_Depth
=
list
?.
Min
(
x
=>
x
.
Visit_Depth
)
??
0
,
Stay_Time_UV
=
list
?.
Average
(
x
=>
x
.
Stay_Time_UV
)
??
0
,
Stay_Time_Session
=
list
?.
Average
(
x
=>
x
.
Stay_Time_Session
)
??
0
,
Visit_Depth
=
list
?.
Average
(
x
=>
x
.
Visit_Depth
)
??
0
,
};
return
ApiResult
.
Success
(
data
:
result
);
}
...
...
Mall.WindowsService/Mall.WindowsService.csproj.user
View file @
053dfbc0
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<_LastSelectedProfileId>
D:\project\GitProject\Mall\oldMall
\Mall.WindowsService\Properties\PublishProfiles\FolderProfile.pubxml
</_LastSelectedProfileId>
<_LastSelectedProfileId>
E:\working\mallapi
\Mall.WindowsService\Properties\PublishProfiles\FolderProfile.pubxml
</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile
Update=
"WindowsService.cs"
>
...
...
Mall.WindowsService/Module/CuiPingModule.cs
View file @
053dfbc0
...
...
@@ -81,7 +81,7 @@ namespace Mall.WindowsService.Module
var
miniProgramModel
=
miniProgramRepository
.
GetEntity
(
Convert
.
ToInt32
(
item
));
if
((
miniProgramModel
?.
MallBaseId
??
0
)
>
0
)
{
DateTime
dateTime
=
DateTime
.
Now
.
AddDays
(-
1
);
//Convert.ToDateTime("2024-12-09
");//
DateTime
dateTime
=
DateTime
.
Now
.
AddDays
(-
1
);
// Convert.ToDateTime("2024-12-25
");//
RB_Wechat_Statistics
model
=
new
RB_Wechat_Statistics
();
model
.
TenantId
=
miniProgramModel
.
TenantId
??
0
;
model
.
MallBaseId
=
miniProgramModel
.
MallBaseId
;
...
...
@@ -102,14 +102,12 @@ namespace Mall.WindowsService.Module
end_date
=
refDate
,
};
string
token
=
WeiXinReidsCache
.
Get
(
miniProgramModel
.
MiniAppId
);
LogHelper
.
WriteInfo
(
"token:"
+
token
);
if
(
string
.
IsNullOrEmpty
(
token
))
{
token
=
Mall
.
Common
.
Pay
.
WeChatPat
.
TokenHelper
.
GetLXYToken
(
token
,
miniProgramModel
.
MiniAppId
,
miniProgramModel
.
MiniAppSecret
);
System
.
Threading
.
Tasks
.
Task
.
Run
(()
=>
WeiXinReidsCache
.
Set
(
DataConstant
.
DATA_WeiXinToken
+
miniProgramModel
.
MiniAppId
,
token
));
}
if
(
string
.
IsNullOrEmpty
(
token
))
{
return
false
;
LogHelper
.
WriteInfo
(
"token1:"
+
token
);
}
if
(!
string
.
IsNullOrEmpty
(
token
))
{
...
...
@@ -215,11 +213,11 @@ namespace Mall.WindowsService.Module
#
region
新增
/
总数统计
//品牌 Or 企业
var
brandEnterpriseList
=
brand_EnterpriseRepository
.
GetBrandEnterpriseBriefRepository
(
new
RB_Brand_Enterprise_Extend
{
MallBaseId
=
miniProgramModel
.
MallBaseId
,
TenantId
=
miniProgramModel
.
TenantId
??
0
},
endTime
:
selectDateStr
);
var
brandEnterpriseList
=
brand_EnterpriseRepository
.
GetBrandEnterpriseBriefRepository
(
new
RB_Brand_Enterprise_Extend
{
MallBaseId
=
miniProgramModel
.
MallBaseId
,
TenantId
=
miniProgramModel
.
TenantId
??
0
},
endTime
:
selectDateStr
);
if
(
brandEnterpriseList
!=
null
&&
brandEnterpriseList
.
Any
())
{
model
.
BrandNum
=
brandEnterpriseList
?.
Where
(
x
=>
x
.
CreateDate
.
ToString
(
"yyyy-MM-dd"
)
==
selectDateStr
)?.
Count
()
??
0
;
model
.
BrandNum
=
brandEnterpriseList
?.
Where
(
x
=>
x
.
CreateDate
.
ToString
(
"yyyy-MM-dd"
)
==
selectDateStr
)?.
Count
()
??
0
;
model
.
BrandTotalNum
=
brandEnterpriseList
?.
Count
()
??
0
;
}
var
enterpriseList
=
enterpriseServicesRepository
.
GetEnterpriseServicesBriefListRepository
(
new
RB_EnterpriseServices_Extend
{
MallBaseId
=
miniProgramModel
.
MallBaseId
,
TenantId
=
miniProgramModel
.
TenantId
??
0
},
endTime
:
selectDateStr
);
...
...
Mall.WindowsService/Program.cs
View file @
053dfbc0
...
...
@@ -7,9 +7,9 @@ namespace Mall.WindowsService
{
static
void
Main
(
string
[]
args
)
{
//
Module.CuiPingModule.AddWechatStatistics();
ServiceBase
[]
services
=
new
ServiceBase
[]
{
new
WindowsService
()
};
ServiceBase
.
Run
(
services
);
//
Module.CuiPingModule.AddWechatStatistics();
ServiceBase
[]
services
=
new
ServiceBase
[]
{
new
WindowsService
()
};
ServiceBase
.
Run
(
services
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment