Administrator
2023-12-07 a67079c94a32b79366342cb95cc71bbeb21a5ee6
Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
4个文件已修改
1个文件已删除
198 ■■■■ 已修改文件
.gitignore 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-sell/.gitignore 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-sell/pipIrr-web-sell.iml 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -1 +1,3 @@
/pipIrr-platform/downloadTemp/
/logs/*.*
logs/
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java
@@ -93,6 +93,7 @@
    /**
     * 是否超级管理员 1:是,0:否
     */
    @Schema(hidden = true)
    @TableField(value = "supperAdmin")
    @JSONField(serialize = false)
    public Byte supperAdmin;
@@ -111,29 +112,31 @@
    /**
     * 用户所属角色
     */
    @TableField(exist = false)
    public List<?> roleList ;
    /**
     * 用户所拥有的权限
     */
    @TableField(exist = false)
    public List<Integer> privileges;
    //public transient List<Integer> privileges;//此种方式变量不存库, 也不参与序列化了
    /**
     * 用户所属角色Id
     */
    @Schema(hidden = true)
    @Schema(description = "所归角色(所属角色ID字符串数组)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @TableField(exist = false)
    public String[] roleIds ;
    /**
     * 用户所属角色
     */
    @Schema(description = "所归角色列表,用于显示,表单不用填写", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @TableField(exist = false)
    public List<?> roleList ;
    /**
     * 用户所拥有的权限,针对登录应用
     */
    @Schema(hidden = true)
    @TableField(exist = false)
    @JSONField(serialize = false)
    public List<Integer> privileges;
    /**
     * 所属片区名称
     */
    @Schema(description = "所属片区名称,表单不用填写", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @Schema(description = "所属片区名称,用于显示,表单不用填写", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @TableField(exist = false)
    public String blockName ;
}
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
@@ -10,6 +10,7 @@
import com.dy.common.webUtil.QueryResultVo;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.pojoBa.BaUser;
import com.dy.pipIrrGlobal.util.Constant;
import com.mysql.cj.util.StringUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -116,6 +117,7 @@
        po.id = null;
        int count;
        try {
            po.supperAdmin = Constant.no.byteValue() ;
            po.disabled = Disabled.NO;//默认不禁用
            po.deleted = Deleted.NO;//默认不删除
            po.orgTag = DataSourceContext.get();//机构标签
@@ -167,6 +169,7 @@
        }
        int count;
        try {
            po.supperAdmin = null;//设置为null,不做更新
            po.deleted = null;//设置为null,不做更新
            po.orgTag = null;//设置为null,不做更新
            count = this.sv.update(po);
@@ -330,7 +333,7 @@
    }
    /**
    /*
     * 2023-12-05 在 save和update方法中进行了角色设置关联,本方法废弃
     * 设置用户角色
     *
pipIrr-platform/pipIrr-web/pipIrr-web-sell/.gitignore
@@ -1,5 +1,6 @@
HELP.md
target/
/pipIrr-web-sell.iml
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
pipIrr-platform/pipIrr-web/pipIrr-web-sell/pipIrr-web-sell.iml
File was deleted