2日目の9段階目終了
This commit is contained in:
@@ -41,6 +41,10 @@ public class EmployeeData extends BaseData {
|
|||||||
|
|
||||||
public void setIdEmployee(String idEmployee) {
|
public void setIdEmployee(String idEmployee) {
|
||||||
this.idEmployee = idEmployee;
|
this.idEmployee = idEmployee;
|
||||||
|
if (idEmployee == null || idEmployee.strip().isEmpty()) {
|
||||||
|
System.out.println("社員IDが空のため設定できませんでした");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNmEmployee() {
|
public String getNmEmployee() {
|
||||||
|
|||||||
@@ -80,6 +80,10 @@ public class Main {
|
|||||||
EmployeeData sampleEmp = (EmployeeData) allData[0];
|
EmployeeData sampleEmp = (EmployeeData) allData[0];
|
||||||
sampleEmp.setNmEmployee("");
|
sampleEmp.setNmEmployee("");
|
||||||
}
|
}
|
||||||
|
if (allData[0] instanceof EmployeeData) {
|
||||||
|
EmployeeData sampleEmp = (EmployeeData) allData[0];
|
||||||
|
sampleEmp.setIdEmployee("");
|
||||||
|
}
|
||||||
|
|
||||||
// String serchId1 = "10002";
|
// String serchId1 = "10002";
|
||||||
// System.out.println(serchId1 + "を検索します");
|
// System.out.println(serchId1 + "を検索します");
|
||||||
|
|||||||
Reference in New Issue
Block a user