Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a77bc48d
Commit
a77bc48d
authored
Dec 22, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
寄售单估价详情新增同意操作按钮展示的状态agreed字段
parent
ba254b70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/ConsignSaleRecordVo.java
...ain/java/com/wwdz/ch/core/entity/ConsignSaleRecordVo.java
+8
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
...main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
+14
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/entity/ConsignSaleRecordVo.java
View file @
a77bc48d
...
...
@@ -52,4 +52,12 @@ public class ConsignSaleRecordVo implements Entity {
*/
private
String
systemStateName
;
/**
* 是否同意寄售
* 0:不同意
* 1:同意
* 2:尚未确认
*/
private
Integer
agreed
;
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
View file @
a77bc48d
...
...
@@ -336,6 +336,13 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordVo
.
setCustomState
(
consignSale
.
getCustomState
());
consignSaleRecordVo
.
setSystemState
(
consignSale
.
getSystemState
());
consignSaleRecordVo
.
setSystemStateName
(
ConsignSaleEnum
.
SaleForSysStateEnum
.
getNameByCode
(
consignSale
.
getSystemState
()));
if
(
consignSale
.
getSystemState
()
==
ConsignSaleEnum
.
SaleForSysStateEnum
.
CANCEL
.
getCode
())
{
consignSaleRecordVo
.
setAgreed
(
0
);
}
else
if
(
consignSale
.
getSystemState
()
>
ConsignSaleEnum
.
SaleForSysStateEnum
.
WAIT_CONSIGN
.
getCode
())
{
consignSaleRecordVo
.
setAgreed
(
1
);
}
else
{
consignSaleRecordVo
.
setAgreed
(
2
);
}
consignSaleRecordVo
.
setIsTimeOut
(
false
);
consignSaleRecordVo
.
setTip
(
"初步估价结果仅供参考,想要获得真实的报价需要将货品送至平台,由平台专家对实物进行专业鉴定才可以得出结果。"
);
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
()).
collect
(
Collectors
.
toList
());
...
...
@@ -393,6 +400,13 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordVo
.
setCustomState
(
consignSale
.
getCustomState
());
consignSaleRecordVo
.
setSystemState
(
consignSale
.
getSystemState
());
consignSaleRecordVo
.
setSystemStateName
(
ConsignSaleEnum
.
SaleForSysStateEnum
.
getNameByCode
(
consignSale
.
getSystemState
()));
if
(
consignSale
.
getSystemState
()
==
ConsignSaleEnum
.
SaleForSysStateEnum
.
CANCEL
.
getCode
())
{
consignSaleRecordVo
.
setAgreed
(
0
);
}
else
if
(
consignSale
.
getSystemState
()
>
ConsignSaleEnum
.
SaleForSysStateEnum
.
CONSIGN_SALEING
.
getCode
())
{
consignSaleRecordVo
.
setAgreed
(
1
);
}
else
{
consignSaleRecordVo
.
setAgreed
(
2
);
}
consignSaleRecordVo
.
setIsTimeOut
(
false
);
List
<
ConsignSaleRecord
>
consignSaleRecordList
=
consignSaleRecordDao
.
find
(
saleId
);
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
IDENTIFY
.
getCode
()).
collect
(
Collectors
.
toList
());
...
...
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