记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
590be50d
Commit
590be50d
authored
Aug 14, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺设置增加发货地址
parent
b52ab451
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
5 deletions
+29
-5
GoblinStoreMgtConfigEditParam.java
...vice/goblin/dto/manage/GoblinStoreMgtConfigEditParam.java
+1
-1
GoblinStoreConf.java
...a/com/liquidnet/service/goblin/enums/GoblinStoreConf.java
+4
-0
db_ln_goblin_initialdata.sql
...net-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
+2
-1
GoblinStoreMgtController.java
...ce/goblin/controller/manage/GoblinStoreMgtController.java
+4
-1
GoblinMailTrackServiceImpl.java
...rvice/goblin/service/impl/GoblinMailTrackServiceImpl.java
+18
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtConfigEditParam.java
View file @
590be50d
...
@@ -17,7 +17,7 @@ public class GoblinStoreMgtConfigEditParam implements Serializable {
...
@@ -17,7 +17,7 @@ public class GoblinStoreMgtConfigEditParam implements Serializable {
@ApiModelProperty
(
position
=
10
,
value
=
"店铺ID[64]"
)
@ApiModelProperty
(
position
=
10
,
value
=
"店铺ID[64]"
)
@NotBlank
(
message
=
"店铺ID不能为空"
)
@Size
(
max
=
64
)
@NotBlank
(
message
=
"店铺ID不能为空"
)
@Size
(
max
=
64
)
private
String
storeId
;
private
String
storeId
;
@ApiModelProperty
(
position
=
11
,
value
=
"店铺配置集合[Map]"
,
example
=
"{\"BUSINESS_STATUS\":\"5\",\"ONOFF_CUSTOMER_SEV\":\"ON\",\"ONOFF_SOLD_OUT_SHOW\":\"ON\",\"LIMIT_WARNING_STOCK\":\"5\"}"
)
@ApiModelProperty
(
position
=
11
,
value
=
"店铺配置集合[Map]"
,
example
=
"{\"BUSINESS_STATUS\":\"5\",\"ONOFF_CUSTOMER_SEV\":\"ON\",\"ONOFF_SOLD_OUT_SHOW\":\"ON\",\"LIMIT_WARNING_STOCK\":\"5\"
,\"SHIP_FROM_ADDRESS\":\"北京市朝阳区\"
}"
)
@NotNull
(
message
=
"店铺配置不能为空"
)
@NotNull
(
message
=
"店铺配置不能为空"
)
private
Map
<
String
,
String
>
confMap
;
private
Map
<
String
,
String
>
confMap
;
}
}
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/enums/GoblinStoreConf.java
View file @
590be50d
...
@@ -24,4 +24,8 @@ public enum GoblinStoreConf {
...
@@ -24,4 +24,8 @@ public enum GoblinStoreConf {
* 指标:库存不足
* 指标:库存不足
*/
*/
LIMIT_WARNING_STOCK
,
LIMIT_WARNING_STOCK
,
/**
* 发货地址(快递100 from,空则用系统默认)
*/
SHIP_FROM_ADDRESS
,
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
View file @
590be50d
...
@@ -152,7 +152,8 @@ insert into goblin_store_config (store_id, config_name, config_key, config_val,
...
@@ -152,7 +152,8 @@ insert into goblin_store_config (store_id, config_name, config_key, config_val,
values
(
0
,
'营业状态'
,
'BUSINESS_STATUS'
,
'5'
,
'admin'
,
sysdate
()),
values
(
0
,
'营业状态'
,
'BUSINESS_STATUS'
,
'5'
,
'admin'
,
sysdate
()),
(
0
,
'联系客服'
,
'ONOFF_CUSTOMER_SEV'
,
'OFF'
,
'admin'
,
sysdate
()),
(
0
,
'联系客服'
,
'ONOFF_CUSTOMER_SEV'
,
'OFF'
,
'admin'
,
sysdate
()),
(
0
,
'售罄展示'
,
'ONOFF_SOLD_OUT_SHOW'
,
'OFF'
,
'admin'
,
sysdate
()),
(
0
,
'售罄展示'
,
'ONOFF_SOLD_OUT_SHOW'
,
'OFF'
,
'admin'
,
sysdate
()),
(
0
,
'库存不足'
,
'LIMIT_WARNING_STOCK'
,
'5'
,
'admin'
,
sysdate
());
(
0
,
'库存不足'
,
'LIMIT_WARNING_STOCK'
,
'5'
,
'admin'
,
sysdate
()),
(
0
,
'发货地址'
,
'SHIP_FROM_ADDRESS'
,
''
,
'admin'
,
sysdate
());
#
-- >>------------------------------------------------------------------------------------
#
-- >>------------------------------------------------------------------------------------
drop
table
if
exists
goblin_store_notice
;
drop
table
if
exists
goblin_store_notice
;
create
table
goblin_store_notice
create
table
goblin_store_notice
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtController.java
View file @
590be50d
...
@@ -127,7 +127,7 @@ public class GoblinStoreMgtController {
...
@@ -127,7 +127,7 @@ public class GoblinStoreMgtController {
}
}
@ApiOperationSupport
(
order
=
5
)
@ApiOperationSupport
(
order
=
5
)
@ApiOperation
(
value
=
"店铺管理:店铺设置:详情"
,
notes
=
"BUSINESS_STATUS(状态:营业状态[4-停业|5-营业])、ONOFF_CUSTOMER_SEV(开关:联系客服)、ONOFF_SOLD_OUT_SHOW(开关:售罄展示)、LIMIT_WARNING_STOCK(指标:库存不足)"
)
@ApiOperation
(
value
=
"店铺管理:店铺设置:详情"
,
notes
=
"BUSINESS_STATUS(状态:营业状态[4-停业|5-营业])、ONOFF_CUSTOMER_SEV(开关:联系客服)、ONOFF_SOLD_OUT_SHOW(开关:售罄展示)、LIMIT_WARNING_STOCK(指标:库存不足)
、SHIP_FROM_ADDRESS(发货地址,快递100用;空则用系统默认)
"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"storeId"
,
value
=
"店铺ID[64]"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"storeId"
,
value
=
"店铺ID[64]"
),
})
})
...
@@ -180,6 +180,9 @@ public class GoblinStoreMgtController {
...
@@ -180,6 +180,9 @@ public class GoblinStoreMgtController {
updateConfMap
.
put
(
ck
,
cv
);
updateConfMap
.
put
(
ck
,
cv
);
}
}
break
;
break
;
case
"SHIP_FROM_ADDRESS"
:
updateConfMap
.
put
(
ck
,
cv
);
break
;
}
}
});
});
if
(
CollectionUtils
.
isEmpty
(
updateConfMap
))
{
if
(
CollectionUtils
.
isEmpty
(
updateConfMap
))
{
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinMailTrackServiceImpl.java
View file @
590be50d
...
@@ -451,7 +451,7 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
...
@@ -451,7 +451,7 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
String
phone
=
resolvePhone
(
orderVo
);
String
phone
=
resolvePhone
(
orderVo
);
String
to
=
resolveTo
(
orderVo
);
String
to
=
resolveTo
(
orderVo
);
String
from
=
kuaidi100Client
.
getDefaultFrom
(
);
String
from
=
resolveFrom
(
orderVo
);
String
callback
=
buildCallbackUrl
(
mailId
,
orderId
);
String
callback
=
buildCallbackUrl
(
mailId
,
orderId
);
try
{
try
{
SubscribeResp
resp
=
kuaidi100Client
.
subscribeWithMap
(
com
,
mailNo
,
phone
,
from
,
to
,
callback
);
SubscribeResp
resp
=
kuaidi100Client
.
subscribeWithMap
(
com
,
mailNo
,
phone
,
from
,
to
,
callback
);
...
@@ -500,7 +500,7 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
...
@@ -500,7 +500,7 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
String
phone
=
resolvePhone
(
orderVo
);
String
phone
=
resolvePhone
(
orderVo
);
String
to
=
resolveTo
(
orderVo
);
String
to
=
resolveTo
(
orderVo
);
String
from
=
kuaidi100Client
.
getDefaultFrom
(
);
String
from
=
resolveFrom
(
orderVo
);
try
{
try
{
QueryTrackMapResp
resp
=
kuaidi100Client
.
queryMapTrack
(
com
,
mailNo
,
phone
,
from
,
to
);
QueryTrackMapResp
resp
=
kuaidi100Client
.
queryMapTrack
(
com
,
mailNo
,
phone
,
from
,
to
);
if
(
resp
==
null
)
{
if
(
resp
==
null
)
{
...
@@ -625,6 +625,22 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
...
@@ -625,6 +625,22 @@ public class GoblinMailTrackServiceImpl implements IGoblinMailTrackService {
return
address
==
null
?
""
:
address
;
return
address
==
null
?
""
:
address
;
}
}
/** 发货地:店铺设置 SHIP_FROM_ADDRESS,空则用配置文件 liquidnet.express.kuaidi100.from */
private
String
resolveFrom
(
GoblinStoreOrderVo
orderVo
)
{
if
(
orderVo
!=
null
&&
StringUtils
.
isNotBlank
(
orderVo
.
getStoreId
()))
{
List
<
GoblinStoreConfigVo
>
configs
=
redisUtils
.
getStoreConfigVos
(
orderVo
.
getStoreId
());
if
(
configs
!=
null
)
{
for
(
GoblinStoreConfigVo
conf
:
configs
)
{
if
(
GoblinStoreConf
.
SHIP_FROM_ADDRESS
.
name
().
equals
(
conf
.
getConfigKey
())
&&
StringUtils
.
isNotBlank
(
conf
.
getConfigVal
()))
{
return
conf
.
getConfigVal
().
trim
();
}
}
}
}
return
kuaidi100Client
.
getDefaultFrom
();
}
private
String
buildCallbackUrl
(
String
mailId
,
String
orderId
)
{
private
String
buildCallbackUrl
(
String
mailId
,
String
orderId
)
{
String
base
=
kuaidi100Client
.
getCallbackurl
();
String
base
=
kuaidi100Client
.
getCallbackurl
();
String
sep
=
base
.
contains
(
"?"
)
?
"&"
:
"?"
;
String
sep
=
base
.
contains
(
"?"
)
?
"&"
:
"?"
;
...
...
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