Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
8c3a1ab7
Commit
8c3a1ab7
authored
Sep 14, 2020
by
huangruiyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aims日志记录功能
parent
9165f31d
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
423 additions
and
28 deletions
+423
-28
appsettings.dev.json
AutoGeneratePurchaseAdvise/appsettings.dev.json
+5
-1
appsettings.json
AutoGeneratePurchaseAdvise/appsettings.json
+5
-1
appsettings.prod.json
AutoGeneratePurchaseAdvise/appsettings.prod.json
+6
-1
db_config.cs
AutoTurnOver.DB/db_config.cs
+1
-1
appsettings.dev.json
AutoTurnOver.Purchase.AverageTarget/appsettings.dev.json
+5
-1
appsettings.json
AutoTurnOver.Purchase.AverageTarget/appsettings.json
+5
-1
appsettings.prod.json
AutoTurnOver.Purchase.AverageTarget/appsettings.prod.json
+6
-1
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+1
-3
AutoTurnOver.Utility.csproj
AutoTurnOver.Utility/AutoTurnOver.Utility.csproj
+3
-0
BrowseLogAttribute.cs
AutoTurnOver.Utility/BrowseLogAttribute.cs
+246
-0
AutoTurnOver.csproj
AutoTurnOver/AutoTurnOver.csproj
+1
-1
CashFlowController.cs
AutoTurnOver/Controllers/CashFlowController.cs
+3
-1
ConfigController.cs
AutoTurnOver/Controllers/ConfigController.cs
+32
-0
DailyController.cs
AutoTurnOver/Controllers/DailyController.cs
+4
-1
ExceptionReminderController.cs
AutoTurnOver/Controllers/ExceptionReminderController.cs
+2
-0
ForecastTaskController.cs
AutoTurnOver/Controllers/ForecastTaskController.cs
+3
-0
JitTagController.cs
AutoTurnOver/Controllers/JitTagController.cs
+4
-0
NotStockController.cs
AutoTurnOver/Controllers/NotStockController.cs
+4
-0
PurchaseAdviseController.cs
AutoTurnOver/Controllers/PurchaseAdviseController.cs
+5
-0
ReportsController.cs
AutoTurnOver/Controllers/ReportsController.cs
+12
-5
SkuAutoTurnController.cs
AutoTurnOver/Controllers/SkuAutoTurnController.cs
+6
-1
FolderProfile.pubxml
AutoTurnOver/Properties/PublishProfiles/FolderProfile.pubxml
+1
-1
FolderProfile1.pubxml
...TurnOver/Properties/PublishProfiles/FolderProfile1.pubxml
+17
-0
appsettings.Development.json
AutoTurnOver/appsettings.Development.json
+5
-1
appsettings.Production.json
AutoTurnOver/appsettings.Production.json
+5
-1
appsettings.json
AutoTurnOver/appsettings.json
+5
-1
appsettings.dev.json
ResetOutofstock/appsettings.dev.json
+5
-1
appsettings.json
ResetOutofstock/appsettings.json
+5
-1
appsettings.prod.json
ResetOutofstock/appsettings.prod.json
+6
-1
appsettings.dev.json
ShortagePush/appsettings.dev.json
+4
-0
appsettings.json
ShortagePush/appsettings.json
+5
-1
appsettings.prod.json
ShortagePush/appsettings.prod.json
+6
-1
No files found.
AutoGeneratePurchaseAdvise/appsettings.dev.json
View file @
8c3a1ab7
...
...
@@ -10,5 +10,9 @@
},
"QiYeJiQiRen"
:
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5fa4c1d5-ce65-4e8a-9ae9-a0d689a13b65"
,
"GetSchedulings"
:
"http://oa.bailuntec.com/Api/Cq/GetSchedulings?userID=1922"
,
"postaveragesales"
:
"http://doc.bailuntec.com:6032/postaveragesales"
"postaveragesales"
:
"http://doc.bailuntec.com:6032/postaveragesales"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoGeneratePurchaseAdvise/appsettings.json
View file @
8c3a1ab7
...
...
@@ -10,5 +10,9 @@
},
"QiYeJiQiRen"
:
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5fa4c1d5-ce65-4e8a-9ae9-a0d689a13b65"
,
"GetSchedulings"
:
"http://oa.bailuntec.com/Api/Cq/GetSchedulings?userID=1922"
,
"postaveragesales"
:
"http://10.0.6.27/api/pds/postaveragesales"
"postaveragesales"
:
"http://10.0.6.27/api/pds/postaveragesales"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoGeneratePurchaseAdvise/appsettings.prod.json
View file @
8c3a1ab7
...
...
@@ -10,5 +10,9 @@
},
"QiYeJiQiRen"
:
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5fa4c1d5-ce65-4e8a-9ae9-a0d689a13b65"
,
"GetSchedulings"
:
"http://oa.bailuntec.com/Api/Cq/GetSchedulings?userID=1922"
,
"postaveragesales"
:
"http://10.0.6.27/api/pds/postaveragesales"
"postaveragesales"
:
"http://10.0.6.27/api/pds/postaveragesales"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
\ No newline at end of file
AutoTurnOver.DB/db_config.cs
View file @
8c3a1ab7
...
...
@@ -2,7 +2,7 @@
using
AutoTurnOver.Models
;
using
AutoTurnOver.Models.Base
;
using
AutoTurnOver.Models.Report
;
using
Bailun.ServiceFabric
.Core
;
using
Bailun.ServiceFabric
;
using
Dapper
;
using
System
;
using
System.Collections.Generic
;
...
...
AutoTurnOver.Purchase.AverageTarget/appsettings.dev.json
View file @
8c3a1ab7
...
...
@@ -6,5 +6,9 @@
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PostPlatCategoryRate"
:
"http://test.profit.bailuntec.com/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoTurnOver.Purchase.AverageTarget/appsettings.json
View file @
8c3a1ab7
...
...
@@ -6,5 +6,9 @@
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PostPlatCategoryRate"
:
"http://test.profit.bailuntec.com/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoTurnOver.Purchase.AverageTarget/appsettings.prod.json
View file @
8c3a1ab7
...
...
@@ -6,5 +6,9 @@
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PostPlatCategoryRate"
:
"http://172.31.255.11/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
\ No newline at end of file
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
8c3a1ab7
using
AutoTurnOver.DB
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Models.ApiDto
;
using
Bailun.ServiceFabric
.Core
;
using
Bailun.ServiceFabric
;
using
Dapper
;
using
MySql.Data.MySqlClient
;
using
System
;
using
System.Collections.Generic
;
using
System.Data
;
using
System.Linq
;
using
System.Text.RegularExpressions
;
...
...
AutoTurnOver.Utility/AutoTurnOver.Utility.csproj
View file @
8c3a1ab7
...
...
@@ -7,6 +7,9 @@
<ItemGroup>
<PackageReference Include="Baidu.AI" Version="3.6.14" />
<PackageReference Include="Bailun.ServiceFabric.Authorize" Version="1.0.5" />
<PackageReference Include="Bailun.ServiceFabric.Core" Version="1.2.2" />
<PackageReference Include="Bailun.ServiceFabric.CustomLog" Version="1.0.1" />
<PackageReference Include="Bailun.ServiceFabric.Redis" Version="1.0.1" />
<PackageReference Include="EPPlus.Core" Version="1.5.4" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.1" />
...
...
AutoTurnOver.Utility/BrowseLogAttribute.cs
0 → 100644
View file @
8c3a1ab7
using
System
;
using
Microsoft.AspNetCore.Mvc.Filters
;
using
System.Net
;
using
System.Net.Http
;
using
System.Net.Http.Headers
;
using
System.Text
;
using
Newtonsoft.Json
;
using
Bailun.ServiceFabric
;
using
ConfigManagerConf
=
Bailun
.
ServiceFabric
.
ConfigManagerConf
;
namespace
AutoTurnOver.Utility
{
public
class
BrowseLogAttribute
:
ActionFilterAttribute
{
/// <summary>
/// 项目id
/// </summary>
private
readonly
string
_projectCode
;
/// <summary>
/// 模块名称
/// </summary>
private
readonly
string
_moduleName
;
/// <summary>
/// 备注信息
/// </summary>
private
readonly
string
_remark
;
/// <summary>
/// 操作类型 (0查、1增、2删、3修改)
/// </summary>
private
readonly
int
_operationType
;
/// <summary>
/// 此特性负责写浏览日志
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="moduleName">模块名称</param>
/// <param name="operationType">操作类型 (0查、1增、2删、3修改)</param>
/// <param name="remark">备注信息</param>
public
BrowseLogAttribute
(
string
projectCode
,
string
moduleName
,
int
operationType
,
string
remark
=
""
)
{
_projectCode
=
projectCode
;
_moduleName
=
moduleName
;
_operationType
=
operationType
;
_remark
=
remark
;
}
public
override
void
OnActionExecuted
(
ActionExecutedContext
context
)
{
try
{
//获取appsetting配置失败暂时直接赋值开启是否开启日志记录功能 “yes”/“no”
string
canLogValue
=
"yes"
;
// string canLogValue = ConfigManagerConf.GetValue("BrowseLogSetting:CanLog");
if
(
canLogValue
!=
"yes"
)
{
return
;
}
var
userId
=
context
.
HttpContext
?.
User
?.
GetUid
();
if
(
userId
==
null
)
{
return
;
}
var
userName
=
context
.
HttpContext
?.
User
?.
GetUserName
();
var
companyId
=
context
.
HttpContext
?.
User
?.
GetCompanyId
();
// 执行结果
var
isSuccessed
=
true
;
// 执行失败的信息
var
execFaildMsg
=
""
;
if
(
context
.
Exception
!=
null
&&
context
.
Result
==
null
)
{
// 方法执行失败 有异常
isSuccessed
=
false
;
execFaildMsg
=
context
.
Exception
.
Message
;
}
// 组装写日志的入参
var
input
=
new
AddOperationLogInfoInput
{
UserId
=
Convert
.
ToInt32
(
userId
??
0
),
UserName
=
userName
??
"system"
,
ProjectCode
=
_projectCode
,
OperationType
=
_operationType
,
OperationContent
=
_moduleName
,
OperationTime
=
DateTime
.
Now
,
IsSuccessed
=
isSuccessed
,
FailInfo
=
execFaildMsg
,
Remarks
=
_remark
,
CompanyId
=
companyId
??
"1"
};
//服务配置获取失败直接赋值给url进行日志记录若解决获取配置问题可取消注释 源码:var url = ConfigManagerConf.GetValue("BrowseLogSetting:Url");
var
url
=
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
;
var
logRes
=
PostAsync
<
AddOperationLogInfoInput
,
AddOperationLogInfoOutput
>(
url
,
input
);
if
(
logRes
.
StatusCode
!=
200
)
{
Console
.
WriteLine
(
$"写浏览日志失败:
{
logRes
.
Message
}
"
);
}
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
e
);
}
}
/// <summary>
/// HttpClient实现Post请求
/// </summary>
/// <typeparam name="T1">传入对象类型</typeparam>
/// <typeparam name="T2">返回对象类型</typeparam>
/// <param name="url"></param>
/// <param name="content"></param>
/// <returns></returns>
public
static
T2
PostAsync
<
T1
,
T2
>(
string
url
,
T1
content
)
where
T2
:
new
()
{
if
(
string
.
IsNullOrWhiteSpace
(
url
)
||
content
==
null
)
{
return
new
T2
();
}
try
{
//设置内容压缩
var
handler
=
new
HttpClientHandler
()
{
AutomaticDecompression
=
DecompressionMethods
.
GZip
};
using
(
var
client
=
new
HttpClient
(
handler
))
{
client
.
DefaultRequestHeaders
.
Accept
.
Clear
();
client
.
DefaultRequestHeaders
.
Accept
.
Add
(
new
MediaTypeWithQualityHeaderValue
(
"application/json"
));
var
postDataJson
=
JsonConvert
.
SerializeObject
(
content
,
new
JsonSerializerSettings
()
{
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
,
NullValueHandling
=
NullValueHandling
.
Ignore
});
var
response
=
client
.
PostAsync
(
url
,
new
StringContent
(
postDataJson
,
Encoding
.
UTF8
,
"application/json"
)).
Result
;
//var response = client.PostAsJsonAsync<T1>(url, content).Result;
if
(
response
.
IsSuccessStatusCode
)
{
var
reponseResult
=
response
.
Content
.
ReadAsStringAsync
().
Result
;
var
result
=
JsonConvert
.
DeserializeObject
<
T2
>(
reponseResult
,
new
JsonSerializerSettings
()
{
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
,
NullValueHandling
=
NullValueHandling
.
Ignore
});
return
result
;
}
return
JsonConvert
.
DeserializeObject
<
T2
>(
null
,
new
JsonSerializerSettings
()
{
ReferenceLoopHandling
=
ReferenceLoopHandling
.
Ignore
,
NullValueHandling
=
NullValueHandling
.
Ignore
});
//return new T2() { Message = "HTTP响应失败", };
}
}
catch
(
Exception
ex
)
{
throw
ex
;
}
}
public
class
AddOperationLogInfoOutput
{
/// <summary>
/// 信息
/// </summary>
[
JsonProperty
(
"message"
)]
public
string
Message
{
get
;
set
;
}
/// <summary>
/// 结果
/// </summary>
[
JsonProperty
(
"result"
)]
public
object
Result
{
get
;
set
;
}
/// <summary>
/// 状态码
/// </summary>
[
JsonProperty
(
"statusCode"
)]
public
int
StatusCode
{
get
;
set
;
}
}
public
class
AddOperationLogInfoInput
{
/// <summary>
///
/// </summary>
public
int
UserId
{
get
;
set
;
}
/// <summary>
/// 系统id
/// </summary>
public
int
ProjectId
{
get
;
set
;
}
/// <summary>
/// 系统代码
/// </summary>
public
string
ProjectCode
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
UserName
{
get
;
set
;
}
/// <summary>
/// 公司id
/// </summary>
public
string
CompanyId
{
get
;
set
;
}
/// <summary>
/// 操作类型(0查、1增、2删、3修改)
/// </summary>
public
int
OperationType
{
get
;
set
;
}
/// <summary>
/// 操作内容
/// </summary>
public
string
OperationContent
{
get
;
set
;
}
/// <summary>
/// 操作时间
/// </summary>
public
DateTime
OperationTime
{
get
;
set
;
}
/// <summary>
/// 是否操作成功
/// </summary>
public
bool
IsSuccessed
{
get
;
set
;
}
/// <summary>
/// 失败原因
/// </summary>
public
string
FailInfo
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remarks
{
get
;
set
;
}
}
}
}
\ No newline at end of file
AutoTurnOver/AutoTurnOver.csproj
View file @
8c3a1ab7
...
...
@@ -35,6 +35,6 @@
</Content>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>
<ProjectExtensions><VisualStudio><UserProperties
appsettings_1json__JsonSchema=""
/></VisualStudio></ProjectExtensions>
</Project>
AutoTurnOver/Controllers/CashFlowController.cs
View file @
8c3a1ab7
...
...
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Services
;
using
AutoTurnOver.Utility
;
using
Dapper
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -18,6 +19,7 @@ namespace AutoTurnOver.Controllers
[
ApiController
]
public
class
CashFlowController
:
ControllerBase
{
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【现金流】->【报表】->【搜索】页面"
,
0
)]
public
JsonResult
GetView
(
DateTime
?
btime
,
DateTime
?
etime
,
string
platform_type
,
string
web_site
,
string
bailun_sku
,
string
warehouse_code
)
{
report_cash_flow_view_search_dto
search_data
=
new
report_cash_flow_view_search_dto
...
...
@@ -99,7 +101,7 @@ namespace AutoTurnOver.Controllers
memory
.
Position
=
0
;
return
File
(
memory
,
"text/csv"
,
"现金流明细.csv"
);
}
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【现金流】->【仓库sku现金流列表】->【搜索】页面"
,
0
)]
public
JsonResult
GetSkuView
(
int
?
data_type
,
string
sku_label
,
string
bailun_sku
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
buyer_name
,
string
warehousecode
,
string
supplier_name
,
string
warehousetype
,
int
?
warehousearea
,
int
?
monitor_status
=
null
,
string
product_type
=
null
)
{
try
...
...
AutoTurnOver/Controllers/ConfigController.cs
View file @
8c3a1ab7
...
...
@@ -31,6 +31,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【安全库存配置】->【搜索】页面"
,
0
)]
public
JsonResult
InventoryList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -59,6 +60,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【安全库存配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveInventory
([
FromBody
]
dc_auto_config_safe_inventory
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveInventory
(
m
,
""
);
...
...
@@ -96,6 +98,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【销量上限】->【搜索】页面"
,
0
)]
public
JsonResult
SalesUpperLimitList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -124,6 +127,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【销量上限配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveSalesUpperLimit
([
FromBody
]
dc_auto_config_sales_upper_limit
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveSalesUpperLimit
(
m
,
""
);
...
...
@@ -161,6 +165,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【调拨初始值配置】->【搜索】页面"
,
0
)]
public
JsonResult
ConfigDeliveryList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -188,6 +193,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【调拨初始值配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveConfigDelivery
([
FromBody
]
dc_auto_config_delivery
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveConfigDelivery
(
m
,
""
);
...
...
@@ -225,6 +231,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【备货天数配置】->【搜索】页面"
,
0
)]
public
JsonResult
StockUpList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -253,6 +260,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【备货天数配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveStockUp
([
FromBody
]
dc_auto_config_stock_up_days
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveStockUp
(
m
,
""
);
...
...
@@ -294,6 +302,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【自动周转列表】->【开启/停止监控】操作"
,
3
)]
public
JsonResult
BatchMonitorStatus
(
string
ids
,
int
monitor_status
)
{
var
user
=
AutoUtility
.
GetUser
();
...
...
@@ -318,6 +327,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【备货天数配置】->【搜索】页面"
,
0
)]
public
JsonResult
StockFbaList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
,
string
platform_sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -341,6 +351,7 @@ namespace AutoTurnOver.Controllers
}
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【fba欧洲共享仓配置缺失】->【搜索】页面"
,
0
)]
public
JsonResult
StockFbaLoseList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
platform_sku
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -365,6 +376,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【fba欧洲共享仓配置缺失】->【新增】->【保存】操作"
,
1
)]
public
JsonResult
SaveStockFba
([
FromBody
]
dc_base_stock_config_fba
m
)
{
try
...
...
@@ -395,6 +407,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【自动周转列表】->【开启/停止侵权】操作"
,
3
)]
public
JsonResult
BatchTortStatus
(
string
ids
,
int
tort_status
)
{
var
user
=
AutoUtility
.
GetUser
();
...
...
@@ -420,6 +433,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【销量配置】->【搜索】页面"
,
0
)]
public
JsonResult
SalesConfigList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
platform_type
,
string
web_site
,
DateTime
?
start_date
,
DateTime
?
end_date
)
{
var
m
=
new
dc_auto_sales_config_search_dto
...
...
@@ -447,6 +461,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【销量配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveSalesConfig
([
FromBody
]
dc_auto_sales_config
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveSalesConfig
(
m
,
""
);
...
...
@@ -473,6 +488,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【动态备货范围】->【搜索】页面"
,
0
)]
public
JsonResult
StockUpRangeList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
,
string
platform_sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -497,6 +513,7 @@ namespace AutoTurnOver.Controllers
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【动态备货范围】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveStockUpRange
([
FromBody
]
dc_auto_stock_up_range
m
)
{
try
...
...
@@ -525,6 +542,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【动态备货规则组】->【搜索】页面"
,
0
)]
public
JsonResult
JitTagGroupList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -545,6 +563,7 @@ namespace AutoTurnOver.Controllers
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【动态备货规则组】->【新增】->【保存】操作"
,
1
)]
public
JsonResult
SaveJitTagGroup
([
FromBody
]
dc_auto_jit_tag_group
m
)
{
try
...
...
@@ -578,6 +597,7 @@ namespace AutoTurnOver.Controllers
/// <param name="data"></param>
/// <returns></returns>
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【自动周转列表】->【保存动态配货配置】操作"
,
3
)]
public
JsonResult
BatchStockUp
([
FromBody
]
batch_stock_up_input_dto
data
)
{
try
...
...
@@ -596,6 +616,7 @@ namespace AutoTurnOver.Controllers
#
region
预测销量
人工
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【首单销量预测配置】->【搜索】页面"
,
0
)]
public
JsonResult
ForecastSalesConfigList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -615,6 +636,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【首单销量预测配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveForecastSalesConfig
([
FromBody
]
dc_config_forecast_sales
m
)
{
try
...
...
@@ -641,6 +663,7 @@ namespace AutoTurnOver.Controllers
/// <param name="fileName"></param>
/// <returns></returns>
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【首单销量预测配置】->【导入】操作"
,
1
)]
public
async
Task
<
ActionResult
<
RequestResultDto
>>
ForecastSalesImport
(
IFormFile
file
)
{
try
...
...
@@ -674,6 +697,7 @@ namespace AutoTurnOver.Controllers
#
region
暴增配置
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【异常突增】->【搜索】页面"
,
0
)]
public
JsonResult
UprushConfigList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
dc_auto_uprush_config_search_dto
...
...
@@ -695,6 +719,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【异常突增】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveUprushConfig
([
FromBody
]
dc_auto_uprush_config
m
)
{
try
...
...
@@ -724,6 +749,7 @@ namespace AutoTurnOver.Controllers
/// <param name="monitor_status"></param>
/// <returns></returns>
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【自动周转列表】->【停止(恢复)回货自动标记】操作"
,
3
)]
public
JsonResult
BatchReturnGoodsStatus
(
string
ids
,
int
monitor_status
)
{
var
user
=
AutoUtility
.
GetUser
();
...
...
@@ -735,6 +761,7 @@ namespace AutoTurnOver.Controllers
#
region
销量预测模型配置
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【销量预测配置】->【搜索】页面"
,
0
)]
public
JsonResult
SalesForecastConfigList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
string
bailun_sku
)
{
var
m
=
new
dc_auto_sales_forecast_config_search_dto
...
...
@@ -760,6 +787,7 @@ namespace AutoTurnOver.Controllers
[
NoLogin
]
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【销量预测配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveSalesForecastConfig
([
FromBody
]
dc_auto_sales_forecast_config_dto
m
)
{
try
...
...
@@ -807,6 +835,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【现金流】->【支付周期配置】->【搜索】页面"
,
0
)]
public
JsonResult
CashFlowList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
data_type
)
{
var
m
=
new
dc_report_cash_flow_config_search_dto
...
...
@@ -826,6 +855,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【现金流】->【支付周期配置】->【新增】->【保存】操作"
,
1
)]
public
JsonResult
SaveCashFlow
([
FromBody
]
dc_report_cash_flow_config
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveCashFlow
(
m
,
""
);
...
...
@@ -847,6 +877,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【现金流】->【物流商账期配置】->【搜索】页面"
,
0
)]
public
JsonResult
LogisticsCompanyConfigPage
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
company_code
)
{
var
m
=
new
dc_report_logistics_company_config_search_dto
...
...
@@ -866,6 +897,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【现金流】->【物流商账期配置】->【新增】->【保存】操作"
,
1
)]
public
JsonResult
SaveLogisticsCompanyConfig
([
FromBody
]
dc_report_logistics_company_config
m
)
{
var
result
=
new
Services
.
ConfigServices
().
SaveLogisticsCompanyConfig
(
m
);
...
...
AutoTurnOver/Controllers/DailyController.cs
View file @
8c3a1ab7
...
...
@@ -61,6 +61,7 @@ namespace AutoTurnOver.Controllers
/// <param name="limit"></param>
/// <returns></returns>
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【实时库存】->【搜索】页面"
,
0
)]
public
JsonResult
RealtimeList
(
int
?
monitor_status
,
int
?
searchType
,
string
key_words
,
string
warehousecode
,
string
buyer_name
,
string
supplier_name
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
,
int
?
has_tort
=
null
,
string
categoryIds
=
null
,
DateTime
?
start_date
=
null
,
DateTime
?
end_date
=
null
,
DateTime
?
f_start_date
=
null
,
DateTime
?
f_end_date
=
null
,
int
?
product_type
=
null
)
{
...
...
@@ -108,6 +109,7 @@ namespace AutoTurnOver.Controllers
/// <param name="limit"></param>
/// <param name="total"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【修改在线数量日志】->【搜索】页面"
,
0
)]
public
JsonResult
ShortagePushList
(
string
platform
,
string
bailun_sku
,
int
offset
,
int
limit
,
DateTime
?
end_date
,
DateTime
?
start_date
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
)
{
try
...
...
@@ -201,6 +203,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <returns></returns>
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【库存监控】->【搜索】页面"
,
0
)]
public
JsonResult
StockMonitorList
(
int
?
type
,
string
bailun_sku
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
DateTime
?
end_date
,
DateTime
?
start_date
)
{
...
...
@@ -267,7 +270,7 @@ namespace AutoTurnOver.Controllers
});
}
}
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【刊登监控】->【搜索】页面"
,
0
)]
public
JsonResult
GetShowField
(
string
warehouse_code
)
{
try
...
...
AutoTurnOver/Controllers/ExceptionReminderController.cs
View file @
8c3a1ab7
...
...
@@ -6,6 +6,7 @@ using System.Linq;
using
System.Threading.Tasks
;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Utility
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -17,6 +18,7 @@ namespace AutoTurnOver.Controllers
{
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【自动下单管理】->【非jit异常提醒】->【搜索】页面"
,
0
)]
public
JsonResult
List
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
character
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
has_overdue
=
null
,
bool
?
has_confirm
=
null
,
bool
?
has_solve
=
null
,
int
?
err_type
=
null
)
{
...
...
AutoTurnOver/Controllers/ForecastTaskController.cs
View file @
8c3a1ab7
...
...
@@ -6,6 +6,7 @@ using System.Linq;
using
System.Threading.Tasks
;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Models.Report
;
using
AutoTurnOver.Utility
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -19,6 +20,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【现金流】->【预测现金流任务】->【搜索】页面"
,
0
)]
public
JsonResult
Page
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
)
{
var
m
=
new
dc_report_cash_flow_forecast_task_search_dto
...
...
@@ -38,6 +40,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【现金流】->【预测现金流任务】->【新增(修改)】->【保存】操作"
,
1
)]
public
JsonResult
Save
([
FromBody
]
dc_report_cash_flow_forecast_task_input_dto
m
)
{
try
...
...
AutoTurnOver/Controllers/JitTagController.cs
View file @
8c3a1ab7
...
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Threading.Tasks
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Utility
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -16,6 +17,7 @@ namespace AutoTurnOver.Controllers
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【动态备货规则】->【搜索】页面"
,
0
)]
public
JsonResult
JitTagList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
group_id
=
null
)
{
var
total
=
0
;
...
...
@@ -30,6 +32,7 @@ namespace AutoTurnOver.Controllers
}
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【日志】->【jit规则日志】->【搜索】页面"
,
0
)]
public
JsonResult
JitTagLogList
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
bailun_sku
,
DateTime
?
b_date
,
DateTime
?
e_date
,
int
?
tag_id
=
null
)
{
var
total
=
0
;
...
...
@@ -58,6 +61,7 @@ namespace AutoTurnOver.Controllers
[
HttpPost
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【动态备货规则】->【新增】->【保存】操作"
,
1
)]
public
JsonResult
SaveJitTag
([
FromBody
]
dc_auto_jit_tag
m
)
{
var
result
=
new
Services
.
JitTagServices
().
SaveJitTag
(
m
,
""
);
...
...
AutoTurnOver/Controllers/NotStockController.cs
View file @
8c3a1ab7
...
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Threading.Tasks
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Utility
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -17,6 +18,7 @@ namespace AutoTurnOver.Controllers
public
class
NotStockController
:
Controller
{
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【无库仓】->【无库仓sku】->【搜索】页面"
,
0
)]
public
JsonResult
List
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
decimal
?
goods_sales_max
,
decimal
?
goods_sales_min
,
int
?
source_type
,
int
?
success_states
,
int
search_type
,
string
key_words
,
DateTime
?
push_time_max
,
DateTime
?
push_time_min
)
{
...
...
@@ -48,6 +50,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【无库仓】->【无库仓sku】->【淘汰】操作"
,
2
)]
public
JsonResult
Eliminate
([
FromBody
]
EliminateRequestDto
data
)
{
try
...
...
@@ -70,6 +73,7 @@ namespace AutoTurnOver.Controllers
}
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【无库仓】->【无库仓sku】->【转仓】操作"
,
3
)]
public
JsonResult
TransferWarehouse
([
FromBody
]
EliminateRequestDto
data
)
{
try
...
...
AutoTurnOver/Controllers/PurchaseAdviseController.cs
View file @
8c3a1ab7
...
...
@@ -106,6 +106,7 @@ namespace AutoTurnOver.Controllers
/// <param name="start_date"></param>
/// <returns></returns>
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【自动下单管理】->【采购建议列表】->【搜索】页面"
,
0
)]
public
JsonResult
DetailListSumFooter
(
int
limit
,
int
offset
,
int
main_id
,
string
sort
,
string
sku
,
string
warehousecode
,
DateTime
?
end_date
,
DateTime
?
start_date
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
ispush
=
null
,
int
?
type
=
null
,
string
supplier_name
=
null
,
string
purchase_user
=
null
,
string
product_inner_code
=
null
,
bool
is_multiple_warehouse
=
false
,
...
...
@@ -242,6 +243,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【采购建议列表】->【保存】操作"
,
1
)]
public
JsonResult
SetQuantityActual
(
int
id
,
int
quantity_actual
)
{
try
...
...
@@ -268,6 +270,7 @@ namespace AutoTurnOver.Controllers
/// <param name="id"></param>
/// <returns></returns>
[
HttpPost
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【采购建议列表】->【批量保存】操作"
,
1
)]
public
JsonResult
BatchSetQuantityActual
([
FromBody
]
BatchSetQuantityActualInputDataDto
data
)
{
try
...
...
@@ -293,6 +296,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【自动下单管理】->【采购建议列表】->【推送采购系统】页面"
,
0
)]
public
JsonResult
PushBuySys
(
int
limit
,
int
offset
,
int
main_id
,
string
sort
,
string
sku
,
string
warehousecode
,
DateTime
?
end_date
,
DateTime
?
start_date
,
string
warehousetype
,
int
?
warehousearea
,
string
order
,
bool
?
ispush
=
null
,
int
?
type
=
null
,
string
supplier_name
=
null
,
string
purchase_user
=
null
,
string
product_inner_code
=
null
,
bool
?
is_multiple_warehouse
=
false
,
...
...
@@ -371,6 +375,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动下单系统】->【自动下单管理】->【采购建议列表】->【删除采购建议】操作"
,
2
)]
public
JsonResult
Del
(
int
id
)
{
try
...
...
AutoTurnOver/Controllers/ReportsController.cs
View file @
8c3a1ab7
...
...
@@ -113,6 +113,7 @@ namespace AutoTurnOver.Controllers
/// <param name="limit"></param>
/// <returns></returns>
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【jit实时缺货】->【搜索】页面"
,
0
)]
public
JsonResult
QuantityOutStockList
(
string
bailun_sku
,
string
warehousecode
,
string
product_inner_code
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
quantity_out_stock_search_dto
...
...
@@ -225,6 +226,7 @@ namespace AutoTurnOver.Controllers
/// <param name="limit"></param>
/// <returns></returns>
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【实时缺货明细】->【搜索】页面"
,
0
)]
public
JsonResult
QuantityOutStockDetailList
(
DateTime
?
pay_time_min
,
DateTime
?
pay_time_max
,
string
platform_type
,
string
shiplogistics_code
,
int
?
bailun_account_id
,
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
quantity_out_stock_detail_search_dto
...
...
@@ -252,7 +254,7 @@ namespace AutoTurnOver.Controllers
});
}
public
JsonResult
QuantityOutStockDetailFooter
(
DateTime
?
pay_time_min
,
DateTime
?
pay_time_max
,
string
platform_type
,
string
shiplogistics_code
,
int
?
bailun_account_id
,
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
quantity_out_stock_detail_search_dto
...
...
@@ -276,8 +278,7 @@ namespace AutoTurnOver.Controllers
return
new
JsonResult
(
list
==
null
||
list
.
Count
<=
0
?
new
quantity_out_stock_detail_dto
()
:
list
[
0
]);
}
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【实时数据】->【实时缺货明细】->【导出】操作"
,
1
)]
public
FileResult
QuantityOutStockDetailExport
(
DateTime
?
pay_time_min
,
DateTime
?
pay_time_max
,
string
platform_type
,
string
shiplogistics_code
,
int
?
bailun_account_id
,
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
quantity_out_stock_detail_search_dto
...
...
@@ -378,6 +379,7 @@ namespace AutoTurnOver.Controllers
/// <param name="warehousetype"></param>
/// <param name="warehousearea"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【缺货改零】->【搜索】页面"
,
0
)]
public
JsonResult
OutStockList
(
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
out_stock_search_dto
...
...
@@ -474,6 +476,7 @@ namespace AutoTurnOver.Controllers
/// <param name="warehousetype"></param>
/// <param name="warehousearea"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【回货速改】->【搜索】页面"
,
0
)]
public
JsonResult
ReturnSpeedChangeList
(
bool
?
has_available_stock
,
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
return_speed_change_search_dto
...
...
@@ -569,6 +572,7 @@ namespace AutoTurnOver.Controllers
/// <param name="warehousetype"></param>
/// <param name="warehousearea"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【回货速改】->【标记回货】操作"
,
3
)]
public
JsonResult
MarkReturnSpeedChange
(
bool
?
has_available_stock
,
int
?
search_type
,
string
warehousecode
,
string
key_words
,
string
purchase_user
,
string
warehousetype
,
int
?
warehousearea
)
{
var
m
=
new
return_speed_change_search_dto
...
...
@@ -597,6 +601,7 @@ namespace AutoTurnOver.Controllers
/// 批量出信
/// </summary>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【实时数据】->【实时缺货明细】->【批量出信】操作"
,
1
)]
public
FileResult
BatchSendMessage
(
string
bailun_order_ids
,
string
content
,
string
subject
,
string
remarks
)
{
BatchSendMessageInputDto
data
=
new
BatchSendMessageInputDto
{
...
...
@@ -626,6 +631,7 @@ namespace AutoTurnOver.Controllers
/// <param name="platform_type"></param>
/// <returns></returns>
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【报表】->【商品分类汇总】->【搜索】页面"
,
0
)]
public
JsonResult
GetSkuWebsiteSales
(
string
platform_type
,
string
warehousetype
,
int
?
warehousearea
,
string
warehousecode
,
DateTime
?
btime
,
DateTime
?
etime
)
{
bailun_sku_website_sales_search_dto
search_data
=
new
bailun_sku_website_sales_search_dto
{
...
...
@@ -658,7 +664,6 @@ namespace AutoTurnOver.Controllers
},
AutoUtility
.
GetUser
());
return
File
(
memory
,
"text/csv"
,
$"
{
user
.
UserAccount
}
商品分类数据信息.csv"
);
}
public
JsonResult
GetSkuWebsiteSalesSumFooter
(
string
platform_type
,
string
warehousetype
,
int
?
warehousearea
,
string
warehousecode
,
DateTime
?
btime
,
DateTime
?
etime
)
{
...
...
@@ -679,6 +684,7 @@ namespace AutoTurnOver.Controllers
}
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【报表】->【商品分类汇总】->【搜索】页面"
,
0
)]
public
JsonResult
SupplierSalesList
(
string
supplier_name
,
int
offset
,
int
limit
,
string
order
,
string
sort
)
{
var
m
=
new
supplier_sales_search_dto
...
...
@@ -742,7 +748,7 @@ namespace AutoTurnOver.Controllers
var
fileData
=
await
QiNiuCloudHelper
.
UploadAsync
(
memory
,
$"商品销售情况统计
{
user
.
UserName
}
-
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
导入结果.csv"
);
return
File
(
memory
,
"text/csv"
,
$"
{
user
.
UserAccount
}
商品汇总数据信息.csv"
);
}
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【报表】->【商品销售情况统计】->【搜索】页面"
,
0
)]
public
JsonResult
GetGoodsSumFooter
(
string
product_inner_code
,
string
platform_type
)
{
...
...
@@ -768,6 +774,7 @@ namespace AutoTurnOver.Controllers
/// <param name="order"></param>
/// <param name="sort"></param>
/// <returns></returns>
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【实时数据】->【安全库存汇总】->【搜索】页面"
,
0
)]
public
JsonResult
GetInventoryStock
(
string
warehousetype
,
int
offset
,
int
limit
,
string
order
,
string
sort
,
int
?
warehousearea
,
string
warehouse_code
)
{
try
...
...
AutoTurnOver/Controllers/SkuAutoTurnController.cs
View file @
8c3a1ab7
...
...
@@ -29,9 +29,10 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【自动下单管理】->【自动周转列表】->【搜索】页面"
,
0
)]
public
JsonResult
List
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
supplier_name
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
returngoodspush_state
=
null
,
int
?
has_tort
=
null
)
{
try
try
{
var
m
=
new
Condition_AutoTurnOver
{
...
...
@@ -163,6 +164,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【特殊销售规则】->【搜索】页面"
,
0
)]
public
JsonResult
ListSaleSetting
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -201,6 +203,7 @@ namespace AutoTurnOver.Controllers
/// </summary>
/// <returns></returns>
[
HttpGet
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【特殊销售规则】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveSaleSetting
(
int
id
,
string
sku
,
string
warehousecode
,
DateTime
time
,
int
count
,
string
note
,
string
username
)
{
var
m
=
new
Models
.
dc_auto_config_promotion
...
...
@@ -323,6 +326,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"访问【百伦自动周转系统】->【配置】->【市场因素配置】->【搜索】页面"
,
0
)]
public
JsonResult
ListCorrection
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
string
sku
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
IsEffective
=
null
)
{
var
m
=
new
Condition_ConfigPromotion
...
...
@@ -361,6 +365,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
[
HttpGet
]
[
UseAction
]
[
BrowseLog
(
"Bailun_aims"
,
"触发【百伦自动周转系统】->【配置】->【市场因素配置】->【新增规则】->【保存】操作"
,
1
)]
public
JsonResult
SaveCorrection
(
int
id
,
string
sku
,
string
warehousecode
,
DateTime
btime
,
DateTime
etime
,
decimal
param
,
string
note
,
string
username
)
{
var
m
=
new
Models
.
dc_auto_config_correction
...
...
AutoTurnOver/Properties/PublishProfiles/FolderProfile.pubxml
View file @
8c3a1ab7
...
...
@@ -19,7 +19,7 @@
<_IsPortable>
true
</_IsPortable>
<publishUrl>
C:\WebSite\SkuAutoTurn
</publishUrl>
<DeleteExistingFiles>
False
</DeleteExistingFiles>
<publishUrl>
F:\dataCenter_
fu
</publishUrl>
<publishUrl>
E:\aims-
fu
</publishUrl>
<DeleteExistingFiles>
True
</DeleteExistingFiles>
<RuntimeIdentifier>
win-x64
</RuntimeIdentifier>
</PropertyGroup>
...
...
AutoTurnOver/Properties/PublishProfiles/FolderProfile1.pubxml
0 → 100644
View file @
8c3a1ab7
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>False</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>E:\aims-text</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
</PropertyGroup>
</Project>
\ No newline at end of file
AutoTurnOver/appsettings.Development.json
View file @
8c3a1ab7
...
...
@@ -43,5 +43,9 @@
"Saas_GetMenus"
:
"http://sso.bailuntec.com/GetMenus"
,
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"PostPlatCategoryRate"
:
"http://test.profit.bailuntec.com/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoTurnOver/appsettings.Production.json
View file @
8c3a1ab7
...
...
@@ -43,5 +43,9 @@
"Saas_GetMenus"
:
"http://sso.bailuntec.com/GetMenus"
,
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"PostPlatCategoryRate"
:
"http://172.31.255.11/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
AutoTurnOver/appsettings.json
View file @
8c3a1ab7
...
...
@@ -43,5 +43,9 @@
"Saas_GetMenus"
:
"http://sso.bailuntec.com/GetMenus"
,
"ApiLogisticsGetFilterLogisticsAssignLine"
:
"http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine"
,
"PostPlatCategoryRate"
:
"http://test.profit.bailuntec.com/api/platfee/ProfitPlatfee/PostPlatCategoryRate"
,
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
"api_plat_category"
:
"http://doc.bailuntec.com:6040/profitplatfee/getplatcategory"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
ResetOutofstock/appsettings.dev.json
View file @
8c3a1ab7
...
...
@@ -12,5 +12,9 @@
"WipStockUrl"
:
"http://mjzz.bailuntec.com/api/FullStockPageList"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PPSSkuStatus"
:
"http://pps.bailuntec.com/Api/Centre/Publish/External/SkuStatus"
,
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
ResetOutofstock/appsettings.json
View file @
8c3a1ab7
...
...
@@ -13,5 +13,9 @@
"WipStockUrl"
:
"http://mjzz.bailuntec.com/api/FullStockPageList"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PPSSkuStatus"
:
"http://pps.bailuntec.com/Api/Centre/Publish/External/SkuStatus"
,
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
ResetOutofstock/appsettings.prod.json
View file @
8c3a1ab7
...
...
@@ -12,5 +12,9 @@
"WipStockUrl"
:
"http://mjzz.bailuntec.com/api/FullStockPageList"
,
"Lms_GetLogistics"
:
"http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics"
,
"PPSSkuStatus"
:
"http://pps.bailuntec.com/Api/Centre/Publish/External/SkuStatus"
,
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
"transfer_cost_real"
:
"http://api.wms.bailuntec.com/api/services/app/OrderLogisticCostService/GetOrderLogisticCostPageList"
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
\ No newline at end of file
ShortagePush/appsettings.dev.json
View file @
8c3a1ab7
...
...
@@ -11,5 +11,9 @@
"Port"
:
"6379"
,
"Password"
:
"SpaceHorse1"
,
"Defaultdatabase"
:
"0"
},
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
ShortagePush/appsettings.json
View file @
8c3a1ab7
...
...
@@ -11,5 +11,9 @@
},
"PPS_ShortagePush"
:
"http://bltpro.bailuntec.com/api/EbayTask/PushSkuEditQtyTask"
,
"PPS_ShortagePush2"
:
"http://pps.bailuntec.com/Api/AutoOperation/skutask/pushskueditqtytask"
,
"PPS_Return_GoodsPush"
:
""
"PPS_Return_GoodsPush"
:
""
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
ShortagePush/appsettings.prod.json
View file @
8c3a1ab7
...
...
@@ -4,5 +4,9 @@
},
"PPS_ShortagePush"
:
"http://10.0.6.8:8002/api/EbayTask/PushSkuEditQtyTask"
,
"PPS_ShortagePush2"
:
"http://10.0.0.27:5051/skutask/pushskueditqtytask"
,
"PPS_Return_GoodsPush"
:
""
"PPS_Return_GoodsPush"
:
""
,
"BrowseLogSetting"
:
{
"Url"
:
"http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo"
,
"CanLog"
:
"yes"
}
}
\ No newline at end of file
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