From 954fe784c8c0df03de44b576a8158b0b0a72a59c Mon Sep 17 00:00:00 2001 From: liuxinxin Date: Wed, 22 Feb 2023 11:12:14 +0800 Subject: [PATCH] meta tag dictionary expert_dictionary expert_tag --- .../config/GeneratorCodeKingbaseConfig.java | 2 +- .../controller/ExpertDictionaryController.java | 20 +++++++++ .../controller/MetaDictionaryController.java | 20 +++++++++ .../pmapi/dictionary/entity/ExpertDictionary.java | 36 +++++++++++++++++ .../pmapi/dictionary/entity/MetaDictionary.java | 47 ++++++++++++++++++++++ .../dictionary/mapper/ExpertDictionaryMapper.java | 16 ++++++++ .../dictionary/mapper/ExpertDictionaryMapper.xml | 5 +++ .../dictionary/mapper/MetaDictionaryMapper.java | 16 ++++++++ .../dictionary/mapper/MetaDictionaryMapper.xml | 5 +++ .../service/IExpertDictionaryService.java | 16 ++++++++ .../dictionary/service/IMetaDictionaryService.java | 16 ++++++++ .../service/impl/ExpertDictionaryServiceImpl.java | 20 +++++++++ .../service/impl/MetaDictionaryServiceImpl.java | 20 +++++++++ .../pmapi/tag/controller/ExpertTagController.java | 20 +++++++++ .../com/ningdatech/pmapi/tag/entity/ExpertTag.java | 36 +++++++++++++++++ .../pmapi/tag/mapper/ExpertTagMapper.java | 16 ++++++++ .../pmapi/tag/mapper/ExpertTagMapper.xml | 5 +++ .../pmapi/tag/service/IExpertTagService.java | 16 ++++++++ .../tag/service/impl/ExpertTagServiceImpl.java | 20 +++++++++ 19 files changed, 351 insertions(+), 1 deletion(-) create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/ExpertDictionaryController.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/MetaDictionaryController.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.xml create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.xml create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IExpertDictionaryService.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IMetaDictionaryService.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/MetaDictionaryServiceImpl.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/ExpertTagController.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.xml create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IExpertTagService.java create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java diff --git a/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java b/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java index 8ad79cd..cd63542 100644 --- a/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java +++ b/ningda-generator/src/main/java/com/ningdatech/generator/config/GeneratorCodeKingbaseConfig.java @@ -56,7 +56,7 @@ public class GeneratorCodeKingbaseConfig { } public static void main(String[] args) { - generate("Liuxinxin", "tag", PATH_LXX, "meta_tag"); + generate("Liuxinxin", "tag", PATH_LXX, "expert_tag"); } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/ExpertDictionaryController.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/ExpertDictionaryController.java new file mode 100644 index 0000000..80d63a7 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/ExpertDictionaryController.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.dictionary.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.stereotype.Controller; + +/** + *

+ * 前端控制器 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Controller +@RequestMapping("/pmapi.dictionary/expert-dictionary") +public class ExpertDictionaryController { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/MetaDictionaryController.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/MetaDictionaryController.java new file mode 100644 index 0000000..6bb2a01 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/controller/MetaDictionaryController.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.dictionary.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.stereotype.Controller; + +/** + *

+ * 前端控制器 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Controller +@RequestMapping("/pmapi.dictionary/meta-dictionary") +public class MetaDictionaryController { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java new file mode 100644 index 0000000..a2de62f --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java @@ -0,0 +1,36 @@ +package com.ningdatech.pmapi.dictionary.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; + +/** + *

+ * + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Data +@TableName("expert_dictionary") +@ApiModel(value = "ExpertDictionary对象", description = "") +public class ExpertDictionary implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + private LocalDateTime createOn; + + private LocalDateTime updateOn; + + private String dictionaryCode; + + private String expertInfoField; + + private Long userId; +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java new file mode 100644 index 0000000..f643b5b --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java @@ -0,0 +1,47 @@ +package com.ningdatech.pmapi.dictionary.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Data +@TableName("meta_dictionary") +@ApiModel(value = "MetaDictionary对象", description = "") +public class MetaDictionary implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + private LocalDateTime createOn; + + private LocalDateTime updateOn; + + private String dictionaryType; + + private String dictionaryCode; + + private String dictionaryName; + + private String dictionaryDescribe; + + private Integer sortValue; + + private Long createBy; + + private String readonly; + + private Long updateBy; + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.java new file mode 100644 index 0000000..8066d56 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.dictionary.mapper; + +import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface ExpertDictionaryMapper extends BaseMapper { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.xml new file mode 100644 index 0000000..2b2971c --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/ExpertDictionaryMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.java new file mode 100644 index 0000000..b02222c --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.dictionary.mapper; + +import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface MetaDictionaryMapper extends BaseMapper { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.xml new file mode 100644 index 0000000..6541927 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/mapper/MetaDictionaryMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IExpertDictionaryService.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IExpertDictionaryService.java new file mode 100644 index 0000000..a10655b --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IExpertDictionaryService.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.dictionary.service; + +import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface IExpertDictionaryService extends IService { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IMetaDictionaryService.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IMetaDictionaryService.java new file mode 100644 index 0000000..47a1ab6 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/IMetaDictionaryService.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.dictionary.service; + +import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface IMetaDictionaryService extends IService { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java new file mode 100644 index 0000000..f9025cc --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/ExpertDictionaryServiceImpl.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.dictionary.service.impl; + +import com.ningdatech.pmapi.dictionary.entity.ExpertDictionary; +import com.ningdatech.pmapi.dictionary.mapper.ExpertDictionaryMapper; +import com.ningdatech.pmapi.dictionary.service.IExpertDictionaryService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Service +public class ExpertDictionaryServiceImpl extends ServiceImpl implements IExpertDictionaryService { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/MetaDictionaryServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/MetaDictionaryServiceImpl.java new file mode 100644 index 0000000..882c55a --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/service/impl/MetaDictionaryServiceImpl.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.dictionary.service.impl; + +import com.ningdatech.pmapi.dictionary.entity.MetaDictionary; +import com.ningdatech.pmapi.dictionary.mapper.MetaDictionaryMapper; +import com.ningdatech.pmapi.dictionary.service.IMetaDictionaryService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Service +public class MetaDictionaryServiceImpl extends ServiceImpl implements IMetaDictionaryService { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/ExpertTagController.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/ExpertTagController.java new file mode 100644 index 0000000..c284fb8 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/controller/ExpertTagController.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.tag.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.stereotype.Controller; + +/** + *

+ * 前端控制器 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Controller +@RequestMapping("/pmapi.tag/expert-tag") +public class ExpertTagController { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java new file mode 100644 index 0000000..8b24ad8 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java @@ -0,0 +1,36 @@ +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; + +/** + *

+ * + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@TableName("expert_tag") +@Data +@ApiModel(value = "ExpertTag对象", description = "") +public class ExpertTag implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + private LocalDateTime createOn; + + private LocalDateTime updateOn; + + private Long userId; + + private String tagCode; + + private String expertInfoField; +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.java new file mode 100644 index 0000000..01a1bf2 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.tag.mapper; + +import com.ningdatech.pmapi.tag.entity.ExpertTag; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface ExpertTagMapper extends BaseMapper { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.xml new file mode 100644 index 0000000..d705269 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/mapper/ExpertTagMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IExpertTagService.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IExpertTagService.java new file mode 100644 index 0000000..4970bb6 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/IExpertTagService.java @@ -0,0 +1,16 @@ +package com.ningdatech.pmapi.tag.service; + +import com.ningdatech.pmapi.tag.entity.ExpertTag; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +public interface IExpertTagService extends IService { + +} diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java new file mode 100644 index 0000000..d62ceef --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/service/impl/ExpertTagServiceImpl.java @@ -0,0 +1,20 @@ +package com.ningdatech.pmapi.tag.service.impl; + +import com.ningdatech.pmapi.tag.entity.ExpertTag; +import com.ningdatech.pmapi.tag.mapper.ExpertTagMapper; +import com.ningdatech.pmapi.tag.service.IExpertTagService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Liuxinxin + * @since 2023-02-22 + */ +@Service +public class ExpertTagServiceImpl extends ServiceImpl implements IExpertTagService { + +}