修改状态

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("管理员")
@PostMapping("/smsTemplate/shopUse")
public CzgResult<Void> shopUse(@RequestBody SmsShopTemplateDTO param) {
param.setShopId(StpKit.USER.getShopId());
templateService.shopUse(param);
return CzgResult.success();
}

View File

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