Showing
4 changed files
with
93 additions
and
0 deletions
| 1 | +package com.tianting.infoloop.mapper; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 4 | +import com.tianting.infoloop.model.db.DinerMealSuspensionRecord; | ||
| 5 | + | ||
| 6 | +/** | ||
| 7 | + * 学生停餐记录Mapper接口 | ||
| 8 | + */ | ||
| 9 | +public interface DinerMealSuspensionRecordMapper extends BaseMapper<DinerMealSuspensionRecord> { | ||
| 10 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.tianting.infoloop.model.db; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.FieldFill; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.IdType; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableField; | ||
| 6 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 7 | +import com.baomidou.mybatisplus.annotation.TableLogic; | ||
| 8 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 9 | +import com.baomidou.mybatisplus.extension.activerecord.Model; | ||
| 10 | +import lombok.Data; | ||
| 11 | +import lombok.EqualsAndHashCode; | ||
| 12 | +import lombok.experimental.Accessors; | ||
| 13 | + | ||
| 14 | +import java.io.Serializable; | ||
| 15 | +import java.time.LocalDateTime; | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * @TableName diner_meal_suspension_records | ||
| 19 | + */ | ||
| 20 | +@Data | ||
| 21 | +@Accessors(chain = true) | ||
| 22 | +@EqualsAndHashCode(callSuper = true) | ||
| 23 | +@TableName(value ="diner_meal_suspension_records") | ||
| 24 | +public class DinerMealSuspensionRecord extends Model<DinerMealSuspensionRecord> implements Serializable { | ||
| 25 | + | ||
| 26 | + @TableId(type = IdType.AUTO) | ||
| 27 | + private Integer id; | ||
| 28 | + | ||
| 29 | + private Integer enterpriseId; | ||
| 30 | + | ||
| 31 | + private Integer clientId; | ||
| 32 | + | ||
| 33 | + private Integer classId; | ||
| 34 | + | ||
| 35 | + private Integer dinerId; | ||
| 36 | + | ||
| 37 | + private LocalDateTime startAt; | ||
| 38 | + | ||
| 39 | + private LocalDateTime endAt; | ||
| 40 | + | ||
| 41 | + private String comment; | ||
| 42 | + | ||
| 43 | + private Integer createdBy; | ||
| 44 | + | ||
| 45 | + @TableField(fill = FieldFill.INSERT) | ||
| 46 | + private LocalDateTime createdAt; | ||
| 47 | + | ||
| 48 | + private Integer creationSource; | ||
| 49 | + | ||
| 50 | + private Integer updatedBy; | ||
| 51 | + | ||
| 52 | + @TableField(fill = FieldFill.INSERT_UPDATE) | ||
| 53 | + private LocalDateTime updatedAt; | ||
| 54 | + | ||
| 55 | + private Integer updateSource; | ||
| 56 | + | ||
| 57 | + @TableLogic | ||
| 58 | + private Boolean isDeleted; | ||
| 59 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +package com.tianting.infoloop.service; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.extension.service.IService; | ||
| 4 | +import com.tianting.infoloop.model.db.DinerMealSuspensionRecord; | ||
| 5 | + | ||
| 6 | +/** | ||
| 7 | + * 学生停餐记录服务接口 | ||
| 8 | + */ | ||
| 9 | +public interface DinerMealSuspensionRecordService extends IService<DinerMealSuspensionRecord> { | ||
| 10 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
src/main/java/com/tianting/infoloop/service/impl/DinerMealSuspensionRecordServiceImpl.java
0 → 100644
| 1 | +package com.tianting.infoloop.service.impl; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 4 | +import com.tianting.infoloop.mapper.DinerMealSuspensionRecordMapper; | ||
| 5 | +import com.tianting.infoloop.model.db.DinerMealSuspensionRecord; | ||
| 6 | +import com.tianting.infoloop.service.DinerMealSuspensionRecordService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * 学生停餐记录服务实现类 | ||
| 11 | + */ | ||
| 12 | +@Service | ||
| 13 | +public class DinerMealSuspensionRecordServiceImpl extends ServiceImpl<DinerMealSuspensionRecordMapper, DinerMealSuspensionRecord> implements DinerMealSuspensionRecordService { | ||
| 14 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment