package com.mvc.model.forwarding;

import com.mvc.model.TAireadModel;
import com.mvc.utils.DateUtil;

import java.util.Date;

/**
 * 昌平水资源科请求对象
 */
public class CpszyResponseModel {
    //监测点代码
    private String mp_cd;

    //日期
    private String dt;

    //日水量
    private String day_w;

    //备注
    private String nt;

    //上报频率
    private String dpdtype;

    //上传单位编码
    private String aduncd;

    //前置机写入时间
    private String frontwtime;

    //前置库系统修改时间
    private String mdtime;

    public CpszyResponseModel(TAireadModel aireadModel, Date date) {
        this.nt="";//经测试,字段必须有
        this.mdtime="";//经测试,字段必须有
        this.dpdtype = "03";
        this.aduncd = "11011401";
        this.mp_cd = aireadModel.getStationCode();
        //this.day_w = aireadModel.getResultValue() ==null ? "0" : aireadModel.getResultValue().toString();
        //原来日期应该是昨天的,改为审核后转发,就直接用当日时间吧 2024-07-04 guozhao
        this.dt = DateUtil.formateDate(aireadModel.getSampleTime(), "yyyy-MM-dd");
        this.frontwtime = DateUtil.formateDate(aireadModel.getSampleTime(),"yyyy-MM-dd HH:mm:ss");
    }

    public String getMp_cd() {
        return mp_cd;
    }

    public void setMp_cd(String mp_cd) {
        this.mp_cd = mp_cd;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getDay_w() {
        return day_w;
    }

    public void setDay_w(String day_w) {
        this.day_w = day_w;
    }

    public String getNt() {
        return nt;
    }

    public void setNt(String nt) {
        this.nt = nt;
    }

    public String getDpdtype() {
        return dpdtype;
    }

    public void setDpdtype(String dpdtype) {
        this.dpdtype = dpdtype;
    }

    public String getAduncd() {
        return aduncd;
    }

    public void setAduncd(String aduncd) {
        this.aduncd = aduncd;
    }

    public String getFrontwtime() {
        return frontwtime;
    }

    public void setFrontwtime(String frontwtime) {
        this.frontwtime = frontwtime;
    }

    public String getMdtime() {
        return mdtime;
    }

    public void setMdtime(String mdtime) {
        this.mdtime = mdtime;
    }
}
