提交 f89d4c41 authored 作者: 133's avatar 133

t

上级 2aab7f5a
...@@ -45,6 +45,13 @@ public class DeviceLogDto { ...@@ -45,6 +45,13 @@ public class DeviceLogDto {
@ApiModelProperty(value = "操作时间") @ApiModelProperty(value = "操作时间")
private Date createTime; private Date createTime;
public DeviceLogDto(Integer deviceId, String remark, List<FileVo> fileVoList, Integer createUserId) {
this.deviceId = deviceId;
this.remark = remark;
this.fileVoList = fileVoList;
this.createUserId = createUserId;
}
public DeviceLogDto(Integer deviceId, String remark, List<FileVo> fileVoList) { public DeviceLogDto(Integer deviceId, String remark, List<FileVo> fileVoList) {
this.deviceId = deviceId; this.deviceId = deviceId;
this.remark = remark; this.remark = remark;
...@@ -66,6 +73,9 @@ public class DeviceLogDto { ...@@ -66,6 +73,9 @@ public class DeviceLogDto {
deviceLog.setType(this.type); deviceLog.setType(this.type);
deviceLog.setDeviceId(this.deviceId); deviceLog.setDeviceId(this.deviceId);
deviceLog.setRemark(this.remark); deviceLog.setRemark(this.remark);
if (this.createUserId!=null){
deviceLog.setCreateUserId(createUserId);
}
StringBuffer stringBuffer = new StringBuffer(); StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("Ǵ"); stringBuffer.append("Ǵ");
if (this.fileVoList != null && this.fileVoList.size() > 0) { if (this.fileVoList != null && this.fileVoList.size() > 0) {
......
...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.modelmapper.ModelMapper; import org.modelmapper.ModelMapper;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -23,6 +24,7 @@ import java.util.List; ...@@ -23,6 +24,7 @@ import java.util.List;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Slf4j
public class TaskBto { public class TaskBto {
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")
...@@ -134,6 +136,7 @@ public class TaskBto { ...@@ -134,6 +136,7 @@ public class TaskBto {
if (userPublicService != null && this.createUserId != null) { if (userPublicService != null && this.createUserId != null) {
taskUserVo.setStartUnit(userPublicService.findUnitsNameByUserId(this.createUserId)); taskUserVo.setStartUnit(userPublicService.findUnitsNameByUserId(this.createUserId));
} }
log.info("----{}",this.billStatus);
taskUserVo.setStatus(GlobalMap.getStatusEnumMap().get(this.billStatus).name); taskUserVo.setStatus(GlobalMap.getStatusEnumMap().get(this.billStatus).name);
return taskUserVo; return taskUserVo;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论