霸王餐修改

This commit is contained in:
张松 2025-03-01 17:00:47 +08:00
parent be313b0de9
commit ee49017b41
3 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ import com.czg.account.dto.shopuser.ShopUserSummaryDTO;
import com.czg.account.entity.ShopUser;
import com.czg.account.service.ShopUserService;
import com.czg.annotation.SaAdminCheckPermission;
import com.czg.annotation.SaStaffCheckPermission;
import com.czg.enums.ShopUserFlowBizEnum;
import com.czg.resp.CzgResult;
import com.czg.sa.StpKit;
@ -95,6 +96,7 @@ public class ShopUserController {
*
* @return 是否成功
*/
@SaStaffCheckPermission("yun_xu_xiu_gai_hui_yuan_yu_e")
@SaAdminCheckPermission("shopUser:editFlow")
@PutMapping("/money")
public CzgResult<Boolean> editMoney(@RequestBody @Validated ShopUserMoneyEditDTO shopUserMoneyEditDTO) {

View File

@ -67,7 +67,7 @@ public class FreeDineConfig implements Serializable {
/**
* 使用类型 dine-in店内 takeout 自取 post快递takeaway外卖
*/
private String useType;
// private String useType;
/**
* 门店id

View File

@ -40,9 +40,9 @@ public class FreeDineConfigServiceImpl extends ServiceImpl<FreeDineConfigMapper,
throw new ApiNotPrintException("霸王餐信息未配置");
}
BeanUtil.copyProperties(freeDineConfigEditDTO, config);
if (freeDineConfigEditDTO.getUseType() != null && !freeDineConfigEditDTO.getUseType().isEmpty()) {
config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType()));
}
// if (freeDineConfigEditDTO.getUseType() != null && !freeDineConfigEditDTO.getUseType().isEmpty()) {
// config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType()));
// }
return updateById(config);
}
}