k94314517
2024-03-07 cc80794e556bbe1e43f9c1369e1dfc9c61318fda
server/dmvisit_service/src/main/java/com/doumee/dao/admin/request/VisitConfigDTO.java
@@ -18,43 +18,29 @@
@ApiModel("劳务来访配置")
public class VisitConfigDTO {
    @ApiModelProperty(value = "来访预约方式")
    private String reservationWay = "";
    @ApiModelProperty(value = "来访预约方式 0否,1是")
    private Integer reservationWay;
    @ApiModelProperty(value = "被访人校验方式")
    private String checkVisit = "";
    @ApiModelProperty(value = "被访人校验方式 0手机号单独校验 1手机号和姓名组合校验")
    private Integer checkVisit;
    @ApiModelProperty(value = "健康证是否必填")
    private String healthCard = "";
    @ApiModelProperty(value = "健康证是否必填 0=否;1=是")
    private Integer healthCard;
    @ApiModelProperty(value = "劳务是否答题")
    private String isAnswer = "";
    @ApiModelProperty(value = "是否答题 0不需要,1需要" )
    private Integer isAnswer;
    @ApiModelProperty(value = "劳务答题主题")
    private String theme = "";
    @ApiModelProperty(value = "答题主题")
    private String theme;
    @ApiModelProperty(value = "劳务答题说明")
    private String description = "";
    @ApiModelProperty(value = "答题说明")
    private String description;
//    /**
//     * 对象驼峰属性转下划线
//     * @param object
//     * @return
//     * @throws JsonProcessingException
//     */
//    public static String toUnderlineJSONString(Object object) throws JsonProcessingException {
//        ObjectMapper mapper = new ObjectMapper();
//        mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
//        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
//        String reqJson = mapper.writeValueAsString(object);
//        return reqJson;
//    }
//
//
//    public static <T> T toSnakeObject(String json, Class<T> clazz) throws IOException {
//        ObjectMapper mapper = new ObjectMapper();
//        mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
//        T reqJson =  mapper.readValue(json, clazz);
//        return reqJson;
//    }
    @ApiModelProperty(value = "入厂须知")
    private String visitNotice;
    @ApiModelProperty(value = "自选门禁配置")
    private Integer doorsVisitRequired;
}