| | |
| | | import com.nanometer.smartlab.dao.SysWarehouseDao; |
| | | import com.nanometer.smartlab.entity.*; |
| | | import com.nanometer.smartlab.entity.dto.InWarehouseInfoDto; |
| | | import com.nanometer.smartlab.entity.dto.ReagentReceivingDto; |
| | | import com.nanometer.smartlab.entity.dto.SysWarehouseDto; |
| | | import com.nanometer.smartlab.entity.enumtype.*; |
| | | import com.nanometer.smartlab.exception.AlarmCode; |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void reagentReceiving(ReagentReceivingDto reagentReceiving) { |
| | | |
| | | reagentReceiving.getReagentCode().forEach(code->{ |
| | | // |
| | | OpeReagentStatus ors = opeReagentStatusService.getOpeReagentStatusByReagentCode(code); |
| | | //1.更新试剂状态 在仓库-》领用 |
| | | ors.setStatus(ArrivalStatus.PERSONAL); |
| | | ors.setContainerId(reagentReceiving.getLabContainerId()); |
| | | ors.setHouseId(reagentReceiving.getLabId()); |
| | | ors.setUserId(reagentReceiving.getApplyUserId()); |
| | | opeReagentStatusService.updateReagentStatus(ors); |
| | | }); |
| | | |
| | | } |
| | | } |