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
83907fa0
Commit
83907fa0
authored
Dec 26, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
寄售单详情返回是否有报价字段,列表新增运单号筛选条件
parent
98d367cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
...java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
+5
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
...n/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
+18
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/ConsignSaleDaoImpl.java
...src/main/java/com/wwdz/ch/db/impl/ConsignSaleDaoImpl.java
+1
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ConsignSaleDetailVo.java
View file @
83907fa0
...
@@ -29,6 +29,11 @@ public class ConsignSaleDetailVo implements Entity {
...
@@ -29,6 +29,11 @@ public class ConsignSaleDetailVo implements Entity {
*/
*/
private
CoinVo
itemVo
;
private
CoinVo
itemVo
;
/**
* 是否有报价
*/
private
Boolean
isHasPrice
;
/**
/**
* 寄售单信息
* 寄售单信息
*/
*/
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ConsignSaleServiceImpl.java
View file @
83907fa0
...
@@ -183,6 +183,24 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -183,6 +183,24 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
//查询寄售单信息
//查询寄售单信息
List
<
ConsignSaleRecord
>
consignSaleRecords
=
consignSaleRecordDao
.
find
(
dto
.
getSaleId
());
List
<
ConsignSaleRecord
>
consignSaleRecords
=
consignSaleRecordDao
.
find
(
dto
.
getSaleId
());
//判断是否已经有了报价
if
(
consignSale
.
getSystemState
()
==
ConsignSaleEnum
.
SaleForSysStateEnum
.
WAIT_IMG_VALUATE
.
getCode
())
{
long
count
=
consignSaleRecords
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
()).
count
();
if
(
count
==
0
)
{
consignSaleDetailVo
.
setIsHasPrice
(
false
);
}
else
{
consignSaleDetailVo
.
setIsHasPrice
(
true
);
}
}
else
if
(
consignSale
.
getSystemState
()
==
ConsignSaleEnum
.
SaleForSysStateEnum
.
IDENTIFY
.
getCode
())
{
long
count
=
consignSaleRecords
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
IDENTIFY
.
getCode
()).
count
();
if
(
count
==
0
)
{
consignSaleDetailVo
.
setIsHasPrice
(
false
);
}
else
{
consignSaleDetailVo
.
setIsHasPrice
(
true
);
}
}
List
<
ConsignSaleRecordVo
>
consignSaleRecordVoList
=
new
ArrayList
<>();
List
<
ConsignSaleRecordVo
>
consignSaleRecordVoList
=
new
ArrayList
<>();
consignSaleRecords
.
forEach
(
consignSaleRecord
->
{
consignSaleRecords
.
forEach
(
consignSaleRecord
->
{
ConsignSaleRecordVo
consignSaleRecordVo
=
new
ConsignSaleRecordVo
();
ConsignSaleRecordVo
consignSaleRecordVo
=
new
ConsignSaleRecordVo
();
...
@@ -352,7 +370,6 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -352,7 +370,6 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSale
.
setSettleAmount
(
settleAmount
);
consignSale
.
setSettleAmount
(
settleAmount
);
consignSaleDao
.
update
(
consignSale
);
consignSaleDao
.
update
(
consignSale
);
//卖出后商品下架
//卖出后商品下架
itemDao
.
updateOnSale
(
itemId
,
ItemStateEnum
.
SALED
.
getCode
());
itemDao
.
updateOnSale
(
itemId
,
ItemStateEnum
.
SALED
.
getCode
());
//插入操作记录,货品售出待结款
//插入操作记录,货品售出待结款
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/ConsignSaleDaoImpl.java
View file @
83907fa0
...
@@ -57,6 +57,7 @@ public class ConsignSaleDaoImpl implements ConsignSaleDao {
...
@@ -57,6 +57,7 @@ public class ConsignSaleDaoImpl implements ConsignSaleDao {
ConsignSaleExample
example
=
new
ConsignSaleExample
();
ConsignSaleExample
example
=
new
ConsignSaleExample
();
ConsignSaleExample
.
Criteria
criteria
=
example
.
createCriteria
();
ConsignSaleExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getSaleId
(),
criteria:
:
andSaleIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getSaleId
(),
criteria:
:
andSaleIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getWaybill
(),
criteria:
:
andWaybillEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getItemIds
(),
criteria:
:
andItemIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getItemIds
(),
criteria:
:
andItemIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getUserId
(),
criteria:
:
andUserIdEqualTo
);
...
...
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