| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.sun.org.apache.regexp.internal.RE; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.entity.*; |
| | | import org.jeecg.modules.eam.mapper.RepairOrderMapper; |
| | | import org.jeecg.modules.eam.service.*; |
| | | import org.jeecg.modules.eam.vo.RepairReportExportVo; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | |
| | | private String upLoadPath; |
| | | @Autowired |
| | | private IRepairOrderService repairOrderService; |
| | | |
| | | @Autowired |
| | | private RepairOrderMapper repairOrderMapper; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @PutMapping("/accept") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result<?> accept(@RequestBody EquipmentReportRepair equipmentReportRepair ){ |
| | | if(equipmentReportRepair.getErrUda4().equals("1")){ |
| | | if(equipmentReportRepair.getErrUda1().equals("yes")){ |
| | |
| | | equipmentReportRepairService.updateById(equipmentReportRepair); |
| | | RepairOrder repairOrder = repairOrderService.getOne(new QueryWrapper<RepairOrder>().eq("report_repair_id",equipmentReportRepair.getId()),false); |
| | | if(ObjectUtils.isNotNull(repairOrder)){ |
| | | repairOrder.setStatus("3"); |
| | | repairOrderService.updateById(repairOrder); |
| | | |
| | | repairOrderMapper.updateRepair(repairOrder.getId()); |
| | | // repairOrder.setStatus("3"); |
| | | // repairOrder.setActualEndTime(null); |
| | | // repairOrderService.updateById(repairOrder); |
| | | } |
| | | return Result.OK("已驳回"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出excel |
| | | * |