This commit is contained in:
2024-08-21 10:15:16 +08:00
parent 2018071720
commit 82401a1468
12 changed files with 97 additions and 3 deletions

View File

@@ -302,6 +302,17 @@ public class EmpSalaryEntity extends OrgCommonEntity implements SalaryItemData {
@Comment("出生日期")
private LocalDate birthday;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
/** 批次数据冗余 */
@Comment("批次年月")
private LocalDate batchYearMonth;
@@ -396,6 +407,10 @@ public class EmpSalaryEntity extends OrgCommonEntity implements SalaryItemData {
this.workAge = salaryEntity.workAge;
this.age = salaryEntity.age;
this.birthday = salaryEntity.birthday;
this.issueAuthority = salaryEntity.issueAuthority;
this.validPeriod = salaryEntity.validPeriod;
this.permanent = salaryEntity.permanent;
}
public void updateItems(EmpSalaryEntity salaryEntity) {
@@ -699,6 +714,10 @@ public class EmpSalaryEntity extends OrgCommonEntity implements SalaryItemData {
map.put("birthday", this.birthday);
map.put("issueAuthority", this.issueAuthority);
map.put("validPeriod", this.validPeriod);
map.put("permanent", this.permanent);
map.put("batchYearMonth", this.batchYearMonth);
map.put("batchNo", this.batchNo);

View File

@@ -135,4 +135,15 @@ public class CreateEmployeeDto extends OrgCommonDto {
private String empStatus;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
}

View File

@@ -144,6 +144,16 @@ public class EmployeeCalculateDto extends OrgCommonDto {
@Comment("出生日期")
private LocalDate birthday;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
public Map<String, Object> toCtxMap() {
HashMap<String, Object> map = new HashMap<>();
@@ -192,6 +202,11 @@ public class EmployeeCalculateDto extends OrgCommonDto {
map.put("empName", this.getName());
map.put("empCode", this.getCode());
map.put("issueAuthority", this.issueAuthority);
map.put("validPeriod", this.validPeriod);
map.put("permanent", this.permanent);
Try.run(() -> map.put("departmentId", this.getDepartment().getId()));
Try.run(() -> map.put("departmentCode", this.getDepartment().getCode()));
Try.run(() -> map.put("departmentName", this.getDepartment().getName()));

View File

@@ -181,4 +181,14 @@ public class EmployeeDto extends OrgCommonDto {
@Comment("出生日期")
private LocalDate birthday;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
}

View File

@@ -141,5 +141,13 @@ public class UpdateEmployeeDto extends OrgCommonDto {
private String empStatus;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
}

View File

@@ -170,6 +170,16 @@ public class EmployeeEntity extends OrgCommonEntity {
@Comment("出生日期")
private LocalDate birthday;
@Comment("身份证签发机关")
private String issueAuthority;
@Comment("有效期限")
private LocalDate validPeriod;
@Comment("是否永久有效")
private Boolean permanent;
@Override
public void prePersist() {
super.prePersist();

View File

@@ -17,4 +17,8 @@ public class CreateMeterDto extends OrgCommonDto {
@Comment("安装位置")
private String location;
@Comment("ybiot设备id")
private String ybiotDeviceId;
}

View File

@@ -19,4 +19,8 @@ public class MeterDto extends OrgCommonDto {
@Comment("安装位置")
private String location;
@Comment("ybiot设备id")
private String ybiotDeviceId;
}

View File

@@ -14,4 +14,8 @@ public class UpdateMeterDto extends OrgCommonDto {
private Double initValue;
@Comment("安装位置")
private String location;
@Comment("ybiot设备id")
private String ybiotDeviceId;
}

View File

@@ -14,12 +14,15 @@ public class MeterEntity extends OrgCommonEntity {
@Comment("类型")
private String type;
@Comment("初始值")
private Double initValue;
@Comment("安装位置")
private String location;
@Comment("ybiot设备id")
private String ybiotDeviceId;
}

View File

@@ -34,4 +34,6 @@ public class OcrEntity extends CommonEntity {
private String ak;
}

View File

@@ -334,6 +334,10 @@ aliyun:
code: oss-rg-china-mainland
endpoint : oss-rg-china-mainland.aliyuncs.com
internal-endpoint: 不支持
OCR:
ak: "LTAI5tQEJePBCd85weQT6z6Q"
sk: "wjEePyMe6mvSsF1fCG3KG8IbxcYoag"
endpoint: "ocr-api.cn-hangzhou.aliyuncs.com"
dust:
url: "http://dust.0531yun.cn/"