| | |
| | | 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); |
| | | } |
| | | |