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
c2ef2ebb
Commit
c2ef2ebb
authored
Feb 03, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
a0c7f393
259b6acb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
245 additions
and
7 deletions
+245
-7
CompanyModule.cs
Mall.Module.TradePavilion/CompanyModule.cs
+3
-3
InvestmentProcurementModule.cs
Mall.Module.TradePavilion/InvestmentProcurementModule.cs
+2
-2
RB_CompanyRepository.cs
Mall.Repository/TradePavilion/RB_CompanyRepository.cs
+1
-1
RB_InvestmentProcurementRepository.cs
...itory/TradePavilion/RB_InvestmentProcurementRepository.cs
+1
-1
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+238
-0
No files found.
Mall.Module.TradePavilion/CompanyModule.cs
View file @
c2ef2ebb
...
...
@@ -22,9 +22,9 @@ namespace Mall.Module.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Company_Extend
>
GetCo
ntract
PageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Company_Extend
query
)
public
List
<
RB_Company_Extend
>
GetCo
mpany
PageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Company_Extend
query
)
{
return
companyRepository
.
GetCo
ntract
PageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
return
companyRepository
.
GetCo
mpany
PageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
...
...
@@ -32,7 +32,7 @@ namespace Mall.Module.TradePavilion
/// </summary>
/// <param name="CompanyId"></param>
/// <returns></returns>
public
RB_Company_Extend
GetCo
ntract
Module
(
object
CompanyId
)
public
RB_Company_Extend
GetCo
mpany
Module
(
object
CompanyId
)
{
return
companyRepository
.
GetEntity
<
RB_Company_Extend
>(
CompanyId
);
}
...
...
Mall.Module.TradePavilion/InvestmentProcurementModule.cs
View file @
c2ef2ebb
...
...
@@ -25,9 +25,9 @@ namespace Mall.Module.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_InvestmentProcurement_Extend
>
Get
Contrac
tPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_InvestmentProcurement_Extend
query
)
public
List
<
RB_InvestmentProcurement_Extend
>
Get
InvestmentProcuremen
tPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_InvestmentProcurement_Extend
query
)
{
return
repository
.
Get
Contrac
tPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
return
repository
.
Get
InvestmentProcuremen
tPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
...
...
Mall.Repository/TradePavilion/RB_CompanyRepository.cs
View file @
c2ef2ebb
...
...
@@ -22,7 +22,7 @@ namespace Mall.Repository.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Company_Extend
>
GetCo
ntract
PageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Company_Extend
query
)
public
List
<
RB_Company_Extend
>
GetCo
mpany
PageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Company_Extend
query
)
{
rowsCount
=
0
;
DynamicParameters
parameters
=
new
DynamicParameters
();
...
...
Mall.Repository/TradePavilion/RB_InvestmentProcurementRepository.cs
View file @
c2ef2ebb
...
...
@@ -23,7 +23,7 @@ namespace Mall.Repository.TradePavilion
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_InvestmentProcurement_Extend
>
Get
Contrac
tPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_InvestmentProcurement_Extend
query
)
public
List
<
RB_InvestmentProcurement_Extend
>
Get
InvestmentProcuremen
tPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_InvestmentProcurement_Extend
query
)
{
rowsCount
=
0
;
DynamicParameters
parameters
=
new
DynamicParameters
();
...
...
Mall.WebApi/Controllers/TradePavilion/
Contract
Controller.cs
→
Mall.WebApi/Controllers/TradePavilion/
Trade
Controller.cs
View file @
c2ef2ebb
...
...
@@ -20,13 +20,24 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
ApiExceptionFilter
]
[
ApiController
]
[
EnableCors
(
"AllowCors"
)]
public
class
Contract
Controller
:
BaseController
public
class
Trade
Controller
:
BaseController
{
/// <summary>
/// 联系人处理类对象
/// </summary>
private
readonly
ContractModule
module
=
new
ContractModule
();
/// <summary>
/// 投资采购处理类对象
/// </summary>
private
readonly
InvestmentProcurementModule
procurementModule
=
new
InvestmentProcurementModule
();
/// <summary>
/// 公司信息处理类对象
/// </summary>
private
readonly
CompanyModule
companyModule
=
new
CompanyModule
();
#
region
联系人管理
/// <summary>
/// 获取联系人分页列表
...
...
@@ -95,5 +106,133 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
flag
=
module
.
RemoveContractModule
(
Id
,
Status
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
region
投资采购管理
/// <summary>
/// 获取投资采购分页列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetInvestmentProcurementPage
()
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
var
query
=
JsonConvert
.
DeserializeObject
<
RB_InvestmentProcurement_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
procurementModule
.
GetInvestmentProcurementPageListModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 新增修改投资采购
/// </summary>
/// <returns></returns>
public
ApiResult
SetInvestmentProcurement
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_InvestmentProcurement_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
Int32
.
TryParse
(
RequestParm
.
uid
,
out
int
Uid
);
extModel
.
CreateBy
=
Uid
;
extModel
.
CreateDate
=
DateTime
.
Now
;
extModel
.
UpdateBy
=
Uid
;
extModel
.
UpdateDate
=
DateTime
.
Now
;
var
flag
=
procurementModule
.
SetInvestmentProcurementModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 获取投资采购详情
/// </summary>
/// <returns></returns>
public
ApiResult
GetInvestmentProcurement
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
var
extModel
=
procurementModule
.
GetInvestmentProcurementModule
(
Id
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 删除投资采购信息
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveInvestmentProcurement
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
var
Status
=
parms
.
GetInt
(
"Status"
,
0
);
var
flag
=
procurementModule
.
RemoveInvestmentProcurementModule
(
Id
,
Status
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
region
公司信息管理
/// <summary>
/// 获取公司信息分页列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetCompanyPageList
()
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Company_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
companyModule
.
GetCompanyPageListModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 新增修改公司信息
/// </summary>
/// <returns></returns>
public
ApiResult
SetCompany
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_Company_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
Int32
.
TryParse
(
RequestParm
.
uid
,
out
int
Uid
);
extModel
.
CreateBy
=
Uid
;
extModel
.
CreateDate
=
DateTime
.
Now
;
extModel
.
UpdateBy
=
Uid
;
extModel
.
UpdateDate
=
DateTime
.
Now
;
var
flag
=
companyModule
.
SetCompanyModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 获取公司信息详情
/// </summary>
/// <returns></returns>
public
ApiResult
GetCompany
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
CompanyId
=
parms
.
GetInt
(
"CompanyId"
,
0
);
var
extModel
=
companyModule
.
GetCompanyModule
(
CompanyId
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 删除公司信息
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveCompany
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
CompanyId
=
parms
.
GetInt
(
"CompanyId"
,
0
);
var
Status
=
parms
.
GetInt
(
"Status"
,
0
);
var
flag
=
companyModule
.
RemoveCompanyModule
(
CompanyId
,
Status
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
}
}
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