skyouc
6 天以前 6732a988fe843cf59f12aae1460fc97fda5408dd
rsf-server/src/main/java/com/vincent/rsf/server/system/entity/SerialRuleItem.java
@@ -3,6 +3,10 @@
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.system.service.DictDataService;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -80,7 +84,6 @@
     * 是否删除 1: 是  0: 否  
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    /**
@@ -100,6 +103,7 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -113,6 +117,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
@@ -159,18 +164,13 @@
    public String getWkType$(){
        if (null == this.wkType){ return null; }
        switch (this.wkType){
            case "1":
                return " 常量";
            case  "2":
                return " 流水号";
            case  "3":
                return " 日期";
            case  "4":
                return " 业务字段 ";
            default:
                return String.valueOf(this.wkType);
        DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
                .eq(DictData::getDictTypeCode,"sys_rule_item_type").eq(DictData::getValue, this.wkType));
        if (null != dictData){
            return dictData.getLabel();
        }
        return String.valueOf(this.wkType);
    }
    public String getStatus$(){