feat: 迁移国内标准法规部分1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.otSvpps.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.otSvpps.entity.OtSvpps;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* SVPPS结构数据 SVPPS数据 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|OtSvpps|")
|
||||
@RequestMapping("/otSvpps/ot-svpps")
|
||||
public class OtSvppsController extends BaseController<OtSvpps> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.adc.da.slrs.otSvpps.dao;
|
||||
|
||||
import com.adc.da.slrs.otSvpps.entity.OtSvpps;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* SVPPS结构数据 SVPPS数据 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
public interface OtSvppsDao extends BaseMapper<OtSvpps> {
|
||||
|
||||
List<String> getNamesByIds(@Param("list") String[] list);
|
||||
|
||||
List<String> getNamesTipByIds(@Param("list") String[] list);
|
||||
|
||||
List<String> getIdsByNames(@Param("list") String[] list);
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.adc.da.slrs.otSvpps.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* SVPPS结构数据 SVPPS数据
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="OtSvpps对象", description="SVPPS结构数据 SVPPS数据")
|
||||
public class OtSvpps extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键 主键ID")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "父级ID 父级ID引用本表的主键")
|
||||
@TableField("P_ID")
|
||||
private String pId;
|
||||
|
||||
@ApiModelProperty(value = "一级编码 对应excel中的B列")
|
||||
@TableField("F_NUM")
|
||||
private String fNum;
|
||||
|
||||
@ApiModelProperty(value = "二级编码 对应Excel中的C列")
|
||||
@TableField("S_NUM")
|
||||
private String sNum;
|
||||
|
||||
@ApiModelProperty(value = "三级编码 对应excel中的D列")
|
||||
@TableField("T_NUM")
|
||||
private String tNum;
|
||||
|
||||
@ApiModelProperty(value = "SVPPS编码 对应Excel中的E列")
|
||||
@TableField("SVPPS_CODE")
|
||||
private String svppsCode;
|
||||
|
||||
@ApiModelProperty(value = "SVPPS英文名称 对应excel中的G列")
|
||||
@TableField("SVPPS_EN_NAME")
|
||||
private String svppsEnName;
|
||||
|
||||
@ApiModelProperty(value = "SVPPS中文名称 对应excel中的I列")
|
||||
@TableField("SVPPS_CN_NAME")
|
||||
private String svppsCnName;
|
||||
|
||||
@ApiModelProperty(value = "同步数据ID 对应同步系统中的ID")
|
||||
@TableField("SYNC_ID")
|
||||
private String syncId;
|
||||
|
||||
@ApiModelProperty(value = "是否有效 默认为0")
|
||||
@TableField("VALID_FLAG")
|
||||
private Integer validFlag;
|
||||
|
||||
@ApiModelProperty(value = "创建时间 数据入库时间")
|
||||
@TableField("CREATED_TIME")
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间 数据更新时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
private LocalDateTime modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "自定义数据标识")
|
||||
@TableField("SELF_FALG")
|
||||
private String selfFalg;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.otSvpps.service;
|
||||
|
||||
import com.adc.da.slrs.otSvpps.entity.OtSvpps;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* SVPPS结构数据 SVPPS数据 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
public interface IOtSvppsService extends IService<OtSvpps> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.otSvpps.service.impl;
|
||||
|
||||
import com.adc.da.slrs.otSvpps.entity.OtSvpps;
|
||||
import com.adc.da.slrs.otSvpps.dao.OtSvppsDao;
|
||||
import com.adc.da.slrs.otSvpps.service.IOtSvppsService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* SVPPS结构数据 SVPPS数据 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@Service
|
||||
public class OtSvppsServiceImpl extends ServiceImpl<OtSvppsDao, OtSvpps> implements IOtSvppsService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user