偏好修改
This commit is contained in:
@ -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;
|
||||
|
@ -46,7 +46,7 @@ public class AppUserPreferenceRespVO {
|
||||
|
||||
@Schema(description = "饮食限制")
|
||||
@ExcelProperty("饮食限制")
|
||||
private String restrict;
|
||||
private String restriction;
|
||||
|
||||
@Schema(description = "自定义")
|
||||
@ExcelProperty("自定义")
|
||||
|
@ -29,7 +29,7 @@ public class AppUserPreferenceSaveReqVO {
|
||||
private String demand;
|
||||
|
||||
@Schema(description = "饮食限制")
|
||||
private String restrict;
|
||||
private String restriction;
|
||||
|
||||
@Schema(description = "自定义")
|
||||
private String custom;
|
||||
|
@ -62,7 +62,7 @@ public class UserPreferenceDO extends BaseDO {
|
||||
/**
|
||||
* 饮食限制
|
||||
*/
|
||||
private String restrict;
|
||||
private String restriction;
|
||||
/**
|
||||
* 自定义
|
||||
*/
|
||||
|
@ -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));
|
||||
|
Reference in New Issue
Block a user