偏好修改

This commit is contained in:
zengtao01
2024-04-10 15:07:37 +08:00
parent 27bf84dc3a
commit d3d85c2de3
5 changed files with 10 additions and 8 deletions

View File

@ -1,10 +1,12 @@
package cn.iocoder.yudao.module.member.controller.app.userpreference.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@ -37,7 +39,7 @@ public class AppUserPreferencePageReqVO extends PageParam {
private String demand;
@Schema(description = "饮食限制")
private String restrict;
private String restriction;
@Schema(description = "自定义")
private String custom;

View File

@ -46,7 +46,7 @@ public class AppUserPreferenceRespVO {
@Schema(description = "饮食限制")
@ExcelProperty("饮食限制")
private String restrict;
private String restriction;
@Schema(description = "自定义")
@ExcelProperty("自定义")

View File

@ -29,7 +29,7 @@ public class AppUserPreferenceSaveReqVO {
private String demand;
@Schema(description = "饮食限制")
private String restrict;
private String restriction;
@Schema(description = "自定义")
private String custom;

View File

@ -62,7 +62,7 @@ public class UserPreferenceDO extends BaseDO {
/**
* 饮食限制
*/
private String restrict;
private String restriction;
/**
* 自定义
*/

View File

@ -24,7 +24,7 @@ public interface UserPreferenceMapper extends BaseMapperX<UserPreferenceDO> {
.eqIfPresent(UserPreferenceDO::getFoodType, reqVO.getFoodType())
.eqIfPresent(UserPreferenceDO::getAllergy, reqVO.getAllergy())
.eqIfPresent(UserPreferenceDO::getDemand, reqVO.getDemand())
.eqIfPresent(UserPreferenceDO::getRestrict, reqVO.getRestrict())
.eqIfPresent(UserPreferenceDO::getRestriction, reqVO.getRestrict())
.eqIfPresent(UserPreferenceDO::getCustom, reqVO.getCustom())
.betweenIfPresent(UserPreferenceDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(UserPreferenceDO::getId));