|
@@ -25,6 +25,7 @@ import cn.iocoder.yudao.module.pms.service.iotopeationfill.IotOpeationFillServic
|
|
|
import cn.iocoder.yudao.module.pms.service.yanfan.YfDeviceService;
|
|
|
import cn.iocoder.yudao.module.system.service.dept.DeptService;
|
|
|
import com.aliyun.tea.utils.StringUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
@@ -309,6 +310,17 @@ public class IotOpeationFillController {
|
|
|
}
|
|
|
|
|
|
PageResult<IotOpeationFillOrderDO> fillList = iotOpeationFillService.fillList2(pageReqVO,idList);
|
|
|
+ // 处理时间字段
|
|
|
+ if (fillList != null && CollectionUtils.isNotEmpty(fillList.getList())) {
|
|
|
+ for (IotOpeationFillOrderDO record : fillList.getList()) {
|
|
|
+ LocalDateTime createTime = record.getCreateTime();
|
|
|
+ LocalDateTime updateTime = record.getUpdateTime();
|
|
|
+
|
|
|
+ if (createTime != null && updateTime != null && createTime.isEqual(updateTime)) {
|
|
|
+ record.setUpdateTime(null); // 相等时将updateTime置为null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return success(BeanUtils.toBean(fillList, IotOpeationFillOrderDO.class));
|
|
|
}
|