| | |
| | | import com.qianwen.smartman.common.enums.GlobalWcsTypeEnum; |
| | | import com.qianwen.core.mp.support.BaseEntityWrapper; |
| | | import com.qianwen.core.tool.utils.SpringUtil; |
| | | import com.qianwen.smartman.modules.cps.entity.Employee; |
| | | import com.qianwen.smartman.modules.cps.entity.GlobalWcs; |
| | | import com.qianwen.smartman.modules.cps.entity.Workstation; |
| | | import com.qianwen.smartman.modules.cps.service.IEmployeeService; |
| | | import com.qianwen.smartman.modules.cps.service.IGlobalWcsService; |
| | | import com.qianwen.smartman.modules.cps.service.IWorkstationService; |
| | |
| | | import com.qianwen.smartman.modules.mdc.service.IWorkstationFeedbackService; |
| | | import com.qianwen.smartman.modules.mdc.vo.WorkstationFeedBackDetailVO; |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/wrapper/WorkstationFeedBackDetailWrapper.class */ |
| | | public class WorkstationFeedBackDetailWrapper extends BaseEntityWrapper<WorkstationFeedbackDetail, WorkstationFeedBackDetailVO> { |
| | | private static final IWorkstationFeedbackService feedbackService = (IWorkstationFeedbackService) SpringUtil.getBean(IWorkstationFeedbackService.class); |
| | | private static final IEmployeeService employeeService = (IEmployeeService) SpringUtil.getBean(IEmployeeService.class); |
| | |
| | | vo.setEndTime(detail.getEndTime()); |
| | | vo.setFeedbackTime(feedback.getFeedbackTime()); |
| | | vo.setFeedbackDesc(feedback.getRemark()); |
| | | |
| | | Optional.<GlobalWcs>ofNullable(globalWcsService.getByCode(detail.getWcs(), GlobalWcsTypeEnum.FEEDBACK)).map(GlobalWcs::getName) |
| | | .ifPresent(vo::setWcsDesc); |
| | | Optional.<Long>ofNullable(feedback.getFeedUser()).map(employeeService::cachedById).map(Employee::getName).ifPresent(vo::setFeedUser); |
| | | Optional.<Long>ofNullable(feedback.getEndFeedUser()).map(employeeService::cachedById).map(Employee::getName).ifPresent(vo::setEndFeedUser); |
| | | Optional.<Workstation>ofNullable(workstationService.getById(feedback.getWorkstationId())).ifPresent(station -> vo.setWorkstationName(station.getName())); |
| | | |
| | | vo.setCanDelete(Boolean.valueOf((!feedback.getStatus().equals(FeedbackStatus.SYNCING) && !feedback.getStatus().equals(FeedbackStatus.WAIT_SYNC)))); |
| | | |
| | | /* |
| | | Optional map = Optional.ofNullable(globalWcsService.getByCode(detail.getWcs(), GlobalWcsTypeEnum.FEEDBACK)).map((v0) -> { |
| | | return v0.getName(); |
| | | }); |
| | |
| | | vo.setWorkstationName(station.getName()); |
| | | }); |
| | | vo.setCanDelete(Boolean.valueOf((feedback.getStatus().equals(FeedbackStatus.SYNCING) || feedback.getStatus().equals(FeedbackStatus.WAIT_SYNC)) ? false : true)); |
| | | */ |
| | | return vo; |
| | | } |
| | | } |