| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.yuanchu.mom.mapper.InspectionItemMapper; |
| | | import com.yuanchu.mom.mapper.TechniqueMapper; |
| | | import com.yuanchu.mom.pojo.InspectionItem; |
| | | import com.yuanchu.mom.pojo.RawInsProduct; |
| | | import com.yuanchu.mom.pojo.dto.InspectionItemDto; |
| | | import com.yuanchu.mom.pojo.dto.UpdateInspectionItemDto; |
| | | import com.yuanchu.mom.service.DeviceService; |
| | |
| | | return techniqueMapper.selDevByVerTecIdFaNam(technologyId, father, name, ver); |
| | | } |
| | | |
| | | //更改设备 |
| | | @Override |
| | | public void updateDevByInsId(Integer id, Integer type, Integer devId) { |
| | | LambdaUpdateWrapper<InspectionItem> updateWrapper = Wrappers.<InspectionItem>lambdaUpdate() |
| | | .eq(InspectionItem::getId, id) |
| | | .eq(InspectionItem::getType, type) |
| | | .set(InspectionItem::getDeviceId, devId) |
| | | .set(InspectionItem::getInspectionValue, null) |
| | | .set(InspectionItem::getResult, null); |
| | | inspectionItemMapper.update(new InspectionItem(), updateWrapper); |
| | | } |
| | | |
| | | //新增按钮-->2、检验项目-->失去焦点发起该请求 |
| | | @Override |
| | | public Integer addProcessInspectionSheet(String username, UpdateInspectionItemDto updateInspectionItemDto) { |
| | |
| | | } else { |
| | | inspectionItem.setResult(1); |
| | | } |
| | | inspectionItem.setUsername(username); |
| | | inspectionItemMapper.updateById(inspectionItem); |
| | | //返回检验项目的结论 |
| | | return inspectionItem.getResult(); |