|
|
@ -9,6 +9,8 @@ import com.ruoyi.common.exception.BusinessException; |
|
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
|
import com.ruoyi.common.utils.ShiroUtils; |
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
import com.ruoyi.erp.domain.ErpDevelopModifyorder; |
|
|
|
import com.ruoyi.erp.mapper.ErpDevelopModifyorderMapper; |
|
|
|
import com.ruoyi.quality.domain.QualityOrder; |
|
|
|
import com.ruoyi.quality.domain.QualityOrderDetail; |
|
|
|
import com.ruoyi.quality.domain.QualityOrderReport; |
|
|
@ -80,6 +82,9 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
|
@Autowired |
|
|
|
private QualityOrderDetailMapper qualityOrderDetailMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ErpDevelopModifyorderMapper developModifyorderMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询仓库入库单 |
|
|
|
* |
|
|
@ -329,6 +334,16 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
|
throw new BusinessException("更新入库单主记录失败"); |
|
|
|
} |
|
|
|
|
|
|
|
//如果采购来源开发修改单,更新开发修改单数据
|
|
|
|
String relatedOrderCode = warehouseStorageOrder.getRelatedOrderCode(); |
|
|
|
ErpDevelopModifyorder erpDevelopModifyorder = developModifyorderMapper.selectErpDevelopModifyorderByCode(relatedOrderCode); |
|
|
|
if (erpDevelopModifyorder != null){ |
|
|
|
erpDevelopModifyorder.setPurchaseStorageStatus("4"); |
|
|
|
erpDevelopModifyorder.setQualityStatus("0"); |
|
|
|
developModifyorderMapper.updateErpDevelopModifyorder(erpDevelopModifyorder); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
qualityOrderService.insertQualityOrderByWarehouseStorageOrder(warehouseStorageOrder, warehouseStorageOrder.getWarehouseStorageOrderDetailList()); |
|
|
|
} catch (Exception e) { |
|
|
@ -397,6 +412,16 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
|
throw new BusinessException("更新仓库入库单详情失败,未影响任何行"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//更新开发修改单数据
|
|
|
|
String relatedOrderCode = warehouseStorageOrder.getRelatedOrderCode(); |
|
|
|
ErpDevelopModifyorder erpDevelopModifyorder = developModifyorderMapper.selectErpDevelopModifyorderByCode(relatedOrderCode); |
|
|
|
if (erpDevelopModifyorder != null){ |
|
|
|
erpDevelopModifyorder.setPurchaseStorageStatus("8"); |
|
|
|
developModifyorderMapper.updateErpDevelopModifyorder(erpDevelopModifyorder); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//更新入库单的数据
|
|
|
|
int updateResult = warehouseStorageOrderMapper.updateWarehouseStorageOrder(warehouseStorageOrder); |
|
|
|
|
|
|
|