完善了订单信息

This commit is contained in:
chen-xin-zhi 2024-11-09 22:18:38 +08:00
parent ebc7688451
commit 2bfa3addbb
12 changed files with 157 additions and 2 deletions

View File

@ -112,4 +112,7 @@ public class CartRecordController {
}
}

View File

@ -43,8 +43,6 @@ public class GoodController {
private GoodService goodService;
/**
* 添加商品
* @param goodAddRequest 商品添加请求体

View File

@ -0,0 +1,7 @@
package com.cultural.heritage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cultural.heritage.model.entity.AppointmentDate;
public interface AppointmentDateMapper extends BaseMapper<AppointmentDate> {
}

View File

@ -0,0 +1,7 @@
package com.cultural.heritage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cultural.heritage.model.entity.AppointmentNumber;
public interface AppointmentNumberMapper extends BaseMapper<AppointmentNumber> {
}

View File

@ -0,0 +1,47 @@
package com.cultural.heritage.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
/**
* 预约日期表
* @TableName appointment_date
*/
@Data
@TableName("appointment_date")
public class AppointmentDate implements Serializable {
/**
* 预约日期id
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 具体日期
*/
private String specificDate;
/**
* 预约时间段
*/
private String timeSlot;
/**
* 商品id
*/
private Long goodId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,43 @@
package com.cultural.heritage.model.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
/**
* 预约人数范围表
* @TableName appointment_number
*/
@Data
@TableName("appointment_number")
public class AppointmentNumber implements Serializable {
/**
* 预约人数范围id
*/
private Long id;
/**
* 最小预约人数
*/
private Integer minNumber;
/**
* 最大预约人数
*/
private Integer maxNumber;
/**
* 商品id
*/
private Integer goodId;
@Serial
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,7 @@
package com.cultural.heritage.service.good;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cultural.heritage.model.entity.AppointmentDate;
public interface AppointmentDateService extends IService<AppointmentDate> {
}

View File

@ -0,0 +1,7 @@
package com.cultural.heritage.service.good;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cultural.heritage.model.entity.AppointmentNumber;
public interface AppointmentNumberService extends IService<AppointmentNumber> {
}

View File

@ -0,0 +1,11 @@
package com.cultural.heritage.service.good.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cultural.heritage.mapper.AppointmentDateMapper;
import com.cultural.heritage.model.entity.AppointmentDate;
import com.cultural.heritage.service.good.AppointmentDateService;
import org.springframework.stereotype.Service;
@Service
public class AppointmentDateServiceImpl extends ServiceImpl<AppointmentDateMapper, AppointmentDate> implements AppointmentDateService {
}

View File

@ -0,0 +1,11 @@
package com.cultural.heritage.service.good.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cultural.heritage.mapper.AppointmentNumberMapper;
import com.cultural.heritage.model.entity.AppointmentNumber;
import com.cultural.heritage.service.good.AppointmentNumberService;
import org.springframework.stereotype.Service;
@Service
public class AppointmentNumberServiceImpl extends ServiceImpl<AppointmentNumberMapper, AppointmentNumber> implements AppointmentNumberService {
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cultural.heritage.mapper.AppointmentDateMapper">
</mapper>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cultural.heritage.mapper.AppointmentNumberMapper">
</mapper>