|
|
|
|
@ -25,6 +25,7 @@ |
|
|
|
|
*/ |
|
|
|
|
package org.springblade.scheduling.scheduling.controller; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
@ -34,6 +35,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
import jakarta.servlet.http.HttpServletResponse; |
|
|
|
|
import jakarta.validation.Valid; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
|
@ -60,6 +62,7 @@ import java.util.Map; |
|
|
|
|
* @author BladeX |
|
|
|
|
* @since 2025-12-22 |
|
|
|
|
*/ |
|
|
|
|
@Slf4j |
|
|
|
|
@RestController |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@RequestMapping("/equipment") |
|
|
|
|
@ -74,9 +77,15 @@ public class EquipmentController extends BladeController { |
|
|
|
|
@GetMapping("/detail") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@Operation(summary = "详情", description = "传入Equipment") |
|
|
|
|
public R<EquipmentVO> detail(EquipmentEntity equipment) { |
|
|
|
|
EquipmentEntity detail = equipmentService.getOne(Condition.getQueryWrapper(equipment)); |
|
|
|
|
return R.data(EquipmentWrapper.build().entityVO(detail)); |
|
|
|
|
public R<EquipmentEntity> detail(EquipmentEntity equipment) { |
|
|
|
|
|
|
|
|
|
log.error("设备的ID是"+equipment.getId()); |
|
|
|
|
EquipmentEntity detail = equipmentService.getById(equipment.getId()); |
|
|
|
|
log.error("设备数据000001: {}"+ detail); |
|
|
|
|
JSONObject result = JSONObject.parseObject(detail.toString()); |
|
|
|
|
log.error("设备数据: {}"+ result.toJSONString()); |
|
|
|
|
// EquipmentEntity detail = equipmentService.getOne(Condition.getQueryWrapper(equipment));
|
|
|
|
|
return R.data(detail); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 设备信息表 分页 |
|
|
|
|
|