(1)在实体类上加上@Builder注解
WorkParam param=WorkParam.builder()
.actType(“01”)
.actName(“211”).build();
(2)在实体类上加上@Accessors(chain=true)注解
WorkParam param=new WorkParam();
param.setActType(“04”).setActName(“gd”);
(1)在实体类上加上@Builder注解
WorkParam param=WorkParam.builder()
.actType(“01”)
.actName(“211”).build();
(2)在实体类上加上@Accessors(chain=true)注解
WorkParam param=new WorkParam();
param.setActType(“04”).setActName(“gd”);