- 添加门店状态临时休息,之前是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

@@ -42,7 +42,7 @@ func JdStoreStatus2JxStatus(yn, closeStatus interface{}) int {
if yn2 == 1 {
return model.StoreStatusDisabled
} else if closeStatus2 == 1 {
return model.StoreStatusClosed
return model.StoreStatusHaveRest
}
return model.StoreStatusOpened
}
@@ -51,7 +51,7 @@ func JxStoreStatus2JdStatus(status int) (yn, closeStatus int) {
switch status {
case model.StoreStatusDisabled:
return 1, 1
case model.StoreStatusClosed:
case model.StoreStatusHaveRest, model.StoreStatusClosed:
return 0, 1
default:
return 0, 0