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
3618fefa
Commit
3618fefa
authored
Aug 31, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
a9eecf89
b8e01522
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
252 additions
and
291 deletions
+252
-291
TransactionCallHandlerAttribute.cs
....AOP/CustomerAttribute/TransactionCallHandlerAttribute.cs
+8
-6
OrderPayReidsCache.cs
Mall.CacheManager/AppletWeChat/OrderPayReidsCache.cs
+1
-1
WeiXinReidsCache.cs
Mall.CacheManager/AppletWeChat/WeiXinReidsCache.cs
+1
-1
ByteDanceRedis.cs
Mall.CacheManager/ByteDance/ByteDanceRedis.cs
+1
-1
UserReidsCache.cs
Mall.CacheManager/User/UserReidsCache.cs
+2
-2
DestinationModule.cs
Mall.Module.BaseSetUp/DestinationModule.cs
+2
-2
MallBaseModule.cs
Mall.Module.BaseSetUp/MallBaseModule.cs
+22
-20
CouponModule.cs
Mall.Module.MarketingCenter/CouponModule.cs
+10
-17
IntegralModule.cs
Mall.Module.MarketingCenter/IntegralModule.cs
+3
-4
MiniprogramPageTemplModule.cs
Mall.Module.MarketingCenter/MiniprogramPageTemplModule.cs
+5
-9
MiniprogramTemplateModule.cs
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
+2
-3
RechargeModule.cs
Mall.Module.MarketingCenter/RechargeModule.cs
+34
-33
ShareModule.cs
Mall.Module.MarketingCenter/ShareModule.cs
+8
-15
StatisticsModule.cs
Mall.Module.MarketingCenter/StatisticsModule.cs
+17
-13
TemplateMarketModule.cs
Mall.Module.MarketingCenter/TemplateMarketModule.cs
+4
-7
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+29
-28
ContentModule.cs
Mall.Module.User/ContentModule.cs
+17
-24
EmployeeModule.cs
Mall.Module.User/EmployeeModule.cs
+6
-9
GroupBuyConfigModule.cs
Mall.Module.User/GroupBuyConfigModule.cs
+2
-2
MemberUserModule.cs
Mall.Module.User/MemberUserModule.cs
+0
-3
MenuModule.cs
Mall.Module.User/MenuModule.cs
+2
-3
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+23
-32
MiniProgramMsgModule.cs
Mall.Module.User/MiniProgramMsgModule.cs
+4
-4
MiniProgramNaviconModule.cs
Mall.Module.User/MiniProgramNaviconModule.cs
+3
-6
MiniProgramPageModule.cs
Mall.Module.User/MiniProgramPageModule.cs
+3
-4
PosterModule.cs
Mall.Module.User/PosterModule.cs
+4
-4
SmallShopsModule.cs
Mall.Module.User/SmallShopsModule.cs
+3
-4
SupplierModule.cs
Mall.Module.User/SupplierModule.cs
+4
-4
TenantModule.cs
Mall.Module.User/TenantModule.cs
+4
-7
UserModule.cs
Mall.Module.User/UserModule.cs
+27
-22
appsettings.json
Mall.WebApi/appsettings.json
+1
-1
No files found.
Mall.AOP/CustomerAttribute/TransactionCallHandlerAttribute.cs
View file @
3618fefa
...
@@ -32,7 +32,7 @@ namespace Mall.AOP.CustomerAttribute
...
@@ -32,7 +32,7 @@ namespace Mall.AOP.CustomerAttribute
/// </summary>
/// </summary>
public
TransactionCallHandlerAttribute
()
public
TransactionCallHandlerAttribute
()
{
{
Timeout
=
6
0
;
Timeout
=
3
0
;
ScopeOption
=
TransactionScopeOption
.
Required
;
ScopeOption
=
TransactionScopeOption
.
Required
;
IsolationLevel
=
IsolationLevel
.
ReadCommitted
;
IsolationLevel
=
IsolationLevel
.
ReadCommitted
;
}
}
...
@@ -49,11 +49,13 @@ namespace Mall.AOP.CustomerAttribute
...
@@ -49,11 +49,13 @@ namespace Mall.AOP.CustomerAttribute
{
{
Console
.
WriteLine
(
"TransactionCallHandlerAttribute1"
);
Console
.
WriteLine
(
"TransactionCallHandlerAttribute1"
);
TransactionOptions
transactionOptions
=
new
TransactionOptions
();
TransactionOptions
transactionOptions
=
new
TransactionOptions
//设置事务隔离级别
{
transactionOptions
.
IsolationLevel
=
this
.
IsolationLevel
;
//设置事务隔离级别
//设置事务超时时间为60秒
IsolationLevel
=
this
.
IsolationLevel
,
transactionOptions
.
Timeout
=
new
TimeSpan
(
0
,
0
,
this
.
Timeout
);
//设置事务超时时间为60秒
Timeout
=
new
TimeSpan
(
0
,
0
,
this
.
Timeout
)
};
using
(
TransactionScope
scope
=
new
TransactionScope
(
this
.
ScopeOption
,
transactionOptions
))
using
(
TransactionScope
scope
=
new
TransactionScope
(
this
.
ScopeOption
,
transactionOptions
))
{
{
try
try
...
...
Mall.CacheManager/AppletWeChat/OrderPayReidsCache.cs
View file @
3618fefa
...
@@ -8,7 +8,7 @@ namespace Mall.CacheManager.AppletWeChat
...
@@ -8,7 +8,7 @@ namespace Mall.CacheManager.AppletWeChat
{
{
public
class
OrderPayReidsCache
public
class
OrderPayReidsCache
{
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_OrderPayId
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_OrderPayId
);
/// <summary>
/// <summary>
/// 设置缓存
/// 设置缓存
/// </summary>
/// </summary>
...
...
Mall.CacheManager/AppletWeChat/WeiXinReidsCache.cs
View file @
3618fefa
...
@@ -8,7 +8,7 @@ namespace Mall.CacheManager.AppletWeChat
...
@@ -8,7 +8,7 @@ namespace Mall.CacheManager.AppletWeChat
{
{
public
class
WeiXinReidsCache
public
class
WeiXinReidsCache
{
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_WeiXinToken
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataStatistic
.
DataConstant
.
REDIS_DB2
,
DataStatistic
.
DataConstant
.
DATA_WeiXinToken
);
/// <summary>
/// <summary>
/// 设置缓存
/// 设置缓存
/// </summary>
/// </summary>
...
...
Mall.CacheManager/ByteDance/ByteDanceRedis.cs
View file @
3618fefa
...
@@ -12,7 +12,7 @@ namespace Mall.CacheManager.ByteDance
...
@@ -12,7 +12,7 @@ namespace Mall.CacheManager.ByteDance
public
class
ByteDanceRedis
public
class
ByteDanceRedis
{
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
/// <summary>
/// <summary>
/// 获取微信用的formID
/// 获取微信用的formID
/// </summary>
/// </summary>
...
...
Mall.CacheManager/User/UserReidsCache.cs
View file @
3618fefa
...
@@ -15,7 +15,7 @@ namespace Mall.CacheManager.User
...
@@ -15,7 +15,7 @@ namespace Mall.CacheManager.User
/// </summary>
/// </summary>
public
class
UserReidsCache
public
class
UserReidsCache
{
{
static
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
static
readonly
RedisHelper
redis
=
new
RedisHelper
(
DataConstant
.
REDIS_DB2
);
/// <summary>
/// <summary>
/// 设置缓存
/// 设置缓存
...
@@ -78,7 +78,7 @@ namespace Mall.CacheManager.User
...
@@ -78,7 +78,7 @@ namespace Mall.CacheManager.User
/// <summary>
/// <summary>
/// 商户信息仓储层对象
/// 商户信息仓储层对象
/// </summary>
/// </summary>
private
static
Mall
.
Repository
.
User
.
RB_TenantRepository
tenantRepository
=
new
Repository
.
User
.
RB_TenantRepository
();
private
static
readonly
Mall
.
Repository
.
User
.
RB_TenantRepository
tenantRepository
=
new
Repository
.
User
.
RB_TenantRepository
();
/// <summary>
/// <summary>
/// 获取用户登录信息
/// 获取用户登录信息
...
...
Mall.Module.BaseSetUp/DestinationModule.cs
View file @
3618fefa
...
@@ -16,7 +16,7 @@ namespace Mall.Module.BaseSetUp
...
@@ -16,7 +16,7 @@ namespace Mall.Module.BaseSetUp
/// </summary>
/// </summary>
public
class
DestinationModule
public
class
DestinationModule
{
{
private
Rb_destinationRepository
rb_DestinationRepository
=
new
Rb_destinationRepository
();
private
readonly
Rb_destinationRepository
rb_DestinationRepository
=
new
Rb_destinationRepository
();
/// <summary>
/// <summary>
/// 根据父节点编号获取子列表
/// 根据父节点编号获取子列表
...
@@ -48,7 +48,7 @@ namespace Mall.Module.BaseSetUp
...
@@ -48,7 +48,7 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
/// <returns></returns>
public
bool
Set
(
RB_Destination
model
)
public
bool
Set
(
RB_Destination
model
)
{
{
var
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.BaseSetUp/MallBaseModule.cs
View file @
3618fefa
...
@@ -15,21 +15,21 @@ namespace Mall.Module.BaseSetUp
...
@@ -15,21 +15,21 @@ namespace Mall.Module.BaseSetUp
{
{
public
class
MallBaseModule
public
class
MallBaseModule
{
{
private
RB_MiniProgramRepository
miniProgramRepository
=
new
RB_MiniProgramRepository
();
private
readonly
RB_MiniProgramRepository
miniProgramRepository
=
new
RB_MiniProgramRepository
();
private
RB_MallBaseRepository
mallBaseRepository
=
new
RB_MallBaseRepository
();
private
readonly
RB_MallBaseRepository
mallBaseRepository
=
new
RB_MallBaseRepository
();
private
RB_LogisticsRepository
logisticsRepository
=
new
RB_LogisticsRepository
();
private
readonly
RB_LogisticsRepository
logisticsRepository
=
new
RB_LogisticsRepository
();
private
RB_Logistics_RulesPriceRepository
logisticsRulesPriceRepository
=
new
RB_Logistics_RulesPriceRepository
();
private
readonly
RB_Logistics_RulesPriceRepository
logisticsRulesPriceRepository
=
new
RB_Logistics_RulesPriceRepository
();
private
RB_Logistics_RulesRegionRepository
logisticsRulesRegionRepository
=
new
RB_Logistics_RulesRegionRepository
();
private
readonly
RB_Logistics_RulesRegionRepository
logisticsRulesRegionRepository
=
new
RB_Logistics_RulesRegionRepository
();
private
RB_Logistics_RulesRepository
logisticsRulesRepository
=
new
RB_Logistics_RulesRepository
();
private
readonly
RB_Logistics_RulesRepository
logisticsRulesRepository
=
new
RB_Logistics_RulesRepository
();
private
RB_Logistics_DeliveryRepository
deliveryRepository
=
new
RB_Logistics_DeliveryRepository
();
private
readonly
RB_Logistics_DeliveryRepository
deliveryRepository
=
new
RB_Logistics_DeliveryRepository
();
private
RB_Logistics_ExpressRepository
expressRepository
=
new
RB_Logistics_ExpressRepository
();
private
readonly
RB_Logistics_ExpressRepository
expressRepository
=
new
RB_Logistics_ExpressRepository
();
private
RB_ElectronicSheetRepository
electronicSheetRepository
=
new
RB_ElectronicSheetRepository
();
private
readonly
RB_ElectronicSheetRepository
electronicSheetRepository
=
new
RB_ElectronicSheetRepository
();
private
RB_File_StoreRepository
storeRepository
=
new
RB_File_StoreRepository
();
private
readonly
RB_File_StoreRepository
storeRepository
=
new
RB_File_StoreRepository
();
private
RB_FreeShippingCategoryRepository
freeShippingCategoryRepository
=
new
RB_FreeShippingCategoryRepository
();
private
readonly
RB_FreeShippingCategoryRepository
freeShippingCategoryRepository
=
new
RB_FreeShippingCategoryRepository
();
private
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
private
readonly
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
private
RB_MicroShop_BasicsRepository
microShopBasicsRepository
=
new
RB_MicroShop_BasicsRepository
();
private
readonly
RB_MicroShop_BasicsRepository
microShopBasicsRepository
=
new
RB_MicroShop_BasicsRepository
();
...
@@ -79,8 +79,8 @@ namespace Mall.Module.BaseSetUp
...
@@ -79,8 +79,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
/// <returns></returns>
public
bool
AddOrUpdateMallBase
(
RB_MallBase_Extend
model
)
public
bool
AddOrUpdateMallBase
(
RB_MallBase_Extend
model
)
{
{
bool
flag
=
false
;
var
trans
=
mallBaseRepository
.
DbTransaction
;
var
trans
=
mallBaseRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
if
(
model
.
ID
==
0
)
if
(
model
.
ID
==
0
)
...
@@ -196,8 +196,10 @@ namespace Mall.Module.BaseSetUp
...
@@ -196,8 +196,10 @@ namespace Mall.Module.BaseSetUp
}
}
else
else
{
{
model
=
new
RB_Logistics_Rules_Extend
();
model
=
new
RB_Logistics_Rules_Extend
model
.
Detail
=
new
List
<
RB_Logistics_RulesPrice_Extend
>();
{
Detail
=
new
List
<
RB_Logistics_RulesPrice_Extend
>()
};
}
}
return
model
;
return
model
;
}
}
...
@@ -206,8 +208,8 @@ namespace Mall.Module.BaseSetUp
...
@@ -206,8 +208,8 @@ namespace Mall.Module.BaseSetUp
public
bool
SetDefaultLogisticsRules
(
RB_Logistics_Rules_Extend
query
)
public
bool
SetDefaultLogisticsRules
(
RB_Logistics_Rules_Extend
query
)
{
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -393,8 +395,8 @@ namespace Mall.Module.BaseSetUp
...
@@ -393,8 +395,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
/// <returns></returns>
public
bool
DelRulesInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelRulesInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
@@ -586,8 +588,8 @@ namespace Mall.Module.BaseSetUp
...
@@ -586,8 +588,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
/// <returns></returns>
public
bool
DelPinkageInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelPinkageInfo
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
var
trans
=
logisticsRulesRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
@@ -1137,8 +1139,8 @@ namespace Mall.Module.BaseSetUp
...
@@ -1137,8 +1139,8 @@ namespace Mall.Module.BaseSetUp
/// <returns></returns>
/// <returns></returns>
public
bool
DelFreeShipping
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelFreeShipping
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
var
trans
=
freeShippingRepository
.
DbTransaction
;
var
trans
=
freeShippingRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.MarketingCenter/CouponModule.cs
View file @
3618fefa
...
@@ -20,15 +20,15 @@ namespace Mall.Module.MarketingCenter
...
@@ -20,15 +20,15 @@ namespace Mall.Module.MarketingCenter
{
{
public
class
CouponModule
public
class
CouponModule
{
{
private
RB_CouponRepository
couponRepository
=
new
RB_CouponRepository
();
private
readonly
RB_CouponRepository
couponRepository
=
new
RB_CouponRepository
();
private
RB_DiscountCouponRepository
discountCouponRepository
=
new
RB_DiscountCouponRepository
();
private
readonly
RB_DiscountCouponRepository
discountCouponRepository
=
new
RB_DiscountCouponRepository
();
private
RB_DiscountCoupon_ProductRepository
productRepository
=
new
RB_DiscountCoupon_ProductRepository
();
private
readonly
RB_DiscountCoupon_ProductRepository
productRepository
=
new
RB_DiscountCoupon_ProductRepository
();
private
Repository
.
User
.
RB_Member_CouponRepository
memberCouponRepository
=
new
Repository
.
User
.
RB_Member_CouponRepository
();
private
readonly
RB_Member_CouponRepository
memberCouponRepository
=
new
Repository
.
User
.
RB_Member_CouponRepository
();
private
RB_Coupon_SelfMotionMemberRepository
selfMotionMemberRepository
=
new
RB_Coupon_SelfMotionMemberRepository
();
private
readonly
RB_Coupon_SelfMotionMemberRepository
selfMotionMemberRepository
=
new
RB_Coupon_SelfMotionMemberRepository
();
private
RB_Coupon_SelfMotionRepository
selfMotionRepository
=
new
RB_Coupon_SelfMotionRepository
();
private
readonly
RB_Coupon_SelfMotionRepository
selfMotionRepository
=
new
RB_Coupon_SelfMotionRepository
();
/// <summary>
/// <summary>
/// 会员信息
/// 会员信息
...
@@ -262,8 +262,8 @@ namespace Mall.Module.MarketingCenter
...
@@ -262,8 +262,8 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
DelDiscountCoupon
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelDiscountCoupon
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
var
trans
=
discountCouponRepository
.
DbTransaction
;
var
trans
=
discountCouponRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
...
@@ -338,8 +338,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -338,8 +338,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
DelMemberCoupon
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelMemberCoupon
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
...
@@ -431,20 +430,14 @@ namespace Mall.Module.MarketingCenter
...
@@ -431,20 +430,14 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
GrantCoupon
(
List
<
RB_Member_DiscountCoupon_Extend
>
list
,
RB_DiscountCoupon_Extend
model
)
public
bool
GrantCoupon
(
List
<
RB_Member_DiscountCoupon_Extend
>
list
,
RB_DiscountCoupon_Extend
model
)
{
{
bool
flag
=
false
;
var
trans
=
memberCouponRepository
.
DbTransaction
;
var
trans
=
memberCouponRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
//foreach (var item in list)
//{
flag
=
memberCouponRepository
.
InsertBatch
(
list
,
trans
);
flag
=
memberCouponRepository
.
InsertBatch
(
list
,
trans
);
// }
if
(
model
!=
null
&&
flag
)
if
(
model
!=
null
&&
flag
)
{
{
Dictionary
<
string
,
object
>
cols1
;
Dictionary
<
string
,
object
>
cols1
;
if
(
model
.
TotalNum
!=
-
1
)
if
(
model
.
TotalNum
!=
-
1
)
{
{
cols1
=
new
Dictionary
<
string
,
object
>()
cols1
=
new
Dictionary
<
string
,
object
>()
...
@@ -665,8 +658,8 @@ namespace Mall.Module.MarketingCenter
...
@@ -665,8 +658,8 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
DelDiscountSelfMotion
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelDiscountSelfMotion
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
var
trans
=
selfMotionRepository
.
DbTransaction
;
var
trans
=
selfMotionRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols1
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.MarketingCenter/IntegralModule.cs
View file @
3618fefa
...
@@ -12,9 +12,10 @@ namespace Mall.Module.MarketingCenter
...
@@ -12,9 +12,10 @@ namespace Mall.Module.MarketingCenter
{
{
public
class
IntegralModule
public
class
IntegralModule
{
{
private
RB_Integral_SettingsRepository
settingsRepository
=
new
RB_Integral_SettingsRepository
();
private
readonly
RB_Integral_SettingsRepository
settingsRepository
=
new
RB_Integral_SettingsRepository
();
private
readonly
RB_Member_IntegralRepository
recordRepository
=
new
RB_Member_IntegralRepository
();
private
RB_Member_IntegralRepository
recordRepository
=
new
RB_Member_IntegralRepository
();
#
region
积分设置
#
region
积分设置
/// <summary>
/// <summary>
...
@@ -46,8 +47,6 @@ namespace Mall.Module.MarketingCenter
...
@@ -46,8 +47,6 @@ namespace Mall.Module.MarketingCenter
}
}
#
endregion
#
endregion
#
region
积分记录
#
region
积分记录
/// <summary>
/// <summary>
...
...
Mall.Module.MarketingCenter/MiniprogramPageTemplModule.cs
View file @
3618fefa
...
@@ -103,7 +103,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -103,7 +103,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniprogramPageTemplModule
(
RB_Miniprogram_Page_Templ_Extend
extModel
)
public
bool
SetMiniprogramPageTemplModule
(
RB_Miniprogram_Page_Templ_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -147,12 +147,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -147,12 +147,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniprogramPageTemplIsUseModule
(
object
Id
,
int
IsUse
)
public
bool
SetMiniprogramPageTemplIsUseModule
(
object
Id
,
int
IsUse
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
IsUse
),
IsUse
}
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
IsUse
),
IsUse
}
};
};
flag
=
pageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Id
),
Id
));
bool
flag
=
pageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -165,8 +164,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -165,8 +164,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniprogramPageTemplIsHomeModule
(
object
Id
,
int
IsHome
,
int
MallBaseId
)
public
bool
SetMiniprogramPageTemplIsHomeModule
(
object
Id
,
int
IsHome
,
int
MallBaseId
)
{
{
bool
flag
=
false
;
bool
flag
=
pageRepository
.
UpdateIsHomeRepository
(
MallBaseId
);
flag
=
pageRepository
.
UpdateIsHomeRepository
(
MallBaseId
);
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
IsHome
),
IsHome
}
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
IsHome
),
IsHome
}
...
@@ -183,12 +181,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -183,12 +181,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniprogramPageTemplModule
(
object
Id
,
int
Status
)
public
bool
RemoveMiniprogramPageTemplModule
(
object
Id
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Status
),
Status
}
{
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Status
),
Status
}
};
};
flag
=
pageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Id
),
Id
));
bool
flag
=
pageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Page_Templ_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -199,8 +196,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -199,8 +196,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniprogramPageTemplDetailsModule
(
object
Id
)
public
bool
RemoveMiniprogramPageTemplDetailsModule
(
object
Id
)
{
{
bool
flag
=
false
;
bool
flag
=
detailsRepository
.
Delete
(
Id
)
>
0
;
flag
=
detailsRepository
.
Delete
(
Id
)>
0
;
return
flag
;
return
flag
;
}
}
}
}
...
...
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
View file @
3618fefa
...
@@ -77,7 +77,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -77,7 +77,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniprogramTemplateModule
(
RB_Miniprogram_Template_Extend
extModel
)
public
bool
SetMiniprogramTemplateModule
(
RB_Miniprogram_Template_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -389,12 +389,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -389,12 +389,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniprogramTemplateModule
(
object
Id
,
int
Status
)
public
bool
RemoveMiniprogramTemplateModule
(
object
Id
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Miniprogram_Template_Extend
.
Status
),
Status
}
{
nameof
(
RB_Miniprogram_Template_Extend
.
Status
),
Status
}
};
};
flag
=
miniprogram_TemplateRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Template_Extend
.
Id
),
Id
));
bool
flag
=
miniprogram_TemplateRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_Template_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
}
}
...
...
Mall.Module.MarketingCenter/RechargeModule.cs
View file @
3618fefa
...
@@ -3,29 +3,26 @@ using Mall.Model.Entity.MarketingCenter;
...
@@ -3,29 +3,26 @@ using Mall.Model.Entity.MarketingCenter;
using
Mall.Model.Entity.User
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.MarketingCenter
;
using
Mall.Model.Extend.MarketingCenter
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Extend.User
;
using
Mall.Repository
;
using
Mall.Repository.MarketingCenter
;
using
Mall.Repository.MarketingCenter
;
using
Mall.Repository.Product
;
using
Mall.Repository.Product
;
using
Mall.Repository.User
;
using
Mall.Repository.User
;
using
NPOI.SS.Formula.Functions
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
using
VT.FW.DB
;
namespace
Mall.Module.MarketingCenter
namespace
Mall.Module.MarketingCenter
{
{
public
class
RechargeModule
public
class
RechargeModule
{
{
private
RB_Recharge_RulesRepository
rulesRepository
=
new
RB_Recharge_RulesRepository
();
private
readonly
RB_Recharge_RulesRepository
rulesRepository
=
new
RB_Recharge_RulesRepository
();
private
RB_Member_BalanceRepository
balanceRepository
=
new
RB_Member_BalanceRepository
();
private
readonly
RB_Member_BalanceRepository
balanceRepository
=
new
RB_Member_BalanceRepository
();
private
RB_Member_IntegralRepository
integralRepository
=
new
RB_Member_IntegralRepository
();
private
readonly
RB_Member_IntegralRepository
integralRepository
=
new
RB_Member_IntegralRepository
();
private
RB_Recharge_SettingsRepository
settingsRepository
=
new
RB_Recharge_SettingsRepository
();
private
readonly
RB_Recharge_SettingsRepository
settingsRepository
=
new
RB_Recharge_SettingsRepository
();
private
RB_Recharge_CustomRepository
customRepository
=
new
RB_Recharge_CustomRepository
();
private
readonly
RB_Recharge_CustomRepository
customRepository
=
new
RB_Recharge_CustomRepository
();
private
RB_Member_BalanceRechargeRepository
balanceRechargeRepository
=
new
RB_Member_BalanceRechargeRepository
();
private
readonly
RB_Member_BalanceRechargeRepository
balanceRechargeRepository
=
new
RB_Member_BalanceRechargeRepository
();
/// <summary>
/// <summary>
/// 会员信息
/// 会员信息
/// </summary>
/// </summary>
...
@@ -270,7 +267,6 @@ namespace Mall.Module.MarketingCenter
...
@@ -270,7 +267,6 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateBalanceRecharge
(
int
UserId
,
int
OrderId
,
string
Out_Trade_No
,
string
Transaction_Id
,
Common
.
Enum
.
Goods
.
OrderPayTypeEnum
PayWay
,
string
PayType
,
decimal
Money
,
DateTime
Time_End
)
public
bool
UpdateBalanceRecharge
(
int
UserId
,
int
OrderId
,
string
Out_Trade_No
,
string
Transaction_Id
,
Common
.
Enum
.
Goods
.
OrderPayTypeEnum
PayWay
,
string
PayType
,
decimal
Money
,
DateTime
Time_End
)
{
{
bool
flag
=
false
;
var
umodel
=
member_UserRepository
.
GetEntity
(
UserId
);
var
umodel
=
member_UserRepository
.
GetEntity
(
UserId
);
if
(
umodel
==
null
)
if
(
umodel
==
null
)
{
{
...
@@ -292,6 +288,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -292,6 +288,7 @@ namespace Mall.Module.MarketingCenter
}
}
var
trans
=
balanceRechargeRepository
.
DbTransaction
;
var
trans
=
balanceRechargeRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
...
@@ -311,37 +308,41 @@ namespace Mall.Module.MarketingCenter
...
@@ -311,37 +308,41 @@ namespace Mall.Module.MarketingCenter
};
};
flag
=
balanceRechargeRepository
.
Update
(
keyValues
,
wheres
,
trans
);
//更新充值记录
flag
=
balanceRechargeRepository
.
Update
(
keyValues
,
wheres
,
trans
);
//更新充值记录
//新增余额
//新增余额
RB_Member_Balance
memberBalanceModel
=
new
RB_Member_Balance
();
RB_Member_Balance
memberBalanceModel
=
new
RB_Member_Balance
memberBalanceModel
.
UserId
=
model
.
UserId
;
{
memberBalanceModel
.
Type
=
Common
.
Enum
.
MarketingCenter
.
RecordTypeEnum
.
Income
;
UserId
=
model
.
UserId
,
memberBalanceModel
.
Balance
=
model
.
Balance
+
Convert
.
ToDecimal
(
model
.
GiveMoney
);
Type
=
Common
.
Enum
.
MarketingCenter
.
RecordTypeEnum
.
Income
,
memberBalanceModel
.
Description
=
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
Convert
.
ToDecimal
(
model
.
GiveMoney
))
:
""
);
Balance
=
model
.
Balance
+
Convert
.
ToDecimal
(
model
.
GiveMoney
),
memberBalanceModel
.
CreateDate
=
model
.
RechargeTime
;
Description
=
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
Convert
.
ToDecimal
(
model
.
GiveMoney
))
:
""
),
memberBalanceModel
.
TenantId
=
model
.
TenantId
;
CreateDate
=
model
.
RechargeTime
,
memberBalanceModel
.
MallBaseId
=
model
.
MallBaseId
;
TenantId
=
model
.
TenantId
,
memberBalanceModel
.
Remarks
=
"订单号:"
+
model
.
OrderNo
+
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
Convert
.
ToDecimal
(
model
.
GiveMoney
))
:
""
);
MallBaseId
=
model
.
MallBaseId
,
memberBalanceModel
.
PlatformType
=
model
.
OrderSource
;
Remarks
=
"订单号:"
+
model
.
OrderNo
+
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
Convert
.
ToDecimal
(
model
.
GiveMoney
))
:
""
),
PlatformType
=
model
.
OrderSource
};
balanceRepository
.
Insert
(
memberBalanceModel
,
trans
);
balanceRepository
.
Insert
(
memberBalanceModel
,
trans
);
//判断是否赠送积分
//判断是否赠送积分
if
(
model
.
GiveIntegral
>
0
)
//有赠送的积分
if
(
model
.
GiveIntegral
>
0
)
//有赠送的积分
{
{
RB_Member_Integral
memberIntegralModel
=
new
RB_Member_Integral
();
RB_Member_Integral
memberIntegralModel
=
new
RB_Member_Integral
memberIntegralModel
.
UserId
=
model
.
UserId
;
{
memberIntegralModel
.
Type
=
Common
.
Enum
.
MarketingCenter
.
RecordTypeEnum
.
Income
;
UserId
=
model
.
UserId
,
memberIntegralModel
.
PlatformType
=
model
.
OrderSource
;
Type
=
Common
.
Enum
.
MarketingCenter
.
RecordTypeEnum
.
Income
,
memberIntegralModel
.
Integral
=
model
.
GiveIntegral
;
PlatformType
=
model
.
OrderSource
,
memberIntegralModel
.
Description
=
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
model
.
GiveIntegral
+
"积分"
)
:
""
);
Integral
=
model
.
GiveIntegral
,
memberIntegralModel
.
TenantId
=
model
.
TenantId
;
Description
=
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
model
.
GiveIntegral
+
"积分"
)
:
""
),
memberIntegralModel
.
MallBaseId
=
model
.
MallBaseId
;
TenantId
=
model
.
TenantId
,
memberIntegralModel
.
Remarks
=
"订单号:"
+
model
.
OrderNo
+
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
model
.
GiveIntegral
+
"积分"
)
:
""
);
MallBaseId
=
model
.
MallBaseId
,
memberIntegralModel
.
CreateDate
=
model
.
RechargeTime
;
Remarks
=
"订单号:"
+
model
.
OrderNo
+
"在线充值"
+
model
.
Balance
+
"元余额"
+
(
model
.
GiveMoney
>
0
?
(
"赠送"
+
model
.
GiveIntegral
+
"积分"
)
:
""
),
memberIntegralModel
.
OrderId
=
0
;
CreateDate
=
model
.
RechargeTime
,
OrderId
=
0
};
integralRepository
.
Insert
(
memberIntegralModel
,
trans
);
integralRepository
.
Insert
(
memberIntegralModel
,
trans
);
}
}
goods_Online_TradeRepository
.
Insert
(
new
Model
.
Entity
.
Product
.
RB_Goods_Online_Trade
()
goods_Online_TradeRepository
.
Insert
(
new
Model
.
Entity
.
Product
.
RB_Goods_Online_Trade
()
{
{
Id
=
0
,
Id
=
0
,
User_Id
=
UserId
,
User_Id
=
UserId
,
...
@@ -363,7 +364,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -363,7 +364,7 @@ namespace Mall.Module.MarketingCenter
TenantId
=
umodel
.
TenantId
,
TenantId
=
umodel
.
TenantId
,
Transaction_Id
=
Transaction_Id
,
Transaction_Id
=
Transaction_Id
,
Type
=
3
Type
=
3
})
;
});
balanceRechargeRepository
.
DBSession
.
Commit
();
balanceRechargeRepository
.
DBSession
.
Commit
();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
Mall.Module.MarketingCenter/ShareModule.cs
View file @
3618fefa
...
@@ -170,7 +170,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -170,7 +170,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareCategoryModule
(
RB_Share_Category_Extend
extModel
)
public
bool
SetShareCategoryModule
(
RB_Share_Category_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -199,12 +199,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -199,12 +199,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveShareCategoryModule
(
object
Id
)
public
bool
RemoveShareCategoryModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Category_Extend
.
Status
),(
int
)
DateStateEnum
.
Delete
},
{
nameof
(
RB_Share_Category_Extend
.
Status
),(
int
)
DateStateEnum
.
Delete
},
};
};
flag
=
share_CategoryRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Category_Extend
.
Id
),
Id
));
bool
flag
=
share_CategoryRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Category_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -237,8 +236,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -237,8 +236,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareFriendModule
(
RB_Share_Friend_Extend
extModel
)
public
bool
SetShareFriendModule
(
RB_Share_Friend_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
=
share_FriendRepository
.
SetShareFrendRepository
(
extModel
);
flag
=
share_FriendRepository
.
SetShareFrendRepository
(
extModel
);
return
flag
;
return
flag
;
}
}
...
@@ -272,12 +270,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -272,12 +270,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveShareFriendModule
(
object
Id
)
public
bool
RemoveShareFriendModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Friend_Extend
.
Status
),(
int
)
DateStateEnum
.
Delete
},
{
nameof
(
RB_Share_Friend_Extend
.
Status
),(
int
)
DateStateEnum
.
Delete
},
};
};
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -289,12 +286,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -289,12 +286,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareFriendIsTopModule
(
object
Id
,
int
IsTop
)
public
bool
SetShareFriendIsTopModule
(
object
Id
,
int
IsTop
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Friend_Extend
.
IsTop
),
IsTop
},
{
nameof
(
RB_Share_Friend_Extend
.
IsTop
),
IsTop
},
};
};
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -306,12 +302,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -306,12 +302,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareFriendIsUseModule
(
object
Id
,
int
IsUse
)
public
bool
SetShareFriendIsUseModule
(
object
Id
,
int
IsUse
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Friend_Extend
.
IsUse
),
IsUse
},
{
nameof
(
RB_Share_Friend_Extend
.
IsUse
),
IsUse
},
};
};
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -323,12 +318,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -323,12 +318,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareFriendSortNumModule
(
object
Id
,
int
SortNum
)
public
bool
SetShareFriendSortNumModule
(
object
Id
,
int
SortNum
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Friend_Extend
.
SortNum
),
SortNum
},
{
nameof
(
RB_Share_Friend_Extend
.
SortNum
),
SortNum
},
};
};
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -340,12 +334,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -340,12 +334,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetShareFriendMaterialInfoModule
(
object
Id
,
string
MaterialInfo
)
public
bool
SetShareFriendMaterialInfoModule
(
object
Id
,
string
MaterialInfo
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Share_Friend_Extend
.
MaterialInfo
),
MaterialInfo
},
{
nameof
(
RB_Share_Friend_Extend
.
MaterialInfo
),
MaterialInfo
},
};
};
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Module.MarketingCenter/StatisticsModule.cs
View file @
3618fefa
...
@@ -13,7 +13,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -13,7 +13,7 @@ namespace Mall.Module.MarketingCenter
{
{
public
class
StatisticsModule
public
class
StatisticsModule
{
{
private
RB_Goods_OrderRepository
orderRepository
=
new
RB_Goods_OrderRepository
();
private
readonly
RB_Goods_OrderRepository
orderRepository
=
new
RB_Goods_OrderRepository
();
/// <summary>
/// <summary>
/// 返佣
/// 返佣
/// </summary>
/// </summary>
...
@@ -294,12 +294,14 @@ namespace Mall.Module.MarketingCenter
...
@@ -294,12 +294,14 @@ namespace Mall.Module.MarketingCenter
{
{
for
(
int
i
=
1
;
i
<
24
;
i
++)
for
(
int
i
=
1
;
i
<
24
;
i
++)
{
{
OrderLine
modelOrderLine
=
new
OrderLine
();
OrderLine
modelOrderLine
=
new
OrderLine
modelOrderLine
.
OrderPay
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Count
();
{
modelOrderLine
.
PayMoney
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Sum
(
x
=>
x
.
Income
??
0
);
OrderPay
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Count
(),
modelOrderLine
.
PayMemerNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
GroupBy
(
x
=>
x
.
UserId
).
Count
();
PayMoney
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Sum
(
x
=>
x
.
Income
??
0
),
modelOrderLine
.
BuyNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Sum
(
x
=>
x
.
GoodsTotalNum
);
PayMemerNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
GroupBy
(
x
=>
x
.
UserId
).
Count
(),
modelOrderLine
.
DateStr
=
(
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
();
BuyNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"dd"
)
==
((
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
())).
Sum
(
x
=>
x
.
GoodsTotalNum
),
DateStr
=
(
i
>
9
)
?
(
"0"
+
i
)
:
i
.
ToString
()
};
model
.
OrderLineList
.
Add
(
modelOrderLine
);
model
.
OrderLineList
.
Add
(
modelOrderLine
);
}
}
}
}
...
@@ -307,12 +309,14 @@ namespace Mall.Module.MarketingCenter
...
@@ -307,12 +309,14 @@ namespace Mall.Module.MarketingCenter
{
{
for
(
int
i
=
0
;
i
<
7
;
i
++)
for
(
int
i
=
0
;
i
<
7
;
i
++)
{
{
OrderLine
modelOrderLine
=
new
OrderLine
();
OrderLine
modelOrderLine
=
new
OrderLine
modelOrderLine
.
OrderPay
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Count
();
{
modelOrderLine
.
PayMoney
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Sum
(
x
=>
x
.
Income
??
0
);
OrderPay
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Count
(),
modelOrderLine
.
PayMemerNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
GroupBy
(
x
=>
x
.
UserId
).
Count
();
PayMoney
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Sum
(
x
=>
x
.
Income
??
0
),
modelOrderLine
.
BuyNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Sum
(
x
=>
x
.
GoodsTotalNum
);
PayMemerNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
GroupBy
(
x
=>
x
.
UserId
).
Count
(),
modelOrderLine
.
DateStr
=
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
);
BuyNum
=
List
.
Where
(
x
=>
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)).
Sum
(
x
=>
x
.
GoodsTotalNum
),
DateStr
=
System
.
DateTime
.
Now
.
AddDays
(
i
).
ToString
(
"yyyy-MM-dd"
)
};
model
.
OrderLineList
.
Add
(
modelOrderLine
);
model
.
OrderLineList
.
Add
(
modelOrderLine
);
}
}
}
}
...
...
Mall.Module.MarketingCenter/TemplateMarketModule.cs
View file @
3618fefa
...
@@ -55,7 +55,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -55,7 +55,7 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
SetTemplateMarketModule
(
RB_Template_Market_Extend
extModel
)
public
bool
SetTemplateMarketModule
(
RB_Template_Market_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -96,12 +96,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -96,12 +96,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveTemplateMarketModule
(
object
Id
)
public
bool
RemoveTemplateMarketModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Template_Market_Extend
.
Status
),
1
},
{
nameof
(
RB_Template_Market_Extend
.
Status
),
1
},
};
};
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
bool
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -113,12 +112,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -113,12 +112,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateTemplateMarketIsShowModule
(
object
Id
,
int
IsShow
)
public
bool
UpdateTemplateMarketIsShowModule
(
object
Id
,
int
IsShow
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Template_Market_Extend
.
IsShow
),
IsShow
},
{
nameof
(
RB_Template_Market_Extend
.
IsShow
),
IsShow
},
};
};
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
bool
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -130,12 +128,11 @@ namespace Mall.Module.MarketingCenter
...
@@ -130,12 +128,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateTemplateMarketIsUseModule
(
object
Id
,
int
IsUse
)
public
bool
UpdateTemplateMarketIsUseModule
(
object
Id
,
int
IsUse
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Template_Market_Extend
.
IsUse
),
IsUse
},
{
nameof
(
RB_Template_Market_Extend
.
IsUse
),
IsUse
},
};
};
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
bool
flag
=
template_MarketRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Template_Market_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Module.Property/PropertyModule.cs
View file @
3618fefa
...
@@ -89,10 +89,7 @@ namespace Mall.Module.Property
...
@@ -89,10 +89,7 @@ namespace Mall.Module.Property
/// 采购单明细
/// 采购单明细
/// </summary>
/// </summary>
private
readonly
RB_Procurement_DetailRepository
procurement_DetailRepository
=
new
RB_Procurement_DetailRepository
();
private
readonly
RB_Procurement_DetailRepository
procurement_DetailRepository
=
new
RB_Procurement_DetailRepository
();
/// <summary>
/// 员工
/// </summary>
private
readonly
RB_EmployeeRepository
employeeRepository
=
new
RB_EmployeeRepository
();
/// <summary>
/// <summary>
/// 仓库
/// 仓库
/// </summary>
/// </summary>
...
@@ -268,17 +265,19 @@ namespace Mall.Module.Property
...
@@ -268,17 +265,19 @@ namespace Mall.Module.Property
}
}
else
else
{
{
item
.
SpecificationPriceList
=
new
List
<
RB_Goods_SpecificationPrice_Extend
>();
item
.
SpecificationPriceList
=
new
List
<
RB_Goods_SpecificationPrice_Extend
>
item
.
SpecificationPriceList
.
Add
(
new
RB_Goods_SpecificationPrice_Extend
()
{
{
Id
=
item
.
GoodsId
??
0
,
new
RB_Goods_SpecificationPrice_Extend
()
GoodsId
=
item
.
GoodsId
,
{
GoodsNumbers
=
item
.
GoodsNumbers
,
Id
=
item
.
GoodsId
??
0
,
GoodsWeight
=
item
.
GoodsWeight
,
GoodsId
=
item
.
GoodsId
,
InventoryNum
=
item
.
InventoryNum
,
GoodsNumbers
=
item
.
GoodsNumbers
,
SpecificationSort
=
""
,
GoodsWeight
=
item
.
GoodsWeight
,
AttrList
=
new
List
<
string
>()
{
"规格:"
+
item
.
DefaultSpecificationName
}
InventoryNum
=
item
.
InventoryNum
,
});
SpecificationSort
=
""
,
AttrList
=
new
List
<
string
>()
{
"规格:"
+
item
.
DefaultSpecificationName
}
}
};
}
}
}
}
}
}
...
@@ -637,20 +636,22 @@ namespace Mall.Module.Property
...
@@ -637,20 +636,22 @@ namespace Mall.Module.Property
}
}
#
region
生成入库单
#
region
生成入库单
RB_Supplies_StockIn_Extend
stockInModel
=
new
RB_Supplies_StockIn_Extend
();
RB_Supplies_StockIn_Extend
stockInModel
=
new
RB_Supplies_StockIn_Extend
stockInModel
.
ProcurementId
=
pModel
.
Id
;
{
stockInModel
.
WarehouseId
=
pModel
.
WareHouseId
;
ProcurementId
=
pModel
.
Id
,
stockInModel
.
StockInDate
=
DateTime
.
Now
;
WarehouseId
=
pModel
.
WareHouseId
,
stockInModel
.
Status
=
0
;
StockInDate
=
DateTime
.
Now
,
stockInModel
.
RB_Branch_Id
=
eRPBranchId
;
Status
=
0
,
stockInModel
.
RB_Group_Id
=
eRPGroupId
;
RB_Branch_Id
=
eRPBranchId
,
stockInModel
.
CreateBy
=
eRPEmpId
;
RB_Group_Id
=
eRPGroupId
,
stockInModel
.
CreateDate
=
DateTime
.
Now
;
CreateBy
=
eRPEmpId
,
stockInModel
.
UpdateBy
=
eRPEmpId
;
CreateDate
=
DateTime
.
Now
,
stockInModel
.
UpdateDate
=
DateTime
.
Now
;
UpdateBy
=
eRPEmpId
,
stockInModel
.
SupplierName
=
pModel
.
SupplierName
;
UpdateDate
=
DateTime
.
Now
,
stockInModel
.
DetailList
=
new
List
<
RB_Supplies_StockInDetail_Extend
>();
SupplierName
=
pModel
.
SupplierName
,
stockInModel
.
Money
=
0
;
DetailList
=
new
List
<
RB_Supplies_StockInDetail_Extend
>(),
Money
=
0
};
foreach
(
var
item
in
demodel
.
DetailList
)
foreach
(
var
item
in
demodel
.
DetailList
)
{
{
var
dModel
=
DetailList
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
&&
x
.
SpecificationKey
==
item
.
SpecificationKey
).
FirstOrDefault
();
var
dModel
=
DetailList
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
&&
x
.
SpecificationKey
==
item
.
SpecificationKey
).
FirstOrDefault
();
...
...
Mall.Module.User/ContentModule.cs
View file @
3618fefa
...
@@ -19,27 +19,27 @@ namespace Mall.Module.User
...
@@ -19,27 +19,27 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 专题分类表仓储层对象
/// 专题分类表仓储层对象
/// </summary>
/// </summary>
private
RB_Topic_TypeRepository
topic_TypeRepository
=
new
RB_Topic_TypeRepository
();
private
readonly
RB_Topic_TypeRepository
topic_TypeRepository
=
new
RB_Topic_TypeRepository
();
/// <summary>
/// <summary>
/// 门店表仓储层对象
/// 门店表仓储层对象
/// </summary>
/// </summary>
private
RB_StoresRepository
storesRepository
=
new
RB_StoresRepository
();
private
readonly
RB_StoresRepository
storesRepository
=
new
RB_StoresRepository
();
/// <summary>
/// <summary>
/// 视频表仓储层对象
/// 视频表仓储层对象
/// </summary>
/// </summary>
private
RB_VideoRepository
videoRepository
=
new
RB_VideoRepository
();
private
readonly
RB_VideoRepository
videoRepository
=
new
RB_VideoRepository
();
/// <summary>
/// <summary>
/// 文章表仓储层对象
/// 文章表仓储层对象
/// </summary>
/// </summary>
private
RB_ArticleRepository
articleRepository
=
new
RB_ArticleRepository
();
private
readonly
RB_ArticleRepository
articleRepository
=
new
RB_ArticleRepository
();
/// <summary>
/// <summary>
/// 专题仓储层对象
/// 专题仓储层对象
/// </summary>
/// </summary>
private
RB_TopicRepository
topicRepository
=
new
RB_TopicRepository
();
private
readonly
RB_TopicRepository
topicRepository
=
new
RB_TopicRepository
();
#
region
专题分类
#
region
专题分类
...
@@ -73,7 +73,7 @@ namespace Mall.Module.User
...
@@ -73,7 +73,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetTopicTypeModule
(
RB_Topic_Type_Extend
extModel
)
public
bool
SetTopicTypeModule
(
RB_Topic_Type_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -110,12 +110,11 @@ namespace Mall.Module.User
...
@@ -110,12 +110,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveTopicTypeModule
(
object
Id
)
public
bool
RemoveTopicTypeModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Topic_Type_Extend
.
Status
),
1
},
{
nameof
(
RB_Topic_Type_Extend
.
Status
),
1
},
};
};
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
bool
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -127,12 +126,11 @@ namespace Mall.Module.User
...
@@ -127,12 +126,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateTopicTypeStatusModule
(
object
Id
,
int
IsDisable
)
public
bool
UpdateTopicTypeStatusModule
(
object
Id
,
int
IsDisable
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Topic_Type_Extend
.
IsDisable
),
IsDisable
},
{
nameof
(
RB_Topic_Type_Extend
.
IsDisable
),
IsDisable
},
};
};
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
bool
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
...
@@ -169,7 +167,7 @@ namespace Mall.Module.User
...
@@ -169,7 +167,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetTopicModule
(
RB_Topic_Extend
extModel
)
public
bool
SetTopicModule
(
RB_Topic_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -235,12 +233,11 @@ namespace Mall.Module.User
...
@@ -235,12 +233,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveTopicModule
(
object
Id
)
public
bool
RemoveTopicModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Topic_Extend
.
Status
),
1
},
{
nameof
(
RB_Topic_Extend
.
Status
),
1
},
};
};
flag
=
topicRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Extend
.
Id
),
Id
));
bool
flag
=
topicRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
...
@@ -277,7 +274,7 @@ namespace Mall.Module.User
...
@@ -277,7 +274,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetStoresModule
(
RB_Stores_Extend
extModel
)
public
bool
SetStoresModule
(
RB_Stores_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -322,12 +319,11 @@ namespace Mall.Module.User
...
@@ -322,12 +319,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveStoresModule
(
object
Id
)
public
bool
RemoveStoresModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Stores_Extend
.
Status
),
1
},
{
nameof
(
RB_Stores_Extend
.
Status
),
1
},
};
};
flag
=
storesRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Stores_Extend
.
Id
),
Id
));
bool
flag
=
storesRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Stores_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -364,7 +360,7 @@ namespace Mall.Module.User
...
@@ -364,7 +360,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetVideoModule
(
RB_Video_Extend
extModel
)
public
bool
SetVideoModule
(
RB_Video_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -404,12 +400,11 @@ namespace Mall.Module.User
...
@@ -404,12 +400,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveVideoModule
(
object
Id
)
public
bool
RemoveVideoModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Video_Extend
.
Status
),
1
},
{
nameof
(
RB_Video_Extend
.
Status
),
1
},
};
};
flag
=
videoRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Video_Extend
.
Id
),
Id
));
bool
flag
=
videoRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Video_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
...
@@ -446,7 +441,7 @@ namespace Mall.Module.User
...
@@ -446,7 +441,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetArticleModule
(
RB_Article_Extend
extModel
)
public
bool
SetArticleModule
(
RB_Article_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -484,12 +479,11 @@ namespace Mall.Module.User
...
@@ -484,12 +479,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveArticleModule
(
object
Id
)
public
bool
RemoveArticleModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Article_Extend
.
Status
),
1
},
{
nameof
(
RB_Article_Extend
.
Status
),
1
},
};
};
flag
=
articleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Article_Extend
.
Id
),
Id
));
bool
flag
=
articleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Article_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -501,12 +495,11 @@ namespace Mall.Module.User
...
@@ -501,12 +495,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateArticleIsDisableModule
(
object
Id
,
int
IsDisable
)
public
bool
UpdateArticleIsDisableModule
(
object
Id
,
int
IsDisable
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Article_Extend
.
IsDisable
),
IsDisable
},
{
nameof
(
RB_Article_Extend
.
IsDisable
),
IsDisable
},
};
};
flag
=
articleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Article_Extend
.
Id
),
Id
));
bool
flag
=
articleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Article_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
...
...
Mall.Module.User/EmployeeModule.cs
View file @
3618fefa
...
@@ -98,7 +98,7 @@ namespace Mall.Module.User
...
@@ -98,7 +98,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetRoleModule
(
RB_Role_Extend
extModel
)
public
bool
SetRoleModule
(
RB_Role_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
RoleId
>
0
)
if
(
extModel
.
RoleId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -135,12 +135,11 @@ namespace Mall.Module.User
...
@@ -135,12 +135,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveRoleModule
(
object
RoleId
)
public
bool
RemoveRoleModule
(
object
RoleId
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Role_Extend
.
Status
),
1
},
{
nameof
(
RB_Role_Extend
.
Status
),
1
},
};
};
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Role_Extend
.
RoleId
),
RoleId
));
bool
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Role_Extend
.
RoleId
),
RoleId
));
return
flag
;
return
flag
;
}
}
...
@@ -178,7 +177,7 @@ namespace Mall.Module.User
...
@@ -178,7 +177,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetEmployeeModule
(
RB_Employee_Extend
extModel
)
public
bool
SetEmployeeModule
(
RB_Employee_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
EmpId
>
0
)
if
(
extModel
.
EmpId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -205,12 +204,11 @@ namespace Mall.Module.User
...
@@ -205,12 +204,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetEmployeePwdModule
(
RB_Employee_Extend
extModel
)
public
bool
SetEmployeePwdModule
(
RB_Employee_Extend
extModel
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Employee_Extend
.
EmpPwd
),
extModel
.
EmpPwd
},
{
nameof
(
RB_Employee_Extend
.
EmpPwd
),
extModel
.
EmpPwd
},
};
};
flag
=
employeeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
extModel
.
EmpId
));
bool
flag
=
employeeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
extModel
.
EmpId
));
return
flag
;
return
flag
;
}
}
...
@@ -231,12 +229,11 @@ namespace Mall.Module.User
...
@@ -231,12 +229,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveEmployeeModule
(
object
EmpId
)
public
bool
RemoveEmployeeModule
(
object
EmpId
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Employee_Extend
.
Status
),
1
},
{
nameof
(
RB_Employee_Extend
.
Status
),
1
},
};
};
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
EmpId
));
bool
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
EmpId
));
return
flag
;
return
flag
;
}
}
...
@@ -267,12 +264,12 @@ namespace Mall.Module.User
...
@@ -267,12 +264,12 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetEmpConfigModule
(
RB_Emp_Config_Extend
extModel
)
public
bool
SetEmpConfigModule
(
RB_Emp_Config_Extend
extModel
)
{
{
bool
flag
=
false
;
var
defaultModel
=
GetEmpConfigListModule
(
new
RB_Emp_Config_Extend
()
{
MallBaseId
=
extModel
.
MallBaseId
,
TenantId
=
extModel
.
TenantId
});
var
defaultModel
=
GetEmpConfigListModule
(
new
RB_Emp_Config_Extend
()
{
MallBaseId
=
extModel
.
MallBaseId
,
TenantId
=
extModel
.
TenantId
});
if
(
defaultModel
!=
null
&&
defaultModel
.
ConfigId
>
0
)
if
(
defaultModel
!=
null
&&
defaultModel
.
ConfigId
>
0
)
{
{
extModel
.
ConfigId
=
defaultModel
.
ConfigId
;
extModel
.
ConfigId
=
defaultModel
.
ConfigId
;
}
}
bool
flag
;
if
(
extModel
.
ConfigId
>
0
)
if
(
extModel
.
ConfigId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.User/GroupBuyConfigModule.cs
View file @
3618fefa
...
@@ -24,9 +24,9 @@ namespace Mall.Module.User
...
@@ -24,9 +24,9 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetGroupBuyConfigModule
(
RB_GroupBuyConfig_Extend
extModel
)
public
bool
SetGroupBuyConfigModule
(
RB_GroupBuyConfig_Extend
extModel
)
{
{
bool
flag
=
false
;
var
oldEntity
=
GetGroupBuyConfigModule
(
extModel
);
var
oldEntity
=
GetGroupBuyConfigModule
(
extModel
);
extModel
.
GroupByConfigId
=
oldEntity
?.
GroupByConfigId
??
0
;
extModel
.
GroupByConfigId
=
oldEntity
?.
GroupByConfigId
??
0
;
bool
flag
;
if
(
extModel
.
GroupByConfigId
>
0
)
if
(
extModel
.
GroupByConfigId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -63,9 +63,9 @@ namespace Mall.Module.User
...
@@ -63,9 +63,9 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetGroupBuyConfigMessageModule
(
RB_GroupBuyConfig_Extend
extModel
)
public
bool
SetGroupBuyConfigMessageModule
(
RB_GroupBuyConfig_Extend
extModel
)
{
{
bool
flag
=
false
;
var
oldEntity
=
GetGroupBuyConfigModule
(
extModel
);
var
oldEntity
=
GetGroupBuyConfigModule
(
extModel
);
extModel
.
GroupByConfigId
=
oldEntity
?.
GroupByConfigId
??
0
;
extModel
.
GroupByConfigId
=
oldEntity
?.
GroupByConfigId
??
0
;
bool
flag
;
if
(
extModel
.
GroupByConfigId
>
0
)
if
(
extModel
.
GroupByConfigId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.User/MemberUserModule.cs
View file @
3618fefa
using
Mall.Model.Extend.User
;
using
Mall.Model.Extend.User
;
using
Mall.Repository.User
;
using
Mall.Repository.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
using
VT.FW.DB
;
using
System.Linq
;
namespace
Mall.Module.User
namespace
Mall.Module.User
{
{
...
...
Mall.Module.User/MenuModule.cs
View file @
3618fefa
...
@@ -48,7 +48,7 @@ namespace Mall.Module.User
...
@@ -48,7 +48,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMenuModule
(
RB_Menu_Extend
extModel
)
public
bool
SetMenuModule
(
RB_Menu_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
MenuId
>
0
)
if
(
extModel
.
MenuId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -80,12 +80,11 @@ namespace Mall.Module.User
...
@@ -80,12 +80,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMenuModule
(
object
MenuId
,
int
Status
)
public
bool
RemoveMenuModule
(
object
MenuId
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Menu_Extend
.
Status
),
Status
},
{
nameof
(
RB_Menu_Extend
.
Status
),
Status
},
};
};
flag
=
menuRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Menu_Extend
.
MenuId
),
MenuId
));
bool
flag
=
menuRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Menu_Extend
.
MenuId
),
MenuId
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Module.User/MiniProgramModule.cs
View file @
3618fefa
...
@@ -28,46 +28,46 @@ namespace Mall.Module.User
...
@@ -28,46 +28,46 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 商户仓储层对象
/// 商户仓储层对象
/// </summary>
/// </summary>
private
Mall
.
Repository
.
User
.
RB_MiniProgramRepository
programRepository
=
new
Repository
.
User
.
RB_MiniProgramRepository
();
private
readonly
RB_MiniProgramRepository
programRepository
=
new
Repository
.
User
.
RB_MiniProgramRepository
();
/// <summary>
/// <summary>
/// 底部导航仓储层对象
/// 底部导航仓储层对象
/// </summary>
/// </summary>
private
Repository
.
User
.
RB_Miniprogram_BottomnavRepository
bottomnavRepository
=
new
Repository
.
User
.
RB_Miniprogram_BottomnavRepository
();
private
readonly
RB_Miniprogram_BottomnavRepository
bottomnavRepository
=
new
Repository
.
User
.
RB_Miniprogram_BottomnavRepository
();
/// <summary>
/// <summary>
/// 用户中心仓储层对象
/// 用户中心仓储层对象
/// </summary>
/// </summary>
private
Repository
.
User
.
RB_MiniProgram_UserCenterMenuRepository
centerMenuRepository
=
new
Repository
.
User
.
RB_MiniProgram_UserCenterMenuRepository
();
private
readonly
RB_MiniProgram_UserCenterMenuRepository
centerMenuRepository
=
new
Repository
.
User
.
RB_MiniProgram_UserCenterMenuRepository
();
/// <summary>
/// <summary>
/// 会员订阅消息仓储层对象
/// 会员订阅消息仓储层对象
/// </summary>
/// </summary>
private
Repository
.
User
.
RB_Member_SubscriptionRepository
subscriptionRepository
=
new
Repository
.
User
.
RB_Member_SubscriptionRepository
();
private
readonly
RB_Member_SubscriptionRepository
subscriptionRepository
=
new
Repository
.
User
.
RB_Member_SubscriptionRepository
();
/// <summary>
/// <summary>
/// 会员仓储层对象
/// 会员仓储层对象
/// </summary>
/// </summary>
private
Repository
.
User
.
RB_Member_UserRepository
userRepository
=
new
Repository
.
User
.
RB_Member_UserRepository
();
private
readonly
RB_Member_UserRepository
userRepository
=
new
Repository
.
User
.
RB_Member_UserRepository
();
/// <summary>
/// <summary>
/// 直播房间仓储层对象
/// 直播房间仓储层对象
/// </summary>
/// </summary>
private
Repository
.
AppletWeChat
.
RB_Live_HouseRepository
liveHouseRepository
=
new
Repository
.
AppletWeChat
.
RB_Live_HouseRepository
();
private
readonly
RB_Live_HouseRepository
liveHouseRepository
=
new
Repository
.
AppletWeChat
.
RB_Live_HouseRepository
();
/// <summary>
/// <summary>
/// 直播房间仓储层对象
/// 直播房间仓储层对象
/// </summary>
/// </summary>
private
Repository
.
AppletWeChat
.
RB_Live_HouseImgRepository
liveHouseImgRepository
=
new
Repository
.
AppletWeChat
.
RB_Live_HouseImgRepository
();
private
readonly
RB_Live_HouseImgRepository
liveHouseImgRepository
=
new
Repository
.
AppletWeChat
.
RB_Live_HouseImgRepository
();
/// <summary>
/// <summary>
/// 轮播图表仓储层对象
/// 轮播图表仓储层对象
/// </summary>
/// </summary>
private
RB_Mall_NavRepository
navRepository
=
new
RB_Mall_NavRepository
();
private
readonly
RB_Mall_NavRepository
navRepository
=
new
RB_Mall_NavRepository
();
/// <summary>
/// <summary>
/// 图片魔方表仓储层对象
/// 图片魔方表仓储层对象
/// </summary>
/// </summary>
private
RB_Mall_MagicRepository
magicRepository
=
new
RB_Mall_MagicRepository
();
private
readonly
RB_Mall_MagicRepository
magicRepository
=
new
RB_Mall_MagicRepository
();
/// <summary>
/// <summary>
/// 用户共用模块
/// 用户共用模块
...
@@ -116,7 +116,7 @@ namespace Mall.Module.User
...
@@ -116,7 +116,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMallNavModule
(
RB_Mall_Nav_Extend
extModel
)
public
bool
SetMallNavModule
(
RB_Mall_Nav_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -158,12 +158,11 @@ namespace Mall.Module.User
...
@@ -158,12 +158,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMallNavModule
(
object
Id
)
public
bool
RemoveMallNavModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Mall_Nav_Extend
.
Status
),
1
},
{
nameof
(
RB_Mall_Nav_Extend
.
Status
),
1
},
};
};
flag
=
navRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Mall_Nav_Extend
.
Id
),
Id
));
bool
flag
=
navRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Mall_Nav_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
...
@@ -211,7 +210,7 @@ namespace Mall.Module.User
...
@@ -211,7 +210,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMallMagicModule
(
RB_Mall_Magic_Extend
extModel
)
public
bool
SetMallMagicModule
(
RB_Mall_Magic_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -257,12 +256,11 @@ namespace Mall.Module.User
...
@@ -257,12 +256,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMallMagicModule
(
object
Id
)
public
bool
RemoveMallMagicModule
(
object
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Mall_Magic_Extend
.
Status
),
1
},
{
nameof
(
RB_Mall_Magic_Extend
.
Status
),
1
},
};
};
flag
=
magicRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Mall_Magic_Extend
.
Id
),
Id
));
bool
flag
=
magicRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Mall_Magic_Extend
.
Id
),
Id
));
return
flag
;
return
flag
;
}
}
#
endregion
#
endregion
...
@@ -325,11 +323,11 @@ namespace Mall.Module.User
...
@@ -325,11 +323,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgramModule
(
RB_MiniProgram_Extend
extModel
)
public
bool
SetMiniProgramModule
(
RB_MiniProgram_Extend
extModel
)
{
{
bool
flag
=
false
;
if
(
extModel
.
IsEffective
==
1
)
if
(
extModel
.
IsEffective
==
1
)
{
{
extModel
.
MallValidate
=
null
;
extModel
.
MallValidate
=
null
;
}
}
bool
flag
;
if
(
extModel
.
MallBaseId
>
0
)
if
(
extModel
.
MallBaseId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -523,12 +521,11 @@ namespace Mall.Module.User
...
@@ -523,12 +521,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgramModule
(
object
MallBaseId
,
int
Status
)
public
bool
SetMiniProgramModule
(
object
MallBaseId
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_MiniProgram_Extend
.
Status
),
Status
},
{
nameof
(
RB_MiniProgram_Extend
.
Status
),
Status
},
};
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
bool
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
return
flag
;
return
flag
;
}
}
...
@@ -540,12 +537,11 @@ namespace Mall.Module.User
...
@@ -540,12 +537,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgramStatusModule
(
object
MallBaseId
,
int
Status
)
public
bool
SetMiniProgramStatusModule
(
object
MallBaseId
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_MiniProgram_Extend
.
Status
),
Status
},
{
nameof
(
RB_MiniProgram_Extend
.
Status
),
Status
},
};
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
bool
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
return
flag
;
return
flag
;
}
}
...
@@ -557,12 +553,11 @@ namespace Mall.Module.User
...
@@ -557,12 +553,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgramRecycleModule
(
object
MallBaseId
,
int
Is_Recycle
)
public
bool
SetMiniProgramRecycleModule
(
object
MallBaseId
,
int
Is_Recycle
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_MiniProgram_Extend
.
Is_Recycle
),
Is_Recycle
},
{
nameof
(
RB_MiniProgram_Extend
.
Is_Recycle
),
Is_Recycle
},
};
};
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
bool
flag
=
programRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Extend
.
MallBaseId
),
MallBaseId
));
return
flag
;
return
flag
;
}
}
...
@@ -642,8 +637,7 @@ namespace Mall.Module.User
...
@@ -642,8 +637,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniProgramMallTagModule
(
string
TagId
)
public
bool
RemoveMiniProgramMallTagModule
(
string
TagId
)
{
{
var
flag
=
false
;
bool
flag
=
bottomnavRepository
.
DeleteBottomnavRepository
(
TagId
);
flag
=
bottomnavRepository
.
DeleteBottomnavRepository
(
TagId
);
return
flag
;
return
flag
;
}
}
...
@@ -846,8 +840,7 @@ namespace Mall.Module.User
...
@@ -846,8 +840,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniUserCenterMenuModule
(
object
DetailId
)
public
bool
RemoveMiniUserCenterMenuModule
(
object
DetailId
)
{
{
bool
flag
=
false
;
bool
flag
=
centerMenuRepository
.
Delete
(
DetailId
)
>
0
;
flag
=
centerMenuRepository
.
Delete
(
DetailId
)
>
0
;
return
flag
;
return
flag
;
}
}
...
@@ -1841,7 +1834,7 @@ namespace Mall.Module.User
...
@@ -1841,7 +1834,7 @@ namespace Mall.Module.User
var
postdata
=
new
var
postdata
=
new
{
{
action
=
"get_replay"
,
action
=
"get_replay"
,
room_id
=
room_id
,
room_id
,
start
=
0
,
start
=
0
,
limit
=
100
limit
=
100
};
};
...
@@ -1987,8 +1980,6 @@ namespace Mall.Module.User
...
@@ -1987,8 +1980,6 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
DelLiveHouseImg
(
int
id
,
int
uid
,
int
mallBaseId
)
public
bool
DelLiveHouseImg
(
int
id
,
int
uid
,
int
mallBaseId
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
cols
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Live_HouseImg
.
Status
),
1
},
{
nameof
(
RB_Live_HouseImg
.
Status
),
1
},
...
@@ -2010,7 +2001,7 @@ namespace Mall.Module.User
...
@@ -2010,7 +2001,7 @@ namespace Mall.Module.User
OperatorEnum
=
OperatorEnum
.
Equal
OperatorEnum
=
OperatorEnum
.
Equal
}
}
};
};
flag
=
liveHouseImgRepository
.
Update
(
cols
,
wheres1
);
bool
flag
=
liveHouseImgRepository
.
Update
(
cols
,
wheres1
);
return
flag
;
return
flag
;
}
}
...
@@ -2154,9 +2145,9 @@ namespace Mall.Module.User
...
@@ -2154,9 +2145,9 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetLiveConfigModule
(
RB_Live_Config_Extend
extModel
)
public
bool
SetLiveConfigModule
(
RB_Live_Config_Extend
extModel
)
{
{
var
flag
=
false
;
var
oldModel
=
GetLiveConfigModule
(
extModel
);
var
oldModel
=
GetLiveConfigModule
(
extModel
);
if
(
oldModel
!=
null
&&
oldModel
.
Id
>
0
)
bool
flag
;
if
(
oldModel
!=
null
&&
oldModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
...
...
Mall.Module.User/MiniProgramMsgModule.cs
View file @
3618fefa
...
@@ -25,17 +25,17 @@ namespace Mall.Module.User
...
@@ -25,17 +25,17 @@ namespace Mall.Module.User
/// <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>
private
Repository
.
User
.
RB_Member_SubscriptionRepository
subscriptionRepository
=
new
Repository
.
User
.
RB_Member_SubscriptionRepository
();
private
readonly
RB_Member_SubscriptionRepository
subscriptionRepository
=
new
Repository
.
User
.
RB_Member_SubscriptionRepository
();
/// <summary>
/// <summary>
/// 会员仓储层对象
/// 会员仓储层对象
/// </summary>
/// </summary>
private
Repository
.
User
.
RB_Member_UserRepository
userRepository
=
new
Repository
.
User
.
RB_Member_UserRepository
();
private
readonly
RB_Member_UserRepository
userRepository
=
new
Repository
.
User
.
RB_Member_UserRepository
();
...
...
Mall.Module.User/MiniProgramNaviconModule.cs
View file @
3618fefa
...
@@ -15,7 +15,7 @@ namespace Mall.Module.User
...
@@ -15,7 +15,7 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 导航图标仓储层对象
/// 导航图标仓储层对象
/// </summary>
/// </summary>
private
Mall
.
Repository
.
User
.
RB_MiniProgram_NaviconRepository
naviconRepository
=
new
Repository
.
User
.
RB_MiniProgram_NaviconRepository
();
private
readonly
Repository
.
User
.
RB_MiniProgram_NaviconRepository
naviconRepository
=
new
Repository
.
User
.
RB_MiniProgram_NaviconRepository
();
/// <summary>
/// <summary>
/// 根据查询条件获取小程序导航图标列表
/// 根据查询条件获取小程序导航图标列表
...
@@ -48,8 +48,7 @@ namespace Mall.Module.User
...
@@ -48,8 +48,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgramNaviconModule
(
RB_MiniProgram_Navicon_Extend
extModel
)
public
bool
SetMiniProgramNaviconModule
(
RB_MiniProgram_Navicon_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
NavIconId
>
0
)
if
(
extModel
.
NavIconId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -78,13 +77,11 @@ namespace Mall.Module.User
...
@@ -78,13 +77,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniProgramNaviconModule
(
object
NavIconId
)
public
bool
RemoveMiniProgramNaviconModule
(
object
NavIconId
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_MiniProgram_Navicon_Extend
.
NavIconStatus
),
1
},
{
nameof
(
RB_MiniProgram_Navicon_Extend
.
NavIconStatus
),
1
},
};
};
flag
=
naviconRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Navicon_Extend
.
NavIconId
),
NavIconId
));
bool
flag
=
naviconRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_MiniProgram_Navicon_Extend
.
NavIconId
),
NavIconId
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Module.User/MiniProgramPageModule.cs
View file @
3618fefa
...
@@ -60,7 +60,7 @@ namespace Mall.Module.User
...
@@ -60,7 +60,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniProgram_Page_Module
(
RB_MiniProgram_Page_Extend
extModel
)
public
bool
SetMiniProgram_Page_Module
(
RB_MiniProgram_Page_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -248,12 +248,12 @@ namespace Mall.Module.User
...
@@ -248,12 +248,12 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetMiniprogram_PageManage_Module
(
RB_Miniprogram_PageManage_Extend
extModel
)
public
bool
SetMiniprogram_PageManage_Module
(
RB_Miniprogram_PageManage_Extend
extModel
)
{
{
bool
flag
=
false
;
if
(
extModel
.
IsParameter
==
0
)
if
(
extModel
.
IsParameter
==
0
)
{
{
extModel
.
ParameterValue
=
""
;
extModel
.
ParameterValue
=
""
;
extModel
.
TipText
=
""
;
extModel
.
TipText
=
""
;
}
}
bool
flag
;
if
(
extModel
.
PageId
>
0
)
if
(
extModel
.
PageId
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -286,12 +286,11 @@ namespace Mall.Module.User
...
@@ -286,12 +286,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveMiniprogram_PageManage_Module
(
object
PageId
,
int
Status
)
public
bool
RemoveMiniprogram_PageManage_Module
(
object
PageId
,
int
Status
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Miniprogram_PageManage_Extend
.
Status
),
Status
},
{
nameof
(
RB_Miniprogram_PageManage_Extend
.
Status
),
Status
},
};
};
flag
=
miniprogram_PageManageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_PageManage_Extend
.
PageId
),
PageId
));
bool
flag
=
miniprogram_PageManageRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Miniprogram_PageManage_Extend
.
PageId
),
PageId
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Module.User/PosterModule.cs
View file @
3618fefa
...
@@ -16,13 +16,13 @@ namespace Mall.Module.User
...
@@ -16,13 +16,13 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 分销海报仓储层对象
/// 分销海报仓储层对象
/// </summary>
/// </summary>
private
RB_MiniProgram_FenXiaoPosterRepository
fenXiaoPosterRepository
=
new
RB_MiniProgram_FenXiaoPosterRepository
();
private
readonly
RB_MiniProgram_FenXiaoPosterRepository
fenXiaoPosterRepository
=
new
RB_MiniProgram_FenXiaoPosterRepository
();
/// <summary>
/// <summary>
/// 商品分销仓储层对象
/// 商品分销仓储层对象
/// </summary>
/// </summary>
private
RB_MiniProgram_GoodPosterRepository
goodPosterRepository
=
new
RB_MiniProgram_GoodPosterRepository
();
private
readonly
RB_MiniProgram_GoodPosterRepository
goodPosterRepository
=
new
RB_MiniProgram_GoodPosterRepository
();
/// <summary>
/// <summary>
/// 根据查询条件获取分销海报实体
/// 根据查询条件获取分销海报实体
...
@@ -41,7 +41,7 @@ namespace Mall.Module.User
...
@@ -41,7 +41,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetFenXiaoPosterModule
(
RB_MiniProgram_FenXiaoPoster_Extend
extModel
)
public
bool
SetFenXiaoPosterModule
(
RB_MiniProgram_FenXiaoPoster_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
@@ -90,7 +90,7 @@ namespace Mall.Module.User
...
@@ -90,7 +90,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetGoodPosterModule
(
RB_MiniProgram_GoodPoster_Extend
extModel
)
public
bool
SetGoodPosterModule
(
RB_MiniProgram_GoodPoster_Extend
extModel
)
{
{
bool
flag
=
false
;
bool
flag
;
if
(
extModel
.
Id
>
0
)
if
(
extModel
.
Id
>
0
)
{
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.User/SmallShopsModule.cs
View file @
3618fefa
...
@@ -90,7 +90,7 @@ namespace Mall.Module.User
...
@@ -90,7 +90,7 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 财务单据规则
/// 财务单据规则
/// </summary>
/// </summary>
private
static
RB_Finance_ConfigurineRepository
financeConfigurineRepository
=
new
RB_Finance_ConfigurineRepository
();
private
static
readonly
RB_Finance_ConfigurineRepository
financeConfigurineRepository
=
new
RB_Finance_ConfigurineRepository
();
/// <summary>
/// <summary>
/// 可简化
/// 可简化
...
@@ -215,10 +215,9 @@ namespace Mall.Module.User
...
@@ -215,10 +215,9 @@ namespace Mall.Module.User
/// </summary>
/// </summary>
/// <param name="smallShopsId"></param>
/// <param name="smallShopsId"></param>
/// <param name="commission"></param>
/// <param name="commission"></param>
/// <param name="tenantId"></param>
/// <param name="empId"></param>
/// <param name="mallBaseId"></param>
/// <returns></returns>
/// <returns></returns>
public
bool
SetSmallShopsCommission
(
int
smallShopsId
,
decimal
commission
,
int
tenantId
,
int
mallBaseId
,
int
empId
)
public
bool
SetSmallShopsCommission
(
int
smallShopsId
,
decimal
commission
,
int
empId
)
{
{
var
model
=
smallShops_InfoRepository
.
GetEntity
(
smallShopsId
);
var
model
=
smallShops_InfoRepository
.
GetEntity
(
smallShopsId
);
if
(
model
==
null
)
{
return
false
;
}
if
(
model
==
null
)
{
return
false
;
}
...
...
Mall.Module.User/SupplierModule.cs
View file @
3618fefa
...
@@ -16,9 +16,9 @@ namespace Mall.Module.User
...
@@ -16,9 +16,9 @@ namespace Mall.Module.User
{
{
public
class
SupplierModule
public
class
SupplierModule
{
{
private
RB_SupplierRepository
supplierRepository
=
new
RB_SupplierRepository
();
private
readonly
RB_SupplierRepository
supplierRepository
=
new
RB_SupplierRepository
();
private
RB_SupplierCommissionRepository
supplierCommissionRepository
=
new
RB_SupplierCommissionRepository
();
private
readonly
RB_SupplierCommissionRepository
supplierCommissionRepository
=
new
RB_SupplierCommissionRepository
();
private
RB_ClientBankAccountRepository
clientBankAccountRepository
=
new
RB_ClientBankAccountRepository
();
private
readonly
RB_ClientBankAccountRepository
clientBankAccountRepository
=
new
RB_ClientBankAccountRepository
();
/// <summary>
/// <summary>
/// 分页列表
/// 分页列表
...
@@ -216,7 +216,7 @@ namespace Mall.Module.User
...
@@ -216,7 +216,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
RemoveSupplier
(
int
ID
,
int
BankAccountId
)
public
bool
RemoveSupplier
(
int
ID
,
int
BankAccountId
)
{
{
bool
flag
=
false
;
bool
flag
;
try
try
{
{
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Module.User/TenantModule.cs
View file @
3618fefa
...
@@ -15,7 +15,7 @@ namespace Mall.Module.User
...
@@ -15,7 +15,7 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 商户仓储层对象
/// 商户仓储层对象
/// </summary>
/// </summary>
private
Mall
.
Repository
.
User
.
RB_TenantRepository
tenantRepository
=
new
Repository
.
User
.
RB_TenantRepository
();
private
readonly
Mall
.
Repository
.
User
.
RB_TenantRepository
tenantRepository
=
new
Repository
.
User
.
RB_TenantRepository
();
/// <summary>
/// <summary>
...
@@ -75,10 +75,9 @@ namespace Mall.Module.User
...
@@ -75,10 +75,9 @@ namespace Mall.Module.User
{
{
extModel
.
Account
=
extModel
.
Account
.
Trim
();
extModel
.
Account
=
extModel
.
Account
.
Trim
();
extModel
.
Password
=
Common
.
DES
.
Encrypt
(
extModel
.
Password
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
extModel
.
Password
=
Common
.
DES
.
Encrypt
(
extModel
.
Password
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
bool
flag
=
false
;
int
NewId
=
tenantRepository
.
Insert
(
extModel
);
int
NewId
=
tenantRepository
.
Insert
(
extModel
);
extModel
.
TenantId
=
NewId
;
extModel
.
TenantId
=
NewId
;
flag
=
NewId
>
0
;
bool
flag
=
NewId
>
0
;
return
flag
;
return
flag
;
}
}
...
@@ -129,13 +128,12 @@ namespace Mall.Module.User
...
@@ -129,13 +128,12 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateTenantPwdModule
(
RB_Tenant_Extend
extModel
)
public
bool
UpdateTenantPwdModule
(
RB_Tenant_Extend
extModel
)
{
{
bool
flag
=
false
;
extModel
.
Password
=
Common
.
DES
.
Encrypt
(
extModel
.
Password
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
extModel
.
Password
=
Common
.
DES
.
Encrypt
(
extModel
.
Password
,
Common
.
Config
.
WebApiKey
,
Common
.
Config
.
WebApiIV
);
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Tenant_Extend
.
Password
),
extModel
.
Password
},
{
nameof
(
RB_Tenant_Extend
.
Password
),
extModel
.
Password
},
};
};
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
MobilePhone
),
extModel
.
MobilePhone
.
Trim
()));
bool
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
MobilePhone
),
extModel
.
MobilePhone
.
Trim
()));
return
flag
;
return
flag
;
}
}
...
@@ -162,12 +160,11 @@ namespace Mall.Module.User
...
@@ -162,12 +160,11 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetTenantStatusModule
(
object
TenantId
,
int
AccountStatus
)
public
bool
SetTenantStatusModule
(
object
TenantId
,
int
AccountStatus
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
{
nameof
(
RB_Tenant_Extend
.
AccountStatus
),
AccountStatus
},
{
nameof
(
RB_Tenant_Extend
.
AccountStatus
),
AccountStatus
},
};
};
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
TenantId
),
TenantId
));
bool
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
TenantId
),
TenantId
));
return
flag
;
return
flag
;
}
}
}
}
...
...
Mall.Module.User/UserModule.cs
View file @
3618fefa
...
@@ -131,40 +131,40 @@ namespace Mall.Module.User
...
@@ -131,40 +131,40 @@ namespace Mall.Module.User
/// <summary>
/// <summary>
/// 财务单据规则
/// 财务单据规则
/// </summary>
/// </summary>
private
static
RB_Finance_ConfigurineRepository
financeConfigurineRepository
=
new
RB_Finance_ConfigurineRepository
();
private
static
readonly
RB_Finance_ConfigurineRepository
financeConfigurineRepository
=
new
RB_Finance_ConfigurineRepository
();
/// <summary>
/// <summary>
/// 用户优惠券
/// 用户优惠券
/// </summary>
/// </summary>
private
RB_Member_CouponRepository
memberCouponRepository
=
new
RB_Member_CouponRepository
();
private
readonly
RB_Member_CouponRepository
memberCouponRepository
=
new
RB_Member_CouponRepository
();
/// <summary>
/// <summary>
/// 分销海报仓储层对象
/// 分销海报仓储层对象
/// </summary>
/// </summary>
private
RB_MiniProgram_FenXiaoPosterRepository
fenXiaoPosterRepository
=
new
RB_MiniProgram_FenXiaoPosterRepository
();
private
readonly
RB_MiniProgram_FenXiaoPosterRepository
fenXiaoPosterRepository
=
new
RB_MiniProgram_FenXiaoPosterRepository
();
/// <summary>
/// <summary>
/// 会员购买仓储层
/// 会员购买仓储层
/// </summary>
/// </summary>
private
RB_Member_BuyRepository
memberBuyRepository
=
new
RB_Member_BuyRepository
();
private
readonly
RB_Member_BuyRepository
memberBuyRepository
=
new
RB_Member_BuyRepository
();
/// <summary>
/// <summary>
/// 粉象返佣等级
/// 粉象返佣等级
/// </summary>
/// </summary>
private
RB_Distributor_FXGradeRepository
distributor_FXGradeRepository
=
new
RB_Distributor_FXGradeRepository
();
private
readonly
RB_Distributor_FXGradeRepository
distributor_FXGradeRepository
=
new
RB_Distributor_FXGradeRepository
();
/// <summary>
/// <summary>
/// vip购买返佣
/// vip购买返佣
/// </summary>
/// </summary>
private
RB_VipBuy_CommissionRepository
vipBuy_CommissionRepository
=
new
RB_VipBuy_CommissionRepository
();
private
readonly
RB_VipBuy_CommissionRepository
vipBuy_CommissionRepository
=
new
RB_VipBuy_CommissionRepository
();
/// <summary>
/// <summary>
/// vip购买
/// vip购买
/// </summary>
/// </summary>
private
RB_Vip_BuyRepository
vip_BuyRepository
=
new
RB_Vip_BuyRepository
();
private
readonly
RB_Vip_BuyRepository
vip_BuyRepository
=
new
RB_Vip_BuyRepository
();
/// <summary>
/// <summary>
/// 粉象返佣金额
/// 粉象返佣金额
/// </summary>
/// </summary>
private
RB_Distributor_FXCommissionRepository
distributor_FXCommissionRepository
=
new
RB_Distributor_FXCommissionRepository
();
private
readonly
RB_Distributor_FXCommissionRepository
distributor_FXCommissionRepository
=
new
RB_Distributor_FXCommissionRepository
();
/// <summary>
/// <summary>
/// 分销商日志
/// 分销商日志
/// </summary>
/// </summary>
private
RB_Distributor_LogRepository
distributor_LogRepository
=
new
RB_Distributor_LogRepository
();
private
readonly
RB_Distributor_LogRepository
distributor_LogRepository
=
new
RB_Distributor_LogRepository
();
/// <summary>
/// <summary>
/// 推荐供应商返佣账单
/// 推荐供应商返佣账单
/// </summary>
/// </summary>
...
@@ -262,8 +262,7 @@ namespace Mall.Module.User
...
@@ -262,8 +262,7 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
int
AddMemberUserInfo
(
RB_Member_User_Extend
demodel
)
public
int
AddMemberUserInfo
(
RB_Member_User_Extend
demodel
)
{
{
int
result
=
0
;
int
result
=
member_UserRepository
.
Insert
(
demodel
);
result
=
member_UserRepository
.
Insert
(
demodel
);
//result = member_UserRepository.SetMemberUserRepository(demodel);
//result = member_UserRepository.SetMemberUserRepository(demodel);
return
result
;
return
result
;
}
}
...
@@ -1585,8 +1584,10 @@ namespace Mall.Module.User
...
@@ -1585,8 +1584,10 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetDistributorInfoForFX
(
int
FXGradeId
,
int
UserId
,
int
TenantId
,
int
MallBaseId
)
public
bool
SetDistributorInfoForFX
(
int
FXGradeId
,
int
UserId
,
int
TenantId
,
int
MallBaseId
)
{
{
var
demodel
=
new
RB_Distributor_Info_Extend
();
var
demodel
=
new
RB_Distributor_Info_Extend
demodel
.
UserId
=
UserId
;
{
UserId
=
UserId
};
demodel
.
TotalCommission
??=
0
;
demodel
.
TotalCommission
??=
0
;
demodel
.
CommissionWithdrawal
??=
0
;
demodel
.
CommissionWithdrawal
??=
0
;
demodel
.
Name
??=
""
;
demodel
.
Name
??=
""
;
...
@@ -5332,11 +5333,13 @@ namespace Mall.Module.User
...
@@ -5332,11 +5333,13 @@ namespace Mall.Module.User
{
{
return
ApiResult
.
Failed
(
"未查询到普通会员等级"
);
return
ApiResult
.
Failed
(
"未查询到普通会员等级"
);
}
}
List
<
string
>
TitleList
=
new
List
<
string
>();
List
<
string
>
TitleList
=
new
List
<
string
>
TitleList
.
Add
(
"等级名称"
);
{
TitleList
.
Add
(
"级别标准"
);
"等级名称"
,
TitleList
.
Add
(
pModel
.
GradeName
);
"级别标准"
,
TitleList
.
Add
(
"间接普会"
);
pModel
.
GradeName
,
"间接普会"
};
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
if
(
item
.
Id
!=
pModel
.
Id
)
if
(
item
.
Id
!=
pModel
.
Id
)
...
@@ -5347,9 +5350,11 @@ namespace Mall.Module.User
...
@@ -5347,9 +5350,11 @@ namespace Mall.Module.User
List
<
object
>
ContenList
=
new
List
<
object
>();
List
<
object
>
ContenList
=
new
List
<
object
>();
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
List
<
string
>
itemList
=
new
List
<
string
>();
List
<
string
>
itemList
=
new
List
<
string
>
itemList
.
Add
(
item
.
GradeName
);
{
itemList
.
Add
((
item
.
CommissionRatio
??
0
).
ToString
()
+
"%"
);
item
.
GradeName
,
(
item
.
CommissionRatio
??
0
).
ToString
()
+
"%"
};
foreach
(
var
qitem
in
list
)
foreach
(
var
qitem
in
list
)
{
{
if
(
qitem
.
Id
==
pModel
.
Id
)
if
(
qitem
.
Id
==
pModel
.
Id
)
...
@@ -6192,7 +6197,6 @@ namespace Mall.Module.User
...
@@ -6192,7 +6197,6 @@ namespace Mall.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
UpdateMemberBuy
(
int
UserId
,
int
OrderId
,
string
Out_Trade_No
,
string
Transaction_Id
,
Common
.
Enum
.
Goods
.
OrderPayTypeEnum
PayWay
,
decimal
Money
,
DateTime
Time_End
)
public
bool
UpdateMemberBuy
(
int
UserId
,
int
OrderId
,
string
Out_Trade_No
,
string
Transaction_Id
,
Common
.
Enum
.
Goods
.
OrderPayTypeEnum
PayWay
,
decimal
Money
,
DateTime
Time_End
)
{
{
bool
flag
=
false
;
var
umodel
=
member_UserRepository
.
GetEntity
(
UserId
);
var
umodel
=
member_UserRepository
.
GetEntity
(
UserId
);
if
(
umodel
==
null
)
if
(
umodel
==
null
)
{
{
...
@@ -6214,6 +6218,7 @@ namespace Mall.Module.User
...
@@ -6214,6 +6218,7 @@ namespace Mall.Module.User
}
}
var
trans
=
memberBuyRepository
.
DbTransaction
;
var
trans
=
memberBuyRepository
.
DbTransaction
;
bool
flag
;
try
try
{
{
...
...
Mall.WebApi/appsettings.json
View file @
3618fefa
...
@@ -81,6 +81,6 @@
...
@@ -81,6 +81,6 @@
"GradeEntranceImage"
:
"1234566778"
"GradeEntranceImage"
:
"1234566778"
},
},
"ShareConfig"
:
{
"ShareConfig"
:
{
"ShareImg"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/zanyang.png"
,
"ShareImg"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/zanyang.png"
}
}
}
}
\ No newline at end of file
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