package com.glxp.api.res.thrsys; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.annotation.TableField; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data public class UdiInfoResponse { private Integer id; private String nameCode; private String packRatio; private String packLevel; private Integer bhxjsl; private Integer bhzxxsbzsl; private Integer zxxsbzbhsydysl; private String bhxjcpbm; private String sjcpbm; // private String bzcj; private String addType; private String deviceRecordKey; private String cpmctymc; private String cplb; private String flbm; private String ggxh; private String qxlb; private String tyshxydm; private String ylqxzcrbarmc; private String zczbhhzbapzbh; private String ylqxzcrbarywmc; private String sydycpbs; private String uuid; private Integer versionNumber; private Integer diType; private String thirdId; private String thirdName; private String ybbm; private String sptm; private String manufactory; private String measname; private Integer productType; private String scbssfbhph; private String scbssfbhxlh; private String scbssfbhscrq; private String scbssfbhsxrq; private String cpms; private String spmc; private String originUuid; //本地生成信息 private String batchNo; private String produceDate; private String expireDate; private String serialNo; private String udi; private String code; private Integer count; private String warehouseCode; private String udplatCode; private String relId;//关联ID主键 private Integer status; private String supId; private boolean isAdavence; /** * 采购类型 1:入账产品;2:预验收产品;3:寄售产品 */ private Integer purType; /** * 产品属性类型 0:未定义;1:设备(用于设备管理);2:耗材;3.伴随服务费 */ private Integer attributeType; /** * 产品分类高值 :1:高值耗材;2.普通耗材 */ private Integer hcType; private boolean isDisable; private boolean useMuti; private Boolean isCheck; private boolean allowNoBatch; private boolean allowNoExpire; private boolean allowNoProduct; private boolean allowNoSerial; private String price; private String cplx; private String hchzsb; //产品代理商 private String cpdls; private String basicPrductRemak1; private String basicPrductRemak2; private String basicPrductRemak3; private String basicPrductRemak4; private String basicPrductRemak5; private String basicPrductRemak6; private String basicPrductRemak7; private String basicPrductRemak8; private String basicPrductRemak9; private String basicPrductRemak10; private String basicPrductRemak11; private String basicPrductRemak12; private String basicPrductRemak13; private String remark; private String hslbName; private String catalogname1; private String catalogname2; private String catalogname3; private String matrial; private Boolean isStack; private Integer requireCost; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNameCode() { return nameCode; } public void setNameCode(String nameCode) { this.nameCode = nameCode; } public String getPackRatio() { return packRatio; } public void setPackRatio(String packRatio) { this.packRatio = packRatio; } public String getPackLevel() { return packLevel; } public void setPackLevel(String packLevel) { this.packLevel = packLevel; } public Integer getBhxjsl() { if (bhxjsl == null || bhxjsl == 0) { return 1; } return bhxjsl; } public void setBhxjsl(Integer bhxjsl) { this.bhxjsl = bhxjsl; } public Integer getBhzxxsbzsl() { if (bhzxxsbzsl == null || bhzxxsbzsl == 0) { return 1; } return bhzxxsbzsl; } public String getSptm() { return sptm; } public void setSptm(String sptm) { this.sptm = sptm; } public String getManufactory() { return manufactory; } public void setManufactory(String manufactory) { this.manufactory = manufactory; } public String getMeasname() { return measname; } public void setMeasname(String measname) { this.measname = measname; } public void setBhzxxsbzsl(Integer bhzxxsbzsl) { this.bhzxxsbzsl = bhzxxsbzsl; } public Integer getZxxsbzbhsydysl() { if (zxxsbzbhsydysl == null || zxxsbzbhsydysl == 0) { return 1; } return zxxsbzbhsydysl; } public void setZxxsbzbhsydysl(Integer zxxsbzbhsydysl) { this.zxxsbzbhsydysl = zxxsbzbhsydysl; } public String getBhxjcpbm() { return bhxjcpbm; } public void setBhxjcpbm(String bhxjcpbm) { this.bhxjcpbm = bhxjcpbm; } public String getSjcpbm() { return sjcpbm; } public void setSjcpbm(String sjcpbm) { this.sjcpbm = sjcpbm; } public String getBzcj() { return bzcj; } public void setBzcj(String bzcj) { this.bzcj = bzcj; } public String getAddType() { return addType; } public void setAddType(String addType) { this.addType = addType; } public String getDeviceRecordKey() { return deviceRecordKey; } public void setDeviceRecordKey(String deviceRecordKey) { this.deviceRecordKey = deviceRecordKey; } public String getCpmctymc() { return cpmctymc; } public void setCpmctymc(String cpmctymc) { this.cpmctymc = cpmctymc; } public String getCplb() { return cplb; } public void setCplb(String cplb) { this.cplb = cplb; } public String getFlbm() { return flbm; } public void setFlbm(String flbm) { this.flbm = flbm; } public String getGgxh() { return ggxh; } public void setGgxh(String ggxh) { this.ggxh = ggxh; } public String getQxlb() { return qxlb; } public void setQxlb(String qxlb) { this.qxlb = qxlb; } public String getTyshxydm() { return tyshxydm; } public void setTyshxydm(String tyshxydm) { this.tyshxydm = tyshxydm; } public String getYlqxzcrbarmc() { return ylqxzcrbarmc; } public void setYlqxzcrbarmc(String ylqxzcrbarmc) { this.ylqxzcrbarmc = ylqxzcrbarmc; } public String getZczbhhzbapzbh() { return zczbhhzbapzbh; } public void setZczbhhzbapzbh(String zczbhhzbapzbh) { this.zczbhhzbapzbh = zczbhhzbapzbh; } public String getYlqxzcrbarywmc() { return ylqxzcrbarywmc; } public void setYlqxzcrbarywmc(String ylqxzcrbarywmc) { this.ylqxzcrbarywmc = ylqxzcrbarywmc; } public String getSydycpbs() { return sydycpbs; } public void setSydycpbs(String sydycpbs) { this.sydycpbs = sydycpbs; } public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public Integer getVersionNumber() { return versionNumber; } public void setVersionNumber(Integer versionNumber) { this.versionNumber = versionNumber; } public Integer getDiType() { return diType; } public void setDiType(Integer diType) { this.diType = diType; } public String getThirdId() { return thirdId; } public void setThirdId(String thirdId) { this.thirdId = thirdId; } public String getThirdName() { return thirdName; } public void setThirdName(String thirdName) { this.thirdName = thirdName; } public String getBatchNo() { return batchNo; } public void setBatchNo(String batchNo) { this.batchNo = batchNo; } public String getProduceDate() { return produceDate; } public void setProduceDate(String produceDate) { this.produceDate = produceDate; } public String getExpireDate() { return expireDate; } public void setExpireDate(String expireDate) { this.expireDate = expireDate; } public String getSerialNo() { return serialNo; } public void setSerialNo(String serialNo) { this.serialNo = serialNo; } public String getUdi() { return udi; } public void setUdi(String udi) { this.udi = udi; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Integer getCount() { if (count == null) return 1; return count; } public void setCount(Integer count) { this.count = count; } public String getWarehouseCode() { return warehouseCode; } public void setWarehouseCode(String warehouseCode) { this.warehouseCode = warehouseCode; } public String getYbbm() { return ybbm; } public void setYbbm(String ybbm) { this.ybbm = ybbm; } public Boolean getCheck() { return isCheck; } public void setCheck(Boolean check) { isCheck = check; } public Integer getProductType() { return productType; } public void setProductType(Integer productType) { this.productType = productType; } public static UdiInfoResponse initUdiInfoEntity(UdiInfoResponse udiInfoEntity) { if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhph()) && "否".equals(udiInfoEntity.getScbssfbhph())) { udiInfoEntity.setAllowNoBatch(true); } if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhscrq()) && "否".equals(udiInfoEntity.getScbssfbhscrq())) { udiInfoEntity.setAllowNoProduct(true); } if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhsxrq()) && "否".equals(udiInfoEntity.getScbssfbhsxrq())) { udiInfoEntity.setAllowNoExpire(true); } return udiInfoEntity; } }