| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | 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.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.*; |
| | |
| | | import com.ruoyi.common.constant.InsOrderTypeConstants; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.properties.WechatProperty; |
| | | import com.ruoyi.common.config.WechatProperty; |
| | | import com.ruoyi.common.utils.LimsDateUtil; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.concurrent.atomic.AtomicInteger; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | |
| | | RawMaterialStandardTreeDto rawMaterialStandardTreeDto = new RawMaterialStandardTreeDto(); |
| | | for (FactoryDto factoryDto : factoryDtos) { |
| | | for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { |
| | | for (SampleTypeDto sampleTypeDto : laboratoryDto.getChildren()) { |
| | | if (sampleTypeDto.getChildren().size() == 0) { |
| | | sampleTypeDto.setChildren(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); |
| | | } |
| | | // 判断绑定的是否是当前零件号 |
| | | if (sampleTypeDto.getPartNo() != null && sampleTypeDto.getPartNo().equals(partNo)) { |
| | | // 添加对象 |
| | | rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" |
| | | + laboratoryDto.getValue() + "-" |
| | | + sampleTypeDto.getValue()); |
| | | rawMaterialStandardTreeDto.setCode(sampleTypeDto.getCode()); |
| | | rawMaterialStandardTreeDto.setLabel(sampleTypeDto.getLabel()); |
| | | rawMaterialStandardTreeDto.setValue(sampleTypeDto.getValue()); |
| | | rawMaterialStandardTreeDto.setChildren1(sampleTypeDto.getChildren()); |
| | | } else { |
| | | for (SampleDto sampleDto : sampleTypeDto.getChildren()) { |
| | | if (sampleDto.getPartNo() != null && sampleDto.getPartNo().equals(partNo)) { |
| | | for (ObjectTypeDto objectTypeDto : laboratoryDto.getChildren()) { |
| | | for (WorkShopNameDto workShopNameDto : objectTypeDto.getChildren()) { |
| | | for (SampleTypeDto sampleTypeDto : workShopNameDto.getChildren()) { |
| | | if (sampleTypeDto.getChildren().size() == 0) { |
| | | sampleTypeDto.setChildren(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); |
| | | } |
| | | // 判断绑定的是否是当前零件号 |
| | | if (sampleTypeDto.getPartNo() != null && sampleTypeDto.getPartNo().equals(partNo)) { |
| | | // 添加对象 |
| | | rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" |
| | | + laboratoryDto.getValue() + "-" |
| | | + sampleTypeDto.getValue() + "-" |
| | | + sampleDto.getValue()); |
| | | rawMaterialStandardTreeDto.setCode(sampleDto.getCode()); |
| | | rawMaterialStandardTreeDto.setLabel(sampleDto.getLabel()); |
| | | rawMaterialStandardTreeDto.setValue(sampleDto.getValue()); |
| | | rawMaterialStandardTreeDto.setChildren2(sampleDto.getChildren()); |
| | | + laboratoryDto.getValue() + "-" + objectTypeDto.getValue() + "-" + workShopNameDto.getValue() + "-" |
| | | + sampleTypeDto.getValue()); |
| | | rawMaterialStandardTreeDto.setCode(sampleTypeDto.getCode()); |
| | | rawMaterialStandardTreeDto.setLabel(sampleTypeDto.getLabel()); |
| | | rawMaterialStandardTreeDto.setValue(sampleTypeDto.getValue()); |
| | | rawMaterialStandardTreeDto.setChildren1(sampleTypeDto.getChildren()); |
| | | rawMaterialStandardTreeDto.setWorkShopName(sampleTypeDto.getWorkShopName()); |
| | | rawMaterialStandardTreeDto.setWorkShopId(sampleTypeDto.getWorkShopId()); |
| | | } else { |
| | | for (SampleDto sampleDto : sampleTypeDto.getChildren()) { |
| | | if (sampleDto.getPartNo() != null && sampleDto.getPartNo().equals(partNo)) { |
| | | // 添加对象 |
| | | rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" |
| | | + laboratoryDto.getValue() + "-" + objectTypeDto.getValue() + "-" + workShopNameDto.getValue() + "-" |
| | | + sampleTypeDto.getValue() + "-" |
| | | + sampleDto.getValue()); |
| | | rawMaterialStandardTreeDto.setCode(sampleDto.getCode()); |
| | | rawMaterialStandardTreeDto.setLabel(sampleDto.getLabel()); |
| | | rawMaterialStandardTreeDto.setValue(sampleDto.getValue()); |
| | | rawMaterialStandardTreeDto.setChildren2(sampleDto.getChildren()); |
| | | rawMaterialStandardTreeDto.setWorkShopName(sampleTypeDto.getWorkShopName()); |
| | | rawMaterialStandardTreeDto.setWorkShopId(sampleTypeDto.getWorkShopId()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 报检 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 撤销报检 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 打印标签查询 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 报检 |
| | | * |
| | | * @param ifsInventoryQuantity |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 获取铜产业链检测数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料撤销接口 |
| | | * |
| | | * @param ifsInventoryId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料免检下单 |
| | | * |
| | | * @param list |
| | | * @param insOrder |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询待下单 |
| | | * |
| | | * @param page |
| | | * @param ifsInventoryQuantity |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询已检验 |
| | | * |
| | | * @param page |
| | | * @param ifsInventoryQuantityDto |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 删除原材料报检信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料放行免检 |
| | | * |
| | | * @param ifsInventoryId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 0, 无提示, 1提示 当前批次的样品已检验过, 可以免检, 2 提示 当前批次的样品已超20吨, 需要多级多次检验 |
| | | * |
| | | * <p> |
| | | * 原材料下单通知免检或者多次检验 |
| | | * |
| | | * @param ifsInventoryId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 报检可以新增报检信息 |
| | | * |
| | | * @param ifsInventoryQuantity |
| | | */ |
| | | @Override |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 铜单丝下单免检 |
| | | * |
| | | * @param list |
| | | * @param insOrder |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料进厂撤销下单 |
| | | * |
| | | * @param enterOrderId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料季度撤销下单 |
| | | * |
| | | * @param quarterOrderId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料报检全部信息导出 |
| | | * |
| | | * @param ifsInventoryQuantityDto |
| | | * @param response |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 原材料查询可以季度检验的内容 |
| | | * |
| | | * @param page |
| | | * @param ifsInventoryQuantityDto |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 提前入库 |
| | | * |
| | | * @param ifsInventoryId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 添加工时 |
| | | * |
| | | * @param insOrder |
| | | * @param ifsInventoryQuantity |
| | | */ |