Merge remote-tracking branch 'origin/master'
# Conflicts:
# db/430设备管理数据库设计.pdma.json
| | |
| | | "avatar": "", |
| | | "version": "4.9.4", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-7-25 11:14:56", |
| | | "updatedTime": "2025-7-23 11:43:01", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | /**æä½å·¥*/ |
| | | @Excel(name = "æä½å·¥", width = 15) |
| | | @ApiModelProperty(value = "æä½å·¥") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String confirmer; |
| | | /**æä½å·¥ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "æä½å·¥ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | /**åºé¿*/ |
| | | @Excel(name = "åºé¿", width = 15) |
| | | @ApiModelProperty(value = "åºé¿") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String district; |
| | | /**åºé¿ç¡®è®¤*/ |
| | | @Excel(name = "åºé¿ç¡®è®¤", width = 15) |
| | |
| | | /**ä¸å¿ä¸»ä»»*/ |
| | | @Excel(name = "ä¸å¿ä¸»ä»»", width = 15) |
| | | @ApiModelProperty(value = "ä¸å¿ä¸»ä»»") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String centerDirector; |
| | | /**ä¸å¿ä¸»ä»»ç¡®è®¤*/ |
| | | @Excel(name = "ä¸å¿ä¸»ä»»ç¡®è®¤", width = 15) |
| | |
| | | /**维修工确认*/ |
| | | @Excel(name = "维修工确认", width = 15) |
| | | @ApiModelProperty(value = "维修确认") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairConfirm; |
| | | /**ç»´ä¿®å·¥ç¡®è®¤ç»æ*/ |
| | | @Excel(name = "ç»´ä¿®å·¥ç¡®è®¤ç»æ", width = 15) |
| | |
| | | /**ç»´ä¿®ç»é¿ç¡®è®¤*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿ç¡®è®¤", width = 15) |
| | | @ApiModelProperty(value = "ç»´ä¿®ç»é¿ç¡®è®¤") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairGroupLeader; |
| | | /**ç»´ä¿®ç»é¿æè§*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿æè§", width = 15) |
| | |
| | | /**ç»´ä¿®ç»é¿(åºé¿)确认*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿(åºé¿)确认", width = 15) |
| | | @ApiModelProperty(value = "ç»´ä¿®ç»é¿(åºé¿)确认") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairDistrict; |
| | | /**ç»´ä¿®ç»é¿(åºé¿)æè§*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿(åºé¿)æè§", width = 15) |
| | |
| | | /**ææ¯è´è´£äºº*/ |
| | | @Excel(name = "ææ¯è´è´£äºº", width = 15) |
| | | @ApiModelProperty(value = "ææ¯è´è´£äºº") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirector; |
| | | /**ææ¯è´è´£äººç¡®è®¤æè§*/ |
| | | @Excel(name = "ææ¯è´è´£äººç¡®è®¤æè§", width = 15) |
| | |
| | | /**ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼*/ |
| | | @Excel(name = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼", width = 15) |
| | | @ApiModelProperty(value = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirectorLeader; |
| | | /**ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼ç¡®è®¤æè§*/ |
| | | @Excel(name = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼ç¡®è®¤æè§", width = 15) |
| | |
| | | /**主管é¨çº§é¢å¯¼*/ |
| | | @Excel(name = "主管é¨çº§é¢å¯¼", width = 15) |
| | | @ApiModelProperty(value = "主管é¨çº§é¢å¯¼") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirectorPart; |
| | | /**主管é¨çº§é¢å¯¼ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "主管é¨çº§é¢å¯¼ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | /**æä½å·¥*/ |
| | | @Excel(name = "æä½å·¥", width = 15) |
| | | @ApiModelProperty(value = "æä½å·¥") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String confirmer; |
| | | /**æä½å·¥ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "æä½å·¥ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | /**åºé¿*/ |
| | | @Excel(name = "åºé¿", width = 15) |
| | | @ApiModelProperty(value = "åºé¿") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String district; |
| | | /**åºé¿ç¡®è®¤*/ |
| | | @Excel(name = "åºé¿ç¡®è®¤", width = 15) |
| | |
| | | /**ä¸å¿ä¸»ä»»*/ |
| | | @Excel(name = "ä¸å¿ä¸»ä»»", width = 15) |
| | | @ApiModelProperty(value = "ä¸å¿ä¸»ä»»") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String centerDirector; |
| | | /**ä¸å¿ä¸»ä»»ç¡®è®¤*/ |
| | | @Excel(name = "ä¸å¿ä¸»ä»»ç¡®è®¤", width = 15) |
| | |
| | | /**维修确认*/ |
| | | @Excel(name = "维修确认", width = 15) |
| | | @ApiModelProperty(value = "维修确认") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairConfirm; |
| | | /**维修确认æè§*/ |
| | | @Excel(name = "维修确认æè§", width = 15) |
| | |
| | | /**ç»´ä¿®ç»é¿ç¡®è®¤*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿ç¡®è®¤", width = 15) |
| | | @ApiModelProperty(value = "ç»´ä¿®ç»é¿ç¡®è®¤") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairGroupLeader; |
| | | /**ç»´ä¿®ç»é¿æè§*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿æè§", width = 15) |
| | |
| | | /**ç»´ä¿®ç»é¿ç¡®è®¤*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿ç¡®è®¤", width = 15) |
| | | @ApiModelProperty(value = "ç»´ä¿®ç»é¿ç¡®è®¤") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String repairDistrict; |
| | | /**ç»´ä¿®ç»é¿æè§*/ |
| | | @Excel(name = "ç»´ä¿®ç»é¿æè§", width = 15) |
| | |
| | | /**ææ¯è´è´£äºº*/ |
| | | @Excel(name = "ææ¯è´è´£äºº", width = 15) |
| | | @ApiModelProperty(value = "ææ¯è´è´£äºº") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirector; |
| | | /**ææ¯è´è´£äººç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "ææ¯è´è´£äººç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | /**ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼*/ |
| | | @Excel(name = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼", width = 15) |
| | | @ApiModelProperty(value = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirectorLeader; |
| | | /**ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | /**主管é¨çº§é¢å¯¼*/ |
| | | @Excel(name = "主管é¨çº§é¢å¯¼", width = 15) |
| | | @ApiModelProperty(value = "主管é¨çº§é¢å¯¼") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | private String technicalDirectorPart; |
| | | /**主管é¨çº§é¢å¯¼ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "主管é¨çº§é¢å¯¼ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | |
| | | BeanUtils.copyProperties(eamReportRepairRequest, eamReportAccidentsRegister); |
| | | eamReportAccidentsRegister.setReportId(eamReportRepair.getId()); |
| | | eamReportAccidentsRegister.setDelFlag(CommonConstant.DEFAULT_0); |
| | | eamReportAccidentsRegister.setRegisterStatus(EamReportAccidentsRegisterEnum.PENDING_SUBMIT.name()); |
| | | iEamReportAccidentsRegisterService.save(eamReportAccidentsRegister); |
| | | } |
| | | //çæç»´ä¿®å·¥å,å¯è½ä¼æé¢åæä½ |
| | |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.dto.EamReportAccidentsRegisterDto; |
| | | import org.jeecg.modules.eam.entity.EamRepairOrder; |
| | | import org.jeecg.modules.eam.entity.EamRepairPerson; |
| | | import org.jeecg.modules.eam.entity.EamReportAccidentsRegister; |
| | | import org.jeecg.modules.eam.entity.EamReportRepair; |
| | | import org.jeecg.modules.eam.request.EamRepairOrderRequest; |
| | | import org.jeecg.modules.eam.request.EamReportAccidentsRegisterQuery; |
| | | import org.jeecg.modules.eam.service.IEamReportAccidentsRegisterService; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecg.modules.eam.service.IEamReportRepairService; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | |
| | | public class EamReportAccidentsRegisterController extends JeecgController<EamReportAccidentsRegister, IEamReportAccidentsRegisterService> { |
| | | @Autowired |
| | | private IEamReportAccidentsRegisterService eamReportAccidentsRegisterService; |
| | | |
| | | @Autowired |
| | | private IEamReportRepairService eamReportRepairService; |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | |
| | | if(eamReportAccidentsRegister==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | EamReportRepair eamReportRepair=eamReportRepairService.getById(eamReportAccidentsRegister.getReportId()); |
| | | eamReportAccidentsRegister.setScrapPartNumber(eamReportRepair.getScrapPartNumber()); |
| | | eamReportAccidentsRegister.setScrapPartValue(eamReportRepair.getScrapPartValue()); |
| | | eamReportAccidentsRegister.setScrapPartQuantity(eamReportRepair.getScrapPartQuantity()); |
| | | return Result.OK(eamReportAccidentsRegister); |
| | | } |
| | | |