| | |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.EquipmentTypeMngQueryCriteria; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.Resource; |
| | |
| | | return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL); |
| | | } |
| | | List<Long> idList = Arrays.asList(ids); |
| | | this.equipmentTypeMngService.removeByIds(idList); |
| | | |
| | | List<EquipmentTypeMng> delList = new ArrayList<>(); |
| | | idList.forEach(f->{ |
| | | EquipmentTypeMng info = new EquipmentTypeMng(); |
| | | info.setDelFlag(1); |
| | | info.setId(f); |
| | | delList.add(info); |
| | | }); |
| | | this.equipmentTypeMngService.updateBatchById(delList); |
| | | return new ResultVO<>(ResultCodes.OK); |
| | | } |
| | | |