修改状态

This commit is contained in:
2025-10-16 17:28:47 +08:00
parent 3baab6ce6f
commit 6b9d5aa3a3
2 changed files with 3 additions and 4 deletions

View File

@@ -73,7 +73,6 @@ public class SmsShopTemplateController {
@SaAdminCheckRole("管理员") @SaAdminCheckRole("管理员")
@PostMapping("/smsTemplate/shopUse") @PostMapping("/smsTemplate/shopUse")
public CzgResult<Void> shopUse(@RequestBody SmsShopTemplateDTO param) { public CzgResult<Void> shopUse(@RequestBody SmsShopTemplateDTO param) {
param.setShopId(StpKit.USER.getShopId());
templateService.shopUse(param); templateService.shopUse(param);
return CzgResult.success(); return CzgResult.success();
} }

View File

@@ -79,9 +79,9 @@ public class SmsShopTemplateServiceImpl extends ServiceImpl<SmsShopTemplateMappe
@Override @Override
public void shopUse(SmsShopTemplateDTO param) { public void shopUse(SmsShopTemplateDTO param) {
SmsShopTemplate template = new SmsShopTemplate(); SmsShopTemplate template = new SmsShopTemplate();
param.setId(param.getId()); template.setId(param.getId());
param.setShopUse(param.getShopUse()); template.setShopUse(param.getShopUse());
param.setIsDel(param.getIsDel()); template.setIsDel(param.getIsDel());
updateById(template); updateById(template);
} }