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
aa490315
Commit
aa490315
authored
Sep 03, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
d228a6d9
2071ee10
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
206 additions
and
260 deletions
+206
-260
ActivityModule.cs
Mall.Module.Education/ActivityModule.cs
+32
-32
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+31
-27
CustomFormModule.cs
Mall.Module.TradePavilion/CustomFormModule.cs
+1
-1
FirstShopListModule.cs
Mall.Module.TradePavilion/FirstShopListModule.cs
+5
-20
AppletEducationController.cs
...WebApi/Controllers/Education/AppletEducationController.cs
+36
-43
EducationController.cs
Mall.WebApi/Controllers/Education/EducationController.cs
+37
-36
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+2
-10
MiaiController.cs
Mall.WebApi/Controllers/Miai/MiaiController.cs
+9
-8
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+2
-5
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+32
-48
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+18
-29
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+1
-1
No files found.
Mall.Module.Education/ActivityModule.cs
View file @
aa490315
...
@@ -334,32 +334,31 @@ namespace Mall.Module.Education
...
@@ -334,32 +334,31 @@ namespace Mall.Module.Education
if
(
model
.
Id
>
0
)
if
(
model
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Education_Activity_Extend
.
ActivityName
),
model
.
ActivityName
},
{
nameof
(
RB_Education_Activity_Extend
.
ActivityName
),
model
.
ActivityName
},
{
nameof
(
RB_Education_Activity_Extend
.
StartTime
),
model
.
StartTime
},
{
nameof
(
RB_Education_Activity_Extend
.
StartTime
),
model
.
StartTime
},
{
nameof
(
RB_Education_Activity_Extend
.
EndTime
),
model
.
EndTime
},
{
nameof
(
RB_Education_Activity_Extend
.
EndTime
),
model
.
EndTime
},
{
nameof
(
RB_Education_Activity_Extend
.
CoverImg
),
model
.
CoverImg
},
{
nameof
(
RB_Education_Activity_Extend
.
CoverImg
),
model
.
CoverImg
},
{
nameof
(
RB_Education_Activity_Extend
.
ActivityType
),
model
.
ActivityType
},
{
nameof
(
RB_Education_Activity_Extend
.
ActivityType
),
model
.
ActivityType
},
{
nameof
(
RB_Education_Activity_Extend
.
ActivityInfo
),
model
.
ActivityInfo
},
{
nameof
(
RB_Education_Activity_Extend
.
ActivityInfo
),
model
.
ActivityInfo
},
{
nameof
(
RB_Education_Activity_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Education_Activity_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Education_Activity_Extend
.
UpdateDate
),
model
.
UpdateDate
},
{
nameof
(
RB_Education_Activity_Extend
.
UpdateDate
),
model
.
UpdateDate
},
{
nameof
(
RB_Education_Activity_Extend
.
SignStartTime
),
model
.
SignStartTime
},
{
nameof
(
RB_Education_Activity_Extend
.
SignStartTime
),
model
.
SignStartTime
},
{
nameof
(
RB_Education_Activity_Extend
.
SignEndTime
),
model
.
SignEndTime
},
{
nameof
(
RB_Education_Activity_Extend
.
SignEndTime
),
model
.
SignEndTime
},
{
nameof
(
RB_Education_Activity_Extend
.
IsFree
),
model
.
IsFree
},
{
nameof
(
RB_Education_Activity_Extend
.
IsFree
),
model
.
IsFree
},
{
nameof
(
RB_Education_Activity_Extend
.
Price
),
model
.
Price
},
{
nameof
(
RB_Education_Activity_Extend
.
Price
),
model
.
Price
},
{
nameof
(
RB_Education_Activity_Extend
.
IsCancelConfirm
),
model
.
IsCancelConfirm
},
{
nameof
(
RB_Education_Activity_Extend
.
IsCancelConfirm
),
model
.
IsCancelConfirm
},
{
nameof
(
RB_Education_Activity_Extend
.
PointNum
),
model
.
PointNum
},
{
nameof
(
RB_Education_Activity_Extend
.
PointNum
),
model
.
PointNum
},
{
nameof
(
RB_Education_Activity_Extend
.
AgeLimit
),
model
.
AgeLimit
},
{
nameof
(
RB_Education_Activity_Extend
.
AgeLimit
),
model
.
AgeLimit
},
{
nameof
(
RB_Education_Activity_Extend
.
StartAge
),
model
.
StartAge
},
{
nameof
(
RB_Education_Activity_Extend
.
StartAge
),
model
.
StartAge
},
{
nameof
(
RB_Education_Activity_Extend
.
EndAge
),
model
.
EndAge
},
{
nameof
(
RB_Education_Activity_Extend
.
EndAge
),
model
.
EndAge
},
{
nameof
(
RB_Education_Activity_Extend
.
WoManNum
),
model
.
WoManNum
},
{
nameof
(
RB_Education_Activity_Extend
.
WoManNum
),
model
.
WoManNum
},
{
nameof
(
RB_Education_Activity_Extend
.
ManNum
),
model
.
ManNum
},
{
nameof
(
RB_Education_Activity_Extend
.
ManNum
),
model
.
ManNum
},
{
nameof
(
RB_Education_Activity_Extend
.
Distinguish
),
model
.
Distinguish
},
{
nameof
(
RB_Education_Activity_Extend
.
Distinguish
),
model
.
Distinguish
},
{
nameof
(
RB_Education_Activity_Extend
.
LonLat
),
model
.
LonLat
},
{
nameof
(
RB_Education_Activity_Extend
.
LonLat
),
model
.
LonLat
},
{
nameof
(
RB_Education_Activity_Extend
.
LocationName
),
model
.
LocationName
},
{
nameof
(
RB_Education_Activity_Extend
.
LocationName
),
model
.
LocationName
},
{
nameof
(
RB_Education_Activity_Extend
.
LnsideLimit
),
model
.
LnsideLimit
},
{
nameof
(
RB_Education_Activity_Extend
.
LnsideLimit
),
model
.
LnsideLimit
},
};
};
flag
=
education_ActivityRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Education_Activity_Extend
.
Id
),
model
.
Id
),
trans
);
flag
=
education_ActivityRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Education_Activity_Extend
.
Id
),
model
.
Id
),
trans
);
if
(
flag
)
if
(
flag
)
{
{
...
@@ -412,6 +411,7 @@ namespace Mall.Module.Education
...
@@ -412,6 +411,7 @@ namespace Mall.Module.Education
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
string
.
Format
(
"SetActivityModule_Msg:{0}"
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
model
)));
education_ActivityRepository
.
DBSession
.
Rollback
(
"SetActivityModule"
);
education_ActivityRepository
.
DBSession
.
Rollback
(
"SetActivityModule"
);
return
false
;
return
false
;
}
}
...
@@ -469,7 +469,7 @@ namespace Mall.Module.Education
...
@@ -469,7 +469,7 @@ namespace Mall.Module.Education
education_ActivityTitleRepository
.
DBSession
.
Commit
();
education_ActivityTitleRepository
.
DBSession
.
Commit
();
return
flag
;
return
flag
;
}
}
catch
(
Exception
ex
)
catch
{
{
education_ActivityTitleRepository
.
DBSession
.
Rollback
(
"SetActivityPlanModule"
);
education_ActivityTitleRepository
.
DBSession
.
Rollback
(
"SetActivityPlanModule"
);
return
false
;
return
false
;
...
@@ -585,7 +585,7 @@ namespace Mall.Module.Education
...
@@ -585,7 +585,7 @@ namespace Mall.Module.Education
/// <returns></returns>
/// <returns></returns>
public
bool
SetEduSellBaseInfo
(
RB_Education_EduSell_Extend
model
)
public
bool
SetEduSellBaseInfo
(
RB_Education_EduSell_Extend
model
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
model
.
Id
==
0
)
if
(
model
.
Id
==
0
)
{
{
flag
=
education_EduSellRepository
.
Insert
(
model
)
>
0
;
flag
=
education_EduSellRepository
.
Insert
(
model
)
>
0
;
...
@@ -646,7 +646,7 @@ namespace Mall.Module.Education
...
@@ -646,7 +646,7 @@ namespace Mall.Module.Education
/// <returns></returns>
/// <returns></returns>
public
bool
SetEduBaseInfo
(
RB_Education_BaseInfo_Extend
model
)
public
bool
SetEduBaseInfo
(
RB_Education_BaseInfo_Extend
model
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
model
.
Id
==
0
)
if
(
model
.
Id
==
0
)
{
{
flag
=
education_BaseInfoRepository
.
Insert
(
model
)
>
0
;
flag
=
education_BaseInfoRepository
.
Insert
(
model
)
>
0
;
...
@@ -685,7 +685,7 @@ namespace Mall.Module.Education
...
@@ -685,7 +685,7 @@ namespace Mall.Module.Education
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateEduBaseInfoSex
(
RB_Education_BaseInfo_Extend
model
)
public
bool
UpdateEduBaseInfoSex
(
RB_Education_BaseInfo_Extend
model
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
model
.
Id
==
0
)
if
(
model
.
Id
==
0
)
{
{
flag
=
education_BaseInfoRepository
.
Insert
(
model
)
>
0
;
flag
=
education_BaseInfoRepository
.
Insert
(
model
)
>
0
;
...
@@ -1469,7 +1469,7 @@ namespace Mall.Module.Education
...
@@ -1469,7 +1469,7 @@ namespace Mall.Module.Education
ClientType
=
0
,
ClientType
=
0
,
ClientID
=
0
,
ClientID
=
0
,
IsPublic
=
8
,
IsPublic
=
8
,
CurrencyId
=
financeConfig
.
CurrencyId
,
financeConfig
.
CurrencyId
,
BType
=
1
,
BType
=
1
,
WBMoney
=
Convert
.
ToDecimal
(
model
.
Money
),
WBMoney
=
Convert
.
ToDecimal
(
model
.
Money
),
PayDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
),
PayDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
),
...
@@ -1685,7 +1685,7 @@ namespace Mall.Module.Education
...
@@ -1685,7 +1685,7 @@ namespace Mall.Module.Education
ClientType
=
0
,
ClientType
=
0
,
ClientID
=
0
,
ClientID
=
0
,
IsPublic
=
8
,
IsPublic
=
8
,
CurrencyId
=
financeConfig
.
CurrencyId
,
financeConfig
.
CurrencyId
,
BType
=
1
,
BType
=
1
,
WBMoney
=
Convert
.
ToDecimal
(
cmodel
.
Money
),
WBMoney
=
Convert
.
ToDecimal
(
cmodel
.
Money
),
PayDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
),
PayDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
),
...
...
Mall.Module.Product/ProductModule.cs
View file @
aa490315
...
@@ -134,7 +134,7 @@ namespace Mall.Module.Product
...
@@ -134,7 +134,7 @@ namespace Mall.Module.Product
/// <summary>
/// <summary>
/// 商户仓储层对象
/// 商户仓储层对象
/// </summary>
/// </summary>
private
Mall
.
Repository
.
User
.
RB_MiniProgramRepository
programRepository
=
new
Repository
.
User
.
RB_MiniProgramRepository
();
private
readonly
RB_MiniProgramRepository
programRepository
=
new
RB_MiniProgramRepository
();
/// <summary>
/// <summary>
/// 商品收藏
/// 商品收藏
/// </summary>
/// </summary>
...
@@ -178,16 +178,18 @@ namespace Mall.Module.Product
...
@@ -178,16 +178,18 @@ namespace Mall.Module.Product
/// </summary>
/// </summary>
private
readonly
RB_Distributor_FXCommissionRepository
distributor_FXCommissionRepository
=
new
RB_Distributor_FXCommissionRepository
();
private
readonly
RB_Distributor_FXCommissionRepository
distributor_FXCommissionRepository
=
new
RB_Distributor_FXCommissionRepository
();
private
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
private
readonly
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
/// <summary>
/// <summary>
/// 微店
/// 微店
/// </summary>
/// </summary>
private
RB_SmallShops_InfoRepository
smallShops_InfoRepository
=
new
RB_SmallShops_InfoRepository
();
private
readonly
RB_SmallShops_InfoRepository
smallShops_InfoRepository
=
new
RB_SmallShops_InfoRepository
();
/// <summary>
/// <summary>
/// 微店商品价格
/// 微店商品价格
/// </summary>
/// </summary>
private
RB_SmallShops_PriceRepository
smallShops_PriceRepository
=
new
RB_SmallShops_PriceRepository
();
private
readonly
RB_SmallShops_PriceRepository
smallShops_PriceRepository
=
new
RB_SmallShops_PriceRepository
();
/// <summary>
/// <summary>
/// 课程
/// 课程
/// </summary>
/// </summary>
...
@@ -1141,10 +1143,12 @@ namespace Mall.Module.Product
...
@@ -1141,10 +1143,12 @@ namespace Mall.Module.Product
{
{
string
priceIds
=
string
.
Join
(
","
,
priceList
.
Select
(
x
=>
x
.
ID
));
string
priceIds
=
string
.
Join
(
","
,
priceList
.
Select
(
x
=>
x
.
ID
));
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
List
<
int
>
disList
=
new
List
<
int
>();
List
<
int
>
disList
=
new
List
<
int
>
disList
.
Add
(
samodel
.
Province
??
0
);
{
disList
.
Add
(
samodel
.
City
??
0
);
samodel
.
Province
??
0
,
disList
.
Add
(
samodel
.
District
??
0
);
samodel
.
City
??
0
,
samodel
.
District
??
0
};
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
if
(
regionModel
!=
null
)
if
(
regionModel
!=
null
)
{
{
...
@@ -1848,10 +1852,12 @@ namespace Mall.Module.Product
...
@@ -1848,10 +1852,12 @@ namespace Mall.Module.Product
{
{
string
priceIds
=
string
.
Join
(
","
,
priceList1
.
Select
(
x
=>
x
.
ID
));
string
priceIds
=
string
.
Join
(
","
,
priceList1
.
Select
(
x
=>
x
.
ID
));
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
List
<
int
>
disList
=
new
List
<
int
>();
List
<
int
>
disList
=
new
List
<
int
>
disList
.
Add
(
samodel
.
Province
??
0
);
{
disList
.
Add
(
samodel
.
City
??
0
);
samodel
.
Province
??
0
,
disList
.
Add
(
samodel
.
District
??
0
);
samodel
.
City
??
0
,
samodel
.
District
??
0
};
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
if
(
regionModel
!=
null
)
if
(
regionModel
!=
null
)
{
{
...
@@ -2397,10 +2403,7 @@ namespace Mall.Module.Product
...
@@ -2397,10 +2403,7 @@ namespace Mall.Module.Product
#
endregion
#
endregion
#
region
订单信息
#
region
订单信息
GetGoodsOrderPeopleInfo
(
out
decimal
payment_amount
,
out
int
payment_num
,
out
int
payment_order
,
out
int
payment_people
,
goodsId
);
int
payment_people
=
0
,
payment_num
=
0
,
payment_order
=
0
;
//订单用户 商品数量 订单数量
decimal
payment_amount
=
0
;
//订单总金额
GetGoodsOrderPeopleInfo
(
out
payment_amount
,
out
payment_num
,
out
payment_order
,
out
payment_people
,
goodsId
);
#
endregion
#
endregion
#
region
返回参数
#
region
返回参数
...
@@ -2613,7 +2616,7 @@ namespace Mall.Module.Product
...
@@ -2613,7 +2616,7 @@ namespace Mall.Module.Product
goods_country
=
model
.
GoodsCountry
,
goods_country
=
model
.
GoodsCountry
,
fatcode
=
model
.
FatCode
,
fatcode
=
model
.
FatCode
,
goodsurl
=
model
.
GoodsUrl
,
goodsurl
=
model
.
GoodsUrl
,
goodsLogo
=
model
.
goodsLogo
,
model
.
goodsLogo
,
goodsPreferentialList
=
goodsPreferentialList
?.
Select
(
x
=>
new
goodsPreferentialList
=
goodsPreferentialList
?.
Select
(
x
=>
new
{
{
x
.
Id
,
x
.
Id
,
...
@@ -3025,10 +3028,12 @@ namespace Mall.Module.Product
...
@@ -3025,10 +3028,12 @@ namespace Mall.Module.Product
{
{
string
priceIds
=
string
.
Join
(
","
,
priceList1
.
Select
(
x
=>
x
.
ID
));
string
priceIds
=
string
.
Join
(
","
,
priceList1
.
Select
(
x
=>
x
.
ID
));
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
var
regionList
=
logistics_RulesRegionRepository
.
GetListRepository
(
new
Model
.
Extend
.
BaseSetUp
.
RB_Logistics_RulesRegion_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
PriceIds
=
priceIds
});
List
<
int
>
disList
=
new
List
<
int
>();
List
<
int
>
disList
=
new
List
<
int
>
disList
.
Add
(
samodel
.
Province
??
0
);
{
disList
.
Add
(
samodel
.
City
??
0
);
samodel
.
Province
??
0
,
disList
.
Add
(
samodel
.
District
??
0
);
samodel
.
City
??
0
,
samodel
.
District
??
0
};
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
var
regionModel
=
regionList
.
Where
(
x
=>
disList
.
Contains
(
x
.
RegionId
)).
FirstOrDefault
();
if
(
regionModel
!=
null
)
if
(
regionModel
!=
null
)
{
{
...
@@ -3535,10 +3540,7 @@ namespace Mall.Module.Product
...
@@ -3535,10 +3540,7 @@ namespace Mall.Module.Product
#
endregion
#
endregion
#
region
订单信息
#
region
订单信息
GetGoodsOrderPeopleInfo
(
out
decimal
payment_amount
,
out
int
payment_num
,
out
int
payment_order
,
out
int
payment_people
,
goodsId
);
int
payment_people
=
0
,
payment_num
=
0
,
payment_order
=
0
;
//订单用户 商品数量 订单数量
decimal
payment_amount
=
0
;
//订单总金额
GetGoodsOrderPeopleInfo
(
out
payment_amount
,
out
payment_num
,
out
payment_order
,
out
payment_people
,
goodsId
);
#
endregion
#
endregion
#
region
返回参数
#
region
返回参数
...
@@ -6843,8 +6845,10 @@ namespace Mall.Module.Product
...
@@ -6843,8 +6845,10 @@ namespace Mall.Module.Product
var
cmodel
=
product_CategoryRepository
.
GetEntity
(
demodel
.
CategoryIds
);
var
cmodel
=
product_CategoryRepository
.
GetEntity
(
demodel
.
CategoryIds
);
if
(
cmodel
!=
null
)
if
(
cmodel
!=
null
)
{
{
List
<
int
>
AllClist
=
new
List
<
int
>();
List
<
int
>
AllClist
=
new
List
<
int
>
AllClist
.
Add
(
cmodel
.
Id
);
{
cmodel
.
Id
};
var
clist
=
product_CategoryRepository
.
GetList
(
new
RB_Product_Category_Extend
()
{
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
,
RootId
=
cmodel
.
RootId
});
var
clist
=
product_CategoryRepository
.
GetList
(
new
RB_Product_Category_Extend
()
{
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
,
RootId
=
cmodel
.
RootId
});
var
OneList
=
clist
.
Where
(
x
=>
x
.
ParentId
==
cmodel
.
Id
).
ToList
();
var
OneList
=
clist
.
Where
(
x
=>
x
.
ParentId
==
cmodel
.
Id
).
ToList
();
foreach
(
var
item
in
OneList
)
foreach
(
var
item
in
OneList
)
...
...
Mall.Module.TradePavilion/CustomFormModule.cs
View file @
aa490315
...
@@ -95,7 +95,7 @@ namespace Mall.Module.TradePavilion
...
@@ -95,7 +95,7 @@ namespace Mall.Module.TradePavilion
[
TransactionCallHandler
]
[
TransactionCallHandler
]
public
virtual
bool
SetCustomFormModule
(
RB_Custom_Form_Extend
model
)
public
virtual
bool
SetCustomFormModule
(
RB_Custom_Form_Extend
model
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
model
.
Id
>
0
)
if
(
model
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.TradePavilion/FirstShopListModule.cs
View file @
aa490315
...
@@ -425,9 +425,8 @@ namespace Mall.Module.TradePavilion
...
@@ -425,9 +425,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
},
...
@@ -986,9 +985,6 @@ namespace Mall.Module.TradePavilion
...
@@ -986,9 +985,6 @@ namespace Mall.Module.TradePavilion
var
listModel
=
firstShop_ListRepository
.
GetEntity
(
enrollModel
.
ListId
);
var
listModel
=
firstShop_ListRepository
.
GetEntity
(
enrollModel
.
ListId
);
if
(
listModel
==
null
)
{
errorMsg
=
"榜单不存在"
;
return
""
;
}
if
(
listModel
==
null
)
{
errorMsg
=
"榜单不存在"
;
return
""
;
}
//创建一个临时文件夹
string
tempFoldr
=
""
;
#
region
解析表单内容
#
region
解析表单内容
if
(
string
.
IsNullOrEmpty
(
enrollModel
.
Content
))
if
(
string
.
IsNullOrEmpty
(
enrollModel
.
Content
))
...
@@ -1090,7 +1086,7 @@ namespace Mall.Module.TradePavilion
...
@@ -1090,7 +1086,7 @@ namespace Mall.Module.TradePavilion
return
""
;
return
""
;
}
}
List
<
FormDataItem
>
elist
=
JsonHelper
.
DeserializeObject
<
List
<
FormDataItem
>>(
item
.
Content
);
List
<
FormDataItem
>
elist
=
JsonHelper
.
DeserializeObject
<
List
<
FormDataItem
>>(
item
.
Content
);
elist
=
elist
.
Where
(
x
=>
x
.
CompKey
==
"ImageUploadComp"
||
x
.
CompKey
==
"VideoUploadComp"
||
x
.
CompKey
==
"CommonUploadComp"
).
ToList
();
elist
=
elist
.
Where
(
x
=>
x
.
CompKey
==
"ImageUploadComp"
||
x
.
CompKey
==
"VideoUploadComp"
||
x
.
CompKey
==
"CommonUploadComp"
).
ToList
();
var
templistnowPath
=
Path
.
Combine
(
templistPath
+
enrollModel
.
ListName
+
"\\"
);
//路径
var
templistnowPath
=
Path
.
Combine
(
templistPath
+
enrollModel
.
ListName
+
"\\"
);
//路径
if
(!
Directory
.
Exists
(
templistnowPath
))
if
(!
Directory
.
Exists
(
templistnowPath
))
{
{
...
@@ -1119,7 +1115,7 @@ namespace Mall.Module.TradePavilion
...
@@ -1119,7 +1115,7 @@ namespace Mall.Module.TradePavilion
bitmap
.
Save
(
templistnowPath
+
Path
.
GetFileName
(
qitem
),
System
.
Drawing
.
Imaging
.
ImageFormat
.
Jpeg
);
bitmap
.
Save
(
templistnowPath
+
Path
.
GetFileName
(
qitem
),
System
.
Drawing
.
Imaging
.
ImageFormat
.
Jpeg
);
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
}
}
...
@@ -1158,7 +1154,7 @@ namespace Mall.Module.TradePavilion
...
@@ -1158,7 +1154,7 @@ namespace Mall.Module.TradePavilion
fs
.
Close
();
fs
.
Close
();
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
}
}
...
@@ -1192,7 +1188,6 @@ namespace Mall.Module.TradePavilion
...
@@ -1192,7 +1188,6 @@ namespace Mall.Module.TradePavilion
item
.
Delete
(
true
);
item
.
Delete
(
true
);
}
}
}
}
}
}
catch
catch
{
{
...
@@ -1204,9 +1199,6 @@ namespace Mall.Module.TradePavilion
...
@@ -1204,9 +1199,6 @@ namespace Mall.Module.TradePavilion
{
{
return
""
;
return
""
;
}
}
}
}
...
@@ -1225,7 +1217,6 @@ namespace Mall.Module.TradePavilion
...
@@ -1225,7 +1217,6 @@ namespace Mall.Module.TradePavilion
{
{
string
tempPath
=
Path
.
Combine
(
rootBook
+
Url
.
TrimStart
(
'/'
));
string
tempPath
=
Path
.
Combine
(
rootBook
+
Url
.
TrimStart
(
'/'
));
#
region
解析表单内容
#
region
解析表单内容
string
timeStr
=
Url
.
TrimStart
(
'/'
).
Split
(
"/"
)[
4
];
string
timeStr
=
Url
.
TrimStart
(
'/'
).
Split
(
"/"
)[
4
];
if
(!
File
.
Exists
(
tempPath
))
if
(!
File
.
Exists
(
tempPath
))
{
{
...
@@ -1233,7 +1224,6 @@ namespace Mall.Module.TradePavilion
...
@@ -1233,7 +1224,6 @@ namespace Mall.Module.TradePavilion
}
}
else
else
{
{
DirectoryInfo
dir
=
new
DirectoryInfo
(
Path
.
Combine
(
rootBook
+
"upfile\\temporary\\firstshopenrollzip\\"
+
"zip\\"
));
DirectoryInfo
dir
=
new
DirectoryInfo
(
Path
.
Combine
(
rootBook
+
"upfile\\temporary\\firstshopenrollzip\\"
+
"zip\\"
));
DirectoryInfo
[]
dirArr
=
dir
.
GetDirectories
();
DirectoryInfo
[]
dirArr
=
dir
.
GetDirectories
();
foreach
(
DirectoryInfo
item
in
dirArr
)
foreach
(
DirectoryInfo
item
in
dirArr
)
...
@@ -1248,18 +1238,13 @@ namespace Mall.Module.TradePavilion
...
@@ -1248,18 +1238,13 @@ namespace Mall.Module.TradePavilion
}
}
}
}
return
true
;
return
true
;
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
return
false
;
return
false
;
}
}
#
endregion
#
endregion
}
}
}
}
}
}
Mall.WebApi/Controllers/Education/AppletEducationController.cs
View file @
aa490315
...
@@ -2012,7 +2012,6 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2012,7 +2012,6 @@ namespace Mall.WebApi.Controllers.Education
decimal
dPaid
=
Convert
.
ToDecimal
(
dic
[
"dPrice"
])
/
100
;
decimal
dPaid
=
Convert
.
ToDecimal
(
dic
[
"dPrice"
])
/
100
;
string
refundid
=
dic
[
"refundid"
];
//微信退款单号
string
refundid
=
dic
[
"refundid"
];
//微信退款单号
string
outRefundNo
=
dic
[
"outRefundNo"
];
//商户退款单号
string
outRefundNo
=
dic
[
"outRefundNo"
];
//商户退款单号
flag
=
activityModule
.
CancelCommerceConsultModule
(
ActivityId
,
CancelRemark
,
out
int
IsCancelConfirm
,
userInfo
.
UserId
,
refundid
,
model
,
dPaid
);
flag
=
activityModule
.
CancelCommerceConsultModule
(
ActivityId
,
CancelRemark
,
out
int
IsCancelConfirm
,
userInfo
.
UserId
,
refundid
,
model
,
dPaid
);
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
}
}
...
@@ -2027,14 +2026,8 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2027,14 +2026,8 @@ namespace Mall.WebApi.Controllers.Education
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
}
}
return
ApiResult
.
Failed
(
"报名取消失败,请联系客服"
);
return
ApiResult
.
Failed
(
"报名取消失败,请联系客服"
);
}
}
/// <summary>
/// <summary>
/// 获取活动报名列表
/// 获取活动报名列表
/// </summary>
/// </summary>
...
@@ -2128,13 +2121,15 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2128,13 +2121,15 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
Failed
(
"订单已全部提成/暂无报入订单"
);
return
ApiResult
.
Failed
(
"订单已全部提成/暂无报入订单"
);
}
}
var
query
=
new
RB_Education_Consult_Extend
();
var
query
=
new
RB_Education_Consult_Extend
query
.
EnrollState
=
0
;
{
query
.
ActivityId
=
newList
.
FirstOrDefault
()?.
ActivityId
??
0
;
EnrollState
=
0
,
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
ActivityId
=
newList
.
FirstOrDefault
()?.
ActivityId
??
0
,
query
.
TenantId
=
userInfo
.
TenantId
;
MallBaseId
=
userInfo
.
MallBaseId
,
query
.
OrderStatus
=
1
;
TenantId
=
userInfo
.
TenantId
,
// query.IsCommission = 1;
OrderStatus
=
1
};
// query.IsCommission = 1;
var
list
=
new
List
<
RB_Education_Consult_Extend
>();
var
list
=
new
List
<
RB_Education_Consult_Extend
>();
if
(
query
.
ActivityId
>
0
)
if
(
query
.
ActivityId
>
0
)
{
{
...
@@ -2172,7 +2167,6 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2172,7 +2167,6 @@ namespace Mall.WebApi.Controllers.Education
public
ApiResult
SendCodeByStudentInfo
()
public
ApiResult
SendCodeByStudentInfo
()
{
{
var
req
=
RequestParm
;
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
jobj
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
JObject
jobj
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
string
stuTel
=
jobj
.
GetStringValue
(
"StuTel"
);
string
stuTel
=
jobj
.
GetStringValue
(
"StuTel"
);
var
model
=
activityModule
.
GetStudentList
(
new
RB_Student
()
var
model
=
activityModule
.
GetStudentList
(
new
RB_Student
()
...
@@ -2204,15 +2198,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2204,15 +2198,12 @@ namespace Mall.WebApi.Controllers.Education
UserReidsCache
.
AddUserSendCodeHistory
(
stuTel
);
UserReidsCache
.
AddUserSendCodeHistory
(
stuTel
);
return
ApiResult
.
Success
(
"验证码已发送,请注意查收"
,
data
:
null
);
return
ApiResult
.
Success
(
"验证码已发送,请注意查收"
,
data
:
null
);
}
}
catch
(
Exception
ex
)
catch
{
{
return
ApiResult
.
Failed
(
"发送短信失败,请稍后再试"
);
return
ApiResult
.
Failed
(
"发送短信失败,请稍后再试"
);
}
}
}
}
/// <summary>
/// <summary>
/// 判断输入的验证码是否正确
/// 判断输入的验证码是否正确
/// </summary>
/// </summary>
...
@@ -2265,14 +2256,16 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2265,14 +2256,16 @@ namespace Mall.WebApi.Controllers.Education
var
eduModel
=
activityModule
.
GetEducationBaseInfo
(
new
RB_Education_BaseInfo_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
var
eduModel
=
activityModule
.
GetEducationBaseInfo
(
new
RB_Education_BaseInfo_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
{
{
eduModel
=
new
RB_Education_BaseInfo_Extend
();
eduModel
=
new
RB_Education_BaseInfo_Extend
eduModel
.
Id
=
0
;
{
eduModel
.
TenantId
=
userInfo
.
TenantId
;
Id
=
0
,
eduModel
.
MallBaseId
=
userInfo
.
MallBaseId
;
TenantId
=
userInfo
.
TenantId
,
eduModel
.
Sex
=
0
;
MallBaseId
=
userInfo
.
MallBaseId
,
eduModel
.
CreateDate
=
System
.
DateTime
.
Now
;
Sex
=
0
,
eduModel
.
Status
=
0
;
CreateDate
=
System
.
DateTime
.
Now
,
eduModel
.
UserId
=
userInfo
.
UserId
;
Status
=
0
,
UserId
=
userInfo
.
UserId
};
}
}
eduModel
.
Birthday
=
model
.
StuBirth
.
HasValue
?
model
.
StuBirth
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
;
eduModel
.
Birthday
=
model
.
StuBirth
.
HasValue
?
model
.
StuBirth
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
;
eduModel
.
StudentId
=
model
.
StuId
;
eduModel
.
StudentId
=
model
.
StuId
;
...
@@ -2305,10 +2298,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2305,10 +2298,12 @@ namespace Mall.WebApi.Controllers.Education
public
ApiResult
GetEduSchool
()
public
ApiResult
GetEduSchool
()
{
{
var
userInfo
=
AppletUserInfo
;
var
userInfo
=
AppletUserInfo
;
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
=
userInfo
.
MallBaseId
;
TenantId
=
userInfo
.
TenantId
,
demodel
.
UserId
=
userInfo
.
UserId
;
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
};
var
list
=
educationModule
.
GetEducationSchoolList
(
demodel
);
var
list
=
educationModule
.
GetEducationSchoolList
(
demodel
);
return
ApiResult
.
Success
(
""
,
list
.
Select
(
x
=>
new
{
x
.
Id
,
x
.
CoverPhoto
,
x
.
ShoolName
}));
return
ApiResult
.
Success
(
""
,
list
.
Select
(
x
=>
new
{
x
.
Id
,
x
.
CoverPhoto
,
x
.
ShoolName
}));
}
}
...
@@ -2362,13 +2357,15 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2362,13 +2357,15 @@ namespace Mall.WebApi.Controllers.Education
// var eduModel = activityModule.GetEducationSellBaseInfo(new RB_Education_EduSell_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId, UserId = userInfo.UserId }).FirstOrDefault();
// var eduModel = activityModule.GetEducationSellBaseInfo(new RB_Education_EduSell_Extend { TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId, UserId = userInfo.UserId }).FirstOrDefault();
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
{
{
eduModel
=
new
RB_Education_EduSell_Extend
();
eduModel
=
new
RB_Education_EduSell_Extend
eduModel
.
Id
=
0
;
{
eduModel
.
TenantId
=
userInfo
.
TenantId
;
Id
=
0
,
eduModel
.
MallBaseId
=
userInfo
.
MallBaseId
;
TenantId
=
userInfo
.
TenantId
,
eduModel
.
CreateDate
=
System
.
DateTime
.
Now
;
MallBaseId
=
userInfo
.
MallBaseId
,
eduModel
.
Status
=
0
;
CreateDate
=
System
.
DateTime
.
Now
,
eduModel
.
UserId
=
userInfo
.
UserId
;
Status
=
0
,
UserId
=
userInfo
.
UserId
};
}
}
eduModel
.
EduSellId
=
model
.
Id
;
eduModel
.
EduSellId
=
model
.
Id
;
bool
result
=
activityModule
.
SetEduSellBaseInfo
(
eduModel
);
bool
result
=
activityModule
.
SetEduSellBaseInfo
(
eduModel
);
...
@@ -2386,15 +2383,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2386,15 +2383,12 @@ namespace Mall.WebApi.Controllers.Education
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetBindEduSellInfo
()
public
ApiResult
GetBindEduSellInfo
()
{
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
var
userInfo
=
AppletUserInfo
;
var
eduModel
=
activityModule
.
GetEducationSellBaseInfo
(
new
RB_Education_EduSell_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
var
eduModel
=
activityModule
.
GetEducationSellBaseInfo
(
new
RB_Education_EduSell_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
{
{
eduModel
=
new
RB_Education_EduSell_Extend
();
eduModel
=
new
RB_Education_EduSell_Extend
();
}
}
return
ApiResult
.
Success
(
""
,
new
return
ApiResult
.
Success
(
""
,
new
{
{
eduModel
.
Id
,
eduModel
.
Id
,
...
@@ -2414,9 +2408,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2414,9 +2408,7 @@ namespace Mall.WebApi.Controllers.Education
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetEduRollCallAction
()
public
ApiResult
GetEduRollCallAction
()
{
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
var
userInfo
=
AppletUserInfo
;
var
eduModel
=
activityModule
.
GetEducationSellBaseInfo
(
new
RB_Education_EduSell_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
var
eduModel
=
activityModule
.
GetEducationSellBaseInfo
(
new
RB_Education_EduSell_Extend
{
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
UserId
=
userInfo
.
UserId
}).
FirstOrDefault
();
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
if
(
eduModel
==
null
||
eduModel
.
Id
==
0
)
{
{
...
@@ -2431,6 +2423,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2431,6 +2423,7 @@ namespace Mall.WebApi.Controllers.Education
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
string
.
Format
(
"GetEduRollCallAction_Msg:{0}"
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
userInfo
)));
return
ApiResult
.
Failed
(
""
,
new
{
IsEduRollCallAction
=
0
});
return
ApiResult
.
Failed
(
""
,
new
{
IsEduRollCallAction
=
0
});
}
}
}
}
...
...
Mall.WebApi/Controllers/Education/EducationController.cs
View file @
aa490315
...
@@ -33,7 +33,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -33,7 +33,7 @@ namespace Mall.WebApi.Controllers.Education
{
{
private
readonly
IHttpContextAccessor
_accessor
;
private
readonly
IHttpContextAccessor
_accessor
;
private
readonly
EducationModule
educationModule
=
new
EducationModule
();
private
readonly
EducationModule
educationModule
=
new
EducationModule
();
private
Module
.
User
.
UserModule
UserModule
=
new
Module
.
User
.
UserModule
();
private
readonly
Module
.
User
.
UserModule
UserModule
=
new
Module
.
User
.
UserModule
();
private
readonly
DynamicModule
dynamicModule
=
new
DynamicModule
();
private
readonly
DynamicModule
dynamicModule
=
new
DynamicModule
();
private
readonly
ActivityModule
activityModule
=
new
ActivityModule
();
private
readonly
ActivityModule
activityModule
=
new
ActivityModule
();
...
@@ -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
;
...
@@ -1873,7 +1876,6 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1873,7 +1876,6 @@ namespace Mall.WebApi.Controllers.Education
{
{
var
qequest
=
RequestParm
;
var
qequest
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
Int32
.
TryParse
(
RequestParm
.
uid
,
out
int
Uid
);
var
model
=
new
Rb_Education_Talk_Extend
()
var
model
=
new
Rb_Education_Talk_Extend
()
{
{
Id
=
parms
.
GetInt
(
"Id"
,
0
),
Id
=
parms
.
GetInt
(
"Id"
,
0
),
...
@@ -2148,7 +2150,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2148,7 +2150,7 @@ namespace Mall.WebApi.Controllers.Education
{
{
extModel
.
ActivityTitleList
=
JsonConvert
.
DeserializeObject
<
List
<
RB_Education_ActivityTitle_Extend
>>(
jObj
.
GetStringValue
(
"ActivityTitle"
));
extModel
.
ActivityTitleList
=
JsonConvert
.
DeserializeObject
<
List
<
RB_Education_ActivityTitle_Extend
>>(
jObj
.
GetStringValue
(
"ActivityTitle"
));
}
}
catch
(
Exception
ex
)
catch
{
{
extModel
.
ActivityTitleList
=
new
List
<
RB_Education_ActivityTitle_Extend
>();
extModel
.
ActivityTitleList
=
new
List
<
RB_Education_ActivityTitle_Extend
>();
}
}
...
@@ -2204,7 +2206,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2204,7 +2206,7 @@ namespace Mall.WebApi.Controllers.Education
{
{
extModel
.
ActivityTitleList
=
JsonConvert
.
DeserializeObject
<
List
<
RB_Education_ActivityTitle_Extend
>>(
jObj
.
GetStringValue
(
"ActivityTitle"
));
extModel
.
ActivityTitleList
=
JsonConvert
.
DeserializeObject
<
List
<
RB_Education_ActivityTitle_Extend
>>(
jObj
.
GetStringValue
(
"ActivityTitle"
));
}
}
catch
(
Exception
ex
)
catch
{
{
extModel
.
ActivityTitleList
=
new
List
<
RB_Education_ActivityTitle_Extend
>();
extModel
.
ActivityTitleList
=
new
List
<
RB_Education_ActivityTitle_Extend
>();
}
}
...
@@ -2347,7 +2349,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2347,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
)
:
""
),
...
@@ -2407,7 +2409,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2407,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
,
...
@@ -2644,7 +2646,6 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2644,7 +2646,6 @@ namespace Mall.WebApi.Controllers.Education
decimal
dPaid
=
Convert
.
ToDecimal
(
dic
[
"dPrice"
])
/
100
;
decimal
dPaid
=
Convert
.
ToDecimal
(
dic
[
"dPrice"
])
/
100
;
string
refundid
=
dic
[
"refundid"
];
//微信退款单号
string
refundid
=
dic
[
"refundid"
];
//微信退款单号
string
outRefundNo
=
dic
[
"outRefundNo"
];
//商户退款单号
string
outRefundNo
=
dic
[
"outRefundNo"
];
//商户退款单号
flag
=
activityModule
.
SetCommerceConsultApplyCancel
(
Id
,
ApplyForCancelStatus
,
RejectRemark
,
refundid
,
dPaid
);
flag
=
activityModule
.
SetCommerceConsultApplyCancel
(
Id
,
ApplyForCancelStatus
,
RejectRemark
,
refundid
,
dPaid
);
}
}
else
else
...
@@ -2673,13 +2674,11 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2673,13 +2674,11 @@ namespace Mall.WebApi.Controllers.Education
/// <returns></returns>
/// <returns></returns>
public
ApiResult
CancelCommerceConsult
()
public
ApiResult
CancelCommerceConsult
()
{
{
bool
flag
=
false
;
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
ActivityId
=
jObj
.
GetInt
(
"ActivityId"
);
var
ActivityId
=
jObj
.
GetInt
(
"ActivityId"
);
var
Id
=
jObj
.
GetInt
(
"Id"
);
var
Id
=
jObj
.
GetInt
(
"Id"
);
var
EduUserId
=
jObj
.
GetInt
(
"EduUserId"
);
var
EduUserId
=
jObj
.
GetInt
(
"EduUserId"
);
string
CancelRemark
=
jObj
.
GetStringValue
(
"CancelRemark"
);
string
CancelRemark
=
jObj
.
GetStringValue
(
"CancelRemark"
);
// var userInfo = AppletUserInfo;
var
model
=
activityModule
.
GetCommerceConsultListRepository
(
new
RB_Education_Consult_Extend
{
EduUserId
=
EduUserId
,
OrderStatus
=
-
1
,
ActivityId
=
ActivityId
,
Id
=
Id
}).
FirstOrDefault
();
var
model
=
activityModule
.
GetCommerceConsultListRepository
(
new
RB_Education_Consult_Extend
{
EduUserId
=
EduUserId
,
OrderStatus
=
-
1
,
ActivityId
=
ActivityId
,
Id
=
Id
}).
FirstOrDefault
();
if
(
model
==
null
||
model
.
Id
==
0
||
model
.
Status
==
Common
.
Enum
.
DateStateEnum
.
Delete
)
if
(
model
==
null
||
model
.
Id
==
0
||
model
.
Status
==
Common
.
Enum
.
DateStateEnum
.
Delete
)
{
return
ApiResult
.
Failed
(
"报名数据不存在"
);
}
{
return
ApiResult
.
Failed
(
"报名数据不存在"
);
}
...
@@ -2689,8 +2688,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2689,8 +2688,7 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
Failed
(
"已过报名时间无法取消"
);
return
ApiResult
.
Failed
(
"已过报名时间无法取消"
);
}
}
bool
flag
=
activityModule
.
CancelCommerceConsult
(
ActivityId
,
CancelRemark
,
out
int
IsCancelConfirm
,
model
);
flag
=
activityModule
.
CancelCommerceConsult
(
ActivityId
,
CancelRemark
,
out
int
IsCancelConfirm
,
model
);
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
(
""
,
IsCancelConfirm
)
:
ApiResult
.
Failed
();
}
}
...
@@ -3517,11 +3515,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -3517,11 +3515,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
{
{
...
@@ -3593,10 +3592,12 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -3593,10 +3592,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/Miai/AppletMiaiController.cs
View file @
aa490315
...
@@ -1508,10 +1508,9 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1508,10 +1508,9 @@ namespace Mall.WebApi.Controllers.MallBase
Status
=
0
,
Status
=
0
,
CreateDate
=
System
.
DateTime
.
Now
CreateDate
=
System
.
DateTime
.
Now
};
};
var
queryResult
=
miaiModule
.
SetMiAiBaseInfoQuery
(
queryModel
);
var
queryResult
=
miaiModule
.
SetMiAiBaseInfoQuery
(
queryModel
);
}
}
catch
(
Exception
ex
)
catch
{
{
}
}
...
@@ -1557,7 +1556,6 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1557,7 +1556,6 @@ namespace Mall.WebApi.Controllers.MallBase
public
ApiResult
GetBaseInfoQueryList
()
public
ApiResult
GetBaseInfoQueryList
()
{
{
var
parms
=
RequestParm
;
var
parms
=
RequestParm
;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
RB_MiAi_BaseInfoQuery
demodel
=
JsonConvert
.
DeserializeObject
<
RB_MiAi_BaseInfoQuery
>(
RequestParm
.
msg
.
ToString
());
RB_MiAi_BaseInfoQuery
demodel
=
JsonConvert
.
DeserializeObject
<
RB_MiAi_BaseInfoQuery
>(
RequestParm
.
msg
.
ToString
());
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
...
@@ -1643,9 +1641,6 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1643,9 +1641,6 @@ namespace Mall.WebApi.Controllers.MallBase
}));
}));
}
}
/// <summary>
/// <summary>
/// 获取每日随机信息
/// 获取每日随机信息
/// </summary>
/// </summary>
...
@@ -1662,8 +1657,6 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1662,8 +1657,6 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
UserId
=
parms
.
UserId
;
demodel
.
UserId
=
parms
.
UserId
;
var
dayQueryModel
=
new
RB_MiAi_BaseInfoDayQuery
();
var
dayQueryModel
=
new
RB_MiAi_BaseInfoDayQuery
();
//if (demodel.UserId > 0)//说明用户登录了的
//{
try
try
{
{
if
(
demodel
.
Sex
==
0
&&
demodel
.
UserId
>
0
)
if
(
demodel
.
Sex
==
0
&&
demodel
.
UserId
>
0
)
...
@@ -1710,9 +1703,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1710,9 +1703,8 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
string
.
Format
(
"GetDailyRandomList_Msg:{0}"
,
Common
.
Plugin
.
JsonHelper
.
Serialize
(
parms
)));
}
}
// }
var
list
=
miaiModule
.
GetFirstBaseInfoPageList_V2
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
var
list
=
miaiModule
.
GetFirstBaseInfoPageList_V2
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
List
<
Model
.
Extend
.
MarketingCenter
.
miaiUserDetail
>
newGoodsList
=
new
List
<
Model
.
Extend
.
MarketingCenter
.
miaiUserDetail
>();
List
<
Model
.
Extend
.
MarketingCenter
.
miaiUserDetail
>
newGoodsList
=
new
List
<
Model
.
Extend
.
MarketingCenter
.
miaiUserDetail
>();
...
...
Mall.WebApi/Controllers/Miai/MiaiController.cs
View file @
aa490315
...
@@ -1082,17 +1082,18 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1082,17 +1082,18 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
oldBaseInfo
.
AlbumList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
oldBaseInfo
.
Album
);
oldBaseInfo
.
AlbumList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
oldBaseInfo
.
Album
);
}
}
}
}
else
else
{
{
oldBaseInfo
=
new
RB_MiAi_BaseInfo_Extend
();
oldBaseInfo
=
new
RB_MiAi_BaseInfo_Extend
oldBaseInfo
.
Sex
=
1
;
{
oldBaseInfo
.
EducationType
=
Common
.
Enum
.
MiAi
.
EducationTypeEnum
.
HighSchool
;
Sex
=
1
,
oldBaseInfo
.
Marriage
=
Common
.
Enum
.
MiAi
.
MarriageEnum
.
Unmarried
;
EducationType
=
Common
.
Enum
.
MiAi
.
EducationTypeEnum
.
HighSchool
,
oldBaseInfo
.
CarInfo
=
Common
.
Enum
.
MiAi
.
CarInfoEnum
.
Yes
;
Marriage
=
Common
.
Enum
.
MiAi
.
MarriageEnum
.
Unmarried
,
oldBaseInfo
.
HouseInfo
=
Common
.
Enum
.
MiAi
.
HouseInfoEnum
.
Yes
;
CarInfo
=
Common
.
Enum
.
MiAi
.
CarInfoEnum
.
Yes
,
oldBaseInfo
.
AlbumList
=
new
List
<
string
>();
HouseInfo
=
Common
.
Enum
.
MiAi
.
HouseInfoEnum
.
Yes
,
AlbumList
=
new
List
<
string
>()
};
}
}
return
ApiResult
.
Success
(
""
,
new
return
ApiResult
.
Success
(
""
,
new
{
{
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
aa490315
...
@@ -506,7 +506,6 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -506,7 +506,6 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
return
ApiResult
.
ParamIsNull
(
message
:
"请选择门店"
);
return
ApiResult
.
ParamIsNull
(
message
:
"请选择门店"
);
}
}
int
UserId
=
req
.
UserId
;
object
Robj
=
productModule
.
GetServerpersionListInfoModule
(
GoodsId
,
req
.
TenantId
,
req
.
MallBaseId
,
storeId
:
StoreId
,
servicePersionId
:
servicePersionId
,
chooseDate
:
chooseDate
);
object
Robj
=
productModule
.
GetServerpersionListInfoModule
(
GoodsId
,
req
.
TenantId
,
req
.
MallBaseId
,
storeId
:
StoreId
,
servicePersionId
:
servicePersionId
,
chooseDate
:
chooseDate
);
return
ApiResult
.
Success
(
""
,
Robj
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
}
...
@@ -834,10 +833,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -834,10 +833,8 @@ namespace Mall.WebApi.Controllers.MallBase
price_max
=
Math
.
Round
(
price_max
,
2
,
MidpointRounding
.
AwayFromZero
);
price_max
=
Math
.
Round
(
price_max
,
2
,
MidpointRounding
.
AwayFromZero
);
#
endregion
#
endregion
#
region
订单信息
#
region
订单信息
//payment_amount-订单总金额,payment_people-订单用户, payment_num-商品数量, payment_order-订单数量
int
payment_people
=
0
,
payment_num
=
0
,
payment_order
=
0
;
//订单用户 商品数量 订单数量
productModule
.
GetGoodsOrderPeopleInfo
(
out
decimal
payment_amount
,
out
int
payment_num
,
out
int
payment_order
,
out
int
payment_people
,
GoodsId
);
decimal
payment_amount
=
0
;
//订单总金额
productModule
.
GetGoodsOrderPeopleInfo
(
out
payment_amount
,
out
payment_num
,
out
payment_order
,
out
payment_people
,
GoodsId
);
#
endregion
#
endregion
return
ApiResult
.
Success
(
"success"
,
new
return
ApiResult
.
Success
(
"success"
,
new
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
aa490315
...
@@ -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>
...
@@ -874,7 +869,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -874,7 +869,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
public
ApiResult
SetTradeConsult
()
public
ApiResult
SetTradeConsult
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
RB_Commerce_Consult_Extend
model
=
new
RB_Commerce_Consult_Extend
()
RB_Commerce_Consult_Extend
model
=
new
RB_Commerce_Consult_Extend
()
{
{
Id
=
parms
.
GetInt
(
"Id"
,
0
),
Id
=
parms
.
GetInt
(
"Id"
,
0
),
...
@@ -913,7 +907,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -913,7 +907,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
public
ApiResult
GetUserActivityPage
()
public
ApiResult
GetUserActivityPage
()
{
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Commerce_Activity_Extend
()
var
query
=
new
RB_Commerce_Activity_Extend
()
{
{
};
};
...
@@ -1048,7 +1041,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1048,7 +1041,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// <returns></returns>
/// <returns></returns>
public
ApiResult
SetFirstShopActivityEnroll
()
public
ApiResult
SetFirstShopActivityEnroll
()
{
{
bool
flag
=
false
;
var
request
=
RequestParm
;
var
request
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
var
userInfo
=
AppletUserInfo
;
if
(
userInfo
==
null
)
if
(
userInfo
==
null
)
...
@@ -1073,17 +1066,17 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1073,17 +1066,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
,
Random
R
=
new
Random
();
Nature
=
firstShopModel
.
Nature
int
Rstr
=
R
.
Next
(
111
,
999
)
;
}
;
demodel
.
ActivityId
=
model
.
Id
;
demodel
.
ActivityId
=
model
.
Id
;
demodel
.
Remark
=
firstShopModel
.
Remark
;
demodel
.
Remark
=
firstShopModel
.
Remark
;
demodel
.
UserId
=
userInfo
.
UserId
;
demodel
.
UserId
=
userInfo
.
UserId
;
...
@@ -1097,16 +1090,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1097,16 +1090,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
consultList
.
Add
(
demodel
);
consultList
.
Add
(
demodel
);
}
}
}
}
bool
flag
=
consultModule
.
SetBatchActivityEnrollInfo
(
consultList
);
flag
=
consultModule
.
SetBatchActivityEnrollInfo
(
consultList
);
return
flag
?
ApiResult
.
Success
(
"报名成功"
)
:
ApiResult
.
Failed
(
"出错了,请联系管理员"
);
return
flag
?
ApiResult
.
Success
(
"报名成功"
)
:
ApiResult
.
Failed
(
"出错了,请联系管理员"
);
}
}
/// <summary>
/// <summary>
/// 根据活动ids获取活动列表
/// 根据活动ids获取活动列表
/// </summary>
/// </summary>
...
@@ -1876,17 +1863,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1876,17 +1863,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
AllowAnonymous
]
[
AllowAnonymous
]
public
ApiResult
GetBrandClassList
()
public
ApiResult
GetBrandClassList
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_BrandClass_Extend
var
query
=
new
RB_BrandClass_Extend
();
{
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
MallBaseId
=
RequestParm
.
MallBaseId
,
query
.
TenantId
=
RequestParm
.
TenantId
;
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 +1910,19 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1925,18 +1910,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
);
}
}
...
@@ -2379,15 +2365,13 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -2379,15 +2365,13 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
CancelAppletFirstShopListInfo
()
public
ApiResult
CancelAppletFirstShopListInfo
()
{
{
var
userInfo
=
base
.
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
base
.
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
base
.
RequestParm
.
msg
.
ToString
());
int
EnrollId
=
parms
.
GetInt
(
"EnrollId"
,
0
);
//报名Id
int
EnrollId
=
parms
.
GetInt
(
"EnrollId"
,
0
);
//报名Id
if
(
EnrollId
<=
0
)
if
(
EnrollId
<=
0
)
{
{
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
();
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
aa490315
...
@@ -647,7 +647,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -647,7 +647,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
consultModule
.
GetCommerceConsultPageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
var
list
=
consultModule
.
GetCommerceConsultPageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
_
,
query
);
string
ExcelName
=
"活动用户导出"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)
+
".xls"
;
string
ExcelName
=
"活动用户导出"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)
+
".xls"
;
List
<
ExcelDataSource
>
slist
=
new
List
<
ExcelDataSource
>();
List
<
ExcelDataSource
>
slist
=
new
List
<
ExcelDataSource
>();
ExcelDataSource
header
=
new
ExcelDataSource
()
ExcelDataSource
header
=
new
ExcelDataSource
()
...
@@ -1189,8 +1189,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1189,8 +1189,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
umodel
=
userModule
.
GetMemberUserInfo
(
model
.
CreateBy
);
var
umodel
=
userModule
.
GetMemberUserInfo
(
model
.
CreateBy
);
if
(
umodel
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
umodel
.
OpenId
))
if
(
umodel
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
umodel
.
OpenId
))
{
{
List
<
string
>
openidList
=
new
List
<
string
>();
List
<
string
>
openidList
=
new
List
<
string
>
openidList
.
Add
(
umodel
.
OpenId
);
{
umodel
.
OpenId
};
new
Module
.
User
.
MiniProgramMsgModule
().
SendHatchExamineMsg
(
model
.
TenantId
,
model
.
MallBaseId
,
openidList
,
AuditState
==
2
?
"认证通过"
:
"认证失败"
,
"首店认证结果通知"
,
System
.
DateTime
.
Now
.
ToString
(
"yyyy年MM月dd日 HH:mm"
));
new
Module
.
User
.
MiniProgramMsgModule
().
SendHatchExamineMsg
(
model
.
TenantId
,
model
.
MallBaseId
,
openidList
,
AuditState
==
2
?
"认证通过"
:
"认证失败"
,
"首店认证结果通知"
,
System
.
DateTime
.
Now
.
ToString
(
"yyyy年MM月dd日 HH:mm"
));
}
}
return
ApiResult
.
Success
();
return
ApiResult
.
Success
();
...
@@ -1391,13 +1393,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1391,13 +1393,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetSetCarrier
()
public
ApiResult
GetSetCarrier
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_Carrier_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Carrier_Extend
>(
RequestParm
.
msg
.
ToString
());
RB_Carrier_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Carrier_Extend
>(
RequestParm
.
msg
.
ToString
());
if
(
string
.
IsNullOrWhiteSpace
(
query
.
CarrierName
))
if
(
string
.
IsNullOrWhiteSpace
(
query
.
CarrierName
))
{
{
return
ApiResult
.
Failed
(
"请输入载体名称"
);
return
ApiResult
.
Failed
(
"请输入载体名称"
);
}
}
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Developers
))
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Developers
))
{
{
return
ApiResult
.
Failed
(
"请输入开发商"
);
return
ApiResult
.
Failed
(
"请输入开发商"
);
...
@@ -1496,16 +1496,14 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1496,16 +1496,14 @@ namespace Mall.WebApi.Controllers.TradePavilion
}
}
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
demodel
.
ExcelEnumIds
=
new
List
<
int
>();
demodel
.
ExcelEnumIds
=
new
List
<
int
>();
for
(
int
i
=
1
;
i
<=
15
;
i
++)
for
(
int
i
=
1
;
i
<=
15
;
i
++)
{
{
demodel
.
ExcelEnumIds
.
Add
(
i
);
demodel
.
ExcelEnumIds
.
Add
(
i
);
}
}
}
}
string
ExcelName
=
"载体列表"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)
+
".xls"
;
string
ExcelName
=
"载体列表"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)
+
".xls"
;
List
<
ExcelDataSource
>
slist
=
new
List
<
ExcelDataSource
>();
List
<
ExcelDataSource
>
slist
=
new
List
<
ExcelDataSource
>();
if
(
demodel
.
ExcelEnumIds
==
null
||
!
demodel
.
ExcelEnumIds
.
Any
())
if
(
demodel
.
ExcelEnumIds
==
null
||
!
demodel
.
ExcelEnumIds
.
Any
())
...
@@ -1662,10 +1660,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1662,10 +1660,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetBrandClassList
()
public
ApiResult
GetBrandClassList
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_BrandClass_Extend
var
query
=
new
RB_BrandClass_Extend
();
{
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
MallBaseId
=
RequestParm
.
MallBaseId
,
query
.
TenantId
=
RequestParm
.
TenantId
;
TenantId
=
RequestParm
.
TenantId
};
var
list
=
carrierModule
.
GetBrandClassList
(
query
);
var
list
=
carrierModule
.
GetBrandClassList
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
return
ApiResult
.
Success
(
data
:
list
);
}
}
...
@@ -1696,16 +1695,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1696,16 +1695,11 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetSetBrandClass
()
public
ApiResult
GetSetBrandClass
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_BrandClass_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_BrandClass_Extend
>(
RequestParm
.
msg
.
ToString
());
RB_BrandClass_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_BrandClass_Extend
>(
RequestParm
.
msg
.
ToString
());
if
(
string
.
IsNullOrWhiteSpace
(
query
.
ClassName
))
if
(
string
.
IsNullOrWhiteSpace
(
query
.
ClassName
))
{
{
return
ApiResult
.
Failed
(
"请输入分类名称"
);
return
ApiResult
.
Failed
(
"请输入分类名称"
);
}
}
//if (string.IsNullOrWhiteSpace(query.Logo))
//{
// return ApiResult.Failed("请上传Logo");
//}
if
(
query
.
ID
==
0
)
if
(
query
.
ID
==
0
)
{
{
query
.
CreateDate
=
System
.
DateTime
.
Now
;
query
.
CreateDate
=
System
.
DateTime
.
Now
;
...
@@ -1821,7 +1815,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1821,7 +1815,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetSetBrand
()
public
ApiResult
GetSetBrand
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_Brand_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Brand_Extend
>(
RequestParm
.
msg
.
ToString
());
RB_Brand_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Brand_Extend
>(
RequestParm
.
msg
.
ToString
());
if
(
string
.
IsNullOrWhiteSpace
(
query
.
BrandName
))
if
(
string
.
IsNullOrWhiteSpace
(
query
.
BrandName
))
{
{
...
@@ -1908,10 +1901,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -1908,10 +1901,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
}
}
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
demodel
.
ExcelEnumIds
=
new
List
<
int
>();
demodel
.
ExcelEnumIds
=
new
List
<
int
>();
for
(
int
i
=
1
;
i
<=
23
;
i
++)
for
(
int
i
=
1
;
i
<=
23
;
i
++)
{
{
demodel
.
ExcelEnumIds
.
Add
(
i
);
demodel
.
ExcelEnumIds
.
Add
(
i
);
...
@@ -2595,7 +2587,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -2595,7 +2587,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
{
return
ApiResult
.
ParamIsNull
(
"请传递文件路径"
);
return
ApiResult
.
ParamIsNull
(
"请传递文件路径"
);
}
}
bool
result
=
firstShopListModule
.
DelFirstShopEnrollZipExport
(
ListIds
);
firstShopListModule
.
DelFirstShopEnrollZipExport
(
ListIds
);
return
ApiResult
.
Success
(
""
);
return
ApiResult
.
Success
(
""
);
}
}
...
@@ -2726,20 +2718,18 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -2726,20 +2718,18 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
HttpGet
]
[
HttpGet
]
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetPrizeList
()
public
ApiResult
GetPrizeList
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Prize_Extend
var
query
=
new
RB_Prize_Extend
();
{
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
MallBaseId
=
RequestParm
.
MallBaseId
,
query
.
TenantId
=
RequestParm
.
TenantId
;
TenantId
=
RequestParm
.
TenantId
};
var
extList
=
carrierModule
.
GetPrizeList
(
query
);
var
extList
=
carrierModule
.
GetPrizeList
(
query
);
return
ApiResult
.
Success
(
data
:
extList
);
return
ApiResult
.
Success
(
data
:
extList
);
}
}
/// <summary>
/// <summary>
/// 新增/修改奖项信息
/// 新增/修改奖项信息
/// </summary>
/// </summary>
...
@@ -2747,7 +2737,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -2747,7 +2737,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetSetPrize
()
public
ApiResult
GetSetPrize
()
{
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_Prize_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Prize_Extend
>(
RequestParm
.
msg
.
ToString
());
RB_Prize_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_Prize_Extend
>(
RequestParm
.
msg
.
ToString
());
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Name
))
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Name
))
{
{
...
...
Mall.WebApi/Controllers/User/TenantController.cs
View file @
aa490315
...
@@ -133,7 +133,7 @@ namespace Mall.WebApi.Controllers.User
...
@@ -133,7 +133,7 @@ namespace Mall.WebApi.Controllers.User
RoleAuth
=
1
;
RoleAuth
=
1
;
}
}
}
}
catch
(
Exception
ex
)
catch
{
{
}
}
...
...
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