package com.engine.htsc.wdzx.model;

import com.alibaba.fastjson.JSONObject;
import weaver.general.Util;
import weaver.interfaces.htsc.GlobatTools.JAVATools;
import weaver.interfaces.htsc.comInfo.PropBean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xf
 * @version 1.0.0
 * @ClassName doclog.java
 * @createTime 2021年11月19日 11:16:00
 */
public class Doclog {
    public String getMbmc() {
        return mbmc;
    }

    public void setMbmc(String mbmc) {
        this.mbmc = mbmc;
    }

    public String getDyrq() {
        return dyrq;
    }

    public void setDyrq(String dyrq) {
        this.dyrq = dyrq;
    }

    public String getDyr() {
        return dyr;
    }

    public void setDyr(String dyr) {
        this.dyr = dyr;
    }

    public String getDyxt() {
        return dyxt;
    }

    public void setDyxt(String dyxt) {
        this.dyxt = dyxt;
    }

    public String getMbwj() {
        return mbwj;
    }

    public void setMbwj(String mbwj) {
        this.mbwj = mbwj;
    }
    private String mbmc;
    private String dyrq;
    private String dyr;
    private String dyxt;
    private String mbwj;

    public String getCzlx() {
        return czlx;
    }

    public void setCzlx(String czlx) {
        this.czlx = czlx;
    }

    private String czlx;


    public String getWgid() {
        return wgid;
    }

    public void setWgid(String wgid) {
        this.wgid = wgid;
    }

    private String wgid;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private String msg;
  private  String tablename="uf_wdhbrz";

  public boolean innsert(){
      PropBean propBean= new PropBean();
      Map<String,String> map=new HashMap<>();
      if(!"".equals(Util.null2String(this.mbmc))){
          map.put("mbmc",this.mbmc);
      }
      if(!"".equals(Util.null2String(this.dyrq))){
          map.put("dyrq",this.dyrq);
      }
      if(!"".equals(Util.null2String(this.dyr))){
          map.put("dyr",this.dyr);
      }
      if(!"".equals(Util.null2String(this.dyxt))){
          map.put("dyxt",this.dyxt);
      }
      if(!"".equals(Util.null2String(this.mbwj))){
          map.put("mbwj",this.mbwj);
      }
      if(!"".equals(Util.null2String(this.msg))){
          map.put("msg",this.msg);
      }
      if(!"".equals(Util.null2String(this.wgid))){
          map.put("wgid",this.wgid);
      }
      if(!"".equals(Util.null2String(this.czlx))){
          map.put("czlx",this.czlx);
      }
      JSONObject jsonObject= propBean.getModeInfoByUUID(propBean.getPropName("wdzx.wdhbcebuuuid"));
      if(jsonObject!=null && jsonObject.size()>=0){
          map.put("formmodeid",Util.null2String(jsonObject.get("modeid")));
      }

      return JAVATools.Excetesql(map,tablename);
  }
}
