|
|
@ -33,6 +33,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.EquipmentLedger; |
|
|
|
import org.energy.modules.leger.entity.TechParameters; |
|
|
|
import org.energy.modules.leger.entity.TechParameters; |
|
|
|
import org.energy.modules.leger.excel.ToolInventoryRecordExcel; |
|
|
|
import org.energy.modules.leger.excel.ToolInventoryRecordExcel; |
|
|
|
import org.energy.modules.leger.service.*; |
|
|
|
import org.energy.modules.leger.service.*; |
|
|
@ -221,14 +222,26 @@ public class ToolInventoryRecordController extends DafController { |
|
|
|
EasyExcel.write(response.getOutputStream(), ToolInventoryRecordExcel.class).sheet("工器具台账").doWrite(list); |
|
|
|
EasyExcel.write(response.getOutputStream(), ToolInventoryRecordExcel.class).sheet("工器具台账").doWrite(list); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
/** |
|
|
|
// * 删除 检验标准一览
|
|
|
|
* 获取对象编号 |
|
|
|
// */
|
|
|
|
*/ |
|
|
|
// @GetMapping("/del")
|
|
|
|
@GetMapping("/getToolsCodeIdList") |
|
|
|
// @ApiOperationSupport(order = 9)
|
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
// @ApiOperation(value = "逻辑删除", notes = "传入eqLedgerId")
|
|
|
|
@ApiOperation(value = "获取工器具编码", notes = "获取工器具编码") |
|
|
|
// public R del(@ApiParam(value = "主键集合", required = true) @RequestParam Integer eqLedgerId) {
|
|
|
|
public R<List<ToolInventoryRecord>> getToolsCodeIdList() { |
|
|
|
// return R.status(toolInventoryRecordService.delTechParameters(eqLedgerId));
|
|
|
|
List<ToolInventoryRecord> kksList = toolInventoryRecordService.getToolsCodeIdList(); |
|
|
|
// }
|
|
|
|
return R.data(kksList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取对象编号 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/getDetailList") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
|
|
|
@ApiOperation(value = "获取工器具信息", notes = "获取工器具信息") |
|
|
|
|
|
|
|
public R<ToolInventoryRecord> getDetailList(String toolsCodeId) { |
|
|
|
|
|
|
|
ToolInventoryRecord DetailList = toolInventoryRecordService.getDetailList("'" + toolsCodeId + "'"); |
|
|
|
|
|
|
|
return R.data(DetailList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|