- 添加门店状态临时休息,之前是1,0,-1改为1,0,-1,-2

- 禁用门店状态同步
This commit is contained in:
gazebo
2019-06-03 14:11:35 +08:00
parent 4b9ad6f864
commit fcf8d768f9
6 changed files with 13 additions and 10 deletions

View File

@@ -129,7 +129,7 @@ func bizStatusMtwm2JX(openLevel, online int) int {
return model.StoreStatusDisabled
} else {
if openLevel == mtwmapi.PoiOpenLevelHaveRest {
return model.StoreStatusClosed
return model.StoreStatusHaveRest
}
}
return model.StoreStatusOpened
@@ -138,7 +138,7 @@ func bizStatusMtwm2JX(openLevel, online int) int {
func bizStatusJX2Mtwm(status int) (openLevel, online int) {
if status == model.StoreStatusDisabled {
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiStatusOffline
} else if status == model.StoreStatusClosed {
} else if status == model.StoreStatusHaveRest || status == model.StoreStatusClosed {
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiStatusOnline
}
return mtwmapi.PoiOpenLevelNormal, mtwmapi.PoiStatusOnline