本文解答了关于《生育津贴冲减工资分录》相关内容,同时关于1、生育津贴冲减发放工资,2、生育津贴冲减费用,3、生育津贴冲减管理费用,4、生育津贴冲减应付职工薪酬,5、生育津贴冲减社保分录,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
生育津贴冲减工资分录
public class AdjustSalaryByMaternityAllowanceParam {
@Entity
@InheritInverseConfiguration(name = "AdjustSalaryByMaternityAllowanceParam")
public static class Response {
// 企业编号
@NotBlank
private String enteId;
// 薪资帐套编码
@NotBlank
private String payrollCode;
// 员工编号
@NotBlank
private String empNo;
// 报酬类型编码
@NotBlank
private String salaryTypeCode;
// 冲减金额
@NotBlank
@Max(9999999999L)
@Min(-9999999999L)
private BigDecimal amount;
// 调薪类型
@NotNull
private SalaryAdjustTypeEnum adjustmentType;
// 一次性社保发放标识
@NotNull
private SocialSecurityClassificationEnum socialSecurityStatus;
// 计算工资的月份
@NotBlank
@Pattern(regexp = "20\\d{2}-\\d{2}")
private String salaryPeriod;
}
}
```
## 六、支持注解与示例
### 6.1 JSR 303校验
`@NotBlank`
`@NotNull`
`@DecimalMin`
`@ DecimalMax`
`@Size`
`@Pattern`
```java
public class Test {
@NotBlank
private String name;
@NotNull
@DecinalMin(value = 0)
@DecinalMax(value = 100)
private Integer age;
@Size(min = 2, max = 8, message = "字符串字串长度必须在2-8之间")
private String pwd;
@Pattern(regexp="\\d+")
private String code;
@Override
public String toString() {
return "Test[name=" + this.name + ", age=" + this.age + ", pwd:" + this.pwd + ",code:" + this.code + "]";
}
}
```
### 6.2 Lombok
`@Data`
`@Builder`
`@EqualsAndHashCode`
`@NoArgsConstructor`
`@AllArgsConstructor`
```java
@Data
@Builder
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public static class UseCaseOneRequest {
private String name;
private Integer age;
}
```
### 6.3 Mapstruct
`@Mapper`
`@Mapping`
`@Mappings`
`@InheritInverseConfiguration`
`@InheritConfiguration`
### 6.4 示例
源对象:
```java
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class UseCaseOneRequest {
private String name;
private Integer age;
private Boolean sex;
}
```
目标对象:
```java
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class UseCaseOneResponse {
private String name;
private Boolean isAdult;
private Integer sex;
}
```
Mapper实现:
```java
@Mapper
public interface UseCaseOneMapper {
@Mappings({
@Mapping(source = "name", target = "name"),
@Mapping(source = "age", target = "isAdult", qualifiedByName = "calcAgeIsAdult")
})
UseCaseOneResponse UseCaseOneRequestToUseCaseOneResponse(UseCaseOneRequest request);
@InheritInverseConfiguration
UseCaseOneRequest useCaseOneResponseToUseCaseOneRequest(UseCaseOneResponse response);
@Named("calcAgeIsAdult")
static Boolean calcAgeIsAdult(Integer age) {
return age != null && age >= 18;
}
}
```
总结:以上是编辑:【纪岚雍】整理及AI智能原创关于《生育津贴冲减工资分录
》优质内容解答希望能帮助到您。