linwe
2023-12-04 d322fc17c5f8b5e450c0b183715ed5c1671b4c88
热线电话
11 files added
635 ■■■■■ changed files
src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java 129 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/dto/CheckInRecordsDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/entity/CheckInRecordsEntity.java 95 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.java 60 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml 79 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/service/ICheckInRecordsService.java 62 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/service/impl/CheckInRecordsServiceImpl.java 71 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/vo/CheckInRecordsVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/wrapper/CheckInRecordsWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/sql/checkinrecords.menu.sql 10 ●●●●● patch | view | raw | blame | history
src/main/java/sql/circlecomment.menu.sql 10 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java
New file
@@ -0,0 +1,129 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.modules.checkInRecords.vo.CheckInRecordsVO;
import org.springblade.modules.checkInRecords.wrapper.CheckInRecordsWrapper;
import org.springblade.modules.checkInRecords.service.ICheckInRecordsService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 打卡记录表 控制器
 *
 * @author BladeX
 * @since 2023-12-04
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-checkInRecords/checkInRecords")
@Api(value = "打卡记录表", tags = "打卡记录表接口")
public class CheckInRecordsController extends BladeController {
    private final ICheckInRecordsService checkInRecordsService;
    /**
     * 打卡记录表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入checkInRecords")
    public R<CheckInRecordsVO> detail(CheckInRecordsEntity checkInRecords) {
        CheckInRecordsEntity detail = checkInRecordsService.getOne(Condition.getQueryWrapper(checkInRecords));
        return R.data(CheckInRecordsWrapper.build().entityVO(detail));
    }
    /**
     * 打卡记录表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入checkInRecords")
    public R<IPage<CheckInRecordsVO>> list(CheckInRecordsEntity checkInRecords, Query query) {
        IPage<CheckInRecordsEntity> pages = checkInRecordsService.page(Condition.getPage(query), Condition.getQueryWrapper(checkInRecords));
        return R.data(CheckInRecordsWrapper.build().pageVO(pages));
    }
    /**
     * 打卡记录表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入checkInRecords")
    public R<IPage<CheckInRecordsVO>> page(CheckInRecordsVO checkInRecords, Query query) {
        IPage<CheckInRecordsVO> pages = checkInRecordsService.selectCheckInRecordsPage(Condition.getPage(query), checkInRecords);
        return R.data(pages);
    }
    /**
     * 打卡记录表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入checkInRecords")
    public R save(@Valid @RequestBody CheckInRecordsEntity checkInRecords) {
        checkInRecords.setCreateUserId(AuthUtil.getUserId());
        return R.status(checkInRecordsService.save(checkInRecords));
    }
    /**
     * 打卡记录表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入checkInRecords")
    public R update(@Valid @RequestBody CheckInRecordsEntity checkInRecords) {
        return R.status(checkInRecordsService.updateById(checkInRecords));
    }
    /**
     * 打卡记录表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入checkInRecords")
    public R submit(@Valid @RequestBody CheckInRecordsEntity checkInRecords) {
        checkInRecords.setCreateUserId(AuthUtil.getUserId());
        return R.status(checkInRecordsService.saveOrUpdate(checkInRecords));
    }
    /**
     * 打卡记录表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(checkInRecordsService.removeBatchByIds(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/checkInRecords/dto/CheckInRecordsDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.dto;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 打卡记录表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CheckInRecordsDTO extends CheckInRecordsEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/checkInRecords/entity/CheckInRecordsEntity.java
New file
@@ -0,0 +1,95 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import liquibase.pro.packaged.I;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import java.util.Date;
/**
 * 打卡记录表 实体类
 *
 * @author BladeX
 * @since 2023-12-04
 */
@Data
@TableName("jczz_check_in_records")
@ApiModel(value = "CheckInRecords对象", description = "打卡记录表")
public class CheckInRecordsEntity  {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键ID", example = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 创建人 */
    @ApiModelProperty(value = "创建人", example = "")
    @TableField("create_user_id")
    private Long createUserId;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    /** 工作主题 */
    @ApiModelProperty(value = "工作主题", example = "")
    @TableField("work_theme")
    private String workTheme;
    /** 工作内容 */
    @ApiModelProperty(value = "工作内容", example = "")
    @TableField("work_content")
    private String workContent;
    /** 图片 */
    @ApiModelProperty(value = "图片", example = "")
    @TableField("img")
    private String img;
    /** 经度 */
    @ApiModelProperty(value = "经度", example = "")
    @TableField("lng")
    private String lng;
    /** 纬度 */
    @ApiModelProperty(value = "纬度", example = "")
    @TableField("lat")
    private String lat;
    /** 地址 */
    @ApiModelProperty(value = "地址", example = "")
    @TableField("address")
    private String address;
    /** 0 :否 1:是 */
    @ApiModelProperty(value = "0 :否 1:是", example = "")
    @TableField("deleted_flag")
    @TableLogic
    private Integer deletedFlag;
}
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.java
New file
@@ -0,0 +1,60 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.mapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.modules.checkInRecords.vo.CheckInRecordsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 打卡记录表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-12-04
 */
public interface CheckInRecordsMapper extends BaseMapper<CheckInRecordsEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param checkInRecords
     * @return
     */
    List<CheckInRecordsVO> selectCheckInRecordsPage(IPage page, @Param("checkInRecords") CheckInRecordsVO checkInRecords);
    /**
     * 查询打卡记录表
     *
     * @param id 打卡记录表ID
     * @return 打卡记录表
     */
    public CheckInRecordsDTO selectCheckInRecordsById(Integer id);
    /**
     * 查询打卡记录表列表
     *
     * @param checkInRecordsDTO 打卡记录表
     * @return 打卡记录表集合
     */
    public List<CheckInRecordsDTO> selectCheckInRecordsList(CheckInRecordsDTO checkInRecordsDTO);
}
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
New file
@@ -0,0 +1,79 @@
<?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="org.springblade.modules.checkInRecords.mapper.CheckInRecordsMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="checkInRecordsResultMap" type="org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity">
    </resultMap>
    <select id="selectCheckInRecordsPage" resultMap="checkInRecordsResultMap">
        select * from jczz_check_in_records
        <where>
            <if test="checkInRecords.id != null "> and id = #{checkInRecords.id}</if>
            <if test="checkInRecords.createUserId != null "> and create_user_id = #{checkInRecords.createUserId}</if>
            <if test="checkInRecords.createTime != null "> and create_time = #{checkInRecords.createTime}</if>
            <if test="checkInRecords.workTheme != null  and workTheme != ''"> and work_theme = #{checkInRecords.workTheme}</if>
            <if test="checkInRecords.workContent != null  and workContent != ''"> and work_content = #{checkInRecords.workContent}</if>
            <if test="checkInRecords.img != null  and img != ''"> and img = #{checkInRecords.img}</if>
            <if test="checkInRecords.lng != null  and lng != ''"> and lng = #{checkInRecords.lng}</if>
            <if test="checkInRecords.lat != null  and lat != ''"> and lat = #{checkInRecords.lat}</if>
            <if test="checkInRecords.address != null  and address != ''"> and address = #{checkInRecords.address}</if>
            <if test="checkInRecords.deletedFlag != null "> and deleted_flag = #{checkInRecords.deletedFlag}</if>
        </where>
    </select>
    <resultMap type="org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO" id="CheckInRecordsDTOResult">
        <result property="id"    column="id"    />
        <result property="createUserId"    column="create_user_id"    />
        <result property="createTime"    column="create_time"    />
        <result property="workTheme"    column="work_theme"    />
        <result property="workContent"    column="work_content"    />
        <result property="img"    column="img"    />
        <result property="lng"    column="lng"    />
        <result property="lat"    column="lat"    />
        <result property="address"    column="address"    />
        <result property="deletedFlag"    column="deleted_flag"    />
    </resultMap>
    <sql id="selectCheckInRecords">
        select
            id,
            create_user_id,
            create_time,
            work_theme,
            work_content,
            img,
            lng,
            lat,
            address,
            deleted_flag
        from
            jczz_check_in_records
    </sql>
    <select id="selectCheckInRecordsById" parameterType="int" resultMap="CheckInRecordsDTOResult">
        <include refid="selectCheckInRecords"/>
        where
        id = #{id}
    </select>
    <select id="selectCheckInRecordsList" parameterType="org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO" resultMap="CheckInRecordsDTOResult">
        <include refid="selectCheckInRecords"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="createUserId != null "> and create_user_id = #{createUserId}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="workTheme != null  and workTheme != ''"> and work_theme = #{workTheme}</if>
            <if test="workContent != null  and workContent != ''"> and work_content = #{workContent}</if>
            <if test="img != null  and img != ''"> and img = #{img}</if>
            <if test="lng != null  and lng != ''"> and lng = #{lng}</if>
            <if test="lat != null  and lat != ''"> and lat = #{lat}</if>
            <if test="address != null  and address != ''"> and address = #{address}</if>
            <if test="deletedFlag != null "> and deleted_flag = #{deletedFlag}</if>
        </where>
    </select>
