|
@@ -423,51 +423,51 @@ public class WorkCalendarDate extends BaseEntity<WorkCalendarDate> {
|
|
|
}
|
|
|
|
|
|
WorkCalendarDate other = (WorkCalendarDate) obj;
|
|
|
- if (calendarId == null) {
|
|
|
- if (other.calendarId != null) {
|
|
|
+ if (StringUtil.isBlank(calendarId)) {
|
|
|
+ if (StringUtil.isNotBlank(other.calendarId)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!calendarId.equals(other.calendarId)) {
|
|
|
+ } else if (!calendarId.equals(other.calendarId == null ? "" : other.calendarId)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (dictCode == null) {
|
|
|
- if (other.dictCode != null) {
|
|
|
+ if (StringUtil.isBlank(dictCode)) {
|
|
|
+ if (StringUtil.isNotBlank(other.dictCode)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!dictCode.equals(other.dictCode)) {
|
|
|
+ } else if (!dictCode.equals(other.dictCode == null ? "" : other.dictCode)) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- if (dictType == null) {
|
|
|
- if (other.dictType != null) {
|
|
|
+
|
|
|
+ if (StringUtil.isBlank(dictType)) {
|
|
|
+ if (StringUtil.isNotBlank(other.dictType)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!dictType.equals(other.dictType)) {
|
|
|
+ } else if (!dictType.equals(other.dictType == null ? "" : other.dictType)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (groupCode == null) {
|
|
|
- if (other.groupCode != null) {
|
|
|
+ if (StringUtil.isBlank(groupCode)) {
|
|
|
+ if (StringUtil.isNotBlank(other.groupCode)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!groupCode.equals(other.groupCode)) {
|
|
|
+ } else if (!groupCode.equals(other.groupCode == null ? "" : other.groupCode)) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- if (projectId == null) {
|
|
|
- if (other.projectId != null) {
|
|
|
+
|
|
|
+ if (StringUtil.isBlank(projectId)) {
|
|
|
+ if (StringUtil.isNotBlank(other.projectId)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!projectId.equals(other.projectId)) {
|
|
|
+ } else if (!projectId.equals(other.projectId == null ? "" : other.projectId)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (workDate == null) {
|
|
|
- if (other.workDate != null) {
|
|
|
+ if (StringUtil.isBlank(workDate)) {
|
|
|
+ if (StringUtil.isNotBlank(other.workDate)) {
|
|
|
return false;
|
|
|
}
|
|
|
- } else if (!workDate.equals(other.workDate)) {
|
|
|
+ } else if (!workDate.equals(other.workDate == null ? "" : other.workDate)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -481,12 +481,12 @@ public class WorkCalendarDate extends BaseEntity<WorkCalendarDate> {
|
|
|
public int hashCode() {
|
|
|
final int prime = 31;
|
|
|
int result = 1;
|
|
|
- result = prime * result + ((calendarId == null) ? 0 : calendarId.hashCode());
|
|
|
- result = prime * result + ((dictCode == null) ? 0 : dictCode.hashCode());
|
|
|
- result = prime * result + ((dictType == null) ? 0 : dictType.hashCode());
|
|
|
- result = prime * result + ((groupCode == null) ? 0 : groupCode.hashCode());
|
|
|
- result = prime * result + ((projectId == null) ? 0 : projectId.hashCode());
|
|
|
- result = prime * result + ((workDate == null) ? 0 : workDate.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(calendarId)) ? 0 : calendarId.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(dictCode)) ? 0 : dictCode.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(dictType)) ? 0 : dictType.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(groupCode)) ? 0 : groupCode.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(projectId)) ? 0 : projectId.hashCode());
|
|
|
+ result = prime * result + ((StringUtil.isBlank(workDate)) ? 0 : workDate.hashCode());
|
|
|
return result;
|
|
|
}
|
|
|
|