|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
package com.cjy.traceability.module.traceability.controller.admin.block; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.cjy.traceability.framework.operatelog.core.enums.OperateTypeEnum; |
|
|
|
|
import com.cjy.traceability.module.traceability.dal.dataobject.block.BlockCropDO; |
|
|
|
|
import org.aspectj.apache.bcel.generic.RET; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -109,8 +110,8 @@ public class BlockController { |
|
|
|
|
|
|
|
|
|
@GetMapping("/all") |
|
|
|
|
@Operation(summary = "查询全部地块信息") |
|
|
|
|
public CommonResult<List<BlockRespVO>> selectAllBlock(@RequestParam(value = "baseId", required = false) Integer baseId){ |
|
|
|
|
List<BlockDO> list = blockService.getBlockList(baseId); |
|
|
|
|
public CommonResult<List<BlockRespVO>> selectAllBlock(@RequestParam(value = "baseId") Integer baseId,@RequestParam(value="status") Integer status){ |
|
|
|
|
List<BlockDO> list = blockService.getBlockList(baseId,status); |
|
|
|
|
return success(BeanUtils.toBean(list, BlockRespVO.class)); |
|
|
|
|
} |
|
|
|
|
} |