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
92d415dd
Commit
92d415dd
authored
Sep 07, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
9906cc46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+35
-1
No files found.
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
92d415dd
...
@@ -450,10 +450,39 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -450,10 +450,39 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
{
return
ApiResult
.
Failed
(
"请输入开发商"
);
return
ApiResult
.
Failed
(
"请输入开发商"
);
}
}
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Address
))
{
return
ApiResult
.
Failed
(
"请输入项目地址"
);
}
if
(!
query
.
ShopNum
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入店铺数量"
);
}
if
(!
query
.
BuiltUpArea
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入经营面积"
);
}
if
(!
query
.
AreaRequirement
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入可租赁面积"
);
}
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Logo
))
{
return
ApiResult
.
Failed
(
"请上传Logo"
);
}
if
(
query
.
BannerList
==
null
||
!
query
.
BannerList
.
Any
())
if
(
query
.
BannerList
==
null
||
!
query
.
BannerList
.
Any
())
{
{
return
ApiResult
.
Failed
(
"请上传介绍图"
);
return
ApiResult
.
Failed
(
"请上传介绍图"
);
}
}
if
(!
query
.
OpenTime
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入开业时间"
);
}
if
(!
query
.
ProjectType
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请选择项目类型"
);
}
if
(
query
.
BannerList
!=
null
&&
query
.
BannerList
.
Any
())
if
(
query
.
BannerList
!=
null
&&
query
.
BannerList
.
Any
())
{
{
query
.
Banner
=
JsonConvert
.
SerializeObject
(
query
.
BannerList
);
query
.
Banner
=
JsonConvert
.
SerializeObject
(
query
.
BannerList
);
...
@@ -466,7 +495,12 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -466,7 +495,12 @@ namespace Mall.WebApi.Controllers.TradePavilion
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
query
.
TenantId
=
userInfo
.
TenantId
;
query
.
TenantId
=
userInfo
.
TenantId
;
query
.
UpdateDate
=
DateTime
.
Now
;
query
.
UpdateDate
=
DateTime
.
Now
;
query
.
ShopNum
=
query
.
ShopNum
??
0
;
query
.
BuiltUpArea
=
query
.
BuiltUpArea
??
0
;
query
.
EndBuiltUpArea
=
query
.
EndBuiltUpArea
??
0
;
query
.
AreaRequirement
=
query
.
AreaRequirement
??
0
;
query
.
EndAreaRequirement
=
query
.
EndAreaRequirement
??
0
;
query
.
YeJi
=
query
.
YeJi
??
0
;
var
oldModel
=
carrierModule
.
GetCarrierModel
(
new
RB_Carrier_Extend
()
{
ID
=
query
.
ID
});
var
oldModel
=
carrierModule
.
GetCarrierModel
(
new
RB_Carrier_Extend
()
{
ID
=
query
.
ID
});
if
(
oldModel
==
null
)
{
return
ApiResult
.
Failed
(
"载体不存在"
);
}
if
(
oldModel
==
null
)
{
return
ApiResult
.
Failed
(
"载体不存在"
);
}
if
(
oldModel
.
UserId
!=
userInfo
.
UserId
)
{
return
ApiResult
.
Failed
(
"无法修改此载体"
);
}
if
(
oldModel
.
UserId
!=
userInfo
.
UserId
)
{
return
ApiResult
.
Failed
(
"无法修改此载体"
);
}
...
...
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