Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-store
Commits
037492ec
Commit
037492ec
authored
Nov 05, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范修改
parent
cbb4fbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+9
-2
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
037492ec
...
...
@@ -256,11 +256,13 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
@Transactional
public
ServiceResponse
<
Integer
>
saveStoreForOrder
(
Integer
enterpriseId
,
String
storeCode
,
String
storeName
,
Integer
regionId
,
String
orderNum
)
{
return
saveStoreForOrder
(
enterpriseId
,
storeCode
,
storeName
,
regionId
,
orderNum
,
null
);
}
@Override
@Transactional
public
ServiceResponse
<
Integer
>
saveStoreForOrder
(
Integer
enterpriseId
,
String
storeCode
,
String
storeName
,
Integer
regionId
,
String
orderNum
,
Integer
storeBrandId
)
{
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
listEnterpriseLicense
=
this
.
enterpriseApiService
.
listEnterpriseLicense
(
enterpriseId
);
Integer
storeLicenseNum
=
0
;
...
...
@@ -293,11 +295,13 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
@Transactional
public
ServiceResponse
<
Integer
>
saveStoreForPosMember
(
Integer
enterpriseId
,
String
storeCode
,
String
storeName
,
Integer
regionId
,
String
cardNo
)
{
return
saveStoreForPosMember
(
enterpriseId
,
storeCode
,
storeName
,
regionId
,
cardNo
,
null
);
}
@Override
@Transactional
public
ServiceResponse
<
Integer
>
saveStoreForPosMember
(
Integer
enterpriseId
,
String
storeCode
,
String
storeName
,
Integer
regionId
,
String
cardNo
,
Integer
storeBrandId
)
{
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
listEnterpriseLicense
=
this
.
enterpriseApiService
.
listEnterpriseLicense
(
enterpriseId
);
Integer
storeLicenseNum
=
0
;
...
...
@@ -336,6 +340,7 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
@Transactional
public
ServiceResponse
<
Void
>
tranOverFlow
(
Integer
enterpriseId
,
String
storeIds
)
{
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
listEnterpriseLicense
=
this
.
enterpriseApiService
.
listEnterpriseLicense
(
enterpriseId
);
if
(
listEnterpriseLicense
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
listEnterpriseLicense
.
getResult
()))
{
...
...
@@ -583,7 +588,7 @@ public class StoreApiServiceImpl implements StoreApiService {
return
ServiceResponse
.
success
(
new
Page
<>(
pageNum
,
pageSize
));
}
JSONObject
sortJson
=
null
;
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getLatitude
())
&&
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getL
at
itude
())){
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getLatitude
())
&&
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getL
ong
itude
())){
sortJson
=
QueryConditionAssemblyUtil
.
createSortNodeByLocation
(
StoreESFieldsEnum
.
LOCATION
.
getField
(),
QueryConditionAssemblyUtil
.
SORT_RULE_ASC
,
Double
.
valueOf
(
storeSearchDTO
.
getLatitude
()),
Double
.
valueOf
(
storeSearchDTO
.
getLongitude
()));
}
else
{
...
...
@@ -601,7 +606,7 @@ public class StoreApiServiceImpl implements StoreApiService {
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getLatitude
())
&&
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getLongitude
())
&&
CollectionUtils
.
isNotEmpty
(
storeDTO
.
getLocation
())){
double
v
=
GeoUtils
.
arcDistance
(
Double
.
valueOf
(
storeSearchDTO
.
getLatitude
()),
Double
.
valueOf
(
storeSearchDTO
.
getLongitude
()),
Double
.
valueOf
(
storeDTO
.
getLocation
().
get
(
1
)
),
storeDTO
.
getLocation
().
get
(
0
));
storeDTO
.
getLocation
().
get
(
1
),
storeDTO
.
getLocation
().
get
(
0
));
storeDTO
.
setDistance
(
v
);
}
result
.
add
(
storeDTO
);
...
...
@@ -892,6 +897,7 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
@Transactional
public
ServiceResponse
<
String
>
importStoreForOperation
(
ProcessBatchStoreDTO
processBatchStoreDTO
)
{
logger
.
info
(
"批量处理门店:{}"
,
JSON
.
toJSONString
(
processBatchStoreDTO
));
StoreDTO
storeDTO
=
new
StoreDTO
();
...
...
@@ -1066,6 +1072,7 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
@Transactional
public
ServiceResponse
<
Void
>
saveStoreAndClerkForBulkOrder
(
String
params
)
{
logger
.
info
(
"saveStoreAndClerkForBulkOrder:{}"
,
params
);
Map
<
String
,
Object
>
message
=
new
HashMap
<>();
...
...
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