|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.hnac.hzims.safeproduct.controller; |
|
|
|
package com.hnac.hzims.safeproduct.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
@ -26,6 +27,7 @@ import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.api.ResultCode; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -84,18 +86,13 @@ public class SafetyToolController extends BladeController { |
|
|
|
return safetyToolService.doUpdate(safetyTool); |
|
|
|
return safetyToolService.doUpdate(safetyTool); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 详情 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/detail") |
|
|
|
@GetMapping("/detail") |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
@ApiOperation(value = "详情", notes = "传入safetyTool") |
|
|
|
@ApiOperation(value = "详情", notes = "传入safetyTool") |
|
|
|
@Operate(label = "详情", type = com.hnac.hzinfo.log.contants.BusinessType.QUERY, ignore = false) |
|
|
|
@Operate(label = "详情", type = com.hnac.hzinfo.log.contants.BusinessType.QUERY, ignore = false) |
|
|
|
public R<SafetyToolVO> detail(@RequestParam("id") Long id) { |
|
|
|
public R<SafetyToolVO> detail(@RequestParam("id") Long id) { |
|
|
|
SafetyToolEntity detail = safetyToolService.getOne(Condition.getQueryWrapper(new SafetyToolEntity() {{ |
|
|
|
SafetyToolVO safetyToolVO = safetyToolService.detail(id); |
|
|
|
setId(id); |
|
|
|
return R.data(safetyToolVO); |
|
|
|
}})); |
|
|
|
|
|
|
|
return R.data(SafetyToolWrapper.build().entityVO(detail)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|