This commit is contained in:
lijiaqi 2024-09-11 14:01:21 +08:00
parent 2149985805
commit 3de7fa4e84
4 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package cn.workde.module.drone.coding.controller;
import cn.workde.core.constant.GrapeConst;
import cn.workde.module.drone.coding.service.CodeService;
import cn.workde.module.upms.controller._BaseController;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.workde.module.drone.coding.entity.Code;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import java.io.Serializable;
import java.util.List;
/**
* 无人机编码表(Code)表控制层
*
* @author makejava
* @since 2024-09-11 13:24:24
*/
@Tag(name = "无人机编码")
@RestController
@RequestMapping(value = GrapeConst.API + "/code")
public class CodeController extends _BaseController {
/**
* 服务对象
*/
@Resource
private CodeService codeService;
}

View File

@ -0,0 +1,58 @@
package cn.workde.module.drone.coding.entity;
import java.util.Date;
import cn.workde.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 无人机编码表(Code)表实体类
*
* @author makejava
* @since 2024-09-11 13:24:25
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "dss_drone_coding_code")
public class Code extends BaseEntity {
@Schema(description = "批次id")
private String batchesId;
@Schema(description = "批次编码")
private String batchesCode;
@Schema(description = "MFC ID")
private String mfcId;
@Schema(description = "MFC编码")
private String mfcCode;
@Schema(description = "规则id")
private String ruleId;
@Schema(description = "规则编码")
private String ruleCode;
@Schema(description = "无人机编码")
private String code;
@Schema(description = "无人机序列号")
private String snCode;
@Schema(description = "无人机序列号前缀")
private String snPrefix;
@Schema(description = "无人机序列号后缀")
private String snSuffix;
@Schema(description = "无人机序列号长度")
private String snLength;
}

View File

@ -0,0 +1,17 @@
package cn.workde.module.drone.coding.mapper;
import cn.workde.module.drone.coding.entity.Code;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 无人机编码表(Code)表数据库访问层
*
* @author makejava
* @since 2024-09-11 13:24:24
*/
@Mapper
public interface CodeMapper extends MPJBaseMapper<Code> {
}

View File

@ -0,0 +1,20 @@
package cn.workde.module.drone.coding.service;
import cn.workde.core.base.BaseService;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.workde.module.drone.coding.mapper.CodeMapper;
import cn.workde.module.drone.coding.entity.Code;
import org.springframework.stereotype.Service;
/**
* 无人机编码表(Code)表服务实现类
*
* @author makejava
* @since 2024-09-11 13:24:25
*/
@Service("codeService")
public class CodeService extends BaseService<CodeMapper, Code>{
}