bug修改
This commit is contained in:
parent
c1c33b9a1b
commit
d724494314
@ -1,8 +1,10 @@
|
||||
package com.zhgd.xmgl.modules.environment.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@ -10,6 +12,8 @@ import java.util.Date;
|
||||
@ApiModel(description = "今日PM10数据")
|
||||
public class Pm10TodayData {
|
||||
@ApiModelProperty(value = "数据上传时间")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date uploadDate;
|
||||
@ApiModelProperty(value = "PM10数据")
|
||||
private Double pm10;
|
||||
|
||||
@ -240,7 +240,7 @@ public class ProjectWorkerApiController {
|
||||
workerInfo.setAttendanceNumber(uuid);
|
||||
workerInfoService.save(workerInfo);
|
||||
} else {
|
||||
if (workerVo.getOnlyCreate() == 0) {
|
||||
if (workerVo.getOnlyCreate() == null || workerVo.getOnlyCreate() == 0) {
|
||||
workerInfo.setId(oldWorkerInfo.getId());
|
||||
workerInfoService.updateById(workerInfo);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user