</mapper>
src/main/java/org/springblade/modules/checkInRecords/service/ICheckInRecordsService.java
New file
@@ -0,0 +1,62 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.modules.checkInRecords.vo.CheckInRecordsVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 打卡记录表 服务类
 *
 * @author BladeX
 * @since 2023-12-04
 */
public interface ICheckInRecordsService extends IService<CheckInRecordsEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param checkInRecords
     * @return
     */
    IPage<CheckInRecordsVO> selectCheckInRecordsPage(IPage<CheckInRecordsVO> page, CheckInRecordsVO checkInRecords);
    /**
     * 查询打卡记录表
     *
     * @param id 打卡记录表ID
     * @return 打卡记录表
     */
    public CheckInRecordsDTO selectCheckInRecordsById(Integer id);
    /**
     * 查询打卡记录表列表
     *
     * @param checkInRecordsDTO 打卡记录表
     * @return 打卡记录表集合
     */
    public List<CheckInRecordsDTO> selectCheckInRecordsList(CheckInRecordsDTO checkInRecordsDTO);
}
src/main/java/org/springblade/modules/checkInRecords/service/impl/CheckInRecordsServiceImpl.java
New file
@@ -0,0 +1,71 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.modules.checkInRecords.vo.CheckInRecordsVO;
import org.springblade.modules.checkInRecords.mapper.CheckInRecordsMapper;
import org.springblade.modules.checkInRecords.service.ICheckInRecordsService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 打卡记录表 服务实现类
 *
 * @author BladeX
 * @since 2023-12-04
 */
