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
afbddd05
Commit
afbddd05
authored
Jan 04, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店状态变更
parent
27fe082e
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
184 additions
and
121 deletions
+184
-121
StoreESFieldsEnum.java
...c/main/java/com/gic/store/constant/StoreESFieldsEnum.java
+2
-2
StoreStatusEnum.java
...src/main/java/com/gic/store/constant/StoreStatusEnum.java
+12
-4
StoreEsDTO.java
...store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
+6
-6
StoreInfoDTO.java
...ore-api/src/main/java/com/gic/store/dto/StoreInfoDTO.java
+8
-8
StoreSearchDTO.java
...e-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
+12
-13
StoreSearchDbDTO.java
...api/src/main/java/com/gic/store/dto/StoreSearchDbDTO.java
+6
-6
ClerkApiService.java
.../src/main/java/com/gic/store/service/ClerkApiService.java
+2
-0
TabStoreInfoMapper.java
...ain/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
+3
-0
TabStoreInfo.java
...vice/src/main/java/com/gic/store/entity/TabStoreInfo.java
+5
-5
ClerkService.java
...ice/src/main/java/com/gic/store/service/ClerkService.java
+14
-1
StoreService.java
...ice/src/main/java/com/gic/store/service/StoreService.java
+12
-0
ClerkServiceImpl.java
...ain/java/com/gic/store/service/impl/ClerkServiceImpl.java
+9
-0
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+9
-3
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+37
-8
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+13
-13
StoreTaskServiceImpl.java
...om/gic/store/service/outer/impl/StoreTaskServiceImpl.java
+8
-7
dubbo-gic-store-service.xml
...re-service/src/main/resources/dubbo-gic-store-service.xml
+1
-1
TabStoreInfoMapper.xml
...-service/src/main/resources/mapper/TabStoreInfoMapper.xml
+22
-20
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+3
-11
StoreQO.java
...web/src/main/java/com/gic/store/web/qo/store/StoreQO.java
+0
-13
No files found.
gic-store-api/src/main/java/com/gic/store/constant/StoreESFieldsEnum.java
View file @
afbddd05
...
...
@@ -73,7 +73,7 @@ public enum StoreESFieldsEnum {
*/
STOREBRANDS
(
"storeBrands"
,
"店招品牌"
),
/**
* 门店
启用
状态
* 门店状态
*/
STATUS
(
"status"
,
"门店启用状态"
),
/**
...
...
@@ -91,7 +91,7 @@ public enum StoreESFieldsEnum {
/**
* 门店状态
*/
ERPSTATUS
(
"erp
Status"
,
"门店状态"
),
REALSTATUS
(
"real
Status"
,
"门店状态"
),
/**
* 门店地区
*/
...
...
gic-store-api/src/main/java/com/gic/store/constant/StoreStatusEnum.java
View file @
afbddd05
...
...
@@ -9,13 +9,21 @@ package com.gic.store.constant;
*/
public
enum
StoreStatusEnum
{
/**
*
启用
*
上线
*/
ONLINE
(
1
,
"
启用
"
),
ONLINE
(
1
,
"
上线
"
),
/**
*
不启用
*
未上线
*/
INONLINE
(
2
,
"不启用"
);
INONLINE
(
2
,
"未上线"
),
/**
* 停业整顿
*/
STOPDOING
(
3
,
"停业整顿"
),
/**
* 闭店
*/
CLOSE
(
4
,
"闭店"
);
private
int
code
;
private
String
message
;
...
...
gic-store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
View file @
afbddd05
...
...
@@ -30,7 +30,7 @@ public class StoreEsDTO implements Serializable {
private
Integer
completeStatus
;
private
Integer
createType
;
private
Integer
storeType
;
private
Integer
erp
Status
;
private
Integer
real
Status
;
private
List
<
String
>
areaIds
;
private
String
id
;
private
Integer
ownType
;
...
...
@@ -195,12 +195,12 @@ public class StoreEsDTO implements Serializable {
this
.
storeType
=
storeType
;
}
public
Integer
get
Erp
Status
()
{
return
erp
Status
;
public
Integer
get
Real
Status
()
{
return
real
Status
;
}
public
void
set
ErpStatus
(
Integer
erp
Status
)
{
this
.
erpStatus
=
erp
Status
;
public
void
set
RealStatus
(
Integer
real
Status
)
{
this
.
realStatus
=
real
Status
;
}
public
List
<
String
>
getAreaIds
()
{
...
...
@@ -322,7 +322,7 @@ public class StoreEsDTO implements Serializable {
", completeStatus="
+
completeStatus
+
", createType="
+
createType
+
", storeType="
+
storeType
+
",
erpStatus="
+
erp
Status
+
",
realStatus="
+
real
Status
+
", areaIds="
+
areaIds
+
", id='"
+
id
+
'\''
+
", ownType="
+
ownType
+
...
...
gic-store-api/src/main/java/com/gic/store/dto/StoreInfoDTO.java
View file @
afbddd05
...
...
@@ -88,16 +88,16 @@ public class StoreInfoDTO implements Serializable {
private
Integer
overflowStatus
;
/**
* 门店
启用状态;1启用 2不启用
* 门店
状态;
*/
private
Integer
status
;
private
Integer
completeStatus
;
/**
*
erp门店状态
*
门店状态,业务使用
*/
private
Integer
erp
Status
;
private
Integer
real
Status
;
/**
* 门店类型
...
...
@@ -223,12 +223,12 @@ public class StoreInfoDTO implements Serializable {
this
.
status
=
status
;
}
public
Integer
get
Erp
Status
()
{
return
erp
Status
;
public
Integer
get
Real
Status
()
{
return
real
Status
;
}
public
void
set
ErpStatus
(
Integer
erp
Status
)
{
this
.
erpStatus
=
erp
Status
;
public
void
set
RealStatus
(
Integer
real
Status
)
{
this
.
realStatus
=
real
Status
;
}
public
Integer
getStoreType
()
{
...
...
@@ -514,7 +514,7 @@ public class StoreInfoDTO implements Serializable {
", overflowStatus="
+
overflowStatus
+
", status="
+
status
+
", completeStatus="
+
completeStatus
+
",
erpStatus="
+
erp
Status
+
",
realStatus="
+
real
Status
+
", storeType="
+
storeType
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
...
...
gic-store-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
View file @
afbddd05
...
...
@@ -36,12 +36,12 @@ public class StoreSearchDTO implements Serializable {
private
Integer
storeTagId
;
private
Integer
completeStatus
;
private
List
<
Integer
>
storeResourceList
;
private
Integer
erp
Status
;
private
Integer
real
Status
;
private
String
storeGroupIds
;
private
String
regionIds
;
private
String
storeTypes
;
private
String
storeStatuss
;
private
String
erp
Statuss
;
private
String
real
Statuss
;
private
String
storeTags
;
public
Integer
getStoreGroupId
()
{
...
...
@@ -238,13 +238,12 @@ public class StoreSearchDTO implements Serializable {
this
.
storeResourceList
=
storeResourceList
;
}
public
Integer
get
Erp
Status
()
{
return
erp
Status
;
public
Integer
get
Real
Status
()
{
return
real
Status
;
}
public
StoreSearchDTO
setErpStatus
(
Integer
erpStatus
)
{
this
.
erpStatus
=
erpStatus
;
return
this
;
public
void
setRealStatus
(
Integer
realStatus
)
{
this
.
realStatus
=
realStatus
;
}
public
String
getStoreGroupIds
()
{
...
...
@@ -279,12 +278,12 @@ public class StoreSearchDTO implements Serializable {
this
.
storeStatuss
=
storeStatuss
;
}
public
String
get
Erp
Statuss
()
{
return
erp
Statuss
;
public
String
get
Real
Statuss
()
{
return
real
Statuss
;
}
public
void
set
ErpStatuss
(
String
erp
Statuss
)
{
this
.
erpStatuss
=
erp
Statuss
;
public
void
set
RealStatuss
(
String
real
Statuss
)
{
this
.
realStatuss
=
real
Statuss
;
}
public
String
getStoreTags
()
{
...
...
@@ -330,12 +329,12 @@ public class StoreSearchDTO implements Serializable {
", storeTagId="
+
storeTagId
+
", completeStatus="
+
completeStatus
+
", storeResourceList="
+
storeResourceList
+
",
erpStatus="
+
erp
Status
+
",
realStatus="
+
real
Status
+
", storeGroupIds='"
+
storeGroupIds
+
'\''
+
", regionIds='"
+
regionIds
+
'\''
+
", storeTypes='"
+
storeTypes
+
'\''
+
", storeStatuss='"
+
storeStatuss
+
'\''
+
",
erpStatuss='"
+
erp
Statuss
+
'\''
+
",
realStatuss='"
+
real
Statuss
+
'\''
+
", storeTags='"
+
storeTags
+
'\''
+
'}'
;
}
...
...
gic-store-api/src/main/java/com/gic/store/dto/StoreSearchDbDTO.java
View file @
afbddd05
...
...
@@ -32,7 +32,7 @@ public class StoreSearchDbDTO implements Serializable {
private
List
<
Integer
>
storeIdList
;
private
List
<
Integer
>
storeInfoIdList
;
private
List
<
Integer
>
statusList
;
private
List
<
Integer
>
erp
StatusList
;
private
List
<
Integer
>
real
StatusList
;
private
Integer
currentPage
=
1
;
private
Integer
pageSize
=
20
;
...
...
@@ -188,12 +188,12 @@ public class StoreSearchDbDTO implements Serializable {
this
.
statusList
=
statusList
;
}
public
List
<
Integer
>
get
Erp
StatusList
()
{
return
erp
StatusList
;
public
List
<
Integer
>
get
Real
StatusList
()
{
return
real
StatusList
;
}
public
void
set
ErpStatusList
(
List
<
Integer
>
erp
StatusList
)
{
this
.
erpStatusList
=
erp
StatusList
;
public
void
set
RealStatusList
(
List
<
Integer
>
real
StatusList
)
{
this
.
realStatusList
=
real
StatusList
;
}
public
Integer
getStoreBrandId
()
{
...
...
@@ -252,7 +252,7 @@ public class StoreSearchDbDTO implements Serializable {
", storeIdList="
+
storeIdList
+
", storeInfoIdList="
+
storeInfoIdList
+
", statusList="
+
statusList
+
",
erpStatusList="
+
erp
StatusList
+
",
realStatusList="
+
real
StatusList
+
", currentPage="
+
currentPage
+
", pageSize="
+
pageSize
+
'}'
;
...
...
gic-store-api/src/main/java/com/gic/store/service/ClerkApiService.java
View file @
afbddd05
...
...
@@ -426,4 +426,6 @@ public interface ClerkApiService {
* @throws
*/
ServiceResponse
<
List
<
ClerkDTO
>>
listHaobanClerk
(
Integer
enterpriseId
,
Integer
positionId
);
ServiceResponse
<
Void
>
checkStoreRealStatus
(
String
params
);
}
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
View file @
afbddd05
...
...
@@ -250,4 +250,6 @@ public interface TabStoreInfoMapper {
* @throws
*/
Integer
hasUnCompleteStatusStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
int
updateStoreRealStatus
(
@Param
(
"storeInfoId"
)
Integer
storeInfoId
,
@Param
(
"status"
)
int
status
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/entity/TabStoreInfo.java
View file @
afbddd05
...
...
@@ -96,7 +96,7 @@ public class TabStoreInfo {
/**
* erp门店状态
*/
private
Integer
erp
Status
;
private
Integer
real
Status
;
/**
* 门店类型
...
...
@@ -253,12 +253,12 @@ public class TabStoreInfo {
this
.
status
=
status
;
}
public
Integer
get
Erp
Status
()
{
return
erp
Status
;
public
Integer
get
Real
Status
()
{
return
real
Status
;
}
public
void
set
ErpStatus
(
Integer
erp
Status
)
{
this
.
erpStatus
=
erp
Status
;
public
void
set
RealStatus
(
Integer
real
Status
)
{
this
.
realStatus
=
real
Status
;
}
public
Integer
getStoreType
()
{
...
...
gic-store-service/src/main/java/com/gic/store/service/ClerkService.java
View file @
afbddd05
...
...
@@ -124,7 +124,20 @@ public interface ClerkService {
* @throws
*/
List
<
TabClerk
>
listClerkByStoreInfoId
(
Integer
enterpriseId
,
List
<
Integer
>
storeInfoIds
,
String
search
,
Integer
clerkType
);
/**
* listClerkByStoreInfoId
* @Title: listClerkByStoreInfoId
* @Description:
* @author taogs
* @param enterpriseId
* @param storeInfoIds
* @param status
* @param search
* @return java.util.List<com.gic.store.entity.TabClerk>
* @throws
*/
List
<
TabClerk
>
listClerkByStoreInfoId
(
Integer
enterpriseId
,
List
<
Integer
>
storeInfoIds
,
Integer
status
,
String
search
);
/**
* getTotalClerk
* @Title: getTotalClerk
...
...
gic-store-service/src/main/java/com/gic/store/service/StoreService.java
View file @
afbddd05
...
...
@@ -503,4 +503,16 @@ public interface StoreService {
* @throws
*/
boolean
hasUnCompleteStatusStore
(
Integer
enterpriseId
);
/**
* 导购变更,更新门店状态
* @Title: 导购变更,更新门店状态
* @Description:
* @author taogs
* @param storeInfoId
* @param status
* @return void
* @throws
*/
void
updateStoreRealStatus
(
Integer
storeInfoId
,
int
status
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/ClerkServiceImpl.java
View file @
afbddd05
...
...
@@ -7,6 +7,7 @@ import com.gic.store.dto.ClerkDTO;
import
com.gic.store.dto.ClerkSearchDTO
;
import
com.gic.store.entity.TabClerk
;
import
com.gic.store.service.ClerkService
;
import
com.gic.store.service.StoreService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -24,6 +25,8 @@ public class ClerkServiceImpl implements ClerkService {
@Autowired
private
TabClerkMapper
tabClerkMapper
;
@Autowired
private
StoreService
storeService
;
@Override
public
boolean
isRepeatByClerkCode
(
Integer
storeInfoId
,
String
clerkCode
,
Integer
clerkId
)
{
...
...
@@ -72,6 +75,7 @@ public class ClerkServiceImpl implements ClerkService {
tabClerk
.
setCreateTime
(
new
Date
());
tabClerk
.
setStatus
(
StoreEnableOrDisAbleEnum
.
ENABLE
.
getCode
());
tabClerkMapper
.
insertSelective
(
tabClerk
);
this
.
storeService
.
updateStoreRealStatus
(
copy
.
getStoreInfoId
(),
StoreEnableOrDisAbleEnum
.
ENABLE
.
getCode
());
return
tabClerk
.
getClerkId
();
}
...
...
@@ -110,6 +114,11 @@ public class ClerkServiceImpl implements ClerkService {
}
@Override
public
List
<
TabClerk
>
listClerkByStoreInfoId
(
Integer
enterpriseId
,
List
<
Integer
>
storeInfoIds
,
Integer
status
,
String
search
)
{
return
tabClerkMapper
.
listClerkByStoreInfoId
(
enterpriseId
,
storeInfoIds
,
null
,
search
,
null
,
status
);
}
@Override
public
Integer
getTotalClerk
(
Integer
enterpriseId
,
List
<
Integer
>
storeInfoIds
,
ClerkSearchDTO
search
)
{
return
tabClerkMapper
.
getTotalClerk
(
enterpriseId
,
storeInfoIds
,
search
.
getSearch
(),
search
.
getStatus
());
}
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
afbddd05
...
...
@@ -77,7 +77,7 @@ public class StoreServiceImpl implements StoreService {
tabStoreInfo
.
setOverflowStatus
(
0
);
}
tabStoreInfo
.
setStatus
(
copy
.
getStatus
());
tabStoreInfo
.
set
ErpStatus
(
copy
.
getErp
Status
());
tabStoreInfo
.
set
RealStatus
(
copy
.
getReal
Status
());
tabStoreInfo
.
setStoreType
(
copy
.
getStoreType
());
tabStoreInfo
.
setCreateType
(
copy
.
getCreateType
());
tabStoreInfo
.
setCreateTime
(
new
Date
());
...
...
@@ -115,7 +115,7 @@ public class StoreServiceImpl implements StoreService {
tabStoreInfo
.
setLongitude
(
copy
.
getLongitude
());
tabStoreInfo
.
setLatitude
(
copy
.
getLatitude
());
tabStoreInfo
.
setStatus
(
copy
.
getStatus
());
tabStoreInfo
.
set
ErpStatus
(
copy
.
getErp
Status
());
tabStoreInfo
.
set
RealStatus
(
copy
.
getReal
Status
());
tabStoreInfo
.
setStoreType
(
copy
.
getStoreType
());
tabStoreInfo
.
setCompleteStatus
(
copy
.
getCompleteStatus
());
tabStoreInfo
.
setIndexId
(
copy
.
getIndexId
());
...
...
@@ -211,7 +211,6 @@ public class StoreServiceImpl implements StoreService {
StringUtils
.
isNotBlank
(
storeDTO
.
getStoreCode
())
&&
CollectionUtils
.
isNotEmpty
(
storeDTO
.
getPhotoList
())
&&
storeDTO
.
getStoreType
()
!=
null
&&
storeDTO
.
getErpStatus
()
!=
null
&&
StringUtils
.
isNotBlank
(
storeDTO
.
getConactsPhone
())
&&
CollectionUtils
.
isNotEmpty
(
storeDTO
.
getBusinessTimeList
())
&&
StringUtils
.
isNotBlank
(
storeDTO
.
getBusinessTimeList
().
get
(
0
).
getWeekday
())
&&
...
...
@@ -577,4 +576,10 @@ public class StoreServiceImpl implements StoreService {
public
boolean
hasUnCompleteStatusStore
(
Integer
enterpriseId
)
{
return
tabStoreInfoMapper
.
hasUnCompleteStatusStore
(
enterpriseId
)
!=
null
;
}
@Override
public
void
updateStoreRealStatus
(
Integer
storeInfoId
,
int
status
)
{
int
i
=
this
.
tabStoreInfoMapper
.
updateStoreRealStatus
(
storeInfoId
,
status
);
logger
.
info
(
"更新门店状态记录数:{}"
,
i
);
}
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
afbddd05
...
...
@@ -22,11 +22,10 @@ import com.gic.store.dto.clerk.OrderAddClerkDTO;
import
com.gic.store.dto.clerk.PosAddClerkDTO
;
import
com.gic.store.dto.clerk.ProcessBatchClerkDTO
;
import
com.gic.store.entity.TabClerk
;
import
com.gic.store.entity.TabStoreRegion
;
import
com.gic.store.service.*
;
import
com.gic.store.utils.valid.ValidUtil
;
import
com.gic.weimob.api.dto.WeimobGuiderSynDTO
;
import
com.gic.weimob.api.service.WeimobStoreSiteService
;
import
com.gic.weimob.api.service.WeimobStoreSite
Api
Service
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -66,7 +65,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@Autowired
private
EnterpriseApiService
enterpriseApiService
;
@Autowired
private
WeimobStoreSite
Service
weimobStoreSite
Service
;
private
WeimobStoreSite
ApiService
weimobStoreSiteApi
Service
;
@Autowired
private
WmStoreSyncLogApiService
wmStoreSyncLogApiService
;
@Autowired
...
...
@@ -133,6 +132,9 @@ public class ClerkApiServiceImpl implements ClerkApiService {
if
(
StringUtils
.
isNotBlank
(
clerkDTO
.
getPhoneNumber
()))
{
String
nationcode
=
clerkDTO
.
getNationcode
();
if
(
StringUtils
.
isBlank
(
nationcode
))
{
if
(
clerkDTO
.
getPhoneNumber
().
length
()
!=
11
){
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"手机号国际码不能为空"
);
}
nationcode
=
Constants
.
NATION_CODE
;
}
//默认加上+
...
...
@@ -159,7 +161,6 @@ public class ClerkApiServiceImpl implements ClerkApiService {
clerkLogService
.
saveClerkLogBySaveClerk
(
clerkDTO
.
getEnterpriseId
(),
id
,
clerkDTO
.
getReason
(),
clerkDTO
.
getRemark
(),
clerkDTO
.
getOperatorId
(),
clerkDTO
.
getOperatorName
());
storeLogByAddClerk
(
clerkDTO
);
synClerkInfoToWeimobMq
(
clerkDTO
);
}
else
{
TabClerk
oldClerk
=
this
.
clerkService
.
getById
(
clerkDTO
.
getClerkId
());
...
...
@@ -501,6 +502,12 @@ public class ClerkApiServiceImpl implements ClerkApiService {
Integer
i
=
clerkService
.
updateClerkStatus
(
enterpriseId
,
clerkIdList
,
status
);
for
(
Integer
clerkId
:
clerkIdList
)
{
sparkJobApiService
.
updateClerkStatus
(
enterpriseId
,
clerkId
.
longValue
(),
1
==
status
?
0
:
1
);
/**判断门店下是否还有启用导购**/
try
{
GICMQClientUtil
.
getClientInstance
().
sendCommonMessage
(
"commonRouter"
,
clerkId
+
","
+
enterpriseId
,
"com.gic.store.service.ClerkApiService"
,
"checkStoreRealStatus"
);
}
catch
(
Exception
e
)
{
logger
.
warn
(
"异常"
,
e
);
}
}
}
}
...
...
@@ -808,7 +815,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
String
wmGuiderDtoStr
=
(
String
)
jsonObject
.
get
(
"wmGuiderDTO"
);
WeimobGuiderSynDTO
wmGuiderDTO
=
JSONObject
.
parseObject
(
wmGuiderDtoStr
,
WeimobGuiderSynDTO
.
class
);
logger
.
info
(
"异步导购微盟放入参数:{}"
,
JSONObject
.
toJSONString
(
wmGuiderDTO
));
ServiceResponse
<
Void
>
result
=
weimobStoreSiteService
.
addWeimobGuider
(
Integer
.
parseInt
(
wmMallStoreId
),
ServiceResponse
<
Void
>
result
=
weimobStoreSite
Api
Service
.
addWeimobGuider
(
Integer
.
parseInt
(
wmMallStoreId
),
Integer
.
parseInt
(
enterpriseId
),
wmGuiderDTO
);
logger
.
info
(
"异步导购结果:code:{}, message:{}"
,
result
.
getCode
(),
result
.
getMessage
());
return
ServiceResponse
.
success
();
...
...
@@ -874,17 +881,17 @@ public class ClerkApiServiceImpl implements ClerkApiService {
List
<
WmStoreSyncLogDTO
>
wmStoreLog
=
wmStoreListResult
.
getResult
();
wmStoreLog
.
forEach
(
storeLog
->
{
ServiceResponse
<
Boolean
>
isExitClerkResult
=
weimobStoreSiteService
ServiceResponse
<
Boolean
>
isExitClerkResult
=
weimobStoreSite
Api
Service
.
isExitClerk
(
storeLog
.
getWmMallStoreId
(),
clerkDTO
.
getPhoneNumber
());
if
(
isExitClerkResult
.
isSuccess
())
{
ServiceResponse
<
Void
>
weimobResult
;
if
(
isExitClerkResult
.
getResult
())
{
//如果存在了,则是更新操作
weimobResult
=
weimobStoreSiteService
weimobResult
=
weimobStoreSite
Api
Service
.
updateWeimobGuider
(
storeLog
.
getWmMallStoreId
(),
storeLog
.
getEnterpriseId
(),
weimobGuiderSynDTO
);
}
else
{
//新增操作
weimobResult
=
weimobStoreSiteService
weimobResult
=
weimobStoreSite
Api
Service
.
addWeimobGuider
(
storeLog
.
getWmMallStoreId
(),
storeLog
.
getEnterpriseId
(),
weimobGuiderSynDTO
);
}
logger
.
warn
(
"导购增改微盟返回结果:{}"
,
JSONObject
.
toJSONString
(
weimobResult
));
...
...
@@ -913,6 +920,28 @@ public class ClerkApiServiceImpl implements ClerkApiService {
return
haobanClerk
(
clerkList
);
}
@Override
public
ServiceResponse
<
Void
>
checkStoreRealStatus
(
String
params
)
{
String
[]
arr
=
params
.
split
(
","
);
Integer
clerkId
=
Integer
.
valueOf
(
arr
[
0
]);
Integer
enterpriseId
=
Integer
.
valueOf
(
arr
[
1
]);
TabClerk
tabClerk
=
this
.
clerkService
.
getById
(
clerkId
);
if
(
tabClerk
!=
null
){
ArrayList
<
Integer
>
storeInfoIdList
=
new
ArrayList
<>();
storeInfoIdList
.
add
(
tabClerk
.
getStoreInfoId
());
List
<
TabClerk
>
list
=
this
.
clerkService
.
listClerkByStoreInfoId
(
enterpriseId
,
storeInfoIdList
,
1
,
null
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
this
.
storeService
.
updateStoreRealStatus
(
tabClerk
.
getStoreInfoId
(),
0
);
}
else
{
ServiceResponse
<
StoreDTO
>
response
=
this
.
storeApiService
.
getStoreByStoreInfoId
(
enterpriseId
,
tabClerk
.
getStoreInfoId
());
if
(
response
.
isSuccess
()
&&
response
.
getResult
()!=
null
&&
response
.
getResult
().
getRealStatus
()
==
0
){
this
.
storeService
.
updateStoreRealStatus
(
tabClerk
.
getStoreInfoId
(),
1
);
}
}
}
return
ServiceResponse
.
success
();
}
private
ServiceResponse
<
List
<
ClerkDTO
>>
haobanClerk
(
List
<
TabClerk
>
clerkList
)
{
List
<
ClerkDTO
>
clerkDTOS
=
EntityUtil
.
changeEntityListByJSON
(
ClerkDTO
.
class
,
clerkList
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkDTOS
))
{
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
afbddd05
...
...
@@ -34,7 +34,7 @@ import com.gic.store.utils.field.*;
import
com.gic.store.utils.valid.ValidUtil
;
import
com.gic.weimob.api.dto.WeimobPhysicalStoreDTO
;
import
com.gic.weimob.api.dto.WeimobStoreAccountDTO
;
import
com.gic.weimob.api.service.WeimobStoreSiteService
;
import
com.gic.weimob.api.service.WeimobStoreSite
Api
Service
;
import
com.google.common.base.Joiner
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -115,7 +115,7 @@ public class StoreApiServiceImpl implements StoreApiService {
@Autowired
private
StoreTagService
storeTagService
;
@Autowired
private
WeimobStoreSite
Service
weimobStoreSite
Service
;
private
WeimobStoreSite
ApiService
weimobStoreSiteApi
Service
;
@Autowired
private
WmStoreSyncLogApiService
wmStoreSyncLogApiService
;
@Autowired
...
...
@@ -478,13 +478,13 @@ public class StoreApiServiceImpl implements StoreApiService {
ServiceResponse
<
StoreDictDTO
>
newStoreType
=
this
.
storeDictApiService
.
getStoreDict
(
"storeType"
,
newStore
.
getStoreType
().
toString
());
sb
.
append
(
"变更为【"
).
append
(
newStoreType
.
getResult
().
getKey
()).
append
(
"】"
);
}
if
(
newStore
.
get
ErpStatus
()
!=
null
&&
!
newStore
.
getErpStatus
().
equals
(
oldStore
.
getErp
Status
()))
{
if
(
newStore
.
get
RealStatus
()
!=
null
&&
!
newStore
.
getRealStatus
().
equals
(
oldStore
.
getReal
Status
()))
{
sb
.
append
(
"门店状态"
);
if
(
oldStore
.
get
Erp
Status
()
!=
null
)
{
ServiceResponse
<
StoreDictDTO
>
oldStoreStatus
=
this
.
storeDictApiService
.
getStoreDict
(
"storeStatus"
,
oldStore
.
get
Erp
Status
().
toString
());
if
(
oldStore
.
get
Real
Status
()
!=
null
)
{
ServiceResponse
<
StoreDictDTO
>
oldStoreStatus
=
this
.
storeDictApiService
.
getStoreDict
(
"storeStatus"
,
oldStore
.
get
Real
Status
().
toString
());
sb
.
append
(
"【"
).
append
(
oldStoreStatus
.
getResult
().
getKey
()).
append
(
"】"
);
}
ServiceResponse
<
StoreDictDTO
>
newStoreStatus
=
this
.
storeDictApiService
.
getStoreDict
(
"storeStatus"
,
newStore
.
get
Erp
Status
().
toString
());
ServiceResponse
<
StoreDictDTO
>
newStoreStatus
=
this
.
storeDictApiService
.
getStoreDict
(
"storeStatus"
,
newStore
.
get
Real
Status
().
toString
());
sb
.
append
(
"变更为【"
).
append
(
newStoreStatus
.
getResult
().
getKey
()).
append
(
"】"
);
}
if
(
StringUtils
.
isNotBlank
(
newStore
.
getConactsPhone
())
&&
!
StringUtils
.
equals
(
newStore
.
getConactsPhone
(),
oldStore
.
getConactsPhone
()))
{
...
...
@@ -1511,7 +1511,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO
.
setCountyId
(
dto
.
getAreaId
());
esDTO
.
setCreateType
(
dto
.
getCreateType
());
esDTO
.
setEnterpriseId
(
enterpriseId
);
esDTO
.
set
ErpStatus
(
dto
.
getErp
Status
());
esDTO
.
set
RealStatus
(
dto
.
getReal
Status
());
esDTO
.
setId
(
enterpriseId
+
"_"
+
storeId
);
esDTO
.
setProvinceId
(
dto
.
getProvinceId
());
esDTO
.
setProvinces
(
dto
.
getProvinces
());
...
...
@@ -1709,8 +1709,8 @@ public class StoreApiServiceImpl implements StoreApiService {
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STATUS
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getStoreStatuss
());
jsonObjectList
.
add
(
json
);
}
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
get
Erp
Statuss
())){
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
ERPSTATUS
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getErp
Statuss
());
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
get
Real
Statuss
())){
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
REALSTATUS
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getReal
Statuss
());
jsonObjectList
.
add
(
json
);
}
return
json
;
...
...
@@ -1750,9 +1750,9 @@ public class StoreApiServiceImpl implements StoreApiService {
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getStatus
());
jsonObjectList
.
add
(
json
);
}
//门店状态
if
(
storeSearchDTO
.
get
Erp
Status
()
!=
null
)
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
ERPSTATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getErp
Status
());
//门店
真正的上线
状态
if
(
storeSearchDTO
.
get
Real
Status
()
!=
null
)
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
REALSTATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getReal
Status
());
jsonObjectList
.
add
(
json
);
}
if
(
storeSearchDTO
.
getCompleteStatus
()
!=
null
)
{
...
...
@@ -1811,7 +1811,7 @@ public class StoreApiServiceImpl implements StoreApiService {
if
(
wmStoreListResult
.
isSuccess
())
{
List
<
WmStoreSyncLogDTO
>
wmStoreList
=
wmStoreListResult
.
getResult
();
wmStoreList
.
forEach
(
wmStore
->
{
ServiceResponse
<
Void
>
weimobResult
=
this
.
weimobStoreSiteService
ServiceResponse
<
Void
>
weimobResult
=
this
.
weimobStoreSite
Api
Service
.
updateWeimobPhysicalStore
(
wmStore
.
getWmMallStoreId
(),
storeDTO
.
getEnterpriseId
(),
weimobPhysicalStoreDTO
);
logger
.
info
(
"门店修改同步到微盟结果:{},店铺ID:{}"
,
JSON
.
toJSONString
(
weimobResult
),
wmStore
.
getWmMallStoreId
());
});
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreTaskServiceImpl.java
View file @
afbddd05
...
...
@@ -134,7 +134,7 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
parseArea
(
t
,
storeDTO
);
// todo 判断溢出
storeDTO
.
setOverflowStatus
(
0
);
prase
Erp
StatusAndStoreType
(
t
,
storeDTO
);
praseStatusAndStoreType
(
t
,
storeDTO
);
if
(
StringUtils
.
isNotBlank
(
t
.
getStoreGroupName
()))
{
storeDTO
.
setIsEditStoreGroup
(
1
);
TabStoreGroup
group
=
storeGroupService
.
getStoreGroupByName
(
t
.
getStoreGroupName
(),
t
.
getEnterpriseId
());
...
...
@@ -162,6 +162,7 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
storeDTO
.
setRemark
(
"批量导入"
);
storeDTO
.
setOperatorId
(
t
.
getOperatorId
());
storeDTO
.
setOperatorName
(
t
.
getOperatorName
());
ServiceResponse
<
StoreDTO
>
serviceResponse
=
storeApiService
.
saveOrUpdate
(
storeDTO
);
String
msg
;
if
(
serviceResponse
.
isSuccess
())
{
...
...
@@ -173,13 +174,13 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
storeImportService
.
updateData
(
t
);
}
private
void
prase
Erp
StatusAndStoreType
(
StoreTmpDTO
t
,
StoreDTO
storeDTO
)
{
private
void
praseStatusAndStoreType
(
StoreTmpDTO
t
,
StoreDTO
storeDTO
)
{
if
(
StringUtils
.
isNotBlank
(
t
.
getErpStatus
()))
{
ServiceResponse
<
List
<
StoreDictDTO
>>
erpS
tatusResponse
=
storeDictApiService
.
listStoreStatus
(
t
.
getEnterpriseId
());
List
<
StoreDictDTO
>
erpList
=
erpS
tatusResponse
.
getResult
();
final
String
erpS
tatusTmp
=
t
.
getErpStatus
().
replace
(
"\\s+"
,
""
);
Optional
<
StoreDictDTO
>
erpStatusDTO
=
erpList
.
stream
().
filter
(
e
->
e
.
getKey
().
equals
(
erpS
tatusTmp
)).
findFirst
();
storeDTO
.
set
ErpStatus
(
Integer
.
parseInt
(
erpS
tatusDTO
.
get
().
getValue
()));
ServiceResponse
<
List
<
StoreDictDTO
>>
s
tatusResponse
=
storeDictApiService
.
listStoreStatus
(
t
.
getEnterpriseId
());
List
<
StoreDictDTO
>
statusList
=
s
tatusResponse
.
getResult
();
final
String
s
tatusTmp
=
t
.
getErpStatus
().
replace
(
"\\s+"
,
""
);
Optional
<
StoreDictDTO
>
statusDTO
=
statusList
.
stream
().
filter
(
e
->
e
.
getKey
().
equals
(
s
tatusTmp
)).
findFirst
();
storeDTO
.
set
Status
(
Integer
.
parseInt
(
s
tatusDTO
.
get
().
getValue
()));
}
if
(
StringUtils
.
isNotBlank
(
t
.
getStoreType
()))
{
ServiceResponse
<
List
<
StoreDictDTO
>>
storeTypeResponse
=
storeDictApiService
.
listStoreType
(
t
.
getEnterpriseId
());
...
...
gic-store-service/src/main/resources/dubbo-gic-store-service.xml
View file @
afbddd05
...
...
@@ -66,7 +66,7 @@
<dubbo:service
interface=
"com.gic.store.service.DictApiService"
ref=
"dictApiService"
timeout=
"6000"
/>
<dubbo:service
interface=
"com.gic.store.service.StoreTransferApiService"
ref=
"storeTransferApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.weimob.api.service.WeimobStoreSite
Service"
id=
"weimobStoreSite
Service"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.weimob.api.service.WeimobStoreSite
ApiService"
id=
"weimobStoreSiteApi
Service"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.service.WmStoreSyncLogApiService"
id=
"wmStoreSyncLogApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.spark.api.service.SparkJobApiService"
id=
"sparkJobApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.member.config.api.service.CardAscriptionConfigService"
id=
"cardAscriptionConfigService"
timeout=
"6000"
/>
...
...
gic-store-service/src/main/resources/mapper/TabStoreInfoMapper.xml
View file @
afbddd05
...
...
@@ -18,7 +18,7 @@
<result
column=
"overflow_status"
jdbcType=
"INTEGER"
property=
"overflowStatus"
/>
<result
column=
"complete_status"
jdbcType=
"INTEGER"
property=
"completeStatus"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"
erp_status"
jdbcType=
"INTEGER"
property=
"erp
Status"
/>
<result
column=
"
real_status"
jdbcType=
"INTEGER"
property=
"real
Status"
/>
<result
column=
"store_type"
jdbcType=
"INTEGER"
property=
"storeType"
/>
<result
column=
"create_type"
jdbcType=
"INTEGER"
property=
"createType"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
...
...
@@ -37,7 +37,7 @@
<sql
id=
"Base_Column_List"
>
${alias}.store_info_id, ${alias}.store_name, ${alias}.store_code, ${alias}.region_id, ${alias}.conacts_phone, ${alias}.address,
${alias}.brand_ids, ${alias}.province_id, ${alias}.city_id, ${alias}.area_id, ${alias}.provinces, ${alias}.longitude, ${alias}.latitude, ${alias}.overflow_status,
${alias}.complete_status, ${alias}.status, ${alias}.
erp
_status, ${alias}.store_type,${alias}.create_type, ${alias}.create_time, ${alias}.update_time, ${alias}.index_id
${alias}.complete_status, ${alias}.status, ${alias}.
real
_status, ${alias}.store_type,${alias}.create_type, ${alias}.create_time, ${alias}.update_time, ${alias}.index_id
</sql>
<sql
id=
"Base_Column_List2"
>
${alias}.store_id, ${alias}.enterprise_id, ${alias}.store_group_id, ${alias}.own_type, ${alias}.is_edit_store_group,${alias}.from_enterprise_id
...
...
@@ -50,17 +50,14 @@
from tab_store_info t
where t.store_info_id = #{storeInfoId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_store_info
where store_info_id = #{storeInfoId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.store.entity.TabStoreInfo"
>
insert into tab_store_info (store_info_id, store_name,
store_code, region_id, conacts_phone,
address, brand_ids, province_id,
city_id, area_id, provinces,
longitude, latitude, overflow_status,
complete_status, status,
erp
_status,
complete_status, status,
real
_status,
store_type,create_type, create_time, update_time,enterprise_id
)
values (#{storeInfoId,jdbcType=INTEGER}, #{storeName,jdbcType=VARCHAR},
...
...
@@ -68,7 +65,7 @@
#{address,jdbcType=VARCHAR}, #{brandIds,jdbcType=VARCHAR}, #{provinceId,jdbcType=VARCHAR},
#{cityId,jdbcType=VARCHAR}, #{areaId,jdbcType=VARCHAR}, #{provinces,jdbcType=VARCHAR},
#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{overflowStatus,jdbcType=INTEGER},
#{completeStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{
erpStatus,jdbcType=INTEGER},
#{completeStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{
realStatus,jdbcType=INTEGER},
#{storeType,jdbcType=INTEGER}, #{createType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},#{enterpriseId,jdbcType=INTEGER}
)
...
...
@@ -127,8 +124,8 @@
<if
test=
"status != null"
>
status,
</if>
<if
test=
"
erp
Status != null"
>
erp
_status,
<if
test=
"
real
Status != null"
>
real
_status,
</if>
<if
test=
"storeType != null"
>
store_type,
...
...
@@ -195,8 +192,8 @@
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"
erp
Status != null"
>
#{
erp
Status,jdbcType=INTEGER},
<if
test=
"
real
Status != null"
>
#{
real
Status,jdbcType=INTEGER},
</if>
<if
test=
"storeType != null"
>
#{storeType,jdbcType=INTEGER},
...
...
@@ -264,8 +261,8 @@
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"
erp
Status != null"
>
erp_status = #{erp
Status,jdbcType=INTEGER},
<if
test=
"
real
Status != null"
>
real_status = #{real
Status,jdbcType=INTEGER},
</if>
<if
test=
"storeType != null"
>
store_type = #{storeType,jdbcType=INTEGER},
...
...
@@ -302,7 +299,7 @@
overflow_status = #{overflowStatus,jdbcType=INTEGER},
complete_status = #{completeStatus,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
erp_status = #{erp
Status,jdbcType=INTEGER},
real_status = #{real
Status,jdbcType=INTEGER},
store_type = #{storeType,jdbcType=INTEGER},
create_type = #{createType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
...
@@ -367,8 +364,8 @@
<if
test=
"store.status != null"
>
and t1.status = #{store.status}
</if>
<if
test=
"store.
erp
Status != null "
>
and t1.
erp_status = #{store.erp
Status}
<if
test=
"store.
real
Status != null "
>
and t1.
real_status = #{store.real
Status}
</if>
<if
test=
"store.regionId != null"
>
and t1.region_id = #{store.regionId}
...
...
@@ -421,9 +418,9 @@
#{id}
</foreach>
</if>
<if
test=
"store.
erpStatusList != null and store.erp
StatusList.size()>0"
>
and t1.
erp
_status in
<foreach
collection=
"store.
erp
StatusList"
index=
"index"
item=
"id"
open=
"("
separator=
","
close=
")"
>
<if
test=
"store.
realStatusList != null and store.real
StatusList.size()>0"
>
and t1.
real
_status in
<foreach
collection=
"store.
real
StatusList"
index=
"index"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
...
...
@@ -566,4 +563,8 @@
and t1.complete_status = 0
limit 1
</select>
<update
id=
"updateStoreRealStatus"
>
update tab_store_info set real_status=#{status} where store_info_id=#{storeInfoId} and delete_flag = 0
</update>
</mapper>
\ No newline at end of file
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
afbddd05
...
...
@@ -147,7 +147,7 @@ public class StoreController extends DownloadUtils {
// 保存店长
ClerkDTO
saveClerk
=
getSaveClerk
(
clerkQO
);
storeDTO
.
setClerkLeader
(
saveClerk
);
storeDTO
.
setRealStatus
(
1
);
ServiceResponse
<
StoreDTO
>
serviceResponse
=
storeApiService
.
saveOrUpdate
(
storeDTO
);
if
(
serviceResponse
.
isSuccess
())
{
LogUtils
.
createLog
((
storeQO
.
getStoreId
()
==
null
?
"新增"
:
"编辑"
)
+
"门店"
,
storeQO
.
getStoreName
());
...
...
@@ -517,17 +517,10 @@ public class StoreController extends DownloadUtils {
int
statusIndex
=
fieldCodeList
.
indexOf
(
"status"
);
if
(
statusIndex
!=
-
1
)
{
fieldCodeList
.
set
(
statusIndex
,
"statusName"
);
for
(
StoreDTO
e
:
list
)
{
e
.
setStatusName
(
e
.
getStatus
()
==
null
?
"未知"
:
(
e
.
getStatus
()
==
1
?
"已启用"
:
"未启用"
));
}
}
int
erpStatusIndex
=
fieldCodeList
.
indexOf
(
"erpStatus"
);
if
(
erpStatusIndex
!=
-
1
)
{
fieldCodeList
.
set
(
erpStatusIndex
,
"erpStatusName"
);
Map
<
Integer
,
String
>
erpStatusMap
=
storeDictApiService
.
listAllStoreStatus
(
list
.
get
(
0
).
getEnterpriseId
())
Map
<
Integer
,
String
>
statusMap
=
storeDictApiService
.
listAllStoreStatus
(
list
.
get
(
0
).
getEnterpriseId
())
.
getResult
().
stream
().
collect
(
Collectors
.
toMap
(
e
->
Integer
.
valueOf
(
e
.
getValue
()),
StoreDictDTO:
:
getKey
));
for
(
StoreDTO
e
:
list
)
{
e
.
set
ErpStatusName
(
erpStatusMap
.
get
(
e
.
getErp
Status
()));
e
.
set
StatusName
(
statusMap
.
get
(
e
.
get
Status
()));
}
}
int
storeTypeIndex
=
fieldCodeList
.
indexOf
(
"storeType"
);
...
...
@@ -735,7 +728,6 @@ public class StoreController extends DownloadUtils {
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
COMPLETESTATUS
.
getField
(),
StoreESFieldsEnum
.
COMPLETESTATUS
.
getDesc
()));
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
STATUS
.
getField
(),
StoreESFieldsEnum
.
STATUS
.
getDesc
()));
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
REGIONNAME
.
getField
(),
StoreESFieldsEnum
.
REGIONNAME
.
getDesc
()));
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
ERPSTATUS
.
getField
(),
StoreESFieldsEnum
.
ERPSTATUS
.
getDesc
()));
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
STORETYPE
.
getField
(),
StoreESFieldsEnum
.
STORETYPE
.
getDesc
()));
list
.
add
(
new
StoreListSourceVO
(
StoreESFieldsEnum
.
STOREID
.
getField
(),
StoreESFieldsEnum
.
STOREID
.
getDesc
(),
1
));
return
list
;
...
...
gic-store-web/src/main/java/com/gic/store/web/qo/store/StoreQO.java
View file @
afbddd05
...
...
@@ -83,11 +83,6 @@ public class StoreQO implements Serializable {
private
Integer
status
;
/**
* erp门店状态
*/
private
Integer
erpStatus
;
/**
* 门店类型
*/
private
Integer
storeType
;
...
...
@@ -223,14 +218,6 @@ public class StoreQO implements Serializable {
this
.
status
=
status
;
}
public
Integer
getErpStatus
()
{
return
erpStatus
;
}
public
void
setErpStatus
(
Integer
erpStatus
)
{
this
.
erpStatus
=
erpStatus
;
}
public
Integer
getStoreType
()
{
return
storeType
;
}
...
...
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