|
|
@ -12,6 +12,7 @@ import com.ruoyi.common.utils.ShiroUtils; |
|
|
|
import com.ruoyi.erp.domain.ErpMaterialReturnInspection; |
|
|
|
import com.ruoyi.erp.domain.ErpMaterialReturnInspectionDetail; |
|
|
|
import com.ruoyi.erp.domain.ErpMaterialReturnInspectionExcelDto; |
|
|
|
import com.ruoyi.erp.mapper.ErpMaterialReturnInspectionDetailMapper; |
|
|
|
import com.ruoyi.erp.mapper.ErpMaterialReturnInspectionMapper; |
|
|
|
import com.ruoyi.erp.service.IErpMaterialReturnInspectionDetailService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -37,6 +38,10 @@ public class QualityReturnInspectionServiceImpl implements IQualityReturnInspect |
|
|
|
@Autowired |
|
|
|
private IErpMaterialReturnInspectionDetailService materialReturnInspectionDetailService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ErpMaterialReturnInspectionDetailMapper erpMaterialReturnInspectionDetailMapper; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 查询物料退检单 |
|
|
|
* |
|
|
@ -52,7 +57,7 @@ public class QualityReturnInspectionServiceImpl implements IQualityReturnInspect |
|
|
|
/** |
|
|
|
* 查询物料退检单列表 |
|
|
|
* |
|
|
|
* @param qualityReturnInspection 物料退检单 |
|
|
|
* @param erpMaterialReturnInspection 物料退检单 |
|
|
|
* @return 物料退检单 |
|
|
|
*/ |
|
|
|
@Override |
|
|
@ -64,7 +69,7 @@ public class QualityReturnInspectionServiceImpl implements IQualityReturnInspect |
|
|
|
/** |
|
|
|
* 新增物料退检单 |
|
|
|
* |
|
|
|
* @param qualityReturnInspection 物料退检单 |
|
|
|
* @param erpMaterialReturnInspection 物料退检单 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
@Override |
|
|
@ -91,7 +96,7 @@ public class QualityReturnInspectionServiceImpl implements IQualityReturnInspect |
|
|
|
/** |
|
|
|
* 修改物料退检单 |
|
|
|
* |
|
|
|
* @param qualityReturnInspection 物料退检单 |
|
|
|
* @param erpMaterialReturnInspection 物料退检单 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
@Override |
|
|
@ -190,4 +195,29 @@ public class QualityReturnInspectionServiceImpl implements IQualityReturnInspect |
|
|
|
int updateFlag = erpMaterialReturnInspectionMapper.updateErpMaterialReturnInspection(erpMaterialReturnInspection); |
|
|
|
return updateFlag; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 退检处理导出 |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public List<ErpMaterialReturnInspectionExcelDto> selectQualityReturnInspectionByNos(String[] returnInspectionNos) { |
|
|
|
|
|
|
|
List<ErpMaterialReturnInspectionDetail> returnInspectionDetails = erpMaterialReturnInspectionDetailMapper.selectQualityReturnInspectionDetailByNos(returnInspectionNos); |
|
|
|
List<ErpMaterialReturnInspectionExcelDto> erpMaterialReturnInspectionExcelDtos = new ArrayList<>(); |
|
|
|
for (ErpMaterialReturnInspectionDetail returnInspectionDetail : returnInspectionDetails) { |
|
|
|
ErpMaterialReturnInspectionExcelDto erpMaterialReturnInspectionExcelDto = new ErpMaterialReturnInspectionExcelDto(); |
|
|
|
erpMaterialReturnInspectionExcelDto.setAbnormalCause(returnInspectionDetail.getAbnormalCause()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setDutyUnit(returnInspectionDetail.getDutyUnit()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setMaterialName(returnInspectionDetail.getMaterialName()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setMaterialNo(returnInspectionDetail.getMaterialNo()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setPickMaterialTime(returnInspectionDetail.getPickMaterialTime()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setRecheckRemark(returnInspectionDetail.getRecheckRemark()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setReturnInspectionNo(returnInspectionDetail.getReturnInspectionNo()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setReturnInspectionNum(returnInspectionDetail.getReturnInspectionNum()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setReturnInspectionRemark(returnInspectionDetail.getReturnInspectionRemark()); |
|
|
|
erpMaterialReturnInspectionExcelDto.setReturnInspectionType(returnInspectionDetail.getReturnInspectionType()); |
|
|
|
erpMaterialReturnInspectionExcelDtos.add(erpMaterialReturnInspectionExcelDto); |
|
|
|
} |
|
|
|
return erpMaterialReturnInspectionExcelDtos; |
|
|
|
} |
|
|
|
} |
|
|
|