Browse Source

meta_tag

tags/24080901
liuxinxin 1 year ago
parent
commit
286eaf40dc
8 changed files with 119 additions and 2 deletions
  1. +1
    -1
      ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java
  2. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/MetaTagController.java
  3. +41
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java
  4. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/MetaTagMapper.java
  5. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/MetaTagMapper.xml
  6. +16
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IMetaTagService.java
  7. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/MetaTagServiceImpl.java
  8. +0
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java

+ 1
- 1
ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java View File

@@ -56,7 +56,7 @@ public class GeneratorCodeKingbaseConfig {
}

public static void main(String[] args) {
generate("Liuxinxin", "expert", PATH_LXX, "nd_expert_user_full_info");
generate("Liuxinxin", "tag", PATH_LXX, "meta_tag");
}

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/MetaTagController.java View File

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.tag.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
* <p>
* 前端控制器
* </p>
*
* @author Liuxinxin
* @since 2023-02-22
*/
@Controller
@RequestMapping("/pmapi.tag/meta-tag")
public class MetaTagController {

}

+ 41
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java View File

@@ -0,0 +1,41 @@
package com.ningdatech.pmapi.tag.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* <p>
*
* </p>
*
* @author Liuxinxin
* @since 2023-02-22
*/
@Data
@TableName("meta_tag")
@ApiModel(value = "MetaTag对象", description = "")
public class MetaTag implements Serializable {

private static final long serialVersionUID = 1L;

private Long id;

private LocalDateTime createOn;

private LocalDateTime updateOn;

private String tagName;

private Long tagLevel;

private String parentCode;

private String tagType;

private String tagCode;

}

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/MetaTagMapper.java View File

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.tag.mapper;

import com.ningdatech.pmapi.tag.entity.MetaTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* <p>
* Mapper 接口
* </p>
*
* @author Liuxinxin
* @since 2023-02-22
*/
public interface MetaTagMapper extends BaseMapper<MetaTag> {

}

+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/MetaTagMapper.xml View File

@@ -0,0 +1,5 @@
<?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.ningdatech.pmapi.tag.mapper.MetaTagMapper">

</mapper>

+ 16
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IMetaTagService.java View File

@@ -0,0 +1,16 @@
package com.ningdatech.pmapi.tag.service;

import com.ningdatech.pmapi.tag.entity.MetaTag;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* <p>
* 服务类
* </p>
*
* @author Liuxinxin
* @since 2023-02-22
*/
public interface IMetaTagService extends IService<MetaTag> {

}

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/MetaTagServiceImpl.java View File

@@ -0,0 +1,20 @@
package com.ningdatech.pmapi.tag.service.impl;

import com.ningdatech.pmapi.tag.entity.MetaTag;
import com.ningdatech.pmapi.tag.mapper.MetaTagMapper;
import com.ningdatech.pmapi.tag.service.IMetaTagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* <p>
* 服务实现类
* </p>
*
* @author Liuxinxin
* @since 2023-02-22
*/
@Service
public class MetaTagServiceImpl extends ServiceImpl<MetaTagMapper, MetaTag> implements IMetaTagService {

}

+ 0
- 1
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java View File

@@ -86,7 +86,6 @@ public class UserInfoManage {
resListVO.setOrgName(r.getOrganizationCode());
resListVO.setOrgCode(r.getOrganizationCode());
// TODO 从用户信息中获取

// 从所属组织中获取
// resListVO.setRegionId();



Loading…
Cancel
Save