【fix sonar】AuthColumnVO文件

This commit is contained in:
梁琦涛
2023-03-13 14:08:21 +08:00
parent 93b4a9bc91
commit 5190cd4867
@@ -1,7 +1,10 @@
package com.jero.generater.modules.online.auth.vo;
import java.io.Serializable;
import java.util.Objects;
import com.jero.generater.modules.online.cgform.entity.OnlCgformField;
import org.jetbrains.annotations.Nullable;
public class AuthColumnVO implements Serializable {
private static final long serialVersionUID = 5445993027926933917L;
@@ -48,49 +51,58 @@ public class AuthColumnVO implements Serializable {
if (getSwitchFlag() != authColumnVO.getSwitchFlag()) {
return false;
}
Boolean x = getaBoolean(authColumnVO);
if (x != null) {
return x;
}
return false;
}
@Nullable
private Boolean getaBoolean(AuthColumnVO authColumnVO) {
Integer type2 = getType();
Integer type3 = authColumnVO.getType();
if (type2 != null ? !type2.equals(type3) : type3 != null) {
if (!Objects.equals(type2, type3)) {
return false;
}
Integer status2 = getStatus();
Integer status3 = authColumnVO.getStatus();
if (status2 != null ? !status2.equals(status3) : status3 != null) {
if (!Objects.equals(status2, status3)) {
return false;
}
Integer isShowForm2 = getIsShowForm();
Integer isShowForm3 = authColumnVO.getIsShowForm();
if (isShowForm2 != null ? !isShowForm2.equals(isShowForm3) : isShowForm3 != null) {
if (!Objects.equals(isShowForm2, isShowForm3)) {
return false;
}
Integer isShowList2 = getIsShowList();
Integer isShowList3 = authColumnVO.getIsShowList();
if (isShowList2 != null ? !isShowList2.equals(isShowList3) : isShowList3 != null) {
if (!Objects.equals(isShowList2, isShowList3)) {
return false;
}
String id2 = getId();
String id3 = authColumnVO.getId();
if (id2 != null ? !id2.equals(id3) : id3 != null) {
if (!Objects.equals(id2, id3)) {
return false;
}
String cgformId2 = getCgformId();
String cgformId3 = authColumnVO.getCgformId();
if (cgformId2 != null ? !cgformId2.equals(cgformId3) : cgformId3 != null) {
if (!Objects.equals(cgformId2, cgformId3)) {
return false;
}
String code2 = getCode();
String code3 = authColumnVO.getCode();
if (code2 != null ? !code2.equals(code3) : code3 != null) {
if (!Objects.equals(code2, code3)) {
return false;
}
String title2 = getTitle();
String title3 = authColumnVO.getTitle();
if (title2 != null ? !title2.equals(title3) : title3 != null) {
if (!Objects.equals(title2, title3)) {
return false;
}
String tableName2 = getTableName();
String tableName3 = authColumnVO.getTableName();
if (tableName2 != null ? !tableName2.equals(tableName3) : tableName3 != null) {
if (!Objects.equals(tableName2, tableName3)) {
return false;
}
String tableNameTxt2 = getTableNameTxt();
@@ -102,7 +114,7 @@ public class AuthColumnVO implements Serializable {
} else if (tableNameTxt2.equals(tableNameTxt3)) {
return true;
}
return false;
return null;
}
public int hashCode() {