package com.wgb.system.service.domain.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("business_category")
@KeySequence("SEQ_BUSINESS_REPAIR_ID")
public class BusinessCategory {

    @TableId(value = "id", type = IdType.INPUT)
    private Long  id;
    private String  name;
    private Integer  state;                     //0禁用  1启动
    private Long parentId;                      //父节点
    private Integer cityLevel;                  // 1 一线城市 2二线城市  3三线城市 4线城市
    private String  level;                      //乡镇
    private BigDecimal installationPrice;          //安装价格
    private BigDecimal userInstallationPrice;      //用户安装价格

    private BigDecimal modifyPrice;                //修孔价格
    private BigDecimal userModifyPrice;            //修孔价格

    private BigDecimal openingPrice;               //开孔价格
    private BigDecimal userOpeningPrice;           //开孔价格

    private BigDecimal newOpeningPrice;            //全新开孔
    private BigDecimal userNewOpeningPrice;        //全新开孔
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  updateTime;

}
