霸王餐修改
This commit is contained in:
parent
e71ae0e163
commit
e7876a5776
|
|
@ -4,6 +4,7 @@ import com.czg.account.dto.freeding.FreeDineConfigEditDTO;
|
|||
import com.czg.account.service.FreeDineConfigService;
|
||||
import com.czg.account.vo.FreeDineConfigVO;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.annotation.SaCheckMainShop;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import jakarta.annotation.Resource;
|
||||
|
|
@ -26,7 +27,7 @@ public class FreeDingController {
|
|||
@SaAdminCheckPermission(value = "freeDing:detail", name = "获取霸王餐配置信息")
|
||||
@GetMapping
|
||||
public CzgResult<FreeDineConfigVO> getConfig() {
|
||||
return CzgResult.success(freeDineConfigService.getConfig(StpKit.USER.getShopId()));
|
||||
return CzgResult.success(freeDineConfigService.getConfig(StpKit.USER.getMainShopId()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -36,7 +37,8 @@ public class FreeDingController {
|
|||
*/
|
||||
@SaAdminCheckPermission(value = "freeDing:edit", name = "修改霸王餐配置信息")
|
||||
@PutMapping
|
||||
@SaCheckMainShop
|
||||
public CzgResult<Boolean> edit(@RequestBody FreeDineConfigEditDTO freeDineConfigEditDTO) {
|
||||
return CzgResult.success(freeDineConfigService.edit(StpKit.USER.getShopId(), freeDineConfigEditDTO));
|
||||
return CzgResult.success(freeDineConfigService.edit(StpKit.USER.getMainShopId(), freeDineConfigEditDTO));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue