|
|
@ -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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|