@Service
public class CheckInRecordsServiceImpl extends ServiceImpl<CheckInRecordsMapper, CheckInRecordsEntity> implements ICheckInRecordsService {
    @Override
    public IPage<CheckInRecordsVO> selectCheckInRecordsPage(IPage<CheckInRecordsVO> page, CheckInRecordsVO checkInRecords) {
        return page.setRecords(baseMapper.selectCheckInRecordsPage(page, checkInRecords));
    }
    /**
     * 查询打卡记录表
     *
     * @param id 打卡记录表ID
     * @return 打卡记录表
     */
    @Override
    public CheckInRecordsDTO selectCheckInRecordsById(Integer id)
    {
        return this.baseMapper.selectCheckInRecordsById(id);
    }
    /**
     * 查询打卡记录表列表
     *
     * @param checkInRecordsDTO 打卡记录表
     * @return 打卡记录表集合
     */
    @Override
    public List<CheckInRecordsDTO> selectCheckInRecordsList(CheckInRecordsDTO checkInRecordsDTO)
    {
        return this.baseMapper.selectCheckInRecordsList(checkInRecordsDTO);
    }
}
src/main/java/org/springblade/modules/checkInRecords/vo/CheckInRecordsVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.vo;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 打卡记录表 视图实体类
 *
 * @author BladeX
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CheckInRecordsVO extends CheckInRecordsEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/checkInRecords/wrapper/CheckInRecordsWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.checkInRecords.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
import org.springblade.modules.checkInRecords.vo.CheckInRecordsVO;
import java.util.Objects;
/**
 * 打卡记录表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-12-04
 */
public class CheckInRecordsWrapper extends BaseEntityWrapper<CheckInRecordsEntity, CheckInRecordsVO>  {
    public static CheckInRecordsWrapper build() {
        return new CheckInRecordsWrapper();
     }
    @Override
    public CheckInRecordsVO entityVO(CheckInRecordsEntity checkInRecords) {
        CheckInRecordsVO checkInRecordsVO = Objects.requireNonNull(BeanUtil.copy(checkInRecords, CheckInRecordsVO.class));
        //User createUser = UserCache.getUser(checkInRecords.getCreateUser());
        //User updateUser = UserCache.getUser(checkInRecords.getUpdateUser());
        //checkInRecordsVO.setCreateUserName(createUser.getName());
        //checkInRecordsVO.setUpdateUserName(updateUser.getName());
        return checkInRecordsVO;
    }
}
src/main/java/sql/checkinrecords.menu.sql
New file
@@ -0,0 +1,10 @@
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1731497074630852609', 1123598815738675201, 'checkInRecords', '打卡记录表', 'menu', '/checkInRecords/checkInRecords', NULL, 1, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1731497074630852610', '1731497074630852609', 'checkInRecords_add', '新增', 'add', '/checkInRecords/checkInRecords/add', 'plus', 1, 2, 1, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1731497074630852611', '1731497074630852609', 'checkInRecords_edit', '修改', 'edit', '/checkInRecords/checkInRecords/edit', 'form', 2, 2, 2, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1731497074630852612', '1731497074630852609', 'checkInRecords_delete', '删除', 'delete', '/api/blade-checkInRecords/checkInRecords/remove', 'delete', 3, 2, 3, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1731497074630852613', '1731497074630852609', 'checkInRecords_view', '查看', 'view', '/checkInRecords/checkInRecords/view', 'file-text', 4, 2, 2, 1, NULL, 0);
src/main/java/sql/circlecomment.menu.sql
New file
@@ -0,0 +1,10 @@
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1730479582710194177', 1123598815738675201, 'circle', '圈子评论表', 'menu', '/circle/circle', NULL, 1, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1730479582710194178', '1730479582710194177', 'circle_add', '新增', 'add', '/circle/circle/add', 'plus', 1, 2, 1, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1730479582710194179', '1730479582710194177', 'circle_edit', '修改', 'edit', '/circle/circle/edit', 'form', 2, 2, 2, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1730479582710194180', '1730479582710194177', 'circle_delete', '删除', 'delete', '/api/blade-circle/circle/remove', 'delete', 3, 2, 3, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1730479582710194181', '1730479582710194177', 'circle_view', '查看', 'view', '/circle/circle/view', 'file-text', 4, 2, 2, 1, NULL, 0);