# Conflicts: # src/main/java/org/energy/modules/inspection/controller/InspectionPlanController.java # src/main/java/org/energy/modules/inspection/controller/InspectionRouteController.javamain
commit
1fcdd5e77a
25 changed files with 1218 additions and 28 deletions
@ -0,0 +1,142 @@ |
||||
/** |
||||
* 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.smart.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.energy.modules.leger.entity.TechParameters; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import org.energy.modules.smart.vo.WorkPermitAttachmentVO; |
||||
import org.energy.modules.smart.service.IWorkPermitAttachmentService; |
||||
import com.dayu.daf.core.boot.ctrl.DafController; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作票附票一览 控制器 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/smart/workpermitattachment") |
||||
@Api(value = "工作票附票一览", tags = "工作票附票一览接口") |
||||
public class WorkPermitAttachmentController extends DafController { |
||||
|
||||
private IWorkPermitAttachmentService workPermitAttachmentService; |
||||
|
||||
/** |
||||
* 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入workPermitAttachment") |
||||
public R<WorkPermitAttachment> detail(WorkPermitAttachment workPermitAttachment) { |
||||
WorkPermitAttachment detail = workPermitAttachmentService.getOne(Condition.getQueryWrapper(workPermitAttachment)); |
||||
return R.data(detail); |
||||
} |
||||
|
||||
/** |
||||
* 分页 工作票附票一览 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入workPermitAttachment") |
||||
public R<IPage<WorkPermitAttachment>> list(WorkPermitAttachment workPermitAttachment, Query query) { |
||||
IPage<WorkPermitAttachment> pages = workPermitAttachmentService.page(Condition.getPage(query), Condition.getQueryWrapper(workPermitAttachment)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 自定义分页 工作票附票一览 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入workPermitAttachment") |
||||
public R<IPage<WorkPermitAttachmentVO>> page(WorkPermitAttachmentVO workPermitAttachment, Query query) { |
||||
IPage<WorkPermitAttachmentVO> pages = workPermitAttachmentService.selectWorkPermitAttachmentPage(Condition.getPage(query), workPermitAttachment); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 新增 工作票附票一览 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入workPermitAttachment") |
||||
public R save(@Valid @RequestBody WorkPermitAttachment workPermitAttachment) { |
||||
return R.status(workPermitAttachmentService.save(workPermitAttachment)); |
||||
} |
||||
|
||||
/** |
||||
* 修改 工作票附票一览 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入workPermitAttachment") |
||||
public R update(@Valid @RequestBody WorkPermitAttachment workPermitAttachment) { |
||||
return R.status(workPermitAttachmentService.updateById(workPermitAttachment)); |
||||
} |
||||
|
||||
/** |
||||
* 新增或修改 工作票附票一览 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入workPermitAttachment") |
||||
public R submit(@Valid @RequestBody WorkPermitAttachment workPermitAttachment) { |
||||
String ticketNo =workPermitAttachment.getTicketCode(); |
||||
Integer ticketType =workPermitAttachment.getTicketType(); |
||||
Integer maxNo= workPermitAttachmentService.getCount(workPermitAttachment.getWorkTicketNo())+1; |
||||
String ticketIndex =String.format("%02d", maxNo); |
||||
workPermitAttachment.setTicketCode(ticketNo + ticketType.toString() + ticketIndex); |
||||
return R.status(workPermitAttachmentService.saveOrUpdate(workPermitAttachment)); |
||||
} |
||||
|
||||
/** |
||||
* 删除 工作票附票一览 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(workPermitAttachmentService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* 列表 技术参数一览 |
||||
*/ |
||||
@GetMapping("/getList") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "列表", notes = "workPermitAttachment") |
||||
public R<List<WorkPermitAttachment>> getList(WorkPermitAttachment workPermitAttachment) { |
||||
List<WorkPermitAttachment> list = workPermitAttachmentService.list(Condition.getQueryWrapper(workPermitAttachment)); |
||||
return R.data(list); |
||||
} |
||||
} |
@ -0,0 +1,253 @@ |
||||
/** |
||||
* 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.smart.controller; |
||||
|
||||
import com.alibaba.excel.EasyExcel; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.dayu.daf.core.log.annotation.ApiLog; |
||||
import com.dayu.daf.core.tool.constant.DafConstant; |
||||
import com.xkcoding.http.util.StringUtil; |
||||
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.servlet.http.HttpServletResponse; |
||||
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 lombok.SneakyThrows; |
||||
import org.apache.commons.codec.Charsets; |
||||
import org.energy.modules.leger.entity.EquipmentLedger; |
||||
import org.energy.modules.leger.excel.EquipmentLedgerExcel; |
||||
import org.energy.modules.smart.excel.WorkOrderExcel; |
||||
import org.energy.modules.smart.excel.WorkPermitExcel; |
||||
import org.energy.modules.smart.service.IWorkPermitAttachmentService; |
||||
import org.energy.modules.smart.vo.WorkOrderVO; |
||||
import org.energy.modules.system.util.DataUtils; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import org.energy.modules.smart.vo.WorkPermitVO; |
||||
import org.energy.modules.smart.service.IWorkPermitService; |
||||
import com.dayu.daf.core.boot.ctrl.DafController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
import java.net.URLEncoder; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 工作票一览 控制器 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/smart/workpermit") |
||||
@Api(value = "工作票一览", tags = "工作票一览接口") |
||||
public class WorkPermitController extends DafController { |
||||
|
||||
private IWorkPermitService workPermitService; |
||||
private IWorkPermitAttachmentService workPermitAttachmentService; |
||||
|
||||
/** |
||||
* 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入workPermit") |
||||
public R<WorkPermit> detail(WorkPermit workPermit) { |
||||
WorkPermit detail = workPermitService.getOne(Condition.getQueryWrapper(workPermit)); |
||||
return R.data(detail); |
||||
} |
||||
|
||||
/** |
||||
* 分页 工作票一览 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入workPermit") |
||||
public R<IPage<WorkPermit>> list(WorkPermit workPermit, Query query) { |
||||
QueryWrapper<WorkPermit> qw = new QueryWrapper<>(); |
||||
qw.orderByAsc("eq_ledger_code"); |
||||
//场站
|
||||
if (null != workPermit.getStations()) { |
||||
qw.lambda().eq(WorkPermit::getStations, workPermit.getStations()); |
||||
} |
||||
//工作票编号
|
||||
if (StringUtil.isNotEmpty(workPermit.getWorkTicketNo())) { |
||||
qw.lambda().like(WorkPermit::getWorkTicketNo, workPermit.getWorkTicketNo()); |
||||
} |
||||
//工作票类型
|
||||
if (StringUtil.isNotEmpty(workPermit.getWorkTicketType())) { |
||||
qw.lambda().like(WorkPermit::getWorkTicketType, workPermit.getWorkTicketType()); |
||||
} |
||||
//状态
|
||||
if (null != workPermit.getWorkState()) { |
||||
qw.lambda().eq(WorkPermit::getWorkState, workPermit.getWorkState()); |
||||
} |
||||
//许可人
|
||||
if (StringUtil.isNotEmpty(workPermit.getLicensors())) { |
||||
qw.lambda().like(WorkPermit::getLicensors, workPermit.getLicensors()); |
||||
} |
||||
//签发人
|
||||
if (StringUtil.isNotEmpty(workPermit.getIssuer())) { |
||||
qw.lambda().like(WorkPermit::getIssuer, workPermit.getIssuer()); |
||||
} |
||||
//计划开始时间
|
||||
if (StringUtil.isNotEmpty(workPermit.getPlanStartDate())) { |
||||
qw.lambda().like(WorkPermit::getPlanStartDate, workPermit.getPlanStartDate()); |
||||
} |
||||
//工作负责人
|
||||
if (StringUtil.isNotEmpty(workPermit.getWorkChargePerson())) { |
||||
qw.lambda().like(WorkPermit::getWorkChargePerson, workPermit.getWorkChargePerson()); |
||||
} |
||||
IPage<WorkPermit> pages = workPermitService.page(Condition.getPage(query), Condition.getQueryWrapper(workPermit)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 自定义分页 工作票一览 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入workPermit") |
||||
public R<IPage<WorkPermitVO>> page(WorkPermitVO workPermit, Query query) { |
||||
IPage<WorkPermitVO> pages = workPermitService.selectWorkPermitPage(Condition.getPage(query), workPermit); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 新增 工作票一览 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入workPermit") |
||||
public R save(@Valid @RequestBody WorkPermit workPermit) { |
||||
return R.status(workPermitService.save(workPermit)); |
||||
} |
||||
|
||||
/** |
||||
* 修改 工作票一览 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入workPermit") |
||||
public R update(@Valid @RequestBody WorkPermit workPermit) { |
||||
return R.status(workPermitService.updateById(workPermit)); |
||||
} |
||||
|
||||
/** |
||||
* 新增或修改 工作票一览 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入workPermit") |
||||
public R submit(@Valid @RequestBody WorkPermit workPermit) { |
||||
return R.status(workPermitService.saveOrUpdate(workPermit)); |
||||
} |
||||
|
||||
/** |
||||
* 删除 工作票一览 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
for (String id : ids.split(",")) { |
||||
workPermitAttachmentService.delWorkPermitAttachment(Long.parseLong(id)); |
||||
} |
||||
return R.status(workPermitService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* 审核 工作票一览 |
||||
*/ |
||||
@PostMapping("/auditing") |
||||
@ApiOperationSupport(order = 8) |
||||
@ApiOperation(value = "更新", notes = "传入ids") |
||||
public R auditing(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return this.approve(2,ids); |
||||
} |
||||
|
||||
/** |
||||
* 驳回 工作票一览 |
||||
*/ |
||||
@PostMapping("/reject") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "更新", notes = "传入ids") |
||||
public R reject(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return this.approve(3,ids); |
||||
} |
||||
|
||||
/** |
||||
* 驳回OR审核 工作票一览 |
||||
*/ |
||||
public R approve(Integer status, String ids) { |
||||
List<WorkPermit> list = new ArrayList<>(); |
||||
for (String id : ids.split(",")) { |
||||
WorkPermit workPermit = new WorkPermit(); |
||||
workPermit.setId(Long.parseLong(id)); |
||||
workPermit.setCheckStatus(status); |
||||
list.add(workPermit); |
||||
} |
||||
return R.status(workPermitService.updateBatchById(list)); |
||||
} |
||||
|
||||
/** |
||||
* 导出 |
||||
*/ |
||||
@SneakyThrows |
||||
@GetMapping("export") |
||||
@ApiOperationSupport(order = 10) |
||||
@ApiOperation(value = "导出", notes = "传入") |
||||
@ApiLog |
||||
public void exportUser(@ApiIgnore @RequestParam Map<String, Object> entity, HttpServletResponse response) { |
||||
WorkPermitVO vo = DataUtils.mapToEntity(entity, WorkPermitVO::new); |
||||
List<WorkPermitExcel> list = workPermitService.export(vo); |
||||
response.setContentType("application/vnd.ms-excel"); |
||||
response.setCharacterEncoding(Charsets.UTF_8.name()); |
||||
String fileName = URLEncoder.encode("工作票数据导出", Charsets.UTF_8.name()); |
||||
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
||||
EasyExcel.write(response.getOutputStream(), WorkPermitExcel.class).sheet("工作票").doWrite(list); |
||||
} |
||||
|
||||
/** |
||||
* 关票工作票一览 |
||||
*/ |
||||
@PostMapping("/closeTicket") |
||||
@ApiOperationSupport(order = 11) |
||||
@ApiOperation(value = "更新", notes = "传入ids") |
||||
public R closeTicket(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
List<WorkPermit> list = new ArrayList<>(); |
||||
for (String id : ids.split(",")) { |
||||
WorkPermit workPermit = new WorkPermit(); |
||||
workPermit.setId(Long.parseLong(id)); |
||||
workPermit.setWorkState(4); |
||||
list.add(workPermit); |
||||
} |
||||
return R.status(workPermitService.updateBatchById(list)); |
||||
} |
||||
} |
||||
|
@ -0,0 +1,18 @@ |
||||
package org.energy.modules.smart.dto; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 工作票附票一览数据传输对象实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkPermitAttachmentDTO extends WorkPermitAttachment { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,18 @@ |
||||
package org.energy.modules.smart.dto; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 工作票一览数据传输对象实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkPermitDTO extends WorkPermit { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,169 @@ |
||||
package org.energy.modules.smart.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.dayu.daf.core.mp.base.BaseEntity; |
||||
import java.io.Serializable; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
|
||||
/** |
||||
* 工作票一览实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@TableName("smt_work_permit") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "WorkPermit对象", description = "工作票一览") |
||||
public class WorkPermit extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "主键") |
||||
private Long id; |
||||
/** |
||||
* KKS编码 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "KKS编码") |
||||
private String kksEncoding; |
||||
/** |
||||
* KKS描述 |
||||
*/ |
||||
@ApiModelProperty(value = "KKS描述") |
||||
private String kksDescription; |
||||
/** |
||||
* 场站 |
||||
*/ |
||||
@ApiModelProperty(value = "场站") |
||||
private Integer stations; |
||||
/** |
||||
* 工作票编号 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "工作票编号") |
||||
private String workTicketNo; |
||||
/** |
||||
* 工作票类型 |
||||
*/ |
||||
@ApiModelProperty(value = "工作票类型") |
||||
private String workTicketType; |
||||
/** |
||||
* 工单 |
||||
*/ |
||||
@ApiModelProperty(value = "工单") |
||||
private String tickets; |
||||
/** |
||||
* 班组 |
||||
*/ |
||||
@ApiModelProperty(value = "班组") |
||||
private String team; |
||||
/** |
||||
* 工作负责人 |
||||
*/ |
||||
@ApiModelProperty(value = "工作负责人") |
||||
private String workChargePerson; |
||||
/** |
||||
* 工作班成员 |
||||
*/ |
||||
@ApiModelProperty(value = "工作班成员") |
||||
private String workClassMembers; |
||||
/** |
||||
* 许可人 |
||||
*/ |
||||
@ApiModelProperty(value = "许可人") |
||||
private String licensors; |
||||
/** |
||||
* 签发人 |
||||
*/ |
||||
@ApiModelProperty(value = "签发人") |
||||
private String issuer; |
||||
/** |
||||
* 功能位置 |
||||
*/ |
||||
@ApiModelProperty(value = "功能位置") |
||||
private String functionalLocation; |
||||
/** |
||||
* 工作地点 |
||||
*/ |
||||
@ApiModelProperty(value = "工作地点") |
||||
private String placeWork; |
||||
/** |
||||
* 工作内容 |
||||
*/ |
||||
@ApiModelProperty(value = "工作内容") |
||||
private String jobDescription; |
||||
/** |
||||
* 计划开始时间 |
||||
*/ |
||||
@ApiModelProperty(value = "计划开始时间") |
||||
private String planStartDate; |
||||
/** |
||||
* 计划结束时间 |
||||
*/ |
||||
@ApiModelProperty(value = "计划结束时间") |
||||
private String planEndDate; |
||||
/** |
||||
* 工作条件 |
||||
*/ |
||||
@ApiModelProperty(value = "工作条件") |
||||
private String workingConditions; |
||||
/** |
||||
* 实际结束时间 |
||||
*/ |
||||
@ApiModelProperty(value = "实际结束时间") |
||||
private String actualEndDate; |
||||
/** |
||||
* 是否延期 |
||||
*/ |
||||
@ApiModelProperty(value = "是否延期") |
||||
private Integer isExtended; |
||||
/** |
||||
* 计划延期时间 |
||||
*/ |
||||
@ApiModelProperty(value = "计划延期时间") |
||||
private String plannedExtensionDate; |
||||
/** |
||||
* 延期申请理由 |
||||
*/ |
||||
@ApiModelProperty(value = "延期申请理由") |
||||
private String extRegReason; |
||||
/** |
||||
* 是否变更 |
||||
*/ |
||||
@ApiModelProperty(value = "是否变更") |
||||
private Integer ischanged; |
||||
/** |
||||
* 变更申请理由 |
||||
*/ |
||||
@ApiModelProperty(value = "变更申请理由") |
||||
private String changeReason; |
||||
/** |
||||
* 总结 |
||||
*/ |
||||
@ApiModelProperty(value = "总结") |
||||
private String summary; |
||||
/** |
||||
* 工作状态 |
||||
*/ |
||||
@ApiModelProperty(value = "工作状态") |
||||
private Integer workState; |
||||
|
||||
/** |
||||
* 审核状态 |
||||
*/ |
||||
@ApiModelProperty(value = "审核状态") |
||||
private Integer checkStatus; |
||||
|
||||
|
||||
} |
@ -0,0 +1,74 @@ |
||||
package org.energy.modules.smart.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.dayu.daf.core.mp.base.BaseEntity; |
||||
import java.io.Serializable; |
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
|
||||
/** |
||||
* 工作票附票一览实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@TableName("smt_work_permit_attachment") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "WorkPermitAttachment对象", description = "工作票附票一览") |
||||
public class WorkPermitAttachment extends BaseEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "主键") |
||||
private Long id; |
||||
|
||||
/** |
||||
* 工作票主键 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "工作票主键") |
||||
private Long workTicketNo; |
||||
/** |
||||
* 附票编码 |
||||
*/ |
||||
@JsonSerialize(using = ToStringSerializer.class) |
||||
@ApiModelProperty(value = "附票编码") |
||||
private String ticketCode; |
||||
/** |
||||
* 附票类型 |
||||
*/ |
||||
@ApiModelProperty(value = "附票类型") |
||||
private Integer ticketType; |
||||
/** |
||||
* 专项作业名称 |
||||
*/ |
||||
@ApiModelProperty(value = "专项作业名称") |
||||
private String specialJobName; |
||||
/** |
||||
* 工作内容 |
||||
*/ |
||||
@ApiModelProperty(value = "工作内容") |
||||
private String jobDescription; |
||||
/** |
||||
* 工作状态 |
||||
*/ |
||||
@ApiModelProperty(value = "工作状态") |
||||
private Integer workStatus; |
||||
/** |
||||
* 工作地点 |
||||
*/ |
||||
@ApiModelProperty(value = "工作地点") |
||||
private String placeWork; |
||||
|
||||
|
||||
} |
@ -0,0 +1,106 @@ |
||||
package org.energy.modules.smart.excel; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* WorkPermit model export |
||||
* @author edwong |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(16) |
||||
public class WorkPermitExcel implements Serializable { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "KKS编码") |
||||
private String kksEncoding; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "KKS描述") |
||||
private String kksDescription; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "场站") |
||||
private String stations; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作票编号") |
||||
private String workTicketNo; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作票类型") |
||||
private String workTicketType; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工单") |
||||
private String tickets; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "班组") |
||||
private String team; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作负责人") |
||||
private String workChargePerson; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作班成员") |
||||
private String workClassMembers; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "许可人") |
||||
private String licensors; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "签发人") |
||||
private String issuer; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "功能位置") |
||||
private String functionalLocation; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作地点") |
||||
private String placeWork; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作内容") |
||||
private String jobDescription; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "计划开始时间") |
||||
private String planStartDate; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "工作条件") |
||||
private String workingConditions; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "计划结束时间") |
||||
private String planEndDate; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "实际结束时间") |
||||
private String actualEndDate; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "是否延期") |
||||
private String isExtended; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "状态") |
||||
private String workState; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty(value = "审核状态") |
||||
private String checkStatus; |
||||
|
||||
} |
@ -0,0 +1,39 @@ |
||||
package org.energy.modules.smart.mapper; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import org.energy.modules.smart.vo.WorkPermitAttachmentVO; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作票附票一览 Mapper 接口 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
public interface WorkPermitAttachmentMapper extends BaseMapper<WorkPermitAttachment> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param workPermitAttachment |
||||
* @return |
||||
*/ |
||||
List<WorkPermitAttachmentVO> selectWorkPermitAttachmentPage(IPage page, WorkPermitAttachmentVO workPermitAttachment); |
||||
|
||||
/** |
||||
* 获取最大条数 |
||||
*/ |
||||
Integer getCount(Long workTicketNo); |
||||
|
||||
/** |
||||
* 删除 |
||||
* |
||||
* @param workTicketNo |
||||
* @return |
||||
*/ |
||||
boolean delWorkPermitAttachment(Long workTicketNo); |
||||
|
||||
} |
@ -0,0 +1,35 @@ |
||||
<?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.smart.mapper.WorkPermitAttachmentMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="workPermitAttachmentResultMap" type="org.energy.modules.smart.entity.WorkPermitAttachment"> |
||||
<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="work_ticket_no" property="workTicketNo"/> |
||||
<result column="ticket_code" property="ticketCode"/> |
||||
<result column="ticket_type" property="ticketType"/> |
||||
<result column="special_job_name" property="specialJobName"/> |
||||
<result column="job_description" property="jobDescription"/> |
||||
<result column="work_status" property="workStatus"/> |
||||
<result column="place_work" property="placeWork"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectWorkPermitAttachmentPage" resultMap="workPermitAttachmentResultMap"> |
||||
select * from smt_work_permit_attachment where is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="getCount" resultType="java.lang.Integer"> |
||||
select count(*) from smt_work_permit_attachment where is_deleted = 0 and work_ticket_no = #{workTicketNo} |
||||
</select> |
||||
|
||||
<update id="delWorkPermitAttachment" > |
||||
update smt_work_permit_attachment set is_deleted = 1 where work_ticket_no = #{workTicketNo} |
||||
</update> |
||||
</mapper> |
@ -0,0 +1,32 @@ |
||||
package org.energy.modules.smart.mapper; |
||||
|
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import org.energy.modules.smart.excel.WorkOrderExcel; |
||||
import org.energy.modules.smart.excel.WorkPermitExcel; |
||||
import org.energy.modules.smart.vo.WorkOrderVO; |
||||
import org.energy.modules.smart.vo.WorkPermitVO; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作票一览 Mapper 接口 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
public interface WorkPermitMapper extends BaseMapper<WorkPermit> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param workPermit |
||||
* @return |
||||
*/ |
||||
List<WorkPermitVO> selectWorkPermitPage(IPage page, WorkPermitVO workPermit); |
||||
|
||||
List<WorkPermitExcel> exportData(@Param("vo") WorkPermitVO workPermit); |
||||
|
||||
} |
@ -0,0 +1,99 @@ |
||||
<?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.smart.mapper.WorkPermitMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="workPermitResultMap" type="org.energy.modules.smart.entity.WorkPermit"> |
||||
<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="kks_encoding" property="kksEncoding"/> |
||||
<result column="kks_description" property="kksDescription"/> |
||||
<result column="stations" property="stations"/> |
||||
<result column="work_ticket_no" property="workTicketNo"/> |
||||
<result column="work_ticket_type" property="workTicketType"/> |
||||
<result column="tickets" property="tickets"/> |
||||
<result column="team" property="team"/> |
||||
<result column="work_charge_person" property="workChargePerson"/> |
||||
<result column="work_class_members" property="workClassMembers"/> |
||||
<result column="licensors" property="licensors"/> |
||||
<result column="issuer" property="issuer"/> |
||||
<result column="functional_location" property="functionalLocation"/> |
||||
<result column="place_work" property="placeWork"/> |
||||
<result column="job_description" property="jobDescription"/> |
||||
<result column="plan_start_date" property="planStartDate"/> |
||||
<result column="plan_end_date" property="planEndDate"/> |
||||
<result column="working_conditions" property="workingConditions"/> |
||||
<result column="actual_end_date" property="actualEndDate"/> |
||||
<result column="is_extended" property="isExtended"/> |
||||
<result column="planned_extension_date" property="plannedExtensionDate"/> |
||||
<result column="ext_reg_reason" property="extRegReason"/> |
||||
<result column="ischanged" property="ischanged"/> |
||||
<result column="change_reason" property="changeReason"/> |
||||
<result column="summary" property="summary"/> |
||||
<result column="work_state" property="workState"/> |
||||
<result column="check_status" property="check_status"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectWorkPermitPage" resultMap="workPermitResultMap"> |
||||
select * from smt_work_permit where is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="exportData" resultType="org.energy.modules.smart.excel.WorkPermitExcel"> |
||||
select |
||||
kks_encoding |
||||
, kks_description |
||||
, stations |
||||
, work_ticket_no |
||||
, work_ticket_type |
||||
, tickets |
||||
, team |
||||
, work_charge_person |
||||
, work_class_members |
||||
, licensors |
||||
, issuer |
||||
, functional_location |
||||
, place_work |
||||
, job_description |
||||
, plan_start_date |
||||
, working_conditions |
||||
, plan_end_date |
||||
, actual_end_date |
||||
, is_extended |
||||
, work_state |
||||
, check_status |
||||
from |
||||
smt_work_permit |
||||
where is_deleted = 0 |
||||
<if test="vo.workTicketNo != null and vo.workTicketNo != ''"> |
||||
and a.work_ticket_no = #{vo.workTicketNo} |
||||
</if> |
||||
<if test="vo.workTicketType != null and vo.workTicketType != ''"> |
||||
and a.work_ticket_type = #{vo.workTicketType} |
||||
</if> |
||||
<if test="vo.workChargePerson != null and vo.workChargePerson != ''"> |
||||
and a.work_charge_person = #{vo.workChargePerson} |
||||
</if> |
||||
<if test="vo.licensors != null and vo.licensors != ''"> |
||||
and a.licensors = #{vo.licensors} |
||||
</if> |
||||
<if test="vo.issuer != null and vo.issuer != ''"> |
||||
and a.issuer = #{vo.issuer} |
||||
</if> |
||||
<if test="vo.planStartDate != null and vo.planStartDate != ''"> |
||||
and a.plan_start_date = #{vo.planStartDate} |
||||
</if> |
||||
<if test="vo.workState != null and vo.workState != ''"> |
||||
and a.work_state = #{vo.workState} |
||||
</if> |
||||
<if test="vo.stations != null and vo.stations != ''"> |
||||
and b.stations = ${vo.stations} |
||||
</if> |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,43 @@ |
||||
package org.energy.modules.smart.service; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import org.energy.modules.smart.vo.WorkPermitAttachmentVO; |
||||
import com.dayu.daf.core.mp.base.BaseService; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
import java.util.function.LongFunction; |
||||
|
||||
/** |
||||
* 工作票附票一览 服务类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
public interface IWorkPermitAttachmentService extends BaseService<WorkPermitAttachment> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param workPermitAttachment |
||||
* @return |
||||
*/ |
||||
IPage<WorkPermitAttachmentVO> selectWorkPermitAttachmentPage(IPage<WorkPermitAttachmentVO> page, WorkPermitAttachmentVO workPermitAttachment); |
||||
|
||||
|
||||
/** |
||||
* 获取最大条数 |
||||
* |
||||
* @param workTicketNo |
||||
*/ |
||||
Integer getCount(Long workTicketNo); |
||||
|
||||
/** |
||||
* 删除 |
||||
* |
||||
* @param workTicketNo |
||||
* @return |
||||
*/ |
||||
boolean delWorkPermitAttachment(Long workTicketNo); |
||||
|
||||
} |
@ -0,0 +1,41 @@ |
||||
package org.energy.modules.smart.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import org.energy.modules.leger.entity.EquipmentLedger; |
||||
import org.energy.modules.leger.excel.EquipmentLedgerExcel; |
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import org.energy.modules.smart.excel.WorkOrderExcel; |
||||
import org.energy.modules.smart.excel.WorkPermitExcel; |
||||
import org.energy.modules.smart.vo.WorkOrderVO; |
||||
import org.energy.modules.smart.vo.WorkPermitVO; |
||||
import com.dayu.daf.core.mp.base.BaseService; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作票一览 服务类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
public interface IWorkPermitService extends BaseService<WorkPermit> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param workPermit |
||||
* @return |
||||
*/ |
||||
IPage<WorkPermitVO> selectWorkPermitPage(IPage<WorkPermitVO> page, WorkPermitVO workPermit); |
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param workPermit |
||||
* @return |
||||
*/ |
||||
List<WorkPermitExcel> export(WorkPermitVO workPermit); |
||||
|
||||
} |
@ -0,0 +1,34 @@ |
||||
package org.energy.modules.smart.service.impl; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import org.energy.modules.smart.vo.WorkPermitAttachmentVO; |
||||
import org.energy.modules.smart.mapper.WorkPermitAttachmentMapper; |
||||
import org.energy.modules.smart.service.IWorkPermitAttachmentService; |
||||
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-15 |
||||
*/ |
||||
@Service |
||||
public class WorkPermitAttachmentServiceImpl extends BaseServiceImpl<WorkPermitAttachmentMapper, WorkPermitAttachment> implements IWorkPermitAttachmentService { |
||||
|
||||
@Override |
||||
public IPage<WorkPermitAttachmentVO> selectWorkPermitAttachmentPage(IPage<WorkPermitAttachmentVO> page, WorkPermitAttachmentVO workPermitAttachment) { |
||||
return page.setRecords(baseMapper.selectWorkPermitAttachmentPage(page, workPermitAttachment)); |
||||
} |
||||
@Override |
||||
public Integer getCount(Long workTicketNo){ |
||||
Integer maxCount = baseMapper.getCount(workTicketNo); |
||||
return maxCount; |
||||
} |
||||
|
||||
@Override |
||||
public boolean delWorkPermitAttachment(Long workTicketNo) { |
||||
return baseMapper.delWorkPermitAttachment(workTicketNo); |
||||
} |
||||
} |
@ -0,0 +1,53 @@ |
||||
package org.energy.modules.smart.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import io.micrometer.core.instrument.util.StringUtils; |
||||
import org.energy.modules.leger.entity.EquipmentLedger; |
||||
import org.energy.modules.leger.excel.EquipmentLedgerExcel; |
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import org.energy.modules.smart.excel.WorkOrderExcel; |
||||
import org.energy.modules.smart.excel.WorkPermitExcel; |
||||
import org.energy.modules.smart.vo.WorkPermitVO; |
||||
import org.energy.modules.smart.mapper.WorkPermitMapper; |
||||
import org.energy.modules.smart.service.IWorkPermitService; |
||||
import com.dayu.daf.core.mp.base.BaseServiceImpl; |
||||
import org.energy.modules.system.service.IDictService; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作票一览 服务实现类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Service |
||||
public class WorkPermitServiceImpl extends BaseServiceImpl<WorkPermitMapper, WorkPermit> implements IWorkPermitService { |
||||
|
||||
@Autowired |
||||
IDictService dictService; |
||||
|
||||
@Override |
||||
public IPage<WorkPermitVO> selectWorkPermitPage(IPage<WorkPermitVO> page, WorkPermitVO workPermit) { |
||||
return page.setRecords(baseMapper.selectWorkPermitPage(page, workPermit)); |
||||
} |
||||
|
||||
@Override |
||||
public List<WorkPermitExcel> export(WorkPermitVO workPermit) { |
||||
List<WorkPermitExcel> list = baseMapper.exportData(workPermit); |
||||
list.forEach(item -> { |
||||
if (StringUtils.isNotEmpty(item.getIsExtended())) |
||||
item.setIsExtended(dictService.getValue("yes_no", Integer.parseInt(item.getIsExtended()))); |
||||
if (StringUtils.isNotEmpty(item.getStations())) |
||||
item.setStations(dictService.getValue("station", Integer.parseInt(item.getStations()))); |
||||
if (StringUtils.isNotEmpty(item.getWorkState())) |
||||
item.setWorkState(dictService.getValue("work_status", Integer.parseInt(item.getWorkState()))); |
||||
if (StringUtils.isNotEmpty(item.getCheckStatus())) |
||||
item.setCheckStatus(dictService.getValue("check_status", Integer.parseInt(item.getCheckStatus()))); |
||||
}); |
||||
return list; |
||||
} |
||||
} |
@ -0,0 +1,20 @@ |
||||
package org.energy.modules.smart.vo; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermitAttachment; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
|
||||
/** |
||||
* 工作票附票一览视图实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "WorkPermitAttachmentVO对象", description = "工作票附票一览") |
||||
public class WorkPermitAttachmentVO extends WorkPermitAttachment { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
package org.energy.modules.smart.vo; |
||||
|
||||
import org.energy.modules.smart.entity.WorkPermit; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import io.swagger.annotations.ApiModel; |
||||
|
||||
/** |
||||
* 工作票一览视图实体类 |
||||
* |
||||
* @author Daf |
||||
* @since 2024-07-15 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "WorkPermitVO对象", description = "工作票一览") |
||||
public class WorkPermitVO extends WorkPermit { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
Loading…
Reference in new issue