jiangping
2023-08-16 7ea82c44c119e30f13451e86911b32ad40ff86d8
修復bug
已修改2个文件
9 ■■■■■ 文件已修改
server/src/main/java/doumeemes/config/shiro/ShiroRealm.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/src/main/java/doumeemes/dao/ext/vo/CompanyExtListVO.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/src/main/java/doumeemes/config/shiro/ShiroRealm.java
@@ -131,10 +131,10 @@
            if(com == null){
                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该账户异常!");
            }
            if(com.getStatus() == 0 ){
            if(Constants.equalsInteger( com.getStatus(),Constants.ZERO) ){
                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该企业已过禁用!");
            }
            if(com.getOepnValidDate().before(new Date())){
            if(com.getOepnValidDate() != null && com.getOepnValidDate().before(new Date())){
                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该企业已过使用有效期!");
            }
            //如果是企业用户
server/src/main/java/doumeemes/dao/ext/vo/CompanyExtListVO.java
@@ -165,8 +165,7 @@
    @ApiModelProperty(value = "羚羊平台应用参数,json格式存储{app_key:,aes_key:,app_secret:}" )
    private String lingyangInfo;
    @ApiModelProperty(value = "名称")
    @ExcelColumn(name="名称")
    private Byte status;
    @ApiModelProperty(value = "状态 1 开启 0 禁用")
    private Integer status;
}