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
87be254f
Commit
87be254f
authored
Sep 06, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
774adeac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
CompanyModule.cs
Mall.Module.TradePavilion/CompanyModule.cs
+10
-1
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+33
-0
No files found.
Mall.Module.TradePavilion/CompanyModule.cs
View file @
87be254f
...
...
@@ -621,6 +621,14 @@ namespace Mall.Module.TradePavilion
{
FirstStoreTest
=
1
;
}
int
OpeningStatus
=
0
;
if
(
CarrierModel
.
OpenTime
.
HasValue
)
{
if
(
CarrierModel
.
OpenTime
.
Value
<
System
.
DateTime
.
Now
)
{
OpeningStatus
=
1
;
}
}
Dictionary
<
string
,
object
>
filedsCarrier
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Carrier_Extend
.
Logo
),
CarrierModel
.
Logo
},
...
...
@@ -649,7 +657,8 @@ namespace Mall.Module.TradePavilion
{
nameof
(
RB_Carrier_Extend
.
EndBuiltUpArea
),
CarrierModel
.
EndBuiltUpArea
},
{
nameof
(
RB_Carrier_Extend
.
FirstShopNum
),
CarrierModel
.
FirstShopNum
},
{
nameof
(
RB_Carrier_Extend
.
StartingInfo
),
CarrierModel
.
StartingInfo
},
{
nameof
(
RB_Carrier_Extend
.
FirstStoreTest
),
FirstStoreTest
}
{
nameof
(
RB_Carrier_Extend
.
FirstStoreTest
),
FirstStoreTest
},
{
nameof
(
RB_Carrier_Extend
.
OpeningStatus
),
OpeningStatus
}
};
flag
=
carrierRepository
.
Update
(
filedsCarrier
,
new
WhereHelper
(
nameof
(
RB_Carrier_Extend
.
ID
),
carrmodel
.
ID
),
trans
);
if
(
flag
)
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
87be254f
...
...
@@ -270,10 +270,43 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
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
(!
query
.
ShopNum
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入店铺数量"
);
}
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Logo
))
{
return
ApiResult
.
Failed
(
"请上传Logo"
);
}
if
(
query
.
BannerList
==
null
||
!
query
.
BannerList
.
Any
())
{
return
ApiResult
.
Failed
(
"请上传介绍图"
);
}
if
(!
query
.
OpenTime
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请输入开业时间"
);
}
if
(!
query
.
ProjectType
.
HasValue
)
{
return
ApiResult
.
Failed
(
"请选择项目类型"
);
}
if
(
query
.
BannerList
!=
null
&&
query
.
BannerList
.
Any
())
{
query
.
Banner
=
JsonConvert
.
SerializeObject
(
query
.
BannerList
);
...
...
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