|
|
@ -26,6 +26,7 @@ import com.dayu.daf.core.mp.support.Condition; |
|
|
|
import com.dayu.daf.core.mp.support.Query; |
|
|
|
import com.dayu.daf.core.mp.support.Query; |
|
|
|
import com.dayu.daf.core.tool.api.R; |
|
|
|
import com.dayu.daf.core.tool.api.R; |
|
|
|
import com.dayu.daf.core.tool.utils.Func; |
|
|
|
import com.dayu.daf.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.energy.modules.leger.entity.InventoryDocument; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
@ -34,6 +35,8 @@ import org.energy.modules.leger.vo.InspectionStandardsVO; |
|
|
|
import org.energy.modules.leger.service.IInspectionStandardsService; |
|
|
|
import org.energy.modules.leger.service.IInspectionStandardsService; |
|
|
|
import com.dayu.daf.core.boot.ctrl.DafController; |
|
|
|
import com.dayu.daf.core.boot.ctrl.DafController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 检验标准一览 控制器 |
|
|
|
* 检验标准一览 控制器 |
|
|
|
* |
|
|
|
* |
|
|
@ -122,5 +125,25 @@ public class InspectionStandardsController extends DafController { |
|
|
|
return R.status(inspectionStandardsService.deleteLogic(Func.toLongList(ids))); |
|
|
|
return R.status(inspectionStandardsService.deleteLogic(Func.toLongList(ids))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 列表 检验标准一览 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/getList") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
|
|
|
|
@ApiOperation(value = "列表", notes = "传入inspectionStandards") |
|
|
|
|
|
|
|
public R<List<InspectionStandards>> getList(InspectionStandards inspectionStandards) { |
|
|
|
|
|
|
|
List<InspectionStandards> list = inspectionStandardsService.list(Condition.getQueryWrapper(inspectionStandards)); |
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 删除 检验标准一览 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/del") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入toolscodeid") |
|
|
|
|
|
|
|
public R del(@ApiParam(value = "主键集合", required = true) @RequestParam Integer toolsCodeId) { |
|
|
|
|
|
|
|
return R.status(inspectionStandardsService.delInspectionStandards(toolsCodeId)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|