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
66b2ecb6
Commit
66b2ecb6
authored
Oct 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1f9a6ad3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
21 deletions
+32
-21
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+6
-3
UserModule.cs
Mall.Module.User/UserModule.cs
+14
-9
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+12
-9
No files found.
Mall.Module.Product/OrderModule.cs
View file @
66b2ecb6
...
...
@@ -511,10 +511,13 @@ namespace Mall.Module.Product
{
var
sModel
=
speciList
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
).
ToList
()[
i
];
var
svModel
=
speciVList
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
&&
x
.
SpecificationId
==
sModel
.
Id
&&
x
.
Sort
==
Convert
.
ToInt32
(
KeyArr
[
i
])).
FirstOrDefault
();
item
.
SpecificationList
.
Add
(
sModel
.
Name
+
":"
+
svModel
.
Name
);
if
(
i
==
0
&&
!
string
.
IsNullOrEmpty
(
svModel
.
Image
))
if
(
sModel
!=
null
&&
svModel
!=
null
)
{
item
.
CoverImage
=
svModel
.
Image
;
item
.
SpecificationList
.
Add
(
sModel
.
Name
+
":"
+
svModel
.
Name
);
if
(
i
==
0
&&
!
string
.
IsNullOrEmpty
(
svModel
.
Image
))
{
item
.
CoverImage
=
svModel
.
Image
;
}
}
}
}
...
...
Mall.Module.User/UserModule.cs
View file @
66b2ecb6
...
...
@@ -2503,6 +2503,7 @@ namespace Mall.Module.User
};
item
.
IsPublic
=
5
;
//默认平台虚拟账户
#
region
查询所有的订单
List
<
Model
.
Entity
.
Finance
.
RB_ECFinanceId_Relation
>
ECList
=
new
List
<
Model
.
Entity
.
Finance
.
RB_ECFinanceId_Relation
>();
if
(!
string
.
IsNullOrEmpty
(
remitModel
.
ReOrderIds
)
||
!
string
.
IsNullOrEmpty
(
remitModel
.
ReVipIds
))
...
...
@@ -2604,12 +2605,15 @@ namespace Mall.Module.User
LogHelper
.
WriteInfo
(
"打款:"
+
apiResult
);
if
(
apir
.
resultCode
==
1
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Distributor_Remit
.
FinanceId
),
Convert
.
ToInt32
(
apir
.
data
.
ToString
())},
{
nameof
(
RB_Distributor_Remit
.
AuditRemark
),
remark
+
" 自动生成财务单据:"
+
apir
.
data
.
ToString
()},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Distributor_Remit
.
Id
),
FiledValue
=
remitId
,
OperatorEnum
=
OperatorEnum
.
Equal
...
...
@@ -2620,11 +2624,14 @@ namespace Mall.Module.User
else
{
//记录自动生成失败,需手动新增财务单据
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Distributor_Remit
.
AuditRemark
),
remark
+
" 自动生成财务单据失败,请手动添加财务单据!"
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Distributor_Remit
.
Id
),
FiledValue
=
remitId
,
OperatorEnum
=
OperatorEnum
.
Equal
...
...
@@ -2636,10 +2643,8 @@ namespace Mall.Module.User
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
);
LogHelper
.
Write
(
ex
,
string
.
Format
(
"OrderIncomeFinanceModule_remitId:{0} TenantId:{1} MallBaseId:{2} remark:{3} erpEmpId:{4}"
,
remitId
,
TenantId
,
MallBaseId
,
remark
,
erpEmpId
));
}
return
flag
;
}
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
66b2ecb6
...
...
@@ -1188,17 +1188,20 @@ namespace Mall.WebApi.Controllers.MallBase
int
Sort
=
Convert
.
ToInt32
(
ssarr
[
0
]);
string
pic_url
=
model
.
SpecificationList
[
0
].
SpecificationValueList
.
Where
(
x
=>
x
.
Sort
==
Sort
).
FirstOrDefault
()?.
ImagePath
;
List
<
object
>
attr_list
=
new
List
<
object
>();
for
(
int
i
=
0
;
i
<
ssarr
.
Length
;
i
++
)
if
(
ssarr
!=
null
&&
ssarr
.
Length
>
0
)
{
var
smodel
=
model
.
SpecificationList
[
i
];
var
svmodel
=
smodel
.
SpecificationValueList
.
Where
(
x
=>
x
.
Sort
==
Convert
.
ToInt32
(
ssarr
[
i
])).
FirstOrDefault
();
attr_list
.
Add
(
new
for
(
int
i
=
0
;
i
<
ssarr
.
Length
;
i
++)
{
attr_group_name
=
smodel
.
Name
,
attr_group_id
=
smodel
.
Sort
,
attr_id
=
svmodel
.
Id
,
attr_name
=
svmodel
.
Name
});
var
smodel
=
model
.
SpecificationList
[
i
];
var
svmodel
=
smodel
.
SpecificationValueList
.
Where
(
x
=>
x
.
Sort
==
Convert
.
ToInt32
(
ssarr
[
i
])).
FirstOrDefault
();
attr_list
.
Add
(
new
{
attr_group_name
=
smodel
.
Name
,
attr_group_id
=
smodel
.
Sort
,
attr_id
=
svmodel
.
Id
,
attr_name
=
svmodel
.
Name
});
}
}
decimal
price_member
=
item
.
SellingPrice
??
0
;
//未设会员价格的话 就为销售价格
if
(
model
.
EnjoyMember
==
1
&&
model
.
SeparateSetMember
==
1
)
...
...
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