| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.mdm.basesetting.machine.MachineGroupService; |
| | | import org.springblade.mdm.basesetting.machine.entity.MachineGroup; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/machinegroup") |
| | | @Tag(name = "机床组", description = "机床组") |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @Operation(summary = "删除", description = "删除") |
| | | @PostMapping("/remove") |
| | | public R<Void> remove(@RequestParam String ids) { |
| | | try { |
| | | grpService.removeGroups(Func.toLongList(ids)); |
| | | } catch (Exception e) { |
| | | log.error("删除异常",e); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | @Operation(summary = "分页查询", description = "名称或编码") |