release- 创建门店时初始访问次数为0

release-2024-04-25
pikaqiudeshujia 1 day ago
parent f1bcd8c3ca
commit 263393c484

@ -6,7 +6,10 @@ import com.luoo.user.dao.StoreDao;
import com.luoo.user.dto.store.StoreSearchDto; import com.luoo.user.dto.store.StoreSearchDto;
import com.luoo.user.dto.store.StoreUpdateDto; import com.luoo.user.dto.store.StoreUpdateDto;
import com.luoo.user.mapper.StoreMapper; import com.luoo.user.mapper.StoreMapper;
import com.luoo.user.pojo.*; import com.luoo.user.pojo.QStore;
import com.luoo.user.pojo.QUserInfo;
import com.luoo.user.pojo.Region;
import com.luoo.user.pojo.Store;
import com.luoo.user.vo.store.StoreAppVO; import com.luoo.user.vo.store.StoreAppVO;
import com.luoo.user.vo.store.StorePCVO; import com.luoo.user.vo.store.StorePCVO;
import com.querydsl.core.BooleanBuilder; import com.querydsl.core.BooleanBuilder;
@ -27,7 +30,6 @@ import org.springframework.transaction.annotation.Transactional;
import util.PropertyUtils; import util.PropertyUtils;
import java.util.List; import java.util.List;
import java.util.UUID;
/** /**
* @program: luoo_parent * @program: luoo_parent
@ -68,6 +70,7 @@ public class StoreService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void add(Store store) { public void add(Store store) {
store.setVisitCount(0);
store.setStatus(StoreEnums.STORE_STATUS_COOPERATION.getCode()); store.setStatus(StoreEnums.STORE_STATUS_COOPERATION.getCode());
storeDao.save(store); storeDao.save(store);
} }

Loading…
Cancel
Save