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
9220d00d
Commit
9220d00d
authored
Dec 25, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快递公司名称展示,备注为空判断
parent
b64b1c2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
...main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
+8
-7
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
View file @
9220d00d
...
@@ -4,6 +4,7 @@ import com.alibaba.dubbo.config.annotation.Reference;
...
@@ -4,6 +4,7 @@ import com.alibaba.dubbo.config.annotation.Reference;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.core.consts.ConsignSaleEnum
;
import
com.wwdz.ch.core.consts.ConsignSaleEnum
;
import
com.wwdz.ch.core.consts.ItemStateEnum
;
import
com.wwdz.ch.core.consts.ItemStateEnum
;
import
com.wwdz.ch.core.consts.LogisticsEnum
;
import
com.wwdz.ch.core.entity.ConsignSaleRecordVo
;
import
com.wwdz.ch.core.entity.ConsignSaleRecordVo
;
import
com.wwdz.ch.core.entity.ConsignSaleVo
;
import
com.wwdz.ch.core.entity.ConsignSaleVo
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.PageSearchResult
;
...
@@ -234,7 +235,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -234,7 +235,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleAppletVo
.
setItemName
(
item
.
getName
());
consignSaleAppletVo
.
setItemName
(
item
.
getName
());
consignSaleAppletVo
.
setSaleTime
(
consignSale
.
getSaleTime
());
consignSaleAppletVo
.
setSaleTime
(
consignSale
.
getSaleTime
());
consignSaleAppletVo
.
setLogisticsCode
(
consignSale
.
getLogisticsCode
());
consignSaleAppletVo
.
setLogisticsCode
(
consignSale
.
getLogisticsCode
());
consignSaleAppletVo
.
setLogisticsName
(
consignSale
.
getLogisticsCode
(
));
consignSaleAppletVo
.
setLogisticsName
(
LogisticsEnum
.
getNameByCode
(
consignSale
.
getLogisticsCode
()
));
consignSaleAppletVo
.
setWaybill
(
consignSale
.
getWaybill
());
consignSaleAppletVo
.
setWaybill
(
consignSale
.
getWaybill
());
consignSaleAppletVo
.
setSendType
(
"自行寄出"
);
consignSaleAppletVo
.
setSendType
(
"自行寄出"
);
consignSaleAppletVo
.
setCustomState
(
consignSale
.
getCustomState
());
consignSaleAppletVo
.
setCustomState
(
consignSale
.
getCustomState
());
...
@@ -258,21 +259,21 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -258,21 +259,21 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
appletStateNodeVoList
.
get
(
1
).
setDesc
(
ConsignSaleEnum
.
AppletNodeDescEnum
.
VALUATE
.
getDes
());
appletStateNodeVoList
.
get
(
1
).
setDesc
(
ConsignSaleEnum
.
AppletNodeDescEnum
.
VALUATE
.
getDes
());
}
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
SYS_CANCEL
.
getCode
())
{
}
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
SYS_CANCEL
.
getCode
())
{
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
7
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
());
appletStateNodeVoList
.
get
(
7
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
()
==
null
?
""
:
consignSaleRecord
.
getRemark
()
);
break
;
break
;
}
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
CUSTOM_CANCEL
.
getCode
())
{
}
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
CUSTOM_CANCEL
.
getCode
())
{
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
7
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
());
appletStateNodeVoList
.
get
(
7
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
()
==
null
?
""
:
consignSaleRecord
.
getRemark
()
);
break
;
break
;
}
}
//图文估价
//图文估价
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
())
{
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
())
{
appletStateNodeVoList
.
get
(
1
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
());
appletStateNodeVoList
.
get
(
1
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
()
==
null
?
""
:
consignSaleRecord
.
getRemark
()
);
}
}
//送货至平台
//送货至平台
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
USER_SEND
.
getCode
())
{
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
USER_SEND
.
getCode
())
{
appletStateNodeVoList
.
get
(
2
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
2
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
2
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
());
appletStateNodeVoList
.
get
(
2
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
()
==
null
?
""
:
consignSaleRecord
.
getRemark
()
);
consignSaleAppletVo
.
setSendTime
(
consignSaleRecord
.
getCreateTime
());
consignSaleAppletVo
.
setSendTime
(
consignSaleRecord
.
getCreateTime
());
}
}
// 平台事务鉴定并定价,尚未鉴定
// 平台事务鉴定并定价,尚未鉴定
...
@@ -283,7 +284,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -283,7 +284,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
// 平台事务鉴定并定价,鉴定后
// 平台事务鉴定并定价,鉴定后
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
WAIT_USER_CONFIRM_IDENTIFY
.
getCode
())
{
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
WAIT_USER_CONFIRM_IDENTIFY
.
getCode
())
{
appletStateNodeVoList
.
get
(
3
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
3
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
3
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
());
appletStateNodeVoList
.
get
(
3
).
setDesc
(
consignSaleRecord
.
getContent
()
+
";"
+
consignSaleRecord
.
getRemark
()
==
null
?
""
:
consignSaleRecord
.
getRemark
()
);
}
}
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
TIME_OUT_CANCEL
.
getCode
())
{
else
if
(
consignSaleRecord
.
getType
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
TIME_OUT_CANCEL
.
getCode
())
{
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
appletStateNodeVoList
.
get
(
7
).
setPassed
(
true
);
...
@@ -516,7 +517,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -516,7 +517,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
//插入操作记录,平台待收货
//插入操作记录,平台待收货
StringBuffer
stringBuffer
=
new
StringBuffer
();
StringBuffer
stringBuffer
=
new
StringBuffer
();
stringBuffer
.
append
(
"物流公司:"
);
stringBuffer
.
append
(
"物流公司:"
);
stringBuffer
.
append
(
dto
.
getLogisticsCode
(
)
+
"; "
);
stringBuffer
.
append
(
LogisticsEnum
.
getNameByCode
(
dto
.
getLogisticsCode
()
)
+
"; "
);
stringBuffer
.
append
(
"快递单号:"
);
stringBuffer
.
append
(
"快递单号:"
);
stringBuffer
.
append
(
dto
.
getWaybill
());
stringBuffer
.
append
(
dto
.
getWaybill
());
consignSaleRecordDao
.
insert
(
dto
.
getSaleId
(),
stringBuffer
.
toString
(),
ConsignSaleEnum
.
OperateTypeEnum
.
USER_SEND
.
getCode
(),
null
);
consignSaleRecordDao
.
insert
(
dto
.
getSaleId
(),
stringBuffer
.
toString
(),
ConsignSaleEnum
.
OperateTypeEnum
.
USER_SEND
.
getCode
(),
null
);
...
...
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