yuxc
2023-04-10 274e31b26d5eba7977018048366dde0000588dc7
近义词维护、编码定义、模板池等功能的代码实现功能
已修改5个文件
已添加35个文件
3144 ■■■■■ 文件已修改
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeKeyattrrepeatDTO.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeSynonymDTO.java 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeButtonEntity.java 189 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeKeyattrrepeatEntity.java 203 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeSynonymEntity.java 190 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeButtonVO.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeKeyattrrepeatVO.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeSynonymVO.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeButtonController.java 156 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeClassifyController.java 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeKeyattrrepeatController.java 147 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeSynonymController.java 133 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/enumpack/FrameworkDataLCStatus.java 105 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeButtonClient.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeClassifyClient.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeKeyattrrepeatClient.java 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeSynonymClient.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeButtonClient.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeClassifyClient.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeSynonymClient.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/lCodeKeyattrrepeatClient.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeClassifyMapper.java 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeKeyattrrepeatMapper.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeSynonymMapper.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeButtonService.java 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeClassifyService.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeKeyattrrepeatService.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeSynonymService.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeButtonServiceImpl.java 117 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeKeyattrrepeatServiceImpl.java 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeSynonymServiceImpl.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/ICodeClassifyServiceImpl.java 222 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeSynonymWrapper.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/PlCodeKeyattrrepeatWrapper.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeButtonMapper.xml 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeKeyattrrepeatMapper.xml 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSynonymMapper.xml 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeKeyattrrepeatDTO.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.dto;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 æ•°æ®ä¼ è¾“对象实体类
 *
 * @author yuxc
 * @since 2023-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeKeyattrrepeatDTO extends CodeKeyattrrepeatEntity {
    private static final long serialVersionUID = 1L;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeSynonymDTO.java
@@ -1,104 +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 com.vci.ubcs.code.dto;
import com.vci.ubcs.code.vo.pagemodel.BaseModelVO;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * åŒä¹‰è¯é…ç½®æ•°æ®ä¼ è¾“对象
 * è¿‘义词维护 æ•°æ®ä¼ è¾“对象实体类
 *
 * @author weidy
 * @date 2022-02-17
 * @author yuxc
 * @since 2023-04-04
 */
public class CodeSynonymDTO extends BaseModelVO {
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeSynonymDTO extends CodeSynonymEntity {
    private static final long serialVersionUID = 1L;
    /**
     * ç¦æ­¢ä¿®æ”¹è¿™ä¸ªå€¼
     */
    private static final long serialVersionUID = 4615707117393017144L;
    /**
     * æ‰€å±žç¼–码规则
     */
    private String codeclassifytemplateoid;
    /**
     * æ‰€å±žç¼–码规则显示文本
     */
    private String codeclassifytemplateoidName;
    /**
     * æºå€¼
     */
    private String sourcevalue;
    /**
     * åŒä¹‰è¯
     */
    private String synonymvalue;
    /**
     * èŽ·å– æ‰€å±žç¼–码规则
     */
    public String getCodeclassifytemplateoid (){
        return codeclassifytemplateoid;
    }
    /**
     * è®¾ç½® æ‰€å±žç¼–码规则
     */
    public void setCodeclassifytemplateoid (String codeclassifytemplateoid){
        this.codeclassifytemplateoid = codeclassifytemplateoid;
    }
    /**
     * èŽ·å–æ‰€å±žç¼–ç è§„åˆ™æ˜¾ç¤ºæ–‡æœ¬
     */
    public String getCodeclassifytemplateoidName (){
        return codeclassifytemplateoidName;
    }
    /**
     * è®¾ç½®æ‰€å±žç¼–码规则显示文本
     */
    public void setCodeclassifytemplateoidName (String codeclassifytemplateoidName){
        this.codeclassifytemplateoidName = codeclassifytemplateoidName;
    }
    /**
     * èŽ·å– æºå€¼
     */
    public String getSourcevalue (){
        return sourcevalue;
    }
    /**
     * è®¾ç½® æºå€¼
     */
    public void setSourcevalue (String sourcevalue){
        this.sourcevalue = sourcevalue;
    }
    /**
     * èŽ·å– åŒä¹‰è¯
     */
    public String getSynonymvalue (){
        return synonymvalue;
    }
    /**
     * è®¾ç½® åŒä¹‰è¯
     */
    public void setSynonymvalue (String synonymvalue){
        this.synonymvalue = synonymvalue;
    }
    @Override
    public String toString() {
        return "CodeSynonymDTO{" +
        "codeclassifytemplateoid='" + codeclassifytemplateoid +"',"+
        "codeclassifytemplateoidName='" + codeclassifytemplateoidName +"'," +
        "sourcevalue='" + sourcevalue +"',"+
        "synonymvalue='" + synonymvalue +"',"+
        "}" + super.toString();
    }
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeButtonEntity.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,189 @@
/*
 *      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 com.vci.ubcs.code.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * æ¨¡æ¿æ‰©å±•æ±  å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-03-29
 */
@Data
@TableName("PL_CODE_BUTTON")
@ApiModel(value = "codebutton对象", description = "模板扩展池")
//@EqualsAndHashCode(callSuper = false)
public class CodeButtonEntity  implements Serializable {
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty("主键id")
    @TableId(
        value = "oid",
        type = IdType.ASSIGN_ID
    )
    private Long oid;
    @ApiModelProperty("按钮编码")
    private String id;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String nameoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String btmname;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String creator;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date createtime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastmodifier;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date lastmodifytime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short revisionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short versionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lctid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lcstatus;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date ts;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String name;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String description;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String owner;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String copyfromversion;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String iconcls;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String executejs;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String usedpositiontype;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeKeyattrrepeatEntity.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,203 @@
/*
 *      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 com.vci.ubcs.code.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-04-03
 */
@Data
@TableName("PL_CODE_KEYATTRREPEAT")
@ApiModel(value = "PlCodeKeyattrrepeat对象", description = "关键属性查重规则")
//@EqualsAndHashCode(callSuper = true)
public class CodeKeyattrrepeatEntity  implements Serializable {
    /**
     *
     */
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty("主键id")
    @TableId(
        value = "oid",
        type = IdType.ASSIGN_ID
    )
    private String oid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String id;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String nameoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String btmname;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String creator;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date createtime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastmodifier;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date lastmodifytime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short revisionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short versionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lctid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lcstatus;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date ts;
    /**
     * è§„则名称
     */
    @ApiModelProperty(value = "规则名称")
    private String name;
    /**
     * æè¿°
     */
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String owner;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String copyfromversion;
    /**
     * å¿½ç•¥å¤§å°å†™
     */
    @ApiModelProperty(value = "忽略大小写")
    private String ignorecaseflag;
    /**
     * å¿½ç•¥ç©ºæ ¼
     */
    @ApiModelProperty(value = "忽略空格")
    private String ignorespaceflag;
    /**
     * å¿½ç•¥å…¨éƒ¨ç©ºæ ¼
     */
    @ApiModelProperty(value = "忽略全部空格")
    private String ignoreallspaceflag;
    /**
     * å¿½ç•¥å…¨åŠè§’
     */
    @ApiModelProperty(value = "忽略全半角")
    private String ignorewidthflag;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeSynonymEntity.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,190 @@
/*
 *      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 com.vci.ubcs.code.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
 * è¿‘义词维护 å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-04-04
 */
@Data
@TableName("PL_CODE_SYNONYM")
@ApiModel(value = "PlCodeSynonym对象", description = "近义词维护")
//@EqualsAndHashCode(callSuper = true)
public class CodeSynonymEntity implements Serializable {
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty("主键id")
    @TableId(
        value = "oid",
        type = IdType.ASSIGN_ID
    )
    private String oid;
    @ApiModelProperty(value = "")
    private String id;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String nameoid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String btmname;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstr;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String firstv;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String creator;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date createtime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lastmodifier;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date lastmodifytime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionrule;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short revisionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String revisionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Short versionseq;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String versionvalue;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lctid;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String lcstatus;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private Date ts;
    /**
     * æ‰€å±žè¡Œä¸šåç§°
     */
    @ApiModelProperty(value = "所属行业名称")
    private String name;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String description;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String owner;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String copyfromversion;
    /**
     * æ‰€å±žæ¨¡æ¿
     */
    @ApiModelProperty(value = "所属模板")
    private String codeclassifytemplateoid;
    /**
     * æºå€¼
     */
    @ApiModelProperty(value = "源值")
    private String sourcevalue;
    /**
     * åŒä¹‰è¯
     */
    @ApiModelProperty(value = "同义词")
    private String synonymvalue;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeButtonVO.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,45 @@
/*
 *      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 com.vci.ubcs.code.vo;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * æ¨¡æ¿æ‰©å±•æ±  è§†å›¾å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-03-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeButtonVO extends CodeButtonEntity {
    private static final long serialVersionUID = 1L;
    /**
     * ä½ç½®åç§°
     */
    private String usedpositiontypeName;
    /**
     * çŠ¶æ€åç§°
     */
    private String lcstatusName;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeKeyattrrepeatVO.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.vo;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 è§†å›¾å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeKeyattrrepeatVO extends CodeKeyattrrepeatEntity {
    private static final long serialVersionUID = 1L;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/CodeSynonymVO.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.vo;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * è¿‘义词维护 è§†å›¾å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeSynonymVO extends CodeSynonymEntity {
    private static final long serialVersionUID = 1L;
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeButtonController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,156 @@
/*
 *      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 com.vci.ubcs.code.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.mapper.CodeButtonMapper;
import com.vci.ubcs.code.service.ICodeButtonService;
import com.vci.ubcs.code.vo.CodeButtonVO;
import com.vci.ubcs.code.wrapper.CodeButtonWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
/**
 * æ¨¡æ¿æ‰©å±•æ±  æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-03-29
 */
@RestController
@AllArgsConstructor
@RequestMapping("/codebutton")
@Api(value = "模板扩展池", tags = "模板扩展池接口")
public class CodeButtonController extends BladeController {
    private final ICodeButtonService codebuttonService;
    CodeButtonMapper codeButtonMapper;
    /**
     * æ¨¡æ¿æ‰©å±•æ±  è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入codebutton")
    public R<CodeButtonVO> detail(CodeButtonEntity codebutton) {
        CodeButtonEntity detail = codeButtonMapper.selectOne(Condition.getQueryWrapper(codebutton));
        return R.data(CodeButtonWrapper.build().entityVO(detail));
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入codebutton")
    public R<IPage<CodeButtonVO>> list(CodeButtonEntity codebutton, Query query) {
        IPage<CodeButtonEntity> pages = codeButtonMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(codebutton));
        return R.data(CodeButtonWrapper.build().pageVO(pages));
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入codebutton")
    public R<IPage<CodeButtonVO>> page(CodeButtonVO codebutton, Query query) {
        IPage<CodeButtonVO> pages = codebuttonService.selectcodebuttonPage(Condition.getPage(query), codebutton);
        return R.data(pages);
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入codebutton")
    public R save(@Valid @RequestBody CodeButtonEntity codebutton) {
        return R.status(SqlHelper.retBool(codeButtonMapper.insert(codebutton)));
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  ä¿®æ”¹
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入codebutton")
    public R update(@Valid @RequestBody CodeButtonEntity codebutton) {
        return R.status(SqlHelper.retBool(codeButtonMapper.updateById(codebutton)));
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入codebutton")
    public R submit(@Valid @RequestBody CodeButtonEntity codebutton) {
        if(codebutton.getOid() != null){
            return R.status(SqlHelper.retBool(codeButtonMapper.updateById(codebutton)));
        }
        return R.status(SqlHelper.retBool(codeButtonMapper.insert(codebutton)));
    }
    /**
     * æ¨¡æ¿æ‰©å±•æ±  åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
//        return codebuttonService.deleteCodeButton(ids);
        return R.status(SqlHelper.retBool(codeButtonMapper.deleteBatchIds(Func.toLongList(ids))));
    }
    /**
     * å¯ç”¨
     * @param oid æ•°æ®ä¼ è¾“对象
     * @return å¯ç”¨ç»“果反馈:
     */
    @PostMapping("/enableData")
    public R enableOrgDuty(@ApiParam(value = "主键集合", required = true) @RequestParam String oid) {
        return codebuttonService.enableCodeButton(oid);
    }
    /**
     * åœç”¨
     * @param  oid éœ€è¦ä¼ è¾“
     * @return åœç”¨ç»“果反馈:
     */
    @PostMapping("/disableData")
    public R disableOrgDuty(@ApiParam(value = "主键集合", required = true) @RequestParam String oid) {
        return codebuttonService.disableOrgDuty(oid);
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeClassifyController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,158 @@
/*
 *      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 com.vci.ubcs.code.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.vci.ubcs.code.entity.CodeClassify;
import com.vci.ubcs.code.mapper.CodeClassifyMapper;
import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO;
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.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.vci.ubcs.code.wrapper.CodeClassifyWrapper;
import com.vci.ubcs.code.service.ICodeClassifyService;
import org.springblade.core.boot.ctrl.BladeController;
import java.util.Date;
/**
 * ä¸»é¢˜åº“定义表 æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-04-06
 */
@RestController
@AllArgsConstructor
@RequestMapping("ubcs-code/codeClassify")
@Api(value = "主题库定义表", tags = "主题库定义表接口")
public class CodeClassifyController extends BladeController {
    private final ICodeClassifyService codeClassifyService;
    CodeClassifyMapper codeClassifyMapper;
    /**
     * ä¸»é¢˜åº“定义表 è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入plCodeClassify")
    public R<CodeClassifyVO> detail(CodeClassify codeClassify) {
        CodeClassify detail = codeClassifyMapper.selectOne(Condition.getQueryWrapper(codeClassify));
        return R.data(CodeClassifyWrapper.build().entityVO(detail));
    }
    /**
     * ä¸»é¢˜åº“定义表 åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入plCodeClassify")
    public R<IPage<CodeClassifyVO>> list(CodeClassify codeClassify, Query query) {
        IPage<CodeClassify> pages = codeClassifyMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(codeClassify));
        return R.data(CodeClassifyWrapper.build().pageVO(pages));
    }
    /**
     * ä¸»é¢˜åº“定义表 è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入plCodeClassify")
    public R<IPage<CodeClassifyVO>> page(CodeClassifyVO codeClassify, Query query) {
        IPage<CodeClassifyVO> pages = codeClassifyService.selectPlCodeClassifyPage(Condition.getPage(query), codeClassify);
        return R.data(pages);
    }
    /**
     * ä¸»é¢˜åº“定义表 æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入plCodeClassify")
    public R save(@Valid @RequestBody CodeClassify codeClassify) {
        if(codeClassify.getOrderNum() == null){
            codeClassify.setOrderNum(0);
        }
        return codeClassifyService.addSave(codeClassify);
    }
    /**
     * ä¸»é¢˜åº“定义表 ä¿®æ”¹
     */
    @PostMapping("/editSave")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入plCodeClassify")
    public R editSave(@Valid @RequestBody CodeClassify codeClassify) {
        return codeClassifyService.editSave(codeClassify);
//        return R.status(SqlHelper.retBool(codeClassifyMapper.updateById(codeClassify)));
    }
    /**
     * ä¸»é¢˜åº“定义表 æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入plCodeClassify")
    public R submit(@Valid @RequestBody CodeClassify codeClassify) {
        if(codeClassify.getOid() != null){
            codeClassify.setLastModifier(AuthUtil.getUser().getUserName());
            codeClassify.setLastModifyTime(new Date());
            return R.status(SqlHelper.retBool(codeClassifyMapper.updateById(codeClassify)));
        }
        return codeClassifyService.addSave(codeClassify);
    }
    /**
     * ä¸»é¢˜åº“定义表 åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入oids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String oids) {
        return R.status(SqlHelper.retBool(codeClassifyMapper.deleteBatchIds(Func.toLongList(oids))));
    }
    /**
     * æ£€æŸ¥ ä¸»é¢˜åº“分类是否删除
     * @param codeClassify ä¸»é¢˜åº“分类数据传输对象,必须要有oid和ts属性
     * @return æ‰§è¡Œç»“æžœ success为true为可以删除,false表示有数据引用
     */
    @PostMapping( "/checkIsCanDelete")
    public R checkIsCanDelete(CodeClassify codeClassify)  {
        return codeClassifyService.checkIsCanDelete(codeClassify);
    }
    /**
     * åˆ é™¤ä¸»é¢˜åº“分类
     * @param  codeClassify,oid和ts需要传输
     * @return åˆ é™¤ç»“果反馈::success:成功,fail:失败
     */
    @DeleteMapping( "/deleteData")
    public R delCodeClassify(CodeClassify codeClassify) {
        return codeClassifyService.deleteCodeClassify(codeClassify);
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeKeyattrrepeatController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,147 @@
/*
 *      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 com.vci.ubcs.code.controller;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.mapper.CodeButtonMapper;
import com.vci.ubcs.code.mapper.CodeKeyattrrepeatMapper;
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.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.vo.CodeKeyattrrepeatVO;
import com.vci.ubcs.code.wrapper.PlCodeKeyattrrepeatWrapper;
import com.vci.ubcs.code.service.ICodeKeyattrrepeatService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-04-03
 */
@RestController
@AllArgsConstructor
@RequestMapping("/plCodeKeyattrrepeat")
@Api(value = "关键属性查重规则", tags = "关键属性查重规则接口")
public class CodeKeyattrrepeatController extends BladeController {
    private final ICodeKeyattrrepeatService plCodeKeyattrrepeatService;
    CodeKeyattrrepeatMapper codeKeyattrrepeatMapper;
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入plCodeKeyattrrepeat")
    public R<CodeKeyattrrepeatVO> detail(CodeKeyattrrepeatEntity plCodeKeyattrrepeat) {
        CodeKeyattrrepeatEntity detail = codeKeyattrrepeatMapper.selectOne(Condition.getQueryWrapper(plCodeKeyattrrepeat));
        return R.data(PlCodeKeyattrrepeatWrapper.build().entityVO(detail));
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入plCodeKeyattrrepeat")
    public R<IPage<CodeKeyattrrepeatVO>> list(CodeKeyattrrepeatEntity plCodeKeyattrrepeat, Query query) {
        IPage<CodeKeyattrrepeatEntity> pages = codeKeyattrrepeatMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(plCodeKeyattrrepeat));
        return R.data(PlCodeKeyattrrepeatWrapper.build().pageVO(pages));
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入plCodeKeyattrrepeat")
    public R<IPage<CodeKeyattrrepeatVO>> page(CodeKeyattrrepeatVO plCodeKeyattrrepeat, Query query) {
        IPage<CodeKeyattrrepeatVO> pages = plCodeKeyattrrepeatService.selectPlCodeKeyattrrepeatPage(Condition.getPage(query), plCodeKeyattrrepeat);
        return R.data(pages);
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入plCodeKeyattrrepeat")
    public R save(@Valid @RequestBody CodeKeyattrrepeatEntity plCodeKeyattrrepeat) {
        return R.status(SqlHelper.retBool(codeKeyattrrepeatMapper.insert(plCodeKeyattrrepeat)));
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 ä¿®æ”¹
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入plCodeKeyattrrepeat")
    public R update(@Valid @RequestBody CodeKeyattrrepeatEntity plCodeKeyattrrepeat) {
        return R.status(SqlHelper.retBool(codeKeyattrrepeatMapper.updateById(plCodeKeyattrrepeat)));
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入plCodeKeyattrrepeat")
    public R submit(@Valid @RequestBody CodeKeyattrrepeatEntity plCodeKeyattrrepeat) {
        if(plCodeKeyattrrepeat.getOid() != null){
            return R.status(SqlHelper.retBool(codeKeyattrrepeatMapper.updateById(plCodeKeyattrrepeat)));
        }
        return R.status(SqlHelper.retBool(codeKeyattrrepeatMapper.insert(plCodeKeyattrrepeat)));
    }
    /**
     * å…³é”®å±žæ€§æŸ¥é‡è§„则 åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(SqlHelper.retBool(codeKeyattrrepeatMapper.deleteBatchIds(Func.toLongList(ids))));
    }
    /**
     * ä¸»é”®æ‰¹é‡èŽ·å–å…³é”®æ•°æ®æŸ¥é‡è§„åˆ™
     * @param oids ä¸»é”®ï¼Œå¤šä¸ªä»¥é€—号分隔,但是受性能影响,建议一次查询不超过10000个
     * @return å…³é”®æ•°æ®æŸ¥é‡è§„则显示对象
     */
    @PostMapping("/listDataByOids")
    @ApiOperationSupport(order = 8)
    @ApiOperation(value = "批量查询", notes = "传入oids")
    public R listCodeKeyAttrRepeatRuleByOids(@ApiParam(value = "主键集合", required = true) @RequestParam String oids) {
        return R.data(codeKeyattrrepeatMapper.selectBatchIds(Func.toLongList(oids)));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeSynonymController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,133 @@
/*
 *      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 com.vci.ubcs.code.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.mapper.CodeSynonymMapper;
import com.vci.ubcs.code.service.ICodeSynonymService;
import com.vci.ubcs.code.vo.CodeSynonymVO;
import com.vci.ubcs.code.wrapper.CodeSynonymWrapper;
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.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * è¿‘义词维护 æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-04-04
 */
@RestController
@AllArgsConstructor
@RequestMapping("/codeSynonym")
@Api(value = "近义词维护", tags = "近义词维护接口")
public class CodeSynonymController extends BladeController {
    private final ICodeSynonymService codeSynonymService;
    CodeSynonymMapper codeSynonymMapper;
    /**
     * è¿‘义词维护 è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "codeSynonym")
    public R<CodeSynonymVO> detail(CodeSynonymEntity codeSynonym) {
        CodeSynonymEntity detail = codeSynonymMapper.selectOne(Condition.getQueryWrapper(codeSynonym));
        return R.data(CodeSynonymWrapper.build().entityVO(detail));
    }
    /**
     * è¿‘义词维护 åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入codeSynonym")
    public R<IPage<CodeSynonymVO>> list(CodeSynonymEntity codeSynonym, Query query) {
        IPage<CodeSynonymEntity> pages = codeSynonymMapper.selectPage(Condition.getPage(query), Condition.getQueryWrapper(codeSynonym));
        return R.data(CodeSynonymWrapper.build().pageVO(pages));
    }
    /**
     * è¿‘义词维护 è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入codeSynonym")
    public R<IPage<CodeSynonymVO>> page(CodeSynonymVO codeSynonym, Query query) {
        IPage<CodeSynonymVO> pages = codeSynonymService.selectPlCodeSynonymPage(Condition.getPage(query), codeSynonym);
        return R.data(pages);
    }
    /**
     * è¿‘义词维护 æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入codeSynonym")
    public R save(@Valid @RequestBody CodeSynonymEntity codeSynonym) {
        return R.status(SqlHelper.retBool(codeSynonymMapper.insert(codeSynonym)));
    }
    /**
     * è¿‘义词维护 ä¿®æ”¹
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入codeSynonym")
    public R update(@Valid @RequestBody CodeSynonymEntity codeSynonym) {
        return R.status(SqlHelper.retBool(codeSynonymMapper.updateById(codeSynonym)));
    }
    /**
     * è¿‘义词维护 æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入codeSynonym")
    public R submit(@Valid @RequestBody CodeSynonymEntity codeSynonym) {
        if(codeSynonym.getOid() != null){
            return R.status(SqlHelper.retBool(codeSynonymMapper.updateById(codeSynonym)));
        }
        return R.status(SqlHelper.retBool(codeSynonymMapper.insert(codeSynonym)));
//        return R.status(plCodeSynonymService.saveOrUpdate(plCodeSynonym));
    }
    /**
     * è¿‘义词维护 åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入oids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String oids) {
        return R.status(SqlHelper.retBool(codeSynonymMapper.deleteBatchIds(Func.toLongList(oids))));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/enumpack/FrameworkDataLCStatus.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,105 @@
package com.vci.ubcs.code.enumpack;
import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.*;
/**
 * ç”¨æˆ·ï¼Œè§’色,部门,职务,岗位,职级
 * @author weidy
 */
public enum FrameworkDataLCStatus {
    /**
     * å¯ç”¨
     */
    ENABLED(FRAMEWORK_DATA_ENABLED,"启用"),
    /**
     * åœç”¨
     */
    DISABLED(FRAMEWORK_DATA_DISABLED,"停用");
    /**
     * æžšä¸¾å€¼
     */
    private String value;
    /**
     * æžšä¸¾æ˜¾ç¤ºå€¼
     */
    private String text;
    /**
     * èŽ·å–æžšä¸¾å€¼
     * @return æžšä¸¾å€¼
     */
    public String getValue() {
        return value;
    }
    /**
     * è®¾ç½®æžšä¸¾å€¼
     * @param value æžšä¸¾å€¼
     */
    public void setValue(String value) {
        this.value = value;
    }
    /**
     * èŽ·å–æ˜¾ç¤ºæ–‡æœ¬
     * @return æ˜¾ç¤ºæ–‡æœ¬
     */
    public String getText() {
        return text;
    }
    /**
     * è®¾ç½®æ˜¾ç¤ºæ–‡æœ¬
     * @param text æ˜¾ç¤ºæ–‡æœ¬
     */
    public void setText(String text) {
        this.text = text;
    }
    /**
     * æžšä¸¾å†…部构造方法
     * @param value æžšä¸¾å€¼
     * @param text æ˜¾ç¤ºæ–‡æœ¬
     */
    private FrameworkDataLCStatus(String value, String text){
        this.value = value;
        this.text = text;
    }
    /**
     * æ ¹æ®æžšä¸¾çš„值获取显示文本
     * @param value æžšä¸¾å€¼
     * @return æ˜¾ç¤ºæ–‡æœ¬
     */
    public static String getTextByValue(String value){
        for(FrameworkDataLCStatus eu:FrameworkDataLCStatus.values()){
            if(eu.value.equalsIgnoreCase(value)){
                return eu.text;
            }
        }
        return "";
    }
    /**
     * æ ¹æ®æžšä¸¾æ˜¾ç¤ºæ–‡æœ¬èŽ·å–æžšä¸¾å€¼
     * @param text æ˜¾ç¤ºæ–‡æœ¬
     * @return æžšä¸¾å€¼
     */
    public static String getValueByText(String text){
        for(FrameworkDataLCStatus eu:FrameworkDataLCStatus.values()){
            if(eu.text.equalsIgnoreCase(text)){
                return eu.value;
            }
        }
        return "";
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeButtonClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,63 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.mapper.CodeButtonMapper;
import com.vci.ubcs.code.service.ICodeButtonService;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
/**
 * æ¨¡æ¿æ‰©å±•æ±  Feign实现类
 *
 * @author yuxc
 * @since 2023-04-03
 */
@ApiIgnore()
@RestController
@AllArgsConstructor
public class CodeButtonClient implements ICodeButtonClient {
    private final ICodeButtonService codebuttonService;
    CodeButtonMapper codeButtonMapper;
    @Override
    @GetMapping(TOP)
    public BladePage<CodeButtonEntity> top(Integer current, Integer size) {
        Query query = new Query();
        query.setCurrent(current);
        query.setSize(size);
//        IPage<CodeKeyattrrepeatEntity> page = codeKeyattrrepeatMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper());
        IPage<CodeButtonEntity> page = codeButtonMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper());
//        IPage<CodeKeyattrrepeatEntity> page = codebuttonService.page(Condition.getPage(query));
//        return null;
        return BladePage.of(page);
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeClassifyClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,57 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.vci.ubcs.code.entity.CodeClassify;
import com.vci.ubcs.code.mapper.CodeClassifyMapper;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import com.vci.ubcs.code.service.ICodeClassifyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
/**
 * ä¸»é¢˜åº“定义表 Feign实现类
 *
 * @author yuxc
 * @since 2023-04-06
 */
@ApiIgnore()
@RestController
@AllArgsConstructor
public class CodeClassifyClient implements ICodeClassifyClient {
    private final ICodeClassifyService plCodeClassifyService;
    CodeClassifyMapper codeClassifyMapper;
    @Override
    @GetMapping(TOP)
    public BladePage<CodeClassify> top(Integer current, Integer size) {
        Query query = new Query();
        query.setCurrent(current);
        query.setSize(size);
        IPage<CodeClassify> page = codeClassifyMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper());
        return BladePage.of(page);
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeKeyattrrepeatClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,58 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.mapper.CodeKeyattrrepeatMapper;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import com.vci.ubcs.code.service.ICodeKeyattrrepeatService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 Feign实现类
 *
 * @author yuxc
 * @since 2023-04-03
 */
@ApiIgnore()
@RestController
@AllArgsConstructor
public class CodeKeyattrrepeatClient implements lCodeKeyattrrepeatClient {
    private final ICodeKeyattrrepeatService plCodeKeyattrrepeatService;
    CodeKeyattrrepeatMapper codeKeyattrrepeatMapper;
    @Override
    @GetMapping(TOP)
    public BladePage<CodeKeyattrrepeatEntity> top(Integer current, Integer size) {
        Query query = new Query();
        query.setCurrent(current);
        query.setSize(size);
        IPage<CodeKeyattrrepeatEntity> page = codeKeyattrrepeatMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper());
        return BladePage.of(page);
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/CodeSynonymClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,57 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.mapper.CodeSynonymMapper;
import com.vci.ubcs.code.service.ICodeSynonymService;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
/**
 * è¿‘义词维护 Feign实现类
 *
 * @author yuxc
 * @since 2023-04-04
 */
@ApiIgnore()
@RestController
@AllArgsConstructor
public class CodeSynonymClient implements ICodeSynonymClient {
    private final ICodeSynonymService plCodeSynonymService;
    CodeSynonymMapper codeSynonymMapper;
    @Override
    @GetMapping(TOP)
    public BladePage<CodeSynonymEntity> top(Integer current, Integer size) {
        Query query = new Query();
        query.setCurrent(current);
        query.setSize(size);
        IPage<CodeSynonymEntity> page = codeSynonymMapper.selectPage(Condition.getPage(query), Wrappers.emptyWrapper());
        return BladePage.of(page);
//        return null;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeButtonClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,49 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import org.springblade.core.mp.support.BladePage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * æ¨¡æ¿æ‰©å±•æ±  Feign接口类
 *
 * @author yuxc
 * @since 2023-04-03
 */
@FeignClient(
    value = "ubcs-code"
)
public interface ICodeButtonClient {
    String API_PREFIX = "/codeButton";
    String TOP = API_PREFIX + "/top";
    /**
     * èŽ·å–æ¨¡æ¿æ‰©å±•æ± åˆ—è¡¨
     *
     * @param current   é¡µå·
     * @param size      é¡µæ•°
     * @return BladePage
     */
    @GetMapping(TOP)
    BladePage<CodeButtonEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeClassifyClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,49 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.vci.ubcs.code.entity.CodeClassify;
import org.springblade.core.mp.support.BladePage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * ä¸»é¢˜åº“定义表 Feign接口类
 *
 * @author yuxc
 * @since 2023-04-06
 */
@FeignClient(
    value = "ubcs-code"
)
public interface ICodeClassifyClient {
    String API_PREFIX = "/codeClass";
    String TOP = API_PREFIX + "/top";
    /**
     * èŽ·å–ä¸»é¢˜åº“å®šä¹‰è¡¨åˆ—è¡¨
     *
     * @param current   é¡µå·
     * @param size      é¡µæ•°
     * @return BladePage
     */
    @GetMapping(TOP)
    BladePage<CodeClassify> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/ICodeSynonymClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,49 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import org.springblade.core.mp.support.BladePage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * è¿‘义词维护 Feign接口类
 *
 * @author yuxc
 * @since 2023-04-04
 */
@FeignClient(
    value = "ubcs-code"
)
public interface ICodeSynonymClient {
    String API_PREFIX = "/codeSynonym";
    String TOP = API_PREFIX + "/synonymlist";
    /**
     * èŽ·å–è¿‘ä¹‰è¯ç»´æŠ¤åˆ—è¡¨
     *
     * @param current   é¡µå·
     * @param size      é¡µæ•°
     * @return BladePage
     */
    @GetMapping(TOP)
    BladePage<CodeSynonymEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/feign/lCodeKeyattrrepeatClient.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,49 @@
/*
 *      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 com.vci.ubcs.code.feign;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import org.springblade.core.mp.support.BladePage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 Feign接口类
 *
 * @author yuxc
 * @since 2023-04-03
 */
@FeignClient(
    value = "ubcs-code"
)
public interface lCodeKeyattrrepeatClient {
    String API_PREFIX = "/codekey";
    String TOP = API_PREFIX + "/keylist";
    /**
     * èŽ·å–å…³é”®å±žæ€§æŸ¥é‡è§„åˆ™åˆ—è¡¨
     *
     * @param current   é¡µå·
     * @param size      é¡µæ•°
     * @return BladePage
     */
    @GetMapping(TOP)
    BladePage<CodeKeyattrrepeatEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,44 @@
/*
 *      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 com.vci.ubcs.code.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.vo.CodeButtonVO;
import java.util.List;
/**
 * æ¨¡æ¿æ‰©å±•æ±  Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-03-29
 */
public interface CodeButtonMapper extends BaseMapper<CodeButtonEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param codebutton
     * @return
     */
    List<CodeButtonVO> selectcodebuttonPage(IPage page, CodeButtonVO codebutton);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeClassifyMapper.java
@@ -1,16 +1,64 @@
/*
 *      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 com.vci.ubcs.code.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vci.ubcs.code.entity.CodeClassify;
/**
 * ä¸»é¢˜åº“分类数据操作层
 *
 * @author ludc
 * @date 2022-01-20
 */
public interface CodeClassifyMapper  extends BaseMapper<CodeClassify> {
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO;
import org.apache.ibatis.annotations.MapKey;
import java.util.List;
import java.util.Map;
/**
 * ä¸»é¢˜åº“定义表 Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-04-06
 */
public interface CodeClassifyMapper extends BaseMapper<CodeClassify> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeClassify
     * @return
     */
    List<CodeClassifyVO> selectPlCodeClassifyPage(IPage page, CodeClassifyVO plCodeClassify);
    /**
     * æŸ¥æ‰¾å­ç±»
     *
     * @param oid
     * @return
     */
    @MapKey("oid")
    Map<String,String> selectAllLevelChildOid(String oid);
    /**
     * æ ¡éªŒæ˜¯å¦åŒ…含子节点
     *
     * @param oid åˆ†ç±»çš„主键
     * @return true è¡¨ç¤ºåŒ…含
     */
//    @MapKey("oid")
    Boolean checkHasChild(String oid);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeKeyattrrepeatMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
/*
 *      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 com.vci.ubcs.code.mapper;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.vo.CodeKeyattrrepeatVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-04-03
 */
public interface CodeKeyattrrepeatMapper extends BaseMapper<CodeKeyattrrepeatEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeKeyattrrepeat
     * @return
     */
    List<CodeKeyattrrepeatVO> selectPlCodeKeyattrrepeatPage(IPage page, CodeKeyattrrepeatVO plCodeKeyattrrepeat);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeSynonymMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
/*
 *      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 com.vci.ubcs.code.mapper;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.vo.CodeSynonymVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * è¿‘义词维护 Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-04-04
 */
public interface CodeSynonymMapper extends BaseMapper<CodeSynonymEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeSynonym
     * @return
     */
    List<CodeSynonymVO> selectPlCodeSynonymPage(IPage page, CodeSynonymVO plCodeSynonym);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeButtonService.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.vo.CodeButtonVO;
import org.springblade.core.tool.api.R;
/**
 * æ¨¡æ¿æ‰©å±•æ±  æœåŠ¡ç±»
 *
 * @author yuxc
 * @since 2023-03-29
 */
public interface ICodeButtonService {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param codebutton
     * @return
     */
    IPage<CodeButtonVO> selectcodebuttonPage(IPage<CodeButtonVO> page, CodeButtonVO codebutton);
    /**
     * å¯ç”¨
     * @param oid æ•°æ®ä¼ è¾“
     * @return æ‰§è¡Œç»“æžœ
     */
    R enableCodeButton(String oid);
    /**
     * åœç”¨
     * @param oid æ•°æ®ä¼ è¾“
     * @return æ‰§è¡Œç»“æžœ
     */
    R disableOrgDuty(String oid);
    /**
     * åˆ é™¤ä¸»æ•°æ®ä¸­çš„æŒ‰é’®æ‰©å±•
     * @param ids ä¸»æ•°æ®ä¸­çš„æŒ‰é’®æ‰©å±•数据传输
     * @return åˆ é™¤ç»“果反馈::success:成功,fail:失败
     */
//    R deleteCodeButton(String ids);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeClassifyService.java
@@ -1,8 +1,11 @@
package com.vci.ubcs.code.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vci.ubcs.code.entity.CodeClassify;
import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO;
import org.springblade.core.tool.api.R;
import java.util.List;
@@ -21,5 +24,56 @@
     */
    List<CodeClassify> selectByWrapper(Wrapper wrapper);
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeClassify
     * @return
     */
    IPage<CodeClassifyVO> selectPlCodeClassifyPage(IPage<CodeClassifyVO> page, CodeClassifyVO plCodeClassify);
    /**
     * å¢žåŠ ä¸»é¢˜åº“åˆ†ç±»
     * @param codeClassifyEntity ä¸»é¢˜åº“分类数据传输对象
     * @return æ‰§è¡Œç»“æžœ
     */
    R addSave(CodeClassify codeClassifyEntity)  ;
    /**
     * ä¿®æ”¹ä¸»é¢˜åº“分类
     * @param codeClassifyEntity ä¸»é¢˜åº“分类数据传输对象
     * @return æ‰§è¡Œç»“æžœ
     */
    R editSave(CodeClassify codeClassifyEntity) ;
    /**
     * æ£€æŸ¥ ä¸»é¢˜åº“分类是否删除
     * @param codeClassify ä¸»é¢˜åº“分类数据传输对象,必须要有oid和ts属性
     * @return æ‰§è¡Œç»“æžœ
     */
    R checkIsCanDelete(CodeClassify codeClassify);
    /**
     * æ£€æŸ¥æ˜¯å¦æœ‰ä¸‹çº§æ˜¯å¦å…³è”了数据
     *
     * @param oid ä¸»é”®
     * @return true è¡¨ç¤ºæœ‰å¼•用,false表示没有引用
     */
    boolean checkChildIsLinked(String oid) ;
    /**
     * æ ¡éªŒæ˜¯å¦æœ‰ä¸‹çº§èŠ‚ç‚¹ï¼Œä¸æ ¡éªŒæ˜¯å¦å…³è”äº†æ•°æ®
     *
     * @param oid ä¸»é”®
     * @return true表示有下级,false表示没有下级
     */
    boolean checkHasChild(String oid) ;
    /**
     * åˆ é™¤ä¸»é¢˜åº“分类
     * @param codeClassify ä¸»é¢˜åº“分类数据传输对象,oid和ts需要传输
     * @return åˆ é™¤ç»“果反馈::success:成功,fail:失败
     */
    R deleteCodeClassify(CodeClassify codeClassify) ;
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeKeyattrrepeatService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
/*
 *      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 com.vci.ubcs.code.service;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.vo.CodeKeyattrrepeatVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 æœåŠ¡ç±»
 *
 * @author yuxc
 * @since 2023-04-03
 */
public interface ICodeKeyattrrepeatService  {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeKeyattrrepeat
     * @return
     */
    IPage<CodeKeyattrrepeatVO> selectPlCodeKeyattrrepeatPage(IPage<CodeKeyattrrepeatVO> page, CodeKeyattrrepeatVO plCodeKeyattrrepeat);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeSynonymService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
/*
 *      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 com.vci.ubcs.code.service;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.vo.CodeSynonymVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * è¿‘义词维护 æœåŠ¡ç±»
 *
 * @author yuxc
 * @since 2023-04-04
 */
public interface ICodeSynonymService  {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param plCodeSynonym
     * @return
     */
    IPage<CodeSynonymVO> selectPlCodeSynonymPage(IPage<CodeSynonymVO> page, CodeSynonymVO plCodeSynonym);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeButtonServiceImpl.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,117 @@
/*
 *      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 com.vci.ubcs.code.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus;
import com.vci.ubcs.code.mapper.CodeButtonMapper;
import com.vci.ubcs.code.service.ICodeButtonService;
import com.vci.ubcs.code.vo.CodeButtonVO;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * æ¨¡æ¿æ‰©å±•æ±  æœåŠ¡å®žçŽ°ç±»
 *
 * @author yuxc
 * @since 2023-03-29
 */
@Service
public class CodeButtonServiceImpl implements ICodeButtonService {
    @Autowired
    CodeButtonMapper codeButtonMapper;
    @Override
    public IPage<CodeButtonVO> selectcodebuttonPage(IPage<CodeButtonVO> page, CodeButtonVO codebutton) {
        return page.setRecords(codeButtonMapper.selectcodebuttonPage(page, codebutton));
    }
    @Override
    public R enableCodeButton(String id) {
        CodeButtonEntity codebutton = codeButtonMapper.selectById(id);
        return changeLcStatus(codebutton,true);
    }
    /**
     * åœç”¨
     *
     * @param oid æ•°æ®ä¼ è¾“对象
     * @return æ‰§è¡Œç»“æžœ
     */
    @Override
    public R disableOrgDuty(String oid) {
        CodeButtonEntity codebutton = codeButtonMapper.selectById(oid);
        return changeLcStatus(codebutton,false);
    }
//    @Override
//    public R deleteCodeButton(String ids) {
////        VciBaseUtil.alertNotNull(codeButtonDTO,"主数据中的按钮扩展数据对象",codeButtonDTO.getOid(),"主数据中的按钮扩展的主键");
//        if(StringUtils.isEmpty(ids)){
//            return R.fail("传入非法数据!");
//        }
//        CodeButtonEntity codebutton = codeButtonMapper.selectById(ids);
//
//        CodeButtonDO codeButtonDO = selectByOid(codeButtonDTO.getOid());
//        BaseResult baseResult = checkIsCanDeleteForDO(codeButtonDTO,codeButtonDO);
//        if(baseResult.isSuccess()) {
//        }else{
//            return baseResult;
//        }
//        //执行删除操作
//        BatchCBO batchCBO = codeButtonMapper.deleteByPrimaryKey(codeButtonDO.getOid());
//        return (batchCBO!=null && batchCBO.getDeleteCbos() !=null &&batchCBO.getDeleteCbos().size() > 0)?BaseResult.successMsg(DELETE_SUCCESS):BaseResult.fail(DELETE_FAIL);
//    }
    /**
     * ä¿®æ”¹ç”Ÿå‘½å‘¨æœŸçš„状态,如停用和启用
     * @param buttonDTO æ•°æ®ä¼ è¾“对象,必须要有oid和ts
     * @param disable æ˜¯å¦ä¸ºåœç”¨
     * @return æ‰§è¡Œçš„结果
     */
    private R changeLcStatus(CodeButtonEntity buttonDTO, boolean disable){
//        VciBaseUtil.alertNotNull(buttonDTO,"数据对象",buttonDTO.getOid(),"主键");
        if(disable){
            buttonDTO.setLcstatus(FrameworkDataLCStatus.ENABLED.getValue());
        }else{
            buttonDTO.setLcstatus(FrameworkDataLCStatus.DISABLED.getValue());
        }
        return SqlHelper.retBool(codeButtonMapper.updateById(buttonDTO))?
            R.success(FrameworkDataLCStatus.ENABLED.getValue()):R.fail(FrameworkDataLCStatus.DISABLED.getValue());
    }
//    /**
//     * æ ¡éªŒæ˜¯å¦å¯ä»¥åˆ é™¤ï¼Œå¦‚果存在下级,并且下级有数据引用则不能删除
//     * @param codeButtonDTO æ•°æ®ä¼ è¾“对象
//     * @param codeButtonDO æ•°æ®åº“中的数据对象
//     * @return success为true为可以删除,false表示有数据引用,obj为true表示有下级
//     */
//    private R checkIsCanDeleteForDO(CodeButtonEntity codeButtonDTO, CodeButtonVO codeButtonDO) {
//        CodeButtonVO buttonDO = new CodeButtonVO();
//        BeanUtil.convert(codeButtonDTO,buttonDO);
//        boService.checkTs(buttonDO);
//        if(!checkIsLinked(codeButtonDO.getOid())) {
//            return BaseResult.success();
//        }else{
//            return BaseResult.fail(DATA_LINKED_NOT_DELETE,new String[]{""});
//        }
//    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeKeyattrrepeatServiceImpl.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,47 @@
/*
 *      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 com.vci.ubcs.code.service.impl;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import com.vci.ubcs.code.mapper.CodeButtonMapper;
import com.vci.ubcs.code.vo.CodeKeyattrrepeatVO;
import com.vci.ubcs.code.mapper.CodeKeyattrrepeatMapper;
import com.vci.ubcs.code.service.ICodeKeyattrrepeatService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 æœåŠ¡å®žçŽ°ç±»
 *
 * @author yuxc
 * @since 2023-04-03
 */
@Service
public class CodeKeyattrrepeatServiceImpl implements ICodeKeyattrrepeatService {
    @Autowired
    CodeKeyattrrepeatMapper codeKeyattrrepeatMapper;
    @Override
    public IPage<CodeKeyattrrepeatVO> selectPlCodeKeyattrrepeatPage(IPage<CodeKeyattrrepeatVO> page, CodeKeyattrrepeatVO plCodeKeyattrrepeat) {
        return page.setRecords(codeKeyattrrepeatMapper.selectPlCodeKeyattrrepeatPage(page, plCodeKeyattrrepeat));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeSynonymServiceImpl.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,45 @@
/*
 *      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 com.vci.ubcs.code.service.impl;
import com.vci.ubcs.code.mapper.CodeSynonymMapper;
import com.vci.ubcs.code.service.ICodeSynonymService;
import com.vci.ubcs.code.vo.CodeSynonymVO;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import javax.annotation.Resource;
/**
 * è¿‘义词维护 æœåŠ¡å®žçŽ°ç±»
 *
 * @author yuxc
 * @since 2023-04-04
 */
@Service
public class CodeSynonymServiceImpl implements ICodeSynonymService {
    @Resource
    CodeSynonymMapper codeSynonymMapper;
    @Override
    public IPage<CodeSynonymVO> selectPlCodeSynonymPage(IPage<CodeSynonymVO> page, CodeSynonymVO plCodeSynonym) {
        return page.setRecords(codeSynonymMapper.selectPlCodeSynonymPage(page, plCodeSynonym));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/ICodeClassifyServiceImpl.java
@@ -1,14 +1,28 @@
package com.vci.ubcs.code.service.impl;
import com.alibaba.nacos.common.utils.StringUtils;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.vci.ubcs.code.entity.CodeClassify;
import com.vci.ubcs.code.mapper.CodeClassifyMapper;
import com.vci.ubcs.code.service.ICodeClassifyService;
import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO;
import com.vci.ubcs.core.log.exception.ServiceException;
import jodd.bean.BeanUtil;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class ICodeClassifyServiceImpl extends ServiceImpl<CodeClassifyMapper, CodeClassify> implements ICodeClassifyService {
@@ -26,5 +40,213 @@
        return codeClassifyMapper.selectList(wrapper);
    }
    @Override
    public IPage<CodeClassifyVO> selectPlCodeClassifyPage(IPage<CodeClassifyVO> page, CodeClassifyVO plCodeClassify) {
        return page.setRecords(codeClassifyMapper.selectPlCodeClassifyPage(page, plCodeClassify));
    }
    @Override
    public R addSave(CodeClassify codeClassifyEntity) {
        if(StringUtils.isNotBlank(codeClassifyEntity.getParentCodeClassifyOid()) && StringUtils.isNotBlank(codeClassifyEntity.getBtmTypeId())){
            return R.fail("只有在顶层的主题库分类才能设置业务类型");
        }
        codeClassifyEntity.setCreator(AuthUtil.getUser().getUserName());
        codeClassifyEntity.setCreateTime(new Date());
        codeClassifyEntity.setTs(new Date());
        codeClassifyEntity.setLastModifier(AuthUtil.getUser().getUserName());
        codeClassifyEntity.setLastModifyTime(new Date());
        int insertNumber = codeClassifyMapper.insert(codeClassifyEntity);
        return R.status(SqlHelper.retBool(insertNumber));
    }
    /**
     * ä¿®æ”¹ä¸»é¢˜åº“分类
     * @param codeClassifyEntity ä¸»é¢˜åº“分类数据传输对象
     * @return æ‰§è¡Œç»“æžœ
     */
    @Override
    public R editSave(CodeClassify codeClassifyEntity) {
        if(codeClassifyEntity == null || codeClassifyEntity.getOid() == null){
            return R.fail("传入数据不能为空!");
        }
        //检查ts
        Map<String,Object> condition = new HashMap<>(2);
        condition.put("oid",codeClassifyEntity.getOid());
        condition.put("ts",codeClassifyEntity.getTs());
        CodeClassify detail = codeClassifyMapper
            .selectOne(Condition.getQueryWrapper(condition,CodeClassify.class));
        if(detail == null){//不是最新的不让改
            return R.fail("当前数据不是最新,请刷新后再修改!");
        }
        if(StringUtils.isNotBlank(codeClassifyEntity.getParentCodeClassifyOid()) && StringUtils.isNotBlank(codeClassifyEntity.getBtmTypeId())){
            return R.fail("只有在顶层的主题库分类才能设置业务类型");
        }
        codeClassifyEntity.setLastModifier(AuthUtil.getUser().getUserName());
        codeClassifyEntity.setLastModifyTime(new Date());
        int insertNumber = codeClassifyMapper.updateById(codeClassifyEntity);
//         //处理数据集成逻辑,成功后执行集成第一步,分类数据特殊处理。只有启用状态的分类才推送
//         if(FRAMEWORK_DATA_ENABLED.equals(codeClassifyDO.getLcStatus()));
//         {
//             codeDuckingServiceI.insertCache1(CACHE_TYPE_CLASSIFY_EDIT,FRAMEWORK_DATA_ENABLED,DOCKING_DEFAULT_CLASSIFY, DOCKING_DEFAULT_CLASSIFYOID, codeClassifyDO.getOid(), codeClassifyDTO.getTs());
//         }
        return R.status(SqlHelper.retBool(insertNumber));
//        return BaseResult.success(codeClassifyDO2VO(codeClassifyDO));
    }
    /**
     * æ£€æŸ¥ ä¸»é¢˜åº“分类是否删除
     * @param codeClassifyEntity ä¸»é¢˜åº“分类数据传输对象,必须要有oid和ts属性
     * @return æ‰§è¡Œç»“æžœ success为true为可以删除,false表示有数据引用,obj为true表示有下级
     */
    @Override
    public R checkIsCanDelete(CodeClassify codeClassifyEntity) {
        if(codeClassifyEntity == null || codeClassifyEntity.getOid() == null){
            return R.fail("传入数据不能为空!");
        }
        codeClassifyEntity = selectByOid(codeClassifyEntity.getOid());
        return checkIsCanDeleteForDO(codeClassifyEntity);
    }
    /**
     * ä¸»é”®æŸ¥è¯¢æ•°æ®å¯¹è±¡
     * @param oid ä¸»é”®
     * @return  æ•°æ®å¯¹è±¡
     */
    private CodeClassify selectByOid(String oid){
        CodeClassify codeClassifyEntity = codeClassifyMapper.selectById(oid.trim());
        if(codeClassifyEntity == null || StringUtils.isBlank(codeClassifyEntity.getOid())){
            throw new ServiceException("dataOidNotExist");//根据主键id未查到相关数据
        }
        return codeClassifyEntity;
    }
    /**
     * æ ¡éªŒæ˜¯å¦å¯ä»¥åˆ é™¤ï¼Œå¦‚果存在下级,并且下级有数据引用则不能删除
     * @param codeClassifyEntity æ•°æ®åº“中的数据对象
     * @return success为true为可以删除,false表示有数据引用,obj为true表示有下级
     */
    private R checkIsCanDeleteForDO(CodeClassify codeClassifyEntity) {
        //检查ts
        Map<String,Object> condition = new HashMap<>(2);
        condition.put("oid",codeClassifyEntity.getOid());
        condition.put("ts",codeClassifyEntity.getTs());
        CodeClassify detail = codeClassifyMapper
            .selectOne(Condition.getQueryWrapper(condition,CodeClassify.class));
        if(detail == null){//不是最新的不让改
            throw new ServiceException("当前数据不是最新,请刷新后再修改!");
//            return R.fail("当前数据不是最新,请刷新后再修改!");
        }
        //校验下级是否有引用
        if(checkChildIsLinked(detail.getOid())){
            return R.fail("dataCascadeLinkedNotDelete");
        }
        return R.data(checkHasChild(detail.getOid()));
    }
    /**
     * æ£€æŸ¥æ˜¯å¦æœ‰ä¸‹çº§æ˜¯å¦å…³è”了数据
     *
     * @param oid ä¸»é”®
     * @return true è¡¨ç¤ºæœ‰å¼•用,false表示没有引用
     */
    @Override
    public boolean checkChildIsLinked(String oid) {
        Map<String,String> childOids = codeClassifyMapper.selectAllLevelChildOid(oid.trim());
        if(!CollectionUtils.isEmpty(childOids)){
            for(String childOid: childOids.keySet()){
                if(!checkIsLinked(childOid)){
                    return false;
                }
            }
            return true;
        }
        return false;
    }
    /**
     * æ ¡éªŒæ˜¯å¦è¢«å¼•用
     * @param oid ä¸»é”®
     */
    private boolean checkIsLinked(String oid) {
        //TODO æ·»åŠ éœ€è¦æ ¡éªŒå¼•ç”¨çš„åœ°æ–¹
        return false;
    }
    @Override
    public boolean checkHasChild(String oid) {
        if(StringUtils.isBlank(oid)){
            throw new ServiceException("oid不能为空!");
        }
        return codeClassifyMapper.checkHasChild(oid.trim());
    }
    /**
     * åˆ é™¤ä¸»é¢˜åº“分类
     * @param codeClassify ä¸»é¢˜åº“分类数据传输对象,oid和ts需要传输
     * @return åˆ é™¤ç»“果反馈::success:成功,fail:失败
     */
    @Override
    public R deleteCodeClassify(CodeClassify codeClassify) {
        if(codeClassify == null || codeClassify.getOid() == null){
            throw new ServiceException("传入参数不能为空!");
        }
        codeClassify = codeClassifyMapper.selectById(codeClassify.getOid());
        R result = checkIsCanDeleteForDO(codeClassify);
        //先简称是否有关联模板,有模板要先删除
//        VciQueryWrapperForDO queryWrapper = new VciQueryWrapperForDO(CodeClassifyTemplateDO.class);
//        queryWrapper.addQueryMap("codeClassifyOid",codeClassifyDTO.getOid());
//        List<CodeClassifyTemplateDO> codeClassifyTemplateDOListHaveTemplate =  codeClassifyTemplateMapper.selectByWrapper(queryWrapper);
//        if(codeClassifyTemplateDOListHaveTemplate.size()>0){
//            return BaseResult.fail("分类关联模板,请先删除!");
//        }
//
//        //处理数据集成逻辑,成功后执行集成第一步,分类数据特殊处理。
//        //1、查询要删除的父类数据
//        List<CodeClassifyDO> deletes = new ArrayList<CodeClassifyDO>();
//        deletes.add(codeClassifyDO);
//
//        if(result.isSuccess()) {
//            //找下级的,这个是可以删除的时候
//            Map<String,String> childrenOids = codeClassifyMapper.selectAllLevelChildOid(codeClassifyDO.getOid().trim());
//            if (!CollectionUtils.isEmpty(childrenOids)) {
//                Collection<Collection<String>> childrenCollections = VciBaseUtil.switchCollectionForOracleIn(childrenOids.keySet());
//                for(Collection<String> s : childrenCollections){
//
//                    //处理数据集成逻辑,成功后执行集成第一步,分类数据特殊处理。
//                    //2、查询要删除的子类数据
//                    List<CodeClassifyDO>  codeClassifyDOList = codeClassifyMapper.selectByPrimaryKeyCollection(s);
//                    deletes.addAll(codeClassifyDOList);
//
//                    codeClassifyMapper.batchDeleteByOids(s);
//                }
//
//            }
//        }else{
//            return baseResult;
//        }
//
//        //执行删除操作
//        BatchCBO batchCBO = codeClassifyMapper.deleteByPrimaryKey(codeClassifyDO.getOid());
//
//        //处理数据集成逻辑,成功后执行集成第一步
//        for (CodeClassifyDO codeClassifyDO1:deletes){
//            //codeDuckingServiceI.insertCache1(CACHE_TYPE_CLASSIFY_DELETE,FRAMEWORK_DATA_DISABLED,DOCKING_DEFAULT_CLASSIFY, DOCKING_DEFAULT_CLASSIFYOID, codeClassifyDO1.getOid(), DateUtils.addHours(new Date(),1));//这里是当前时间
//
//            //存储要删除的数据
//            codeDuckingServiceI.cacheDeleteData(codeClassifyDO1.getOid(), codeClassifyDO1);
//        }
//        return (batchCBO!=null && batchCBO.getDeleteCbos() !=null &&batchCBO.getDeleteCbos().size() > 0)?BaseResult.successMsg(DELETE_SUCCESS):BaseResult.fail(DELETE_FAIL);
        return null;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,52 @@
/*
 *      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 com.vci.ubcs.code.wrapper;
import com.vci.ubcs.code.entity.CodeButtonEntity;
import com.vci.ubcs.code.vo.CodeButtonVO;
import com.vci.ubcs.system.cache.DictCache;
import com.vci.ubcs.system.enums.DictEnum;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.Func;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import java.util.List;
import java.util.Objects;
/**
 * æ¨¡æ¿æ‰©å±•æ±  åŒ…装类,返回视图层所需的字段
 *
 * @author yuxc
 * @since 2023-03-29
 */
public class CodeButtonWrapper extends BaseEntityWrapper<CodeButtonEntity, CodeButtonVO> {
    public static CodeButtonWrapper build() {
        return new CodeButtonWrapper();
     }
    @Override
    public CodeButtonVO entityVO(CodeButtonEntity codebutton) {
        CodeButtonVO codebuttonVO = Objects.requireNonNull(BeanUtil.copy(codebutton, CodeButtonVO.class));
        codebuttonVO.setUsedpositiontypeName(DictCache.getValue("codeButtonPosition", codebutton.getUsedpositiontype()));
        codebuttonVO.setLcstatusName(DictCache.getValue("codeLcstatus", codebutton.getLcstatus()));
        return codebuttonVO;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeSynonymWrapper.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.wrapper;
import com.vci.ubcs.code.entity.CodeSynonymEntity;
import com.vci.ubcs.code.vo.CodeSynonymVO;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import java.util.Objects;
/**
 * è¿‘义词维护 åŒ…装类,返回视图层所需的字段
 *
 * @author yuxc
 * @since 2023-04-04
 */
public class CodeSynonymWrapper extends BaseEntityWrapper<CodeSynonymEntity, CodeSynonymVO>  {
    public static CodeSynonymWrapper build() {
        return new CodeSynonymWrapper();
     }
    @Override
    public CodeSynonymVO entityVO(CodeSynonymEntity plCodeSynonym) {
        CodeSynonymVO plCodeSynonymVO = Objects.requireNonNull(BeanUtil.copy(plCodeSynonym, CodeSynonymVO.class));
        //User createUser = UserCache.getUser(plCodeSynonym.getCreateUser());
        //User updateUser = UserCache.getUser(plCodeSynonym.getUpdateUser());
        //plCodeSynonymVO.setCreateUserName(createUser.getName());
        //plCodeSynonymVO.setUpdateUserName(updateUser.getName());
        return plCodeSynonymVO;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/PlCodeKeyattrrepeatWrapper.java
¶Ô±ÈÐÂÎļþ
@@ -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 com.vci.ubcs.code.wrapper;
import com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.vci.ubcs.code.vo.CodeKeyattrrepeatVO;
import java.util.Objects;
/**
 * å…³é”®å±žæ€§æŸ¥é‡è§„则 åŒ…装类,返回视图层所需的字段
 *
 * @author yuxc
 * @since 2023-04-03
 */
public class PlCodeKeyattrrepeatWrapper extends BaseEntityWrapper<CodeKeyattrrepeatEntity, CodeKeyattrrepeatVO>  {
    public static PlCodeKeyattrrepeatWrapper build() {
        return new PlCodeKeyattrrepeatWrapper();
     }
    @Override
    public CodeKeyattrrepeatVO entityVO(CodeKeyattrrepeatEntity plCodeKeyattrrepeat) {
        CodeKeyattrrepeatVO codeKeyattrrepeatVO = Objects.requireNonNull(BeanUtil.copy(plCodeKeyattrrepeat, CodeKeyattrrepeatVO.class));
        //User createUser = UserCache.getUser(plCodeKeyattrrepeat.getCreateUser());
        //User updateUser = UserCache.getUser(plCodeKeyattrrepeat.getUpdateUser());
        //plCodeKeyattrrepeatVO.setCreateUserName(createUser.getName());
        //plCodeKeyattrrepeatVO.setUpdateUserName(updateUser.getName());
        return codeKeyattrrepeatVO;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeButtonMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,44 @@
<?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.vci.ubcs.code.mapper.CodeButtonMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="codebuttonResultMap" type="com.vci.ubcs.code.entity.CodeButtonEntity">
        <result column="OID" property="oid"/>
        <result column="REVISIONOID" property="revisionoid"/>
        <result column="NAMEOID" property="nameoid"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="LASTR" property="lastr"/>
        <result column="FIRSTR" property="firstr"/>
        <result column="LASTV" property="lastv"/>
        <result column="FIRSTV" property="firstv"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createtime"/>
        <result column="LASTMODIFIER" property="lastmodifier"/>
        <result column="LASTMODIFYTIME" property="lastmodifytime"/>
        <result column="REVISIONRULE" property="revisionrule"/>
        <result column="VERSIONRULE" property="versionrule"/>
        <result column="REVISIONSEQ" property="revisionseq"/>
        <result column="REVISIONVALUE" property="revisionvalue"/>
        <result column="VERSIONSEQ" property="versionseq"/>
        <result column="VERSIONVALUE" property="versionvalue"/>
        <result column="LCTID" property="lctid"/>
        <result column="LCSTATUS" property="lcstatus"/>
        <result column="TS" property="ts"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="OWNER" property="owner"/>
        <result column="COPYFROMVERSION" property="copyfromversion"/>
        <result column="ICONCLS" property="iconcls"/>
        <result column="EXECUTEJS" property="executejs"/>
        <result column="USEDPOSITIONTYPE" property="usedpositiontype"/>
    </resultMap>
    <select id="selectcodebuttonPage" resultMap="codebuttonResultMap">
        select * from PL_CODE_BUTTON where is_deleted = 0
    </select>
</mapper>
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
@@ -2,6 +2,59 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vci.ubcs.code.mapper.CodeClassifyMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="plCodeClassifyResultMap" type="com.vci.ubcs.code.entity.CodeClassify">
        <result column="OID" property="oid"/>
        <result column="REVISIONOID" property="revisionOid"/>
        <result column="NAMEOID" property="nameOid"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="LASTR" property="lastR"/>
        <result column="FIRSTR" property="firstR"/>
        <result column="LASTV" property="lastV"/>
        <result column="FIRSTV" property="firstV"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createTime"/>
        <result column="LASTMODIFIER" property="lastModifier"/>
        <result column="LASTMODIFYTIME" property="lastModifyTime"/>
        <result column="REVISIONRULE" property="revisionRule"/>
        <result column="VERSIONRULE" property="versionRule"/>
        <result column="REVISIONSEQ" property="revisionSeq"/>
        <result column="REVISIONVALUE" property="revisionValue"/>
        <result column="VERSIONSEQ" property="versionSeq"/>
        <result column="VERSIONVALUE" property="versionValue"/>
        <result column="LCTID" property="lctid"/>
        <result column="LCSTATUS" property="lcStatus"/>
        <result column="TS" property="ts"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="OWNER" property="owner"/>
        <result column="COPYFROMVERSION" property="copyFromVersion"/>
        <result column="PARENTCODECLASSIFYOID" property="parentCodeClassifyOid"/>
        <result column="ORDERNUM" property="orderNum"/>
        <result column="BTMTYPEID" property="btmTypeId"/>
        <result column="BTMTYPENAME" property="btmTypeName"/>
        <result column="CODERULEOID" property="codeRuleOid"/>
        <result column="CODEKEYATTRREPEATOID" property="codeKeyAttrRepeatOid"/>
        <result column="CODERESEMBLERULEOID" property="codeResembleRuleOid"/>
    </resultMap>
    <select id="selectPlCodeClassifyPage" resultMap="plCodeClassifyResultMap">
        select * from PL_CODE_CLASSIFY where is_deleted = 0
    </select>
    <select id="selectAllLevelChildOid" resultType="java.util.HashMap">
        select oid, level
        from PL_CODE_CLASSIFY
                 START WITH parentCodeClassifyOid = #{oid}CONNECT BY
            PRIOR OID = parentCodeClassifyOid
    </select>
    <select id="checkHasChild" resultType="java.lang.Boolean">
        select count(oid)
        from PL_CODE_CLASSIFY
        where parentCodeClassifyOid = #{oid}
    </select>
</mapper>
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeKeyattrrepeatMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,45 @@
<?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.vci.ubcs.code.mapper.CodeKeyattrrepeatMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="plCodeKeyattrrepeatResultMap" type="com.vci.ubcs.code.entity.CodeKeyattrrepeatEntity">
        <result column="OID" property="oid"/>
        <result column="REVISIONOID" property="revisionoid"/>
        <result column="NAMEOID" property="nameoid"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="LASTR" property="lastr"/>
        <result column="FIRSTR" property="firstr"/>
        <result column="LASTV" property="lastv"/>
        <result column="FIRSTV" property="firstv"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createtime"/>
        <result column="LASTMODIFIER" property="lastmodifier"/>
        <result column="LASTMODIFYTIME" property="lastmodifytime"/>
        <result column="REVISIONRULE" property="revisionrule"/>
        <result column="VERSIONRULE" property="versionrule"/>
        <result column="REVISIONSEQ" property="revisionseq"/>
        <result column="REVISIONVALUE" property="revisionvalue"/>
        <result column="VERSIONSEQ" property="versionseq"/>
        <result column="VERSIONVALUE" property="versionvalue"/>
        <result column="LCTID" property="lctid"/>
        <result column="LCSTATUS" property="lcstatus"/>
        <result column="TS" property="ts"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="OWNER" property="owner"/>
        <result column="COPYFROMVERSION" property="copyfromversion"/>
        <result column="IGNORECASEFLAG" property="ignorecaseflag"/>
        <result column="IGNORESPACEFLAG" property="ignorespaceflag"/>
        <result column="IGNOREALLSPACEFLAG" property="ignoreallspaceflag"/>
        <result column="IGNOREWIDTHFLAG" property="ignorewidthflag"/>
    </resultMap>
    <select id="selectPlCodeKeyattrrepeatPage" resultMap="plCodeKeyattrrepeatResultMap">
        select * from PL_CODE_KEYATTRREPEAT where is_deleted = 0
    </select>
</mapper>
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeSynonymMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,44 @@
<?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.vci.ubcs.code.mapper.CodeSynonymMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="plCodeSynonymResultMap" type="com.vci.ubcs.code.entity.CodeSynonymEntity">
        <result column="OID" property="oid"/>
        <result column="REVISIONOID" property="revisionoid"/>
        <result column="NAMEOID" property="nameoid"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="LASTR" property="lastr"/>
        <result column="FIRSTR" property="firstr"/>
        <result column="LASTV" property="lastv"/>
        <result column="FIRSTV" property="firstv"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createtime"/>
        <result column="LASTMODIFIER" property="lastmodifier"/>
        <result column="LASTMODIFYTIME" property="lastmodifytime"/>
        <result column="REVISIONRULE" property="revisionrule"/>
        <result column="VERSIONRULE" property="versionrule"/>
        <result column="REVISIONSEQ" property="revisionseq"/>
        <result column="REVISIONVALUE" property="revisionvalue"/>
        <result column="VERSIONSEQ" property="versionseq"/>
        <result column="VERSIONVALUE" property="versionvalue"/>
        <result column="LCTID" property="lctid"/>
        <result column="LCSTATUS" property="lcstatus"/>
        <result column="TS" property="ts"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="OWNER" property="owner"/>
        <result column="COPYFROMVERSION" property="copyfromversion"/>
        <result column="CODECLASSIFYTEMPLATEOID" property="codeclassifytemplateoid"/>
        <result column="SOURCEVALUE" property="sourcevalue"/>
        <result column="SYNONYMVALUE" property="synonymvalue"/>
    </resultMap>
    <select id="selectPlCodeSynonymPage" resultMap="plCodeSynonymResultMap">
        select * from PL_CODE_SYNONYM where is_deleted = 0
    </select>
</mapper>