完善了订单信息
This commit is contained in:
parent
ebc7688451
commit
2bfa3addbb
|
@ -112,4 +112,7 @@ public class CartRecordController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,6 @@ public class GoodController {
|
||||||
private GoodService goodService;
|
private GoodService goodService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加商品
|
* 添加商品
|
||||||
* @param goodAddRequest 商品添加请求体
|
* @param goodAddRequest 商品添加请求体
|
||||||
|
|
|
@ -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> {
|
||||||
|
}
|
|
@ -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> {
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
|
@ -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> {
|
||||||
|
}
|
|
@ -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> {
|
||||||
|
}
|
|
@ -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 {
|
||||||
|
}
|
|
@ -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 {
|
||||||
|
}
|
7
src/main/resources/mapper/AppointmentDateMapper.xml
Normal file
7
src/main/resources/mapper/AppointmentDateMapper.xml
Normal 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>
|
7
src/main/resources/mapper/AppointmentNumberMapper.xml
Normal file
7
src/main/resources/mapper/AppointmentNumberMapper.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user