Esempio n. 1
0
        public SpecimenIntegrationDto Store(StoreInput input)
        {
            //1.检验我们库是否存在条码(I)
            //2.得到标本实体(O)
            //3.插入数据库(I)

            if (!IsBarcodeExist(input.Barcode))
            {
                throw new Exception("标本已经入库");
            }

            var specimen = GetSpecimen(input.Barcode);

            if (specimen == null)
            {
                throw new Exception("找不到对应条码号");
            }

            StoreSpecimen(specimen);

            return(specimen);
        }
 public SpecimenIntegrationDto StoreQuery(StoreInput input)
 {
     return(_storeQueryHandler.Invoke(input));
 }
 public virtual SpecimenIntegrationDto Invoke(StoreInput input)
 {
     return(null);
 }