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
7296dd4b
Commit
7296dd4b
authored
Sep 03, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
753f345e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
63 deletions
+64
-63
FirstShopListModule.cs
Mall.Module.TradePavilion/FirstShopListModule.cs
+1
-2
EducationController.cs
Mall.WebApi/Controllers/Education/EducationController.cs
+33
-27
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+30
-34
No files found.
Mall.Module.TradePavilion/FirstShopListModule.cs
View file @
7296dd4b
...
@@ -412,9 +412,8 @@ namespace Mall.Module.TradePavilion
...
@@ -412,9 +412,8 @@ namespace Mall.Module.TradePavilion
/// 取消报名
/// 取消报名
/// </summary>
/// </summary>
/// <param name="enrollId"></param>
/// <param name="enrollId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
/// <returns></returns>
public
string
CancelAppletFirstShopListInfo
(
int
enrollId
,
AppletUserInfo
userInfo
)
public
string
CancelAppletFirstShopListInfo
(
int
enrollId
)
{
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_FirstShop_ListEnroll_Extend
.
Status
),
1
},
{
nameof
(
RB_FirstShop_ListEnroll_Extend
.
Status
),
1
},
...
...
Mall.WebApi/Controllers/Education/EducationController.cs
View file @
7296dd4b
...
@@ -1029,10 +1029,11 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1029,10 +1029,11 @@ namespace Mall.WebApi.Controllers.Education
var
oldLogisticsModel
=
educationModule
.
GetDiscountCouponList
(
query
).
FirstOrDefault
();
var
oldLogisticsModel
=
educationModule
.
GetDiscountCouponList
(
query
).
FirstOrDefault
();
if
(
oldLogisticsModel
==
null
)
if
(
oldLogisticsModel
==
null
)
{
{
oldLogisticsModel
=
new
RB_Education_Coupon_Extend
();
oldLogisticsModel
=
new
RB_Education_Coupon_Extend
oldLogisticsModel
.
IndateType
=
Common
.
Enum
.
MarketingCenter
.
IndateTypeEnum
.
DayHorizon
;
{
IndateType
=
Common
.
Enum
.
MarketingCenter
.
IndateTypeEnum
.
DayHorizon
};
}
}
return
ApiResult
.
Success
(
""
,
oldLogisticsModel
);
return
ApiResult
.
Success
(
""
,
oldLogisticsModel
);
}
}
...
@@ -1207,19 +1208,21 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1207,19 +1208,21 @@ namespace Mall.WebApi.Controllers.Education
{
{
if
(!
string
.
IsNullOrWhiteSpace
(
item
))
if
(!
string
.
IsNullOrWhiteSpace
(
item
))
{
{
RB_Education_MemberCoupon_Extend
memberCoupon
=
new
RB_Education_MemberCoupon_Extend
();
RB_Education_MemberCoupon_Extend
memberCoupon
=
new
RB_Education_MemberCoupon_Extend
memberCoupon
.
Id
=
0
;
{
memberCoupon
.
UserId
=
Convert
.
ToInt32
(
item
);
Id
=
0
,
memberCoupon
.
Description
=
oldLogisticsModel
.
Describe
;
UserId
=
Convert
.
ToInt32
(
item
),
memberCoupon
.
CreateDate
=
System
.
DateTime
.
Now
;
Description
=
oldLogisticsModel
.
Describe
,
memberCoupon
.
TenantId
=
oldLogisticsModel
.
TenantId
;
CreateDate
=
System
.
DateTime
.
Now
,
memberCoupon
.
MallBaseId
=
oldLogisticsModel
.
MallBaseId
;
TenantId
=
oldLogisticsModel
.
TenantId
,
memberCoupon
.
Remarks
=
""
;
MallBaseId
=
oldLogisticsModel
.
MallBaseId
,
memberCoupon
.
CouponId
=
oldLogisticsModel
.
ID
;
Remarks
=
""
,
memberCoupon
.
Name
=
oldLogisticsModel
.
Name
;
CouponId
=
oldLogisticsModel
.
ID
,
memberCoupon
.
UseType
=
oldLogisticsModel
.
UseType
;
Name
=
oldLogisticsModel
.
Name
,
memberCoupon
.
HeXiao
=
oldLogisticsModel
.
HeXiao
;
UseType
=
oldLogisticsModel
.
UseType
,
memberCoupon
.
UseHeXiao
=
0
;
HeXiao
=
oldLogisticsModel
.
HeXiao
,
UseHeXiao
=
0
};
if
(
oldLogisticsModel
.
IndateType
==
Common
.
Enum
.
MarketingCenter
.
IndateTypeEnum
.
DayHorizon
)
if
(
oldLogisticsModel
.
IndateType
==
Common
.
Enum
.
MarketingCenter
.
IndateTypeEnum
.
DayHorizon
)
{
{
memberCoupon
.
StartDate
=
System
.
DateTime
.
Now
;
memberCoupon
.
StartDate
=
System
.
DateTime
.
Now
;
...
@@ -2346,7 +2349,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2346,7 +2349,7 @@ namespace Mall.WebApi.Controllers.Education
x
.
RefundPrice
,
x
.
RefundPrice
,
x
.
IsCommission
,
x
.
IsCommission
,
x
.
CommissionPrice
,
x
.
CommissionPrice
,
PlatformTax
=
x
.
PlatformTax
,
//(x.PaymentWay == OrderPaymentTypeEnum.OnlinePayment ? ((x.Status == 0 && x.OrderStatus == 1) ? (Math.Round((Convert.ToDecimal(Config.SettlementRate) / 100) * (Convert.ToDecimal(x.Money)), 2, MidpointRounding.AwayFromZero)) : 0) : x.PlatformTax),
x
.
PlatformTax
,
//(x.PaymentWay == OrderPaymentTypeEnum.OnlinePayment ? ((x.Status == 0 && x.OrderStatus == 1) ? (Math.Round((Convert.ToDecimal(Config.SettlementRate) / 100) * (Convert.ToDecimal(x.Money)), 2, MidpointRounding.AwayFromZero)) : 0) : x.PlatformTax),
DueInMoney
=
x
.
Money
-
x
.
Income
-
x
.
PlatformTax
-
x
.
RefundPrice
,
DueInMoney
=
x
.
Money
-
x
.
Income
-
x
.
PlatformTax
-
x
.
RefundPrice
,
PaymentWay
=
x
.
PaymentWay
.
HasValue
?
(
int
)
x
.
PaymentWay
:
0
,
PaymentWay
=
x
.
PaymentWay
.
HasValue
?
(
int
)
x
.
PaymentWay
:
0
,
PaymentWayName
=
(
x
.
Money
==
0
&&
x
.
TotalPoint
==
0
)
?
"免费"
:
(
x
.
PaymentWay
.
HasValue
?
EnumHelper
.
GetEnumName
(
x
.
PaymentWay
)
:
""
),
PaymentWayName
=
(
x
.
Money
==
0
&&
x
.
TotalPoint
==
0
)
?
"免费"
:
(
x
.
PaymentWay
.
HasValue
?
EnumHelper
.
GetEnumName
(
x
.
PaymentWay
)
:
""
),
...
@@ -2406,7 +2409,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2406,7 +2409,7 @@ namespace Mall.WebApi.Controllers.Education
x
.
Money
,
x
.
Money
,
x
.
Income
,
x
.
Income
,
x
.
RefundPrice
,
x
.
RefundPrice
,
PlatformTax
=
x
.
PlatformTax
,
//(x.PaymentWay == OrderPaymentTypeEnum.OnlinePayment ? ((x.Status == 0 && x.OrderStatus == 1) ? (Math.Round((Convert.ToDecimal(Config.SettlementRate) / 100) * (Convert.ToDecimal(x.Money)), 2, MidpointRounding.AwayFromZero)) : 0) : x.PlatformTax),
x
.
PlatformTax
,
//(x.PaymentWay == OrderPaymentTypeEnum.OnlinePayment ? ((x.Status == 0 && x.OrderStatus == 1) ? (Math.Round((Convert.ToDecimal(Config.SettlementRate) / 100) * (Convert.ToDecimal(x.Money)), 2, MidpointRounding.AwayFromZero)) : 0) : x.PlatformTax),
x
.
ApplyForCancelStatus
,
x
.
ApplyForCancelStatus
,
x
.
CancelRemark
,
x
.
CancelRemark
,
x
.
ActivityName
,
x
.
ActivityName
,
...
@@ -3515,11 +3518,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -3515,11 +3518,12 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
();
}
}
Rb_Education_School_Extend
demodel
=
new
Rb_Education_School_Extend
();
Rb_Education_School_Extend
demodel
=
new
Rb_Education_School_Extend
demodel
.
TenantId
=
UserInfo
.
TenantId
;
{
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
TenantId
=
UserInfo
.
TenantId
,
demodel
.
Id
=
Id
;
MallBaseId
=
parms
.
MallBaseId
,
//demodel.TeacherStatus = -1;
Id
=
Id
};
var
model
=
educationModule
.
GetEducationSchoolList
(
demodel
);
var
model
=
educationModule
.
GetEducationSchoolList
(
demodel
);
var
result
=
model
.
Select
(
x
=>
new
var
result
=
model
.
Select
(
x
=>
new
{
{
...
@@ -3591,10 +3595,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -3591,10 +3595,12 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
Failed
(
"请传递参数"
);
return
ApiResult
.
Failed
(
"请传递参数"
);
}
}
Rb_Education_School_Extend
demodel
=
new
Rb_Education_School_Extend
();
Rb_Education_School_Extend
demodel
=
new
Rb_Education_School_Extend
demodel
.
TenantId
=
UserInfo
.
TenantId
;
{
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
TenantId
=
UserInfo
.
TenantId
,
demodel
.
Ids
=
idInfo
;
MallBaseId
=
parms
.
MallBaseId
,
Ids
=
idInfo
};
var
list
=
educationModule
.
GetEducationSchoolList
(
demodel
);
var
list
=
educationModule
.
GetEducationSchoolList
(
demodel
);
if
(
list
.
Any
(
x
=>
x
.
UserCount
>
0
))
if
(
list
.
Any
(
x
=>
x
.
UserCount
>
0
))
{
{
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
7296dd4b
...
@@ -26,11 +26,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -26,11 +26,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
EnableCors
(
"AllowCors"
)]
[
EnableCors
(
"AllowCors"
)]
public
class
AppletTradeController
:
BaseController
public
class
AppletTradeController
:
BaseController
{
{
/// <summary>
/// 联系人处理类对象
/// </summary>
private
readonly
ContractModule
module
=
new
ContractModule
();
/// <summary>
/// <summary>
/// 投资采购处理类对象
/// 投资采购处理类对象
/// </summary>
/// </summary>
...
@@ -1073,15 +1068,17 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1073,15 +1068,17 @@ namespace Mall.WebApi.Controllers.TradePavilion
foreach
(
var
item
in
firstShopModel
.
FirstShopLinkManList
)
foreach
(
var
item
in
firstShopModel
.
FirstShopLinkManList
)
{
{
RB_Commerce_Consult_Extend
demodel
=
new
RB_Commerce_Consult_Extend
();
RB_Commerce_Consult_Extend
demodel
=
new
RB_Commerce_Consult_Extend
demodel
.
ActivityName
=
model
.
ActivityName
;
{
demodel
.
LinkMan
=
item
.
LinkMan
;
ActivityName
=
model
.
ActivityName
,
demodel
.
LinkTel
=
item
.
LinkTel
;
LinkMan
=
item
.
LinkMan
,
demodel
.
Post
=
item
.
Post
;
LinkTel
=
item
.
LinkTel
,
demodel
.
CompanyName
=
firstShopModel
.
CompanyName
;
Post
=
item
.
Post
,
demodel
.
ActivityIds
=
firstShopModel
.
ActivityIds
;
CompanyName
=
firstShopModel
.
CompanyName
,
demodel
.
CountryInfo
=
item
.
CountryInfo
;
ActivityIds
=
firstShopModel
.
ActivityIds
,
demodel
.
Nature
=
firstShopModel
.
Nature
;
CountryInfo
=
item
.
CountryInfo
,
Nature
=
firstShopModel
.
Nature
};
Random
R
=
new
Random
();
Random
R
=
new
Random
();
int
Rstr
=
R
.
Next
(
111
,
999
);
int
Rstr
=
R
.
Next
(
111
,
999
);
demodel
.
ActivityId
=
model
.
Id
;
demodel
.
ActivityId
=
model
.
Id
;
...
@@ -1877,16 +1874,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1877,16 +1874,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
public
ApiResult
GetBrandClassList
()
public
ApiResult
GetBrandClassList
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_BrandClass_Extend
();
var
query
=
new
RB_BrandClass_Extend
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
{
query
.
TenantId
=
RequestParm
.
TenantId
;
MallBaseId
=
RequestParm
.
MallBaseId
,
TenantId
=
RequestParm
.
TenantId
};
var
list
=
carrierModule
.
GetBrandClassList
(
query
);
var
list
=
carrierModule
.
GetBrandClassList
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
return
ApiResult
.
Success
(
data
:
list
);
}
}
#
region
奖章
#
region
奖章
[
HttpPost
]
[
HttpPost
]
[
AllowAnonymous
]
[
AllowAnonymous
]
...
@@ -1925,18 +1921,19 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1925,18 +1921,19 @@ namespace Mall.WebApi.Controllers.TradePavilion
public
ApiResult
GetMyBrandList
()
public
ApiResult
GetMyBrandList
()
{
{
var
userInfo
=
base
.
AppletUserInfo
;
var
userInfo
=
base
.
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Brand_Extend
var
query
=
new
RB_Brand_Extend
();
{
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
MallBaseId
=
userInfo
.
MallBaseId
,
query
.
TenantId
=
userInfo
.
TenantId
;
TenantId
=
userInfo
.
TenantId
,
query
.
RanQi
=
-
1
;
RanQi
=
-
1
,
query
.
KongTiao
=
-
1
;
KongTiao
=
-
1
,
query
.
XinFeng
=
-
1
;
XinFeng
=
-
1
,
query
.
Plumbing
=
-
1
;
Plumbing
=
-
1
,
query
.
Caliber
=
-
1
;
Caliber
=
-
1
,
query
.
PaiYan
=
-
1
;
PaiYan
=
-
1
,
query
.
Sewage
=
-
1
;
Sewage
=
-
1
,
query
.
UserId
=
userInfo
.
UserId
;
UserId
=
userInfo
.
UserId
};
var
extList
=
carrierModule
.
GetBrandListByWhere
(
query
);
var
extList
=
carrierModule
.
GetBrandListByWhere
(
query
);
return
ApiResult
.
Success
(
data
:
extList
);
return
ApiResult
.
Success
(
data
:
extList
);
}
}
...
@@ -2385,8 +2382,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -2385,8 +2382,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
();
}
}
string
msg
=
firstShopListModule
.
CancelAppletFirstShopListInfo
(
EnrollId
);
string
msg
=
firstShopListModule
.
CancelAppletFirstShopListInfo
(
EnrollId
,
userInfo
);
if
(
msg
==
""
)
if
(
msg
==
""
)
{
{
return
ApiResult
.
Success
();
return
ApiResult
.
Success
();
...
...
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