| | |
| | | import com.beust.jcommander.internal.Lists; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.mdc.dto.MdcDowntimeDto; |
| | |
| | | List<MdcDowntime> mdcDowntimeList = this.listByIds(Arrays.asList(mdcDowntimeVo.getDownTimeIds().split(StringPool.COMMA))); |
| | | mdcDowntimeList.forEach(mdcDowntime -> { |
| | | mdcDowntime.setReasonId(mdcDowntimeVo.getReasonId()); |
| | | mdcDowntime.setStatus(CommonConstant.DOWNTIME_STATUS_1); |
| | | }); |
| | | this.updateBatchById(mdcDowntimeList); |
| | | } |