重新生成调入单操作

解决方法: update bmc.dbo.MedDispenseOrders set HisOrderMakeModel=1 where otherCenterOragnizationId is not null and CreateTime>'2023-08-1' 第一步:通过上述sql 将目标时间段内处方调入单状态改为 1,其中 0.不需要写入 1.待写入 2.已写入。 第二步:删除区域中药服务平台的目标调入单 第三步:通过调入单分配图,选择需要重新生成调入单的日期,手动点击生成调入单按钮。

拥有分点的解决方法: dbo.Oragnizations 中获取组织ID后执行

update bmc.dbo.MedDispenseOrders set HisOrderMakeModel=1 where otherCenterOragnizationId is not null and CreateTime>'2023-09-30' and OragnizationID = '组织ID'