main
parent
5f4219e7e3
commit
10c392be69
26 changed files with 1197 additions and 2 deletions
@ -0,0 +1,126 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). |
||||||
|
* <p> |
||||||
|
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* <p> |
||||||
|
* http://www.gnu.org/licenses/lgpl.html
|
||||||
|
* <p> |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
package org.energy.modules.leger.controller; |
||||||
|
|
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import javax.validation.Valid; |
||||||
|
|
||||||
|
import com.dayu.daf.core.mp.support.Condition; |
||||||
|
import com.dayu.daf.core.mp.support.Query; |
||||||
|
import com.dayu.daf.core.tool.api.R; |
||||||
|
import com.dayu.daf.core.tool.utils.Func; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import org.energy.modules.leger.vo.EquipmentLedgerVO; |
||||||
|
import org.energy.modules.leger.service.IEquipmentLedgerService; |
||||||
|
import com.dayu.daf.core.boot.ctrl.DafController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览 控制器 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/equipmentledger") |
||||||
|
@Api(value = "设备台账编码一览", tags = "设备台账编码一览接口") |
||||||
|
public class EquipmentLedgerController extends DafController { |
||||||
|
|
||||||
|
private IEquipmentLedgerService equipmentLedgerService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入equipmentLedger") |
||||||
|
public R<EquipmentLedger> detail(EquipmentLedger equipmentLedger) { |
||||||
|
EquipmentLedger detail = equipmentLedgerService.getOne(Condition.getQueryWrapper(equipmentLedger)); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 分页 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入equipmentLedger") |
||||||
|
public R<IPage<EquipmentLedger>> list(EquipmentLedger equipmentLedger, Query query) { |
||||||
|
IPage<EquipmentLedger> pages = equipmentLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(equipmentLedger)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入equipmentLedger") |
||||||
|
public R<IPage<EquipmentLedgerVO>> page(EquipmentLedgerVO equipmentLedger, Query query) { |
||||||
|
IPage<EquipmentLedgerVO> pages = equipmentLedgerService.selectEquipmentLedgerPage(Condition.getPage(query), equipmentLedger); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入equipmentLedger") |
||||||
|
public R save(@Valid @RequestBody EquipmentLedger equipmentLedger) { |
||||||
|
return R.status(equipmentLedgerService.save(equipmentLedger)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 修改 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入equipmentLedger") |
||||||
|
public R update(@Valid @RequestBody EquipmentLedger equipmentLedger) { |
||||||
|
return R.status(equipmentLedgerService.updateById(equipmentLedger)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增或修改 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入equipmentLedger") |
||||||
|
public R submit(@Valid @RequestBody EquipmentLedger equipmentLedger) { |
||||||
|
return R.status(equipmentLedgerService.saveOrUpdate(equipmentLedger)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 删除 设备台账编码一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(equipmentLedgerService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,126 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). |
||||||
|
* <p> |
||||||
|
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* <p> |
||||||
|
* http://www.gnu.org/licenses/lgpl.html
|
||||||
|
* <p> |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
package org.energy.modules.leger.controller; |
||||||
|
|
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import javax.validation.Valid; |
||||||
|
|
||||||
|
import com.dayu.daf.core.mp.support.Condition; |
||||||
|
import com.dayu.daf.core.mp.support.Query; |
||||||
|
import com.dayu.daf.core.tool.api.R; |
||||||
|
import com.dayu.daf.core.tool.utils.Func; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import org.energy.modules.leger.vo.InventoryDocumentVO; |
||||||
|
import org.energy.modules.leger.service.IInventoryDocumentService; |
||||||
|
import com.dayu.daf.core.boot.ctrl.DafController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览 控制器 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/inventorydocument") |
||||||
|
@Api(value = "文档清册一览", tags = "文档清册一览接口") |
||||||
|
public class InventoryDocumentController extends DafController { |
||||||
|
|
||||||
|
private IInventoryDocumentService inventoryDocumentService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入inventoryDocument") |
||||||
|
public R<InventoryDocument> detail(InventoryDocument inventoryDocument) { |
||||||
|
InventoryDocument detail = inventoryDocumentService.getOne(Condition.getQueryWrapper(inventoryDocument)); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 分页 文档清册一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入inventoryDocument") |
||||||
|
public R<IPage<InventoryDocument>> list(InventoryDocument inventoryDocument, Query query) { |
||||||
|
IPage<InventoryDocument> pages = inventoryDocumentService.page(Condition.getPage(query), Condition.getQueryWrapper(inventoryDocument)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 文档清册一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入inventoryDocument") |
||||||
|
public R<IPage<InventoryDocumentVO>> page(InventoryDocumentVO inventoryDocument, Query query) { |
||||||
|
IPage<InventoryDocumentVO> pages = inventoryDocumentService.selectInventoryDocumentPage(Condition.getPage(query), inventoryDocument); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增 文档清册一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入inventoryDocument") |
||||||
|
public R save(@Valid @RequestBody InventoryDocument inventoryDocument) { |
||||||
|
return R.status(inventoryDocumentService.save(inventoryDocument)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 修改 文档清册一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入inventoryDocument") |
||||||
|
public R update(@Valid @RequestBody InventoryDocument inventoryDocument) { |
||||||
|
return R.status(inventoryDocumentService.updateById(inventoryDocument)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增或修改 文档清册一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入inventoryDocument") |
||||||
|
public R submit(@Valid @RequestBody InventoryDocument inventoryDocument) { |
||||||
|
return R.status(inventoryDocumentService.saveOrUpdate(inventoryDocument)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 删除 文档清册一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(inventoryDocumentService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,126 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). |
||||||
|
* <p> |
||||||
|
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* <p> |
||||||
|
* http://www.gnu.org/licenses/lgpl.html
|
||||||
|
* <p> |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
package org.energy.modules.leger.controller; |
||||||
|
|
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import javax.validation.Valid; |
||||||
|
|
||||||
|
import com.dayu.daf.core.mp.support.Condition; |
||||||
|
import com.dayu.daf.core.mp.support.Query; |
||||||
|
import com.dayu.daf.core.tool.api.R; |
||||||
|
import com.dayu.daf.core.tool.utils.Func; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import org.energy.modules.leger.vo.TechParametersVO; |
||||||
|
import org.energy.modules.leger.service.ITechParametersService; |
||||||
|
import com.dayu.daf.core.boot.ctrl.DafController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览 控制器 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/techparameters") |
||||||
|
@Api(value = "技术参数一览", tags = "技术参数一览接口") |
||||||
|
public class TechParametersController extends DafController { |
||||||
|
|
||||||
|
private ITechParametersService techParametersService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入techParameters") |
||||||
|
public R<TechParameters> detail(TechParameters techParameters) { |
||||||
|
TechParameters detail = techParametersService.getOne(Condition.getQueryWrapper(techParameters)); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 分页 技术参数一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入techParameters") |
||||||
|
public R<IPage<TechParameters>> list(TechParameters techParameters, Query query) { |
||||||
|
IPage<TechParameters> pages = techParametersService.page(Condition.getPage(query), Condition.getQueryWrapper(techParameters)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 技术参数一览 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入techParameters") |
||||||
|
public R<IPage<TechParametersVO>> page(TechParametersVO techParameters, Query query) { |
||||||
|
IPage<TechParametersVO> pages = techParametersService.selectTechParametersPage(Condition.getPage(query), techParameters); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增 技术参数一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入techParameters") |
||||||
|
public R save(@Valid @RequestBody TechParameters techParameters) { |
||||||
|
return R.status(techParametersService.save(techParameters)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 修改 技术参数一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入techParameters") |
||||||
|
public R update(@Valid @RequestBody TechParameters techParameters) { |
||||||
|
return R.status(techParametersService.updateById(techParameters)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 新增或修改 技术参数一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入techParameters") |
||||||
|
public R submit(@Valid @RequestBody TechParameters techParameters) { |
||||||
|
return R.status(techParametersService.saveOrUpdate(techParameters)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 删除 技术参数一览 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(techParametersService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
package org.energy.modules.leger.dto; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class EquipmentLedgerDTO extends EquipmentLedger { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
package org.energy.modules.leger.dto; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class InventoryDocumentDTO extends InventoryDocument { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
package org.energy.modules.leger.dto; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class TechParametersDTO extends TechParameters { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,217 @@ |
|||||||
|
package org.energy.modules.leger.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.dayu.daf.core.mp.base.BaseEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("l_equipment_ledger") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "EquipmentLedger对象", description = "设备台账编码一览") |
||||||
|
public class EquipmentLedger extends BaseEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "主键") |
||||||
|
private Integer id; |
||||||
|
/** |
||||||
|
* 设备台账编码 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备台账编码") |
||||||
|
private String eqLedgerCode; |
||||||
|
/** |
||||||
|
* 用户状态 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "用户状态") |
||||||
|
private String userStatus; |
||||||
|
/** |
||||||
|
* KKS编码 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "KKS编码") |
||||||
|
private String kksEncoding; |
||||||
|
/** |
||||||
|
* 设备种类 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备种类") |
||||||
|
private String eqType; |
||||||
|
/** |
||||||
|
* 专业 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "专业") |
||||||
|
private String major; |
||||||
|
/** |
||||||
|
* 计划员组 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "计划员组") |
||||||
|
private String plannerGroup; |
||||||
|
/** |
||||||
|
* 计划工厂 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "计划工厂") |
||||||
|
private String plannedFactory; |
||||||
|
/** |
||||||
|
* 设备定级 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备定级") |
||||||
|
private String eqRank; |
||||||
|
/** |
||||||
|
* 设备责任人姓名 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备责任人姓名") |
||||||
|
private String eqResponsibleName; |
||||||
|
/** |
||||||
|
* 制造商 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "制造商") |
||||||
|
private String manufacturer; |
||||||
|
/** |
||||||
|
* 制造商国家 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "制造商国家") |
||||||
|
private String manufacturerCountry; |
||||||
|
/** |
||||||
|
* 供应商 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "供应商") |
||||||
|
private String supplier; |
||||||
|
/** |
||||||
|
* 型号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "型号") |
||||||
|
private String model; |
||||||
|
/** |
||||||
|
* 出厂编号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "出厂编号") |
||||||
|
private String factoryNo; |
||||||
|
/** |
||||||
|
* 出厂日期 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "出厂日期") |
||||||
|
private String productionDate; |
||||||
|
/** |
||||||
|
* 安装日期 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "安装日期") |
||||||
|
private String installDate; |
||||||
|
/** |
||||||
|
* 调试单位 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "调试单位") |
||||||
|
private String debuggingUnit; |
||||||
|
/** |
||||||
|
* 设备分类 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备分类") |
||||||
|
private String eqClass; |
||||||
|
/** |
||||||
|
* 图纸编码 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "图纸编码") |
||||||
|
private String drawingCode; |
||||||
|
/** |
||||||
|
* 设备描述 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备描述") |
||||||
|
private String deviceDescription; |
||||||
|
/** |
||||||
|
* KKS描述 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "KKS描述") |
||||||
|
private String kksDescription; |
||||||
|
/** |
||||||
|
* 场站 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "场站") |
||||||
|
private String station; |
||||||
|
/** |
||||||
|
* 系统状态 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "系统状态") |
||||||
|
private String systemState; |
||||||
|
/** |
||||||
|
* 工厂区域 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "工厂区域") |
||||||
|
private String factoryArea; |
||||||
|
/** |
||||||
|
* 资产编码 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "资产编码") |
||||||
|
private String assetCode; |
||||||
|
/** |
||||||
|
* 设备责任人工号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备责任人工号") |
||||||
|
private String eqResponsibleNo; |
||||||
|
/** |
||||||
|
* 检修班组 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "检修班组") |
||||||
|
private String maintenanceTeam; |
||||||
|
/** |
||||||
|
* 制造商零件号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "制造商零件号") |
||||||
|
private String manufacturerPartNo; |
||||||
|
/** |
||||||
|
* 制造年月 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "制造年月") |
||||||
|
private String manufactureDate; |
||||||
|
/** |
||||||
|
* 大小尺寸 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "大小尺寸") |
||||||
|
private String sizeAndSize; |
||||||
|
/** |
||||||
|
* 制造序列号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "制造序列号") |
||||||
|
private String manufacturingSerialNo; |
||||||
|
/** |
||||||
|
* 设计单位 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设计单位") |
||||||
|
private String designUnit; |
||||||
|
/** |
||||||
|
* 对象重量 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "对象重量") |
||||||
|
private String objectWeight; |
||||||
|
/** |
||||||
|
* 投运日期 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "投运日期") |
||||||
|
private String operationDate; |
||||||
|
/** |
||||||
|
* 安装单位 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "安装单位") |
||||||
|
private String installationUnit; |
||||||
|
/** |
||||||
|
* 安装位置 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "安装位置") |
||||||
|
private String installationLocation; |
||||||
|
/** |
||||||
|
* 成本中心 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "成本中心") |
||||||
|
private String costCenter; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,87 @@ |
|||||||
|
package org.energy.modules.leger.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.dayu.daf.core.mp.base.BaseEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("l_inventory_document") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "InventoryDocument对象", description = "文档清册一览") |
||||||
|
public class InventoryDocument extends BaseEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "主键") |
||||||
|
private Integer id; |
||||||
|
/** |
||||||
|
* 设备台账主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备台账主键") |
||||||
|
private Integer eqLedgerId; |
||||||
|
/** |
||||||
|
* 工器具编码主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "工器具编码主键") |
||||||
|
private Integer toolsCodeId; |
||||||
|
/** |
||||||
|
* 标题 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "标题") |
||||||
|
private String title; |
||||||
|
/** |
||||||
|
* 作者 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "作者") |
||||||
|
private String author; |
||||||
|
/** |
||||||
|
* 日期 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "日期") |
||||||
|
private String date; |
||||||
|
/** |
||||||
|
* 页数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "页数") |
||||||
|
private Integer page; |
||||||
|
/** |
||||||
|
* 关键字 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "关键字") |
||||||
|
private String keyword; |
||||||
|
/** |
||||||
|
* 主题 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "主题") |
||||||
|
private String thead; |
||||||
|
/** |
||||||
|
* 附件地址 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "附件地址") |
||||||
|
private String accessoryPath; |
||||||
|
/** |
||||||
|
* 附件名称 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "附件名称") |
||||||
|
private String accessoryName; |
||||||
|
/** |
||||||
|
* 原附件名称 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "原附件名称") |
||||||
|
private String prAccessoryName; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,57 @@ |
|||||||
|
package org.energy.modules.leger.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.dayu.daf.core.mp.base.BaseEntity; |
||||||
|
import java.io.Serializable; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("l_tech_parameters") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "TechParameters对象", description = "技术参数一览") |
||||||
|
public class TechParameters extends BaseEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "主键") |
||||||
|
private Integer id; |
||||||
|
/** |
||||||
|
* 设备台账编码主键 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "设备台账编码主键") |
||||||
|
private Integer eqLedgerId; |
||||||
|
/** |
||||||
|
* 分类 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "分类") |
||||||
|
private String classification; |
||||||
|
/** |
||||||
|
* 分类描述 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "分类描述") |
||||||
|
private String description; |
||||||
|
/** |
||||||
|
* 技术参数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "技术参数") |
||||||
|
private String techParameters; |
||||||
|
/** |
||||||
|
* 参数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "参数") |
||||||
|
private String parameters; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
package org.energy.modules.leger.mapper; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import org.energy.modules.leger.vo.EquipmentLedgerVO; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览 Mapper 接口 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface EquipmentLedgerMapper extends BaseMapper<EquipmentLedger> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param equipmentLedger |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<EquipmentLedgerVO> selectEquipmentLedgerPage(IPage page, EquipmentLedgerVO equipmentLedger); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,58 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.energy.modules.leger.mapper.EquipmentLedgerMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="equipmentLedgerResultMap" type="org.energy.modules.leger.entity.EquipmentLedger"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="status" property="status"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="eq_ledger_code" property="eqLedgerCode"/> |
||||||
|
<result column="user_status" property="userStatus"/> |
||||||
|
<result column="kks_encoding" property="kksEncoding"/> |
||||||
|
<result column="eq_type" property="eqType"/> |
||||||
|
<result column="major" property="major"/> |
||||||
|
<result column="planner_group" property="plannerGroup"/> |
||||||
|
<result column="planned_factory" property="plannedFactory"/> |
||||||
|
<result column="eq_rank" property="eqRank"/> |
||||||
|
<result column="eq_responsible_name" property="eqResponsibleName"/> |
||||||
|
<result column="manufacturer" property="manufacturer"/> |
||||||
|
<result column="manufacturer_country" property="manufacturerCountry"/> |
||||||
|
<result column="supplier" property="supplier"/> |
||||||
|
<result column="model" property="model"/> |
||||||
|
<result column="factory_no" property="factoryNo"/> |
||||||
|
<result column="production_date" property="productionDate"/> |
||||||
|
<result column="install_date" property="installDate"/> |
||||||
|
<result column="debugging_unit" property="debuggingUnit"/> |
||||||
|
<result column="eq_class" property="eqClass"/> |
||||||
|
<result column="drawing_code" property="drawingCode"/> |
||||||
|
<result column="device_description" property="deviceDescription"/> |
||||||
|
<result column="kks_description" property="kksDescription"/> |
||||||
|
<result column="station" property="station"/> |
||||||
|
<result column="system_state" property="systemState"/> |
||||||
|
<result column="factory_area" property="factoryArea"/> |
||||||
|
<result column="asset_code" property="assetCode"/> |
||||||
|
<result column="eq_responsible_no" property="eqResponsibleNo"/> |
||||||
|
<result column="maintenance_team" property="maintenanceTeam"/> |
||||||
|
<result column="manufacturer_part_no" property="manufacturerPartNo"/> |
||||||
|
<result column="manufacture_date" property="manufactureDate"/> |
||||||
|
<result column="size_and_size" property="sizeAndSize"/> |
||||||
|
<result column="manufacturing_serial_no" property="manufacturingSerialNo"/> |
||||||
|
<result column="design_unit" property="designUnit"/> |
||||||
|
<result column="object_weight" property="objectWeight"/> |
||||||
|
<result column="operation_date" property="operationDate"/> |
||||||
|
<result column="installation_unit" property="installationUnit"/> |
||||||
|
<result column="installation_location" property="installationLocation"/> |
||||||
|
<result column="cost_center" property="costCenter"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectEquipmentLedgerPage" resultMap="equipmentLedgerResultMap"> |
||||||
|
select * from l_equipment_ledger where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,26 @@ |
|||||||
|
package org.energy.modules.leger.mapper; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import org.energy.modules.leger.vo.InventoryDocumentVO; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览 Mapper 接口 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface InventoryDocumentMapper extends BaseMapper<InventoryDocument> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param inventoryDocument |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<InventoryDocumentVO> selectInventoryDocumentPage(IPage page, InventoryDocumentVO inventoryDocument); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,31 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.energy.modules.leger.mapper.InventoryDocumentMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="inventoryDocumentResultMap" type="org.energy.modules.leger.entity.InventoryDocument"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="eq_ledger_id" property="eqLedgerId"/> |
||||||
|
<result column="tools_code_id" property="toolsCodeId"/> |
||||||
|
<result column="title" property="title"/> |
||||||
|
<result column="author" property="author"/> |
||||||
|
<result column="date" property="date"/> |
||||||
|
<result column="page" property="page"/> |
||||||
|
<result column="keyword" property="keyword"/> |
||||||
|
<result column="thead" property="thead"/> |
||||||
|
<result column="accessory_path" property="accessoryPath"/> |
||||||
|
<result column="accessory_name" property="accessoryName"/> |
||||||
|
<result column="pr_accessory_name" property="prAccessoryName"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectInventoryDocumentPage" resultMap="inventoryDocumentResultMap"> |
||||||
|
select * from l_inventory_document where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,26 @@ |
|||||||
|
package org.energy.modules.leger.mapper; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import org.energy.modules.leger.vo.TechParametersVO; |
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览 Mapper 接口 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface TechParametersMapper extends BaseMapper<TechParameters> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param techParameters |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<TechParametersVO> selectTechParametersPage(IPage page, TechParametersVO techParameters); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.energy.modules.leger.mapper.TechParametersMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="techParametersResultMap" type="org.energy.modules.leger.entity.TechParameters"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="eq_ledger_id" property="eqLedgerId"/> |
||||||
|
<result column="classification" property="classification"/> |
||||||
|
<result column="description" property="description"/> |
||||||
|
<result column="tech_parameters" property="techParameters"/> |
||||||
|
<result column="parameters" property="parameters"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectTechParametersPage" resultMap="techParametersResultMap"> |
||||||
|
select * from l_tech_parameters where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import org.energy.modules.leger.vo.EquipmentLedgerVO; |
||||||
|
import com.dayu.daf.core.mp.base.BaseService; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览 服务类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface IEquipmentLedgerService extends BaseService<EquipmentLedger> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param equipmentLedger |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<EquipmentLedgerVO> selectEquipmentLedgerPage(IPage<EquipmentLedgerVO> page, EquipmentLedgerVO equipmentLedger); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import org.energy.modules.leger.vo.InventoryDocumentVO; |
||||||
|
import com.dayu.daf.core.mp.base.BaseService; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览 服务类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface IInventoryDocumentService extends BaseService<InventoryDocument> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param inventoryDocument |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<InventoryDocumentVO> selectInventoryDocumentPage(IPage<InventoryDocumentVO> page, InventoryDocumentVO inventoryDocument); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import org.energy.modules.leger.vo.TechParametersVO; |
||||||
|
import com.dayu.daf.core.mp.base.BaseService; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览 服务类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
public interface ITechParametersService extends BaseService<TechParameters> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param techParameters |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<TechParametersVO> selectTechParametersPage(IPage<TechParametersVO> page, TechParametersVO techParameters); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service.impl; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import org.energy.modules.leger.vo.EquipmentLedgerVO; |
||||||
|
import org.energy.modules.leger.mapper.EquipmentLedgerMapper; |
||||||
|
import org.energy.modules.leger.service.IEquipmentLedgerService; |
||||||
|
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览 服务实现类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class EquipmentLedgerServiceImpl extends BaseServiceImpl<EquipmentLedgerMapper, EquipmentLedger> implements IEquipmentLedgerService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<EquipmentLedgerVO> selectEquipmentLedgerPage(IPage<EquipmentLedgerVO> page, EquipmentLedgerVO equipmentLedger) { |
||||||
|
return page.setRecords(baseMapper.selectEquipmentLedgerPage(page, equipmentLedger)); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service.impl; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import org.energy.modules.leger.vo.InventoryDocumentVO; |
||||||
|
import org.energy.modules.leger.mapper.InventoryDocumentMapper; |
||||||
|
import org.energy.modules.leger.service.IInventoryDocumentService; |
||||||
|
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览 服务实现类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class InventoryDocumentServiceImpl extends BaseServiceImpl<InventoryDocumentMapper, InventoryDocument> implements IInventoryDocumentService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<InventoryDocumentVO> selectInventoryDocumentPage(IPage<InventoryDocumentVO> page, InventoryDocumentVO inventoryDocument) { |
||||||
|
return page.setRecords(baseMapper.selectInventoryDocumentPage(page, inventoryDocument)); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
package org.energy.modules.leger.service.impl; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import org.energy.modules.leger.vo.TechParametersVO; |
||||||
|
import org.energy.modules.leger.mapper.TechParametersMapper; |
||||||
|
import org.energy.modules.leger.service.ITechParametersService; |
||||||
|
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览 服务实现类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class TechParametersServiceImpl extends BaseServiceImpl<TechParametersMapper, TechParameters> implements ITechParametersService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<TechParametersVO> selectTechParametersPage(IPage<TechParametersVO> page, TechParametersVO techParameters) { |
||||||
|
return page.setRecords(baseMapper.selectTechParametersPage(page, techParameters)); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package org.energy.modules.leger.vo; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.EquipmentLedger; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设备台账编码一览视图实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "EquipmentLedgerVO对象", description = "设备台账编码一览") |
||||||
|
public class EquipmentLedgerVO extends EquipmentLedger { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package org.energy.modules.leger.vo; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.InventoryDocument; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* 文档清册一览视图实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "InventoryDocumentVO对象", description = "文档清册一览") |
||||||
|
public class InventoryDocumentVO extends InventoryDocument { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
package org.energy.modules.leger.vo; |
||||||
|
|
||||||
|
import org.energy.modules.leger.entity.TechParameters; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* 技术参数一览视图实体类 |
||||||
|
* |
||||||
|
* @author Daf |
||||||
|
* @since 2024-07-04 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "TechParametersVO对象", description = "技术参数一览") |
||||||
|
public class TechParametersVO extends TechParameters { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue