新增店铺营业时间修改
This commit is contained in:
parent
37d6173697
commit
61228d9c35
@ -3864,6 +3864,7 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl<ShopStoreBaseMappe
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public Boolean updateStoreBizState(Integer storeId, Integer bizState) {
|
||||
// 检查参数是否为空
|
||||
if (storeId == null || storeId == 0 || bizState == null) {
|
||||
@ -3875,7 +3876,16 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl<ShopStoreBaseMappe
|
||||
bizState = CommonConstant.Disable2;
|
||||
}
|
||||
|
||||
String store_opening_hours=getParameter("store_opening_hours");
|
||||
String store_close_hours=getParameter("store_close_hours");
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(store_close_hours)){
|
||||
UpdateWrapper<ShopStoreInfo> shopStoreInfoUpdateWrapper=new UpdateWrapper<>();
|
||||
shopStoreInfoUpdateWrapper.eq("store_id",storeId);
|
||||
shopStoreInfoUpdateWrapper.set("store_opening_hours",store_opening_hours);
|
||||
shopStoreInfoUpdateWrapper.set("store_close_hours",store_close_hours);
|
||||
shopStoreInfoService.update(shopStoreInfoUpdateWrapper);
|
||||
}
|
||||
// 使用 UpdateWrapper 更新店铺营业状态
|
||||
boolean updated = update(new UpdateWrapper<ShopStoreBase>()
|
||||
.eq("store_id", storeId)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user