Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
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
bltdc
DataCenter_Core2.1_20190520
Commits
882662fe
Commit
882662fe
authored
Sep 07, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加解析流水异常的查询方法
parent
e39c175e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
320 additions
and
3 deletions
+320
-3
flowing_parse_error.cs
Bailun.DC.Models/DataWareHouse/flowing_parse_error.cs
+40
-0
uploadfiles_parsing_error_log.cs
....DC.Models/DataWareHouse/uploadfiles_parsing_error_log.cs
+84
-0
OrderFeeConfigServices.cs
Bailun.DC.Services/DataWareHouse/OrderFeeConfigServices.cs
+101
-0
ParsingErrorLogServices.cs
Bailun.DC.Services/DataWareHouse/ParsingErrorLogServices.cs
+72
-0
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+0
-1
ConfigController.cs
...C.Web/Areas/DataWareHouse/Controllers/ConfigController.cs
+23
-0
OrderBillings.cshtml
...as/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
+0
-2
No files found.
Bailun.DC.Models/DataWareHouse/flowing_parse_error.cs
0 → 100644
View file @
882662fe
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.DataWareHouse
{
/// <summary>
/// 解析异常的日志记录
/// </summary>
public
class
flowing_parse_error
{
public
int
id
{
get
;
set
;
}
public
int
flowing_id
{
get
;
set
;
}
public
int
datatype
{
get
;
set
;
}
public
string
log_content
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
public
DateTime
createtime
{
get
;
set
;
}
/// <summary>
/// 平台
/// </summary>
public
string
platform
{
get
;
set
;
}
/// <summary>
/// 站点
/// </summary>
public
string
website
{
get
;
set
;
}
/// <summary>
/// 月份
/// </summary>
public
string
month
{
get
;
set
;
}
}
}
Bailun.DC.Models/DataWareHouse/uploadfiles_parsing_error_log.cs
0 → 100644
View file @
882662fe
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.DataWareHouse
{
/// <summary>
/// 解析上传文件流水的异常日志
/// </summary>
public
class
uploadfiles_parsing_error_log
{
/// <summary>
///
/// </summary>
public
int
id
{
get
;
set
;
}
/// <summary>
/// uploadfile的关键id
/// </summary>
public
int
uploadfile_id
{
get
;
set
;
}
/// <summary>
/// 日志级别,0:记录,1:提醒,2:异常
/// </summary>
public
int
log_level
{
get
;
set
;
}
/// <summary>
/// 日志级别名称
/// </summary>
public
string
log_level_name
{
get
;
set
;
}
/// <summary>
/// 日志内容
/// </summary>
public
string
log_content
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
createtime
{
get
;
set
;
}
/// <summary>
/// 处理状态,0:未处理,1:无需处理,2:修改配置,3:重新上传文件
/// </summary>
public
int
status
{
get
;
set
;
}
/// <summary>
/// 最后更新时间
/// </summary>
public
DateTime
?
lastupdatetime
{
get
;
set
;
}
/// <summary>
/// 最后更新人id
/// </summary>
public
int
?
lastupdateuserid
{
get
;
set
;
}
/// <summary>
/// 最后更新人名称
/// </summary>
public
string
lastupdateusername
{
get
;
set
;
}
}
/// <summary>
/// 日志级别,0:记录,1:提醒,2:异常
/// </summary>
public
enum
Enum_LogLevel
{
记录
=
0
,
提醒
=
1
,
异常
=
2
,
}
}
Bailun.DC.Services/DataWareHouse/OrderFeeConfigServices.cs
0 → 100644
View file @
882662fe
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Bailun.DC.Models.DataWareHouse
;
using
Dapper
;
using
MySql.Data.MySqlClient
;
namespace
Bailun.DC.Services.DataWareHouse
{
public
class
OrderFeeConfigServices
{
/// <summary>
/// 流水取数规则配置列表
/// </summary>
/// <param name="parameter"></param>
/// <param name="platform"></param>
/// <param name="website"></param>
/// <param name="datatype"></param>
/// <param name="total"></param>
/// <returns></returns>
public
List
<
order_fee_config
>
ListOrderFeeConfig
(
Models
.
BtTableParameter
parameter
,
string
platform
,
string
website
,
int
?
datatype
,
ref
int
total
)
{
var
list
=
new
List
<
order_fee_config
>();
var
sql
=
"select * from order_fee_config where delstatus=0 "
;
var
sqlparam
=
new
DynamicParameters
();
if
(!
string
.
IsNullOrEmpty
(
platform
))
{
sql
+=
" and platform=@platform"
;
sqlparam
.
Add
(
"platform"
,
platform
);
}
if
(!
string
.
IsNullOrEmpty
(
website
))
{
sql
+=
" and website = @website"
;
sqlparam
.
Add
(
"website"
,
website
);
}
if
(
datatype
.
HasValue
)
{
sql
+=
" and datatype="
+
datatype
.
Value
;
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString_DW
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
if
(
parameter
.
limit
==
0
)
{
list
=
cn
.
Query
<
order_fee_config
>(
sql
,
sqlparam
).
AsList
();
}
else
{
var
obj
=
cn
.
Page
<
order_fee_config
>(
parameter
.
pageIndex
,
parameter
.
limit
,
sql
,
ref
total
,
sqlparam
);
list
=
obj
.
AsList
();
}
}
return
list
;
}
/// <summary>
/// 批量删除配置
/// </summary>
/// <param name="ids"></param>
/// <param name="uid"></param>
/// <param name="username"></param>
/// <returns></returns>
public
string
BulkDelete
(
List
<
int
>
ids
,
int
uid
,
string
username
)
{
try
{
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString_DW
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
var
sql
=
$"update order_fee_config set delstatus=1 where id in ('
{
string
.
Join
(
"','"
,
ids
)}
')"
;
cn
.
Execute
(
sql
);
}
return
""
;
}
catch
(
Exception
ex
)
{
return
ex
.
Message
;
}
}
}
}
Bailun.DC.Services/DataWareHouse/ParsingErrorLogServices.cs
0 → 100644
View file @
882662fe
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Bailun.DC.Models
;
using
MySql.Data.MySqlClient
;
using
Dapper
;
using
System.Linq
;
using
Bailun.DC.Models.DataWareHouse
;
namespace
Bailun.DC.Services.DataWareHouse
{
/// <summary>
/// 解析错误日志服务
/// </summary>
public
class
ParsingErrorLogServices
{
public
List
<
flowing_parse_error
>
ListParsingError
(
BtTableParameter
parameter
,
string
platform
,
string
website
,
int
?
datatype
,
ref
int
total
)
{
var
sql
=
"select * from flowing_parse_error where status=0"
;
var
sqlparam
=
new
DynamicParameters
();
if
(
datatype
.
HasValue
)
{
sql
+=
" and datatype="
+
datatype
.
Value
;
}
if
(!
string
.
IsNullOrEmpty
(
platform
))
{
sql
+=
" and platform=@platform"
;
sqlparam
.
Add
(
"platform"
,
platform
);
}
if
(!
string
.
IsNullOrEmpty
(
website
))
{
sql
+=
" and website=@website"
;
sqlparam
.
Add
(
"website"
,
website
);
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString_DW
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
if
(
parameter
.
limit
==
0
)
{
return
cn
.
Query
<
flowing_parse_error
>(
sql
,
sqlparam
).
ToList
();
}
else
{
return
cn
.
Page
<
flowing_parse_error
>(
parameter
.
pageIndex
,
parameter
.
limit
,
sql
,
ref
total
,
sqlparam
).
ToList
();
}
}
}
/// <summary>
/// 更新异常信息状态
/// </summary>
/// <param name="id">异常信息id</param>
/// <param name="status">状态</param>
/// <param name="note">更新理由</param>
/// <returns></returns>
public
string
UpdateStatus
(
int
id
,
int
status
,
string
note
)
{
return
""
;
}
}
}
Bailun.DC.Services/FinanceReportServices.cs
View file @
882662fe
...
@@ -437,7 +437,6 @@ namespace Bailun.DC.Services
...
@@ -437,7 +437,6 @@ namespace Bailun.DC.Services
UpdateLogisticsWaitPay
(
date
,
0
,
"admin"
,
cn
);
UpdateLogisticsWaitPay
(
date
,
0
,
"admin"
,
cn
);
UpdateLogisticsEndAmount
(
date
,
obj
.
amount_end
);
UpdateLogisticsEndAmount
(
date
,
obj
.
amount_end
);
}
}
return
""
;
return
""
;
...
...
Bailun.DC.Web/Areas/DataWareHouse/Controllers/ConfigController.cs
View file @
882662fe
...
@@ -218,5 +218,28 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
...
@@ -218,5 +218,28 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
msg
=
"没有找到表格的内容数据"
,
msg
=
"没有找到表格的内容数据"
,
});
});
}
}
public
ActionResult
ListOrderFeeConfig
()
{
return
View
();
}
public
string
ListOrderFeeConfigJson
(
BtTableParameter
parameter
,
string
platform
,
string
website
,
int
?
datatype
)
{
var
total
=
0
;
var
_service
=
new
Services
.
DataWareHouse
.
OrderFeeConfigServices
();
var
obj
=
_service
.
ListOrderFeeConfig
(
parameter
,
platform
,
website
,
datatype
,
ref
total
);
return
JsonConvert
.
SerializeObject
(
new
{
rows
=
obj
,
total
=
total
});
}
}
}
}
}
Bailun.DC.Web/Areas/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
View file @
882662fe
...
@@ -268,8 +268,6 @@
...
@@ -268,8 +268,6 @@
alert(result.msg);
alert(result.msg);
}
}
});*@
});*@
})
})
function list() {
function list() {
...
...
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