Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_local_platform
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_local_platform
Commits
2dc38498
Commit
2dc38498
authored
Jan 08, 2024
by
Seniorious
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
03390e27
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
121 行增加
和
6 行删除
+121
-6
BaseInfoController.cs
WebApiNET6-master/APIs/Controllers/BaseInfoController.cs
+8
-4
63113909-a569-4693-ab3b-99ba6b225a0e.jpg
WebApiNET6-master/APIs/LogPictures/20240108/63113909-a569-4693-ab3b-99ba6b225a0e.jpg
+0
-0
b801716d-5409-412f-993f-c9ac4a2d5116.jpg
WebApiNET6-master/APIs/LogPictures/20240108/b801716d-5409-412f-993f-c9ac4a2d5116.jpg
+0
-0
Startup.cs
WebApiNET6-master/APIs/Startup.cs
+2
-1
ViewWarrantyWarn.cs
WebApiNET6-master/Models/Table/ViewWarrantyWarn.cs
+42
-0
IViewWarrantyWarnRepository.cs
WebApiNET6-master/Repositories/IRepository/IBussiness/IViewWarrantyWarnRepository.cs
+13
-0
LogSummaryRepository.cs
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
+1
-1
ViewWarrantyWarnRepository.cs
WebApiNET6-master/Repositories/Repository/Bussiness/ViewWarrantyWarnRepository.cs
+20
-0
IViewWarrantyWarnService.cs
WebApiNET6-master/Services/Interface/IViewWarrantyWarnService.cs
+13
-0
ViewWarrantyWarnService.cs
WebApiNET6-master/Services/ViewWarrantyWarnService.cs
+22
-0
没有找到文件。
WebApiNET6-master/APIs/Controllers/BaseInfoController.cs
View file @
2dc38498
...
@@ -69,6 +69,8 @@ namespace APIs.Controllers
...
@@ -69,6 +69,8 @@ namespace APIs.Controllers
private
readonly
IBussinessInventoryService
_bussinessInventoryService
;
private
readonly
IBussinessInventoryService
_bussinessInventoryService
;
private
readonly
IBussinessInventoryDetailService
_bussinessInventoryDetailService
;
private
readonly
IBussinessInventoryDetailService
_bussinessInventoryDetailService
;
private
readonly
IChannelService
_channelService
;
private
readonly
IChannelService
_channelService
;
private
readonly
IViewWarrantyWarnService
_viewWarrantyWarnService
;
private
readonly
DehumidifierHelper
_dehumidifierHelper
;
private
readonly
DehumidifierHelper
_dehumidifierHelper
;
public
BaseInfoController
(
IMapper
mapper
,
DehumidifierHelper
dehumidifierHelper
,
IPoliceService
policeService
,
IEquipmentTypeService
equipmentTypeService
,
public
BaseInfoController
(
IMapper
mapper
,
DehumidifierHelper
dehumidifierHelper
,
IPoliceService
policeService
,
IEquipmentTypeService
equipmentTypeService
,
...
@@ -76,8 +78,10 @@ namespace APIs.Controllers
...
@@ -76,8 +78,10 @@ namespace APIs.Controllers
IInvService
invService
,
IUsersService
usersService
,
ILogService
logService
,
IDevHistoryService
devHistoryService
,
IInvService
invService
,
IUsersService
usersService
,
ILogService
logService
,
IDevHistoryService
devHistoryService
,
IDevService
devService
,
IWarehouseService
warehouseService
,
IOrderService
orderService
,
ISupplierService
supplierService
,
IDevService
devService
,
IWarehouseService
warehouseService
,
IOrderService
orderService
,
ISupplierService
supplierService
,
IThisInfoService
thisInfoService
,
IPrintService
printService
,
IPoliceFingerService
policeFingerService
,
IPoliceInfoService
policeInfoService
,
IThisInfoService
thisInfoService
,
IPrintService
printService
,
IPoliceFingerService
policeFingerService
,
IPoliceInfoService
policeInfoService
,
IBussinessInventoryService
bussinessInventoryService
,
IBussinessInventoryDetailService
bussinessInventoryDetailService
,
IChannelService
channelService
)
IBussinessInventoryService
bussinessInventoryService
,
IBussinessInventoryDetailService
bussinessInventoryDetailService
,
IChannelService
channelService
,
IViewWarrantyWarnService
viewWarrantyWarnService
)
{
{
Mapper
=
mapper
;
_dehumidifierHelper
=
dehumidifierHelper
;
_dehumidifierHelper
=
dehumidifierHelper
;
_carService
=
carService
;
_carService
=
carService
;
_equipmentSizeService
=
equipmentSizeService
;
_equipmentSizeService
=
equipmentSizeService
;
...
@@ -99,7 +103,7 @@ namespace APIs.Controllers
...
@@ -99,7 +103,7 @@ namespace APIs.Controllers
_bussinessInventoryService
=
bussinessInventoryService
;
_bussinessInventoryService
=
bussinessInventoryService
;
_bussinessInventoryDetailService
=
bussinessInventoryDetailService
;
_bussinessInventoryDetailService
=
bussinessInventoryDetailService
;
_channelService
=
channelService
;
_channelService
=
channelService
;
Mapper
=
mapper
;
_viewWarrantyWarnService
=
viewWarrantyWarnService
;
}
}
/// <summary>
/// <summary>
...
@@ -812,11 +816,11 @@ namespace APIs.Controllers
...
@@ -812,11 +816,11 @@ namespace APIs.Controllers
updateTime
=
DateTime
.
Now
,
updateTime
=
DateTime
.
Now
,
price
=
myOrder
.
DetailList
?.
FirstOrDefault
(
s
=>
s
.
equipmentSize
.
Equals
(
mysize
.
id
))?.
price
??
0
,
price
=
myOrder
.
DetailList
?.
FirstOrDefault
(
s
=>
s
.
equipmentSize
.
Equals
(
mysize
.
id
))?.
price
??
0
,
});
});
}
}
}
}
//出入库子单
//出入库子单
var
inv
=
await
_inventoryService
.
QueryOne
(
s
=>
s
.
epc
.
Equals
(
epc
));
var
inv
=
await
_inventoryService
.
QueryOne
(
s
=>
s
.
epc
.
Equals
(
epc
));
logDetailList
.
Add
(
new
LogDetail
()
logDetailList
.
Add
(
new
LogDetail
()
{
{
...
@@ -831,7 +835,7 @@ namespace APIs.Controllers
...
@@ -831,7 +835,7 @@ namespace APIs.Controllers
equipmentType
=
0
,
equipmentType
=
0
,
supplierId
=
mysupplier
?.
id
??
""
,
supplierId
=
mysupplier
?.
id
??
""
,
supplierName
=
mysupplier
?.
name
??
""
,
supplierName
=
mysupplier
?.
name
??
""
,
price
=
inv
?.
price
??
0
,
price
=
inv
==
null
?
(
myOrder
.
DetailList
?.
FirstOrDefault
(
s
=>
s
.
equipmentSize
.
Equals
(
mysize
.
id
))?.
price
??
0
)
:
(
inv
?.
price
??
0
)
,
createTime
=
DateTime
.
Now
,
createTime
=
DateTime
.
Now
,
updateTime
=
DateTime
.
Now
,
updateTime
=
DateTime
.
Now
,
});
});
...
...
WebApiNET6-master/APIs/LogPictures/20240108/63113909-a569-4693-ab3b-99ba6b225a0e.jpg
0 → 100644
View file @
2dc38498
48.3 KB
WebApiNET6-master/APIs/LogPictures/20240108/b801716d-5409-412f-993f-c9ac4a2d5116.jpg
0 → 100644
View file @
2dc38498
48.2 KB
WebApiNET6-master/APIs/Startup.cs
View file @
2dc38498
...
@@ -79,7 +79,7 @@ namespace APIs
...
@@ -79,7 +79,7 @@ namespace APIs
services
.
AddScoped
<
IBussinessInventoryService
,
BussinessInventoryService
>();
services
.
AddScoped
<
IBussinessInventoryService
,
BussinessInventoryService
>();
services
.
AddScoped
<
IBussinessInventoryDetailService
,
BussinessInventoryDetailService
>();
services
.
AddScoped
<
IBussinessInventoryDetailService
,
BussinessInventoryDetailService
>();
services
.
AddScoped
<
IChannelService
,
ChannelService
>();
services
.
AddScoped
<
IChannelService
,
ChannelService
>();
services
.
AddScoped
<
IViewWarrantyWarnService
,
ViewWarrantyWarnService
>();
#
endregion
#
endregion
#
region
Repository
#
region
Repository
...
@@ -107,6 +107,7 @@ namespace APIs
...
@@ -107,6 +107,7 @@ namespace APIs
services
.
AddScoped
<
IBussinessInventoryRepository
,
BussinessInventoryRepository
>();
services
.
AddScoped
<
IBussinessInventoryRepository
,
BussinessInventoryRepository
>();
services
.
AddScoped
<
IBussinessInventoryDetailRepository
,
BussinessInventoryDetailRepository
>();
services
.
AddScoped
<
IBussinessInventoryDetailRepository
,
BussinessInventoryDetailRepository
>();
services
.
AddScoped
<
IChannelRepository
,
ChannelRepository
>();
services
.
AddScoped
<
IChannelRepository
,
ChannelRepository
>();
services
.
AddScoped
<
IViewWarrantyWarnRepository
,
ViewWarrantyWarnRepository
>();
#
endregion
#
endregion
#
region
注册
RabbitMQ
消费者
#
region
注册
RabbitMQ
消费者
...
...
WebApiNET6-master/Models/Table/ViewWarrantyWarn.cs
0 → 100644
View file @
2dc38498
using
SqlSugar
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Models.Table
{
[
SugarTable
(
"view_warranty_warn"
)]
public
class
ViewWarrantyWarn
:
BaseTable
{
[
SugarColumn
(
IsPrimaryKey
=
true
)]
public
string
?
id
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"type_id"
)]
public
string
?
typeId
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"size_id"
)]
public
string
?
sizeId
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"supplier_id"
)]
public
string
?
supplierId
{
get
;
set
;
}
public
string
?
epc
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"type_name"
)]
public
string
?
typeName
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"size_name"
)]
public
string
?
sizeName
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"supplier_name"
)]
public
string
?
supplierName
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"production_date"
)]
public
DateTime
?
productionDate
{
get
;
set
;
}
[
SugarColumn
(
ColumnName
=
"warranty_period"
)]
public
int
warrantyPeriod
{
get
;
set
;
}
}
}
WebApiNET6-master/Repositories/IRepository/IBussiness/IViewWarrantyWarnRepository.cs
0 → 100644
View file @
2dc38498
using
Models.Table
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Repositories.IRepository.IBussiness
{
public
interface
IViewWarrantyWarnRepository
:
IBaseRepository
<
ViewWarrantyWarn
>
{
}
}
WebApiNET6-master/Repositories/Repository/Bussiness/LogSummaryRepository.cs
View file @
2dc38498
...
@@ -257,7 +257,7 @@ namespace Repositories.Repository.Bussiness
...
@@ -257,7 +257,7 @@ namespace Repositories.Repository.Bussiness
myOrder
.
actualQuantity
=
summary
.
number
;
myOrder
.
actualQuantity
=
summary
.
number
;
myOrder
.
price
=
sumPrice
;
myOrder
.
price
=
sumPrice
;
myOrder
.
isUpload
=
1
;
myOrder
.
isUpload
=
1
;
myOrder
.
orderState
=
0
;
//
myOrder.orderState = 0;
myOrder
.
updateTime
=
DateTime
.
Now
;
myOrder
.
updateTime
=
DateTime
.
Now
;
var
orderrs
=
context
.
UpdateNav
(
myOrder
).
Include
(
z1
=>
z1
.
DetailList
).
ExecuteCommand
();
var
orderrs
=
context
.
UpdateNav
(
myOrder
).
Include
(
z1
=>
z1
.
DetailList
).
ExecuteCommand
();
...
...
WebApiNET6-master/Repositories/Repository/Bussiness/ViewWarrantyWarnRepository.cs
0 → 100644
View file @
2dc38498
using
Models.Table
;
using
Repositories.IRepository
;
using
Repositories.IRepository.IBussiness
;
using
Repositories.IRepository.IUnitOfWork
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Repositories.Repository.Bussiness
{
public
class
ViewWarrantyWarnRepository
:
BaseRepository
<
ViewWarrantyWarn
>,
IViewWarrantyWarnRepository
{
public
ViewWarrantyWarnRepository
(
ILocalSugarUnitOfWork
sugarUnitOfWork
)
:
base
(
sugarUnitOfWork
)
{
}
}
}
WebApiNET6-master/Services/Interface/IViewWarrantyWarnService.cs
0 → 100644
View file @
2dc38498
using
Models.Table
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Services.Interface
{
public
interface
IViewWarrantyWarnService
:
IBaseServices
<
ViewWarrantyWarn
>
{
}
}
WebApiNET6-master/Services/ViewWarrantyWarnService.cs
0 → 100644
View file @
2dc38498
using
Models.Table
;
using
Repositories.IRepository.IBussiness
;
using
Services.Interface
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Services
{
public
class
ViewWarrantyWarnService
:
BaseService
<
ViewWarrantyWarn
>,
IViewWarrantyWarnService
{
private
readonly
IViewWarrantyWarnRepository
_viewWarrantyWarnRepository
;
public
ViewWarrantyWarnService
(
IViewWarrantyWarnRepository
viewWarrantyWarnRepository
)
{
base
.
BaseDal
=
viewWarrantyWarnRepository
;
_viewWarrantyWarnRepository
=
viewWarrantyWarnRepository
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论