| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.limslaboratory.mapper.*; |
| | | import com.yuanchu.limslaboratory.pojo.*; |
| | | import com.yuanchu.limslaboratory.pojo.dto.InspectionMaterialListDto; |
| | | import com.yuanchu.limslaboratory.service.InspectionMaterialListService; |
| | | import com.yuanchu.limslaboratory.service.InspectionProductListService; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | InspectionProductListService inspectionProductListService; |
| | | |
| | | |
| | | //查询检验单里面的物料信息 |
| | | //查询检验单里面的样品信息 |
| | | @Override |
| | | public List<InspectionMaterialList> selectInspectionMaterialListByInsId(String insId) { |
| | | return inspectionMaterialListMapper.selectInspectionMaterialListByInsId(insId); |
| | |
| | | list.forEach(a -> { |
| | | InspectionProductList inspectionProductList = new InspectionProductList(); |
| | | inspectionProductList.setName(a.getName()) |
| | | .setMethod(a.getMethod()) |
| | | .setUnit(a.getUnit()) |
| | | .setRequired(a.getRequired()) |
| | | .setInternal(a.getInternal()) |
| | |
| | | //根据样品id修改样品信息 |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateInspectionMaterialList(Integer inspectionMaterialListId, InspectionMaterialList inspectionMaterialList) { |
| | | public void updateInspectionMaterialList(Integer inspectionMaterialListId, InspectionMaterialListDto inspectionMaterialListDto) { |
| | | InspectionMaterialList inspectionMaterialList = new InspectionMaterialList(); |
| | | BeanUtils.copyProperties(inspectionMaterialListDto,inspectionMaterialList); |
| | | LambdaUpdateWrapper<InspectionMaterialList> updateWrapper = new LambdaUpdateWrapper<>(); |
| | | updateWrapper.eq(InspectionMaterialList::getId, inspectionMaterialListId); |
| | | inspectionMaterialListMapper.update(inspectionMaterialList, updateWrapper); |