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
04e62a54
Commit
04e62a54
authored
Sep 02, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
feaf5d53
575b41e6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
374 additions
and
337 deletions
+374
-337
RB_Goods_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Extend.cs
+5
-0
RB_ImageCommonModel.cs
Mall.Model/Extend/Product/RB_ImageCommonModel.cs
+5
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+3
-3
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+201
-6
EmployeeModule.cs
Mall.Module.User/EmployeeModule.cs
+1
-1
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+5
-0
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+3
-185
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+151
-142
No files found.
Mall.Model/Extend/Product/RB_Goods_Extend.cs
View file @
04e62a54
...
@@ -230,5 +230,10 @@ namespace Mall.Model.Extend.Product
...
@@ -230,5 +230,10 @@ namespace Mall.Model.Extend.Product
/// </summary>
/// </summary>
public
List
<
object
>
SupplierSpecificationList
{
get
;
set
;
}
public
List
<
object
>
SupplierSpecificationList
{
get
;
set
;
}
/// <summary>
/// 是否直查询有视频商品(1-是)HK0902新增
/// </summary>
public
int
IsVideo
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/Product/RB_ImageCommonModel.cs
View file @
04e62a54
...
@@ -24,5 +24,10 @@ namespace Mall.Model.Extend.Product
...
@@ -24,5 +24,10 @@ namespace Mall.Model.Extend.Product
/// 路径
/// 路径
/// </summary>
/// </summary>
public
string
Path
{
get
;
set
;
}
public
string
Path
{
get
;
set
;
}
/// <summary>
/// 1-视频
/// </summary>
public
int
Type
{
get
;
set
;
}
}
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
04e62a54
...
@@ -6956,14 +6956,14 @@ namespace Mall.Module.Product
...
@@ -6956,14 +6956,14 @@ namespace Mall.Module.Product
if
(
model
.
Type
==
2
)
if
(
model
.
Type
==
2
)
{
{
var
oeModel
=
goods_OrderExpressRepository
.
GetList
(
new
RB_Goods_OrderExpress_Extend
()
{
AfterSaleOrderId
=
model
.
ReOrderId
,
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
}).
FirstOrDefault
();
var
oeModel
=
goods_OrderExpressRepository
.
GetList
(
new
RB_Goods_OrderExpress_Extend
()
{
AfterSaleOrderId
=
model
.
ReOrderId
,
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
}).
FirstOrDefault
();
if
(
oeModel
.
Type
==
1
)
if
(
oeModel
!=
null
&&
oeModel
.
Type
==
1
)
{
{
var
leModel
=
logistics_ExpressRepository
.
GetEntity
(
oeModel
.
ExpressId
);
var
leModel
=
logistics_ExpressRepository
.
GetEntity
(
oeModel
.
ExpressId
);
ExpressList
.
Add
(
new
ExpressList
.
Add
(
new
{
{
Name
=
uModel
.
Name
??
""
,
Name
=
uModel
.
Name
??
""
,
ExpressName
=
leModel
.
Name
??
""
,
ExpressName
=
leModel
.
Name
??
""
,
oeModel
.
ExpressNumber
,
ExpressNumber
=
oeModel
?.
ExpressNumber
??
""
,
Type
=
1
Type
=
1
});
});
}
}
...
@@ -6973,7 +6973,7 @@ namespace Mall.Module.Product
...
@@ -6973,7 +6973,7 @@ namespace Mall.Module.Product
{
{
Name
=
uModel
.
Name
??
""
,
Name
=
uModel
.
Name
??
""
,
ExpressName
=
""
,
ExpressName
=
""
,
ExpressNumber
=
oeModel
.
Remark
,
ExpressNumber
=
oeModel
?.
Remark
??
""
,
Type
=
2
Type
=
2
});
});
}
}
...
...
Mall.Module.Product/ProductModule.cs
View file @
04e62a54
This diff is collapsed.
Click to expand it.
Mall.Module.User/EmployeeModule.cs
View file @
04e62a54
...
@@ -233,7 +233,7 @@ namespace Mall.Module.User
...
@@ -233,7 +233,7 @@ namespace Mall.Module.User
{
{
{
nameof
(
RB_Employee_Extend
.
Status
),
1
},
{
nameof
(
RB_Employee_Extend
.
Status
),
1
},
};
};
bool
flag
=
rol
eRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
EmpId
));
bool
flag
=
employe
eRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
EmpId
));
return
flag
;
return
flag
;
}
}
...
...
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
04e62a54
...
@@ -411,6 +411,11 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
...
@@ -411,6 +411,11 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
{
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
<='
{
dmodel
.
EndTime
+
" 23:59:59"
}
'"
;
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
<='
{
dmodel
.
EndTime
+
" 23:59:59"
}
'"
;
}
}
if
(
dmodel
.
IsVideo
>
0
)
{
where
+=
$@" and IFNULL(g.
{
nameof
(
RB_Goods_Extend
.
VideoAddress
)}
<>'' "
;
}
//默认综合【升序】
//默认综合【升序】
string
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
Sort
)}
asc"
;
string
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
Sort
)}
asc"
;
//上架时间【降序】
//上架时间【降序】
...
...
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
04e62a54
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
04e62a54
...
@@ -88,9 +88,13 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -88,9 +88,13 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
return
ApiResult
.
ParamIsNull
(
"请传递文件路径"
);
return
ApiResult
.
ParamIsNull
(
"请传递文件路径"
);
}
}
//HK2020-09-01修改
if
(
demodel
.
Type
==
1
)
{
demodel
.
Path
=
Config
.
GetFilePath
(
demodel
.
Path
);
demodel
.
Path
=
Config
.
GetFilePath
(
demodel
.
Path
);
demodel
.
Image
=
Config
.
GetFilePath
(
demodel
.
Image
);
demodel
.
Image
=
Config
.
GetFilePath
(
demodel
.
Image
);
}
demodel
.
TenantId
=
Convert
.
ToInt32
(
parms
.
uid
);
demodel
.
TenantId
=
Convert
.
ToInt32
(
parms
.
uid
);
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
CreateDate
=
DateTime
.
Now
;
demodel
.
CreateDate
=
DateTime
.
Now
;
...
@@ -1447,7 +1451,10 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1447,7 +1451,10 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
var
model
=
productModule
.
GetProductGoodsInfo
(
GoodsId
,
req
.
TenantId
,
req
.
MallBaseId
);
var
model
=
productModule
.
GetProductGoodsInfo
(
GoodsId
,
req
.
TenantId
,
req
.
MallBaseId
);
return
ApiResult
.
Success
(
""
,
new
object
obj
=
new
object
();
if
(
model
!=
null
)
{
obj
=
new
{
{
model
?.
Id
,
model
?.
Id
,
model
?.
Name
,
model
?.
Name
,
...
@@ -1500,7 +1507,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1500,7 +1507,7 @@ namespace Mall.WebApi.Controllers.MallBase
model
?.
IsProcurement
,
model
?.
IsProcurement
,
model
?.
Commission
,
model
?.
Commission
,
model
?.
IsLiveGoods
,
model
?.
IsLiveGoods
,
model
.
SendArea
,
model
?
.
SendArea
,
CategoryList
=
model
?.
CategoryList
.
Select
(
x
=>
new
CategoryList
=
model
?.
CategoryList
.
Select
(
x
=>
new
{
{
x
.
Id
,
x
.
Id
,
...
@@ -1590,7 +1597,9 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1590,7 +1597,9 @@ namespace Mall.WebApi.Controllers.MallBase
model
?.
MarketingLogo
,
model
?.
MarketingLogo
,
model
?.
ShelvesDate
,
model
?.
ShelvesDate
,
model
?.
DownDate
,
model
?.
DownDate
,
});
};
}
return
ApiResult
.
Success
(
""
,
obj
);
}
}
/// <summary>
/// <summary>
...
...
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