代码备份

master
anthonyywj2 3 years ago
parent 9fc60ad295
commit 8468308a01

@ -155,12 +155,19 @@ public class Device {
@ApiModelProperty(value = "请求日期")
private Date requestDate;
@ApiModelProperty(value = "耗材或者设备")
private String hchzsb;
@ApiModelProperty(value = "产品类型")
private String cplx;
private String deviceHistoryKey;
private String deviceRecordKey;
private int versionNumber;
private String versionStatus;
private String versionTime;
public Date getRequestDate() {
return requestDate;
}

@ -6,6 +6,7 @@ import com.glxp.udidl.admin.service.inout.DeviceService;
import com.glxp.udidl.admin.service.inout.ProductInfoService;
import com.glxp.udidl.admin.service.udi.UdiCompanyService;
import com.glxp.udidl.admin.thread.UdiTransferUtils;
import com.glxp.udidl.admin.util.BeanUtils;
import com.glxp.udidl.admin.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -157,6 +158,7 @@ public class DeviceSaveService {
*/
private Device responseToDevice(DataSetResult.DeviceInfo dataSetBean) {
Device device = new Device();
BeanUtils.copyProperties(dataSetBean, device);
device.setDevicehistoryrecordkey(dataSetBean.getDeviceHistoryKey());
device.setDevicerecordkey(dataSetBean.getDeviceRecordKey());
device.setBtcpbs(dataSetBean.getBtcpbs());

Loading…
Cancel
Save