建阳-新增入院产品bug

dev_drug_dmyh250207
qiuyt 3 months ago
parent 9bb7c78de3
commit 4616e83a89

@ -68,7 +68,6 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
} }
public boolean exits(String devKey) { public boolean exits(String devKey) {
return thrProductsAddDiDao.exists(new QueryWrapper<ThrProductsAddDiEntity>().eq("deviceRecordKey", devKey)); return thrProductsAddDiDao.exists(new QueryWrapper<ThrProductsAddDiEntity>().eq("deviceRecordKey", devKey));
} }
@ -280,6 +279,13 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
thrProductsAdddiEntity.setPurType(3); thrProductsAdddiEntity.setPurType(3);
} }
} }
if (StrUtil.isNotEmpty(excelVo.getAttributeType())) {
if (excelVo.getAttributeType().equals("耗材")) {
thrProductsAdddiEntity.setProductsType(1);
}
}
thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity); thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity);
}); });
} }

Loading…
Cancel
